Marketing Research
Computer Lab 1
Dr Euejung Hwang
euejung.hwang@ed.ac.uk
Overview
• Today :
• Preparing the SPSS data file
• Descriptive analysis
• Chi-square test
2
Preparing the SPSS data file
o SPSS data file
• Data view
• Variable view
o SPSS output file
o SPSS syntax file
Starting SPSS
entering!data,!and!the!variable!view!is!for!defining!characteristics!of!the!variables!within!the!data!
editor.! Notice! at! the! bottom! of! the! data! editor! that! there! are! two! tabs! labelled! ‘Data! View’! and!
The Data View
‘Variable!View’!( );!all!we!do!to!switch!between!these!two!views!is!click!on!these!tabs!
(the!highlighted!tab!tells!you!which!view!you’re!in,!although!it!will!be!obvious).!Let’s!look!at!some!
general!features!of!the!data!editor,!features!that!don’t!change!when!we!switch!between!the!data!
view!and!the!variable!view.!First!off,!let’s!look!at!the!menus.!
The highlighted cell is the This area displays the value
cell that is currently active of the currently active cell
This shows that we are We can click here to switch
currently in the ‘Data View’ to the ‘Variable View’
Figure'3.3:'The!SPSS!Data!Editor'
! The!SPSS!environment! 119!
The Variable View
Click on the appropriate cell
in the column labelled
Values
Then,
This button activates
click on
the Value
Labels dialog box
Figure'3.7:'Defining!coding!variables!and!their!values!
The Variable View
o Numeric
• Numbers (e.g., 1, 0, 70)
o String
• Letters (e.g., messy, Maya, label)
o Currency
• Currency (e.g., £20, $34, €56)
o Date
• Dates (e.g., 12-07-2021, 07-12-2012, 12-Jul-
2021)
The View Window
! The!SPSS!environment! 127!
Graph of
some
data
Tree diagram
of the current
output
Results of
statistical
analysis
Figure'3.11'The!SPSS!Viewer'
Descriptive Statistics
1. Frequency distribution
• Analyze > Descriptive statistics > Frequency
Descriptive Statistics
1. Frequency distribution
Descriptive Statistics
1. Frequency distribution
Descriptive Statistics
2. Measures of central tendency
• Central tendency can be measured in three
ways – the mean, median or mode.
✓ Mode – Nominal scale (e.g., Gender)
✓ Median – Ordinal scale (e.g., Income level)
✓ Mean – Interval/Ratio scale (e.g., age)
Descriptive Statistics
2. Measures of central tendency
• Interval/Ratio scale:
Analyze > Descriptive statistics > Descriptives
Descriptive Statistics
2. Measures of central tendency
Descriptive Statistics
2. Measures of central tendency
Descriptive Statistics
3. Measures of spread
• Different ways of summarising a data set by
describing how spread out the scores are from
the mean.
• E.g., range, deviation, variance, standard
deviation
✓ Variance – The average of the squared
differences from the mean.
✓ Standard deviation – The square root of the
variance.
Descriptive Statistics
2. Measures of central tendency
• Interval/Ratio scale:
Analyze > Descriptive statistics > Descriptives
Descriptive Statistics
3. Measures of Spread
Descriptive Statistics
3. Measures of Spread
Descriptive Statistics
3. Measures of Spread
Descriptive Statistics
3. Measures of Spread
Inferential Statistics for Association
1. Chi-square test
2. Pearson Correlation
Chi-square (χ2) test
o What is a Chi-square (χ2) test?
• A hypothesis test that determines whether there
is an association between categorical (i.e.,
nominal or ordinal) variables.
✓ E.g., Association between smoking behaviour and
voting for different parties.
• The test utilises a contingency table (known as
a cross-tabulation or crosstab) which classifies
data according to two categorical variables.
Chi-square (χ2) test
o When to use a Chi-square (χ2) test?
• At least two categorical variables.
• Two or more groups for each variable.
• Independence of observations (e.g., pre-
test/post-test observations)
• Relatively large sample size – At least more
than 10 in every cell.
Chi-square (χ2) test
• Is there an association between the outcome of
the game and the day it was played?
Chi-square (χ2) test
o Analyze > Descriptive Statistics > Crosstabs
Chi-square (χ2) test
o Analyze > Descriptive Statistics > Crosstabs
Chi-square (χ2) test
o Analyze > Descriptive Statistics > Crosstabs
Chi-square (χ2) test
o SPSS output and reporting
Chi-square (χ2) test
o SPSS output and reporting
• Reporting
: χ2(2) = 9.69, p < .01
Outliers
Outliers
o Analyze > Descriptive Statistics > Explore
Outliers
o Analyze > Descriptive Statistics > Explore
Outliers