You are on page 1of 29

Introduction to Spss

1
Introductory Example

 Data View /Variable View


 Heads Under both views
 Entering Data
 Frequencies
 Descriptives
 Cross tabulation (categorical)

2
Pelican Stores

 Make a grouped frequency table of age

 Make bins using transform and visual binning


 It will make another variable (Binned_Age)
 Use the variable to make grouped frequency
distribution and histogram using Analyse=>
Frequencies=>.Charts in options

3
Pelican Stores=Answer 1
 How many promotional customers and non promotional
customers = Analyse => frequencies ( in Discount variable)
(70 and 30-0 being non promotional) 9preferably make bins
for better understanding)
 Net sales can be divided into bins and can be seen the
percentage of frequency in a specific bin Hint: Use Visual
binning under transform and then analyse) or compare means
 Method of payments and their frequency

 Gender and their frequency

 Marital Status and frequency

 Age(bins) and frequency

Make these histograms also


 Give analysis based on above frequncies

4
Ans 2: Make a crosstabulation
 Make a crosstabulation of gender vs net
sales (sales binned)
 Age binned vs. net sales

 Dicount binned vs.net sales

Use Analyse=> Descriptive stats=> crosstab


B. Find mena,median etc of net sales using
either descriptives or frequencies under
analyse
c. Use Analyse=>Compare means to see the
mean values of gender against rest variables
or Card Type against sales 5
Ans 3. Scatter plot between age and
sales
 Graphs=> legacy Dialogs=> Scatter plot

6
Types of Variables
 A variable can be treated as nominal when its values
represent categories with no intrinsic ranking (for example,
the department of the company in which an employee works).
Examples of nominal variables include region, zip code, and
religious affiliation.
 A variable can be treated as ordinal when its values
represent categories with some ranking (for example, levels of
service satisfaction from highly dissatisfied to highly satisfied).
Examples of ordinal variables include attitude scores
representing degree of satisfaction or confidence and
preference rating scores or ranking of judges to the singers
 A variable can be treated as scale (continuous) when its
values represent ordered categories with a meaningful metric,
so that distance comparisons between values are appropriate.
Examples of scale variables include age in years and
income in thousands of dollars. 7
NOMINAL SCALE: Someone noted the color of 15 cars. Prepare
frequency distribution and bar chart
Car No. Color Color code
1 White 2
2 green 5
3 White 2
4 white 2
5 Red 4
6 Blue 3
7 Black 1
8 Blue 3
9 Red 4
10 Blue 3
11 Blue 3
12 White 2
13 Blue 3
14 Black 1
15 blue 3 8
Steps on SPSS

 Enter data
 Go to Descriptive analysis
 Frequency
 Select chart type

9
ORDINAL & NOMILNAL SCALE:Make a clustered bar graph and
stacked graph
Gender(1=male, Salary_satisfaction code
2=Female)
1 Highly satisfied 3
2 Satisfied 2
1 Dissatisfied 1
2 Highly satisfied 3
1 Satisfied 2
2 Dissatisfied 1
1 Highly satisfied 3
2 Satisfied 2
1 Dissatisfied 1
2 Highly satisfied 3
1 Satisfied 2
2 Dissatisfied 1
1 Highly satisfied 3
2 Satisfied 2
10
1 Dissatisfied 1
Import the data

Type the data directly

11
1.Import the data

Type the variable name

12
Import the data

13
Import the data

14
SPSS: Stem and leaf
Analyze – Descriptive Statistics – Explore…

15
SPSS
Analyze – Descriptive Statistics – Frequencies…

16
17
18
SPSS
Graphs – Legacy Dialogs – Interactive –
Dot…/Histogram…

19
SPSS
Analyze – Descriptive Statistics – Frequencies…

20
21
SPSS
Analyze – Descriptive Statistics – Frequencies…

22
SPSS
Graphs – Legacy Dialogs – Interactive –
Boxplot…

23
SPSS
Graphs – Legacy Dialogs –Bar…/Pie…

24
The following data gives the subject's ID, height, weight, month of birth,
result from an experiment and gender of 22 individuals.

D Height Weight BirthMonth Exp. Sex

1 6 135 4 H F
2 63 119 9 H F
3 72 175 11 T M
4 60 106 9 H F
5 65 135 8 T F
6 72 170 10 H M
7 64 180 8 H F
8 71 205 10 H M
9 75 195 6 T M
10 71 185 8 H M
11 71 182 6 T M
12 65 108 8 T F
13 73 150 4 H M
14 67 128 6 T F
15 74 175 6 H M
16 66 160 9 H F
17 65 143 9 T F
18 72 190 11 T M
19 64 180 2 H M
20 61 195 5 T M
21 72 220 7 H M
22 69 285 7 H M
25
Find below using SPSS
Ques:
1. Prepare a simple bar graph of the data between ID and height
2. Prepare a frequency distribution table with 10 no.of classes of height of students
3. Prepare a frequency distribution table with 5 no.of classes of weight of students
4. Find mean , median mode of height and weight of students separately
5. Find mode of all the categorical variables

26
27
Other way to define Intervals
1. Go to Transform
2. Visual Binning
3. Name to the Bin
4. Define Cut Points
5. Define Labels
6. Click Ok

28
Pie Chart
1. Graphs in Main Menu
2. Pie
3. Summarise for gp of
cases
Car Color to tranfer
4. Perc of cases
Ok
5.

29

You might also like