Professional Documents
Culture Documents
Lec1 2
Lec1 2
Lec1 2
Introduction
SPSS stands for Statistical Package for the Social Sciences. It is a popular software used to
analyze statistical data in different fields including business, social sciences, health sciences. We
will use the graphical interface of version 25.
SPSS provides descriptive statistics: Examples include graphical ( such as bar graph, histogram),
tabular (such as frequency tables, cross-tabulation), numerical measures ( such as median, range,
variance and standard deviation), and prediction (such as regression analysis).
SPSS provides Inferential statistics: such as confidence intervals and hypothesis testing.
After studying the theoretical part of the Statistics course you will use the computer (SPSS) to
apply the theoretical material. You will gain some knowledge and skills in how to use SPSS.
This manual assumes that you are familiar with Windows packages such as Word and Excel.
This manual illustrates how to apply SPSS procedures to all theoretical statistical procedures covered
in Econ234 course.
Chapter 1
1.1 Loading SPSS
Type in SPSS in the dialogue box and highlight (or click) IBM SPSS Statistics 25
You will see the following window- Click Cancel and SPSS editor will appear.
When you load and run the SPSS package it opens up a menu bar and two views. These are Data
View(currently visible) and Variable View
This sheet will contain your data, each column representing a variable for which data
are available and each row representing the data for an individual or case. At present this sheet
should be blank. As this sheet is currently selected, its name on the tab at the bottom is in bold.
This is the data editor window.
At present this sheet is not visible as the variable view sheet is not active.
Consequently, the name is not in bold.
Menu Bar: This provides a selection of options (File, Edit, View, Data …) which allow you, for
example, to open files, edit data, generate graphs, create tables and perform statistical analyses.
Selecting from this menu bar will, as in other Windows packages, provide further pull‐down
menus and dialogue boxes.
File is used to access any files whether you want to Open an existing SPSS file or read data from
another application such as Excel or dBase, or start a New file. It is also the menu option you
choose to Save files.
Edit can be used to alter data or text in the Data View or the Variable View.
View can be used to alter the way your screen looks such as font size
Data is used to define variables and make changes to the data file you are using.
Transform is used to make changes to selected variable(s) in the data file you are using. We focus
on recode existing variable, compute new variables.
Graphs is used to create a variety of graphs and charts such as Bar, Line and Pie charts.
Help is a context‐sensitive help feature which operates the same way as other Windows packages.
In the Variable View window enter the two variable’s names gender and age.
Note that
1. The default is “numerical” under the Type column and “Scale” under Measure
column. You should keep these setting for the age variable because it is a quantitative
variable.
2. gender is a qualitative variable so you need to select “String” from the Type column.
By default the Measure column will show “nominal”.
In the Data View window enter the gender and the age values for the four subjects.
1 female 20
2 Male 21
3 Male 22
4 female 20
When you are done you will see the following in the data view window
Chapter 2
2.1 Presenting qualitative data graphically
The bar graph displays a qualitative data with two or more categories. We could use one
variable to compare its categories or to compare categories of two or more variables/.
Example 1: Create a frequency table and a bar graph for the favorite flavor of ice cream variable
in ice_cream.sav data.
Cumulative
Frequency Percent Valid Percent Percent
Enter data into SPSS editor window. You need to create two variables: expenditure, our only
categorical variable (qualitative) and the amount spent (count -quantitative). Save the data to be
used later.
SPSS needs to know that the total expenditure is 599.38 ( sum of all expenditures in all categories).
To do so, go to
Example 1: In the ice cream data, suppose you are interested in how gender might affect the
favorite flavor of ice cream. You could look at the a bar graph of favorite flavor of ice cream by
gender.
Click OK.
Open Data and remember to use the weighted cases procedure for this type of data.
Click on Define
Continue-OK.
You will get
Example: Use data sales. The data show the sales in thousands of dollars of a product over a
period of years. Create a line graph for the sales over time.
Example 1: Create a line graph for the following data which show the English exam scores of a
student
3, 5, 3, 6, 7, 7, 7, 6, 6, 8.
Move the variable score into Line represents dialog box – OK.
The following graph appears.
2.2.2 Histogram
A histogram summarizes a univariate variable graphically. It shows the distribution of the
variable which can be symmetric or skewed.
Example 1:
Create a histogram for the variable “video” (the score on a video game) in ice-cream data
For quantitative variables, we will find all measures of central tendency and dispersion (variation).
Data: ice_cream.sav
We are interested in getting the value of mean, median, mode, min, max, Percentiles 60 and 90,
quartiles, variance, standard deviation, and the Range. Find these measurement for the puzzle
variable.
Click on Statistics and mark all the required boxes such as mean, median, mode,…
Statistics
score on puzzle game
N Valid 200
Missing 0
Mean 52.41
Median 52.00
Mode 61
Std. Deviation 10.736
Variance 115.257
Range 45
Minimum 26
Maximum 71
Percentiles 25 46.00
50 52.00
60 56.00
75 61.00
Note You could use the following procedure to get some statistics for
the video variable:
Analyze – Descriptive Statistics - Descriptives.
Click OK.
Descriptive Statistics