Professional Documents
Culture Documents
in SPSS
Prepared By:
Dr. SamanHassnAbdulla
E-mail:
saman.abdulla@univsul.edu.iq
2023-2024
Frequency Distribution
SPSS_Dr Saman 2
Frequency Distribution
After entering the Data or transforming the Data we can analyzing the
frequency distribution in SPSS.
Go to analyze Descriptive Statistics Frequencies.
SPSS_Dr Saman 3
Frequency Distribution
SPSS_Dr Saman 4
Measure of Central Tendency (MCT)
SPSS_Dr Saman 5
Measure of Central Tendency (MCT)
• In this part, we are going to explain the (MCT) like (Mean, Mode, Median,
Sum).
• Step 1:
Go to analyze Descriptive Statistics Frequencies.
SPSS_Dr Saman 6
Measure of Central Tendency (MCT)
• Step 2:
• You can select all variable or some variable to analyzing.
SPSS_Dr Saman 7
Measure of Central Tendency (MCT)
• After clicking on the Statistic button you see this window. And chose any
tools as you want
SPSS_Dr Saman 8
Measure of Dispersion
Dispersion (also known as Scatter, spread or variation ) measures the items
vary from some central value.
It measures the degree of variation.
SPSS_Dr Saman 9
Measure of Dispersion
In this section, we are going to Calculate the Measure of Dispersion like
(Std.deviation, Variance, Maximum, Minimum, Range and S.E mean ).
After clicking on the Statistic button you see this window. And chose any tools
as you want
SPSS_Dr Saman 10
Charts
In this section, we are going to charts produces optionally a (bar-chart, a pie-
chart or a histogram).
After clicking on the Charts button you see this window. And chose any type
of charts as you want
SPSS_Dr Saman 11
Notice: Choose statistics and graphs based on the data:
Statistics Graphs
Nominal Frequency Bar chart
Scale Mean, Histogram
Standard deviation
SPSS_Dr Saman 12
Example : For the smoker table in below use frequency analysis.
SPSS_Dr Saman 13
➢ In the Data Editor window select Analyze.
➢ From the Analyze menu select Descriptive Statistics.
➢ From the Descriptive Statistics submenu, select Frequencies
➢ Select Sex of respondent.
➢ Click the right pointing arrow head to move sex into the Variables
box
SPSS_Dr Saman 14
SPSS_Dr Saman 15
Measure of Central Tendency (MCT)
SPSS_Dr Saman 16
SPSS_Dr Saman 17
Measure of Dispersion
SPSS_Dr Saman 18
SPSS_Dr Saman 19
Producing a Bar chart from frequencies
• To create a bar chart for sex using the Frequencies box:
➢ In the Analyze menu, click Descriptive Statistics.
➢ From the Descriptive Statistics submenu, click Frequencies.
➢ Select Sex of respondent [Sex] and then click on to choose Bar
charts and click on the continue, ok respectively.
SPSS_Dr Saman 20
Producing a Pie chart from frequencies
• To create a bar chart for sex using the Frequencies box:
➢ In the Analyze menu, click Descriptive Statistics.
➢ From the Descriptive Statistics submenu, click Frequencies.
➢ Select Sex of respondent [Sex] and then click on to choose Pie
charts and click on the continue, ok respectively.
SPSS_Dr Saman 21
Producing a Histogram from frequencies
Use the Frequencies dialog box to request a histogram:
Select Analyze Descriptive Statistics Frequencies
Select Age last birthday [age] Click Charts Histogram(s)
To display a normal curve on the chart:
Select With normal curve Click Continue and then click OK
SPSS_Dr Saman 22
Descriptive Statistics
Descriptive
This analysis shows the maximum, minimum, mean, and standard deviation of
the variables
SPSS_Dr Saman 23
Descriptive Statistics
SPSS_Dr Saman 24
SPSS_Dr Saman 25
Homework:
1- Do a frequency analysis and Pie Chart on the variable “Gender”?
2- Find mean, median, mode, quartiles, standard deviation, variance, range,
minimum, maximum, standard error of mean, skewness, and kurtosis for
EcDegree variable and then draw a Histogram for the same variable.
SPSS_Dr Saman 26
Explore
Explore: The Explore procedure produces detailed univariate statistics and
graphs for numeric scale variables for an entire sample, or for subsets of a
sample. It can also be used to assess the normality of a numeric scale variable
with special inferential statistics and detailed diagnostic plots.
Go to analyze Descriptive Statistics Explore
SPSS_Dr Saman 27
Explore
SPSS_Dr Saman 28
Explore
SPSS_Dr Saman 29
Explore
SPSS_Dr Saman 30
Explore
SPSS_Dr Saman 31
Explore
SPSS_Dr Saman 32
Explore
SPSS_Dr Saman 33
Explore
SPSS_Dr Saman 34
Explore
SPSS_Dr Saman 35
Explore
Testing Normality
Example: Is the weight of student normal or not.
135 119 106 135 180 108 128 160 143 175 170
205 195 185 182 150 175 190 180 195 220 235
Solution :
➢ First of all, we have to write the Null and Alternative hypothesis for
checking normality
SPSS_Dr Saman 36
Explore
The p-value 0.692 from Shapiro-Wilk test of normality is greater than
0.05 which imply that it is acceptable to assume that the weight of
student is normal (or bell-shaped)
SPSS_Dr Saman 37
Explore
The p-value 0.692 from Shapiro-Wilk test of normality is greater than 0.05
which imply that it is acceptable to assume that the weight of student is normal
(or bell-shaped).
SPSS_Dr Saman 38
Notice:
SPSS_Dr Saman 39
Crosstabs
Crosstabs is adopted to define the relationship that may exist between nominal or
ordinal variable, to create a crosstab and perform a chi-square test of independence.
The Chi-Square Test of Independence determines whether there is an association
between categorical variables (i.e., whether the variables are independent or
related). It is a nonparametric test.
Go to analyze Descriptive Statistics Crosstabs
SPSS_Dr Saman 40
Crosstabs
SPSS_Dr Saman 41
Crosstabs
SPSS_Dr Saman 42
Crosstabs
The null hypothesis (H0) and alternative hypothesis (H1) of the Chi-Square Test of
Independence can be expressed in two different but equivalent ways:
H0: "[Variable 1] is independent of [Variable 2]"
H1: "[Variable 1] is not independent of [Variable 2]"
OR
H0: "[Variable 1] is not associated with [Variable 2]"
H1: "[Variable 1] is associated with [Variable 2]"
SPSS_Dr Saman 43
Crosstabs
The p-value 0.260 from pearson chi – square is greater than 0.05 which imply
that it is acceptable to assume that the variable independent.
SPSS_Dr Saman 44
Graphs
The most effective way to present quantitative and qualitative data is by means
or graphs. There are many different types of graphs. The most common used in
descriptive statistics are Bar charts, Pie charts, Histograms and Boxplots. The
first two are used for qualitative (nominal and ordinal) variables and the last two
for quantitative (scale) variables.
SPSS_Dr Saman 45
Bar charts
Bar charts are plotted based on the contingency table of a qualitative variable.
SPSS_Dr Saman 46
Bar charts
SPSS_Dr Saman 47
Bar charts
SPSS_Dr Saman 48
Pie charts
Pie charts are circular graphs divided in sectors, each sector represents on
category.
SPSS_Dr Saman 49
Pie charts
SPSS_Dr Saman 50
Pie charts
SPSS_Dr Saman 51
Histogram
A histogram is equivalent to a bar chart but the horizontal axis depicts classes
instead of categories.
SPSS_Dr Saman 52
Histogram
SPSS_Dr Saman 53
Histogram
SPSS_Dr Saman 54
Boxplot
A boxplot consists of rectangle with two antennas, one at the lower base and the
other at the upper one.
SPSS_Dr Saman 55
Boxplot
SPSS_Dr Saman 56
Boxplot
SPSS_Dr Saman 57
Homework:
1- Create bar chart and pie charts for Gender?
2- Create histogram for CoDegree?
3- Create boxplot for Age by Gender?
SPSS_Dr Saman 58