Escolar Documentos
Profissional Documentos
Cultura Documentos
Week 11
Learning Outcome
Where,
X sample mean of X, and
Y sample mean of Y.
Revision Time
Lecture
Attendance
Module Code and Module Title Title of Slides Dr Jugindar Singh
What Is Linear Regression?
Variable View
The SPSS Data Editor
Variable view
– Name
– Type (Numeric)
– Label
– Values (= the codes of
the answers)
– Measure (= Level of
Measurement)
•Name -- the unique variable name
•Type -- the kind of data to be recorded
Variable View window (e.g., strings of characters, numeric values,
or special numbers like dates)
• This sheet contains information • Width -- the number of characters used
about the data set that is stored with • Decimals -- the number of decimal
places displayed
the dataset •Label -- a text entry to describe the data
• Name provided by the variable, which can be
much longer than the variable name and
– The first character of the variable
may include spaces. With questionnaires,
name must be alphabetic
for example, the label is usually the text of
– Variable names must be unique, and the question.
have to be less than 64 characters. •Values -- if specific numeric values have a
– Spaces are NOT allowed. non-intuitive meaning, these values can be
labeled (e.g., 1 = male and 2 = female)
•Columns -- determines how wide the
variable column should be in Data View
mode
Click •Align -- determines whether the data
should be left-justified, right-justified, or
centered
•Measure -- describes the level of
measurement (nominal, ordinal, or scale)
The SPSS Data Editor
Data View
SPSS Menu’s
• Analyze
– Frequencies
– Cross tabs
– Descriptives
– Regression
SPSS Menu’s
• Graphs
– Bar
– Pie
– Histogram
– Line
– Boxplot
Transforming the
data
The Likert Scale scores given for each statement is to be
added together to get variable score
• Analogy
• We give questions to answer, after marking we add to get
overall score for ranking or to declare best student etc
• We never see scores individually but collectively
Transforming data
• Click ‘Transform’ and then click ‘Compute
Variable…’
Transformation of Data
Continuous variables
(e.g. age)
Descriptives, which will
provide you with
‘summary’ statistics such
as mean, median,
standard deviation
SPSS : Exercise
1. Obtain the number of males and females
Outliers are cases with scores that are quite different from the remainder of the
sample, either much higher or much lower.
Reliability
The Reliability of data is tested by Cronbach Alpha which should show
a reliability score of more than 70% (> 0.7)
• For secondary data Reliability need not be tested
as they are normally financial data downloaded
from websites and reliable sources.
• For demographic variables reliability testing is
not necessary as it is meaningless
• At pilot study stage question wise reliability will
be tested to correct the questions
• Variable wise reliability is needed at final stage
Cronbach's Alpha (α)
Most common measure of internal consistency ("reliability").
It is most commonly used when you have multiple Likert questions
Example
A researcher has devised a nine-question questionnaire to measure how safe people feel at
work at an industrial complex. Each question was a 5-point Likert item from "strongly disagree"
to "strongly agree".
SPSS Exercise: Reliability
Testing Normality
They compare the shape of your sample Tools for Normality Testing
distribution to the shape of a normal curve • Histogram and Boxplot
• Normal Quantile Plot
• Assumes, if your sample is normal shaped, (also called Normal Probability Plot)
the population from which it came is • Goodness of Fit Tests
normally distributed Shapiro-Wilk Test
Kolmogorov-Smirnov Test
How do we decide if a distribution is approximately normal?
95.0% of the scores fall between a Z of
-1.96 to +1.96
Exam score
INDEPENDENT SAMPLE T TEST
Example
• Men and women may be different in spending habits
• Men and women may be different in emotional decisions
• Foreigners may be different in cultural aspects compared to
Malaysians
1. Analyze
2. Compare Means
3. Paired-Samples T Test.
SPSS Exercise; Paired sample T test
One-Way ANOVA
One-Way ANOVA tests whether the means on a metric variable for three or
more populations are all equal.
Example: A farmer wants to know whether the weight of parsley plants is influenced by using
a fertilizer. He selects 90 plants and randomly divides them into three groups of 30 plants
each. He applies a biological fertilizer to the first group, a chemical fertilizer to the second
group and no fertilizer at all to the third group. After a month he weighs all plants
Correlations
A correlation is a statistical device that measures the
nature and strength of a supposed linear association
between two variables.
Y Y Y
X X X
Positive Relationship Negative Relationship No Relationship
Correlation Coefficient
+
r = 0.0 to 1.0
Magnitude
Direction
1. Descriptive Statistics
2. Inferential Statistics