You are on page 1of 85

INTRODUCTION TO SPSS

SPSS (Statistical package for the Social Science) has now been in development for more than
thirty years. Originally developed as a programming language for conducting statistical
analysis, it has grown into a complex and powerful application with now uses both a
geographical and a syntactical interface and provides dozens of functions for manging,
analysing, and presenting data. Its statistical capabilities alone range simple percentages to
complex analyses of variance, multiple regressions, and general liner models. You can use data
ranging from simple integers or binary variables to multiple response or logarithmic variables.
SPSS also provides extensive data management functions, along with a complex and powerful
programming language. In fact, a search at Amazon.com for SPSS books returns 2,034 listings
as of March 15,2004.
1.SPSS INTERFACE
1.1 General Functions
The Menu bar [ “File”,” Edit” and so on] is located in the upper area.

In the lower left corner, two tabs are available: Data View and Variable View.
When you start SPSS, Variable View is default.

FILE TYPES

SPSS uses three types of files with different functions and extensions:
TYPE EXTENSION CONTENT
Data Set .sav Data and variables
Syntax .sps Commands and Comments
Output .spv Results
OPTIONS

The SPSS menu works similar to the menus in many other programs, such as word or excel.
Some useful options are listed below:
OPTION DESCRIPTION
Open a file Go to File /Open and choose Data, Syntax, or Output. Browse
your hard drive to locate the file. Then click on Open.
Save a file Go to File /Save As. Type in a descriptive name and then click
Save. You also choose to save only some of the variables into
the new data by clicking Variables (before saving) and then
ticking the boxes next to the variables you want to keep.
Overwrite a file Go to File/ Save
Import a data set Go to File/ Open / Data and choose the desired format next to
Files of types. Browse the file and click on Open.
1.2THE DATA VIEW
The data view displays your actual data and any new variables you have created.

1. From the menu, select File> Open >Data.


2. In the Open file window, navigate the file and open it by double clicking, SPSS open a
window that looks like standard spreadsheet. In SPSS, columns are used for variables,
while rows are used for variables, while rows are used for cases (also called records).
1.3 THE VARIABLE VIEW
At the bottom of the data window, you’ll notice a tab labelled VARIABLE VIEW. The
variable view window contains the definitions of each variable in your data set, including
its name, label, size, type, alignment, and other information.

1. Click the variable view tab.


2. Review the information in the rows for each variable.

NOTE: While variables are listed as columns as in the data view, they are listed as rows
in the variable View. In the Variable View, each column is a kind of variable itself
Containing a specific type of information.
2. DATA ENTRY IN SPSS
2.1 VARAIBLE TYPES
SPSS uses (and insists upon) what are called strongly typed variables. Strongly typed means
that you must define your variable according to the type of data they will contain.

You can use any of the following types as defined by the SPSS Help file.

 NUMERIC: A variable whose values are numbers. Values are displayed in standard
format. The Data Editor accepts numeric values in standard format or in scientific
notation.
 COMMA: A numeric variable whose values are displayed with commas delimiting
every three places, and with the period as a decimal delimiter. The data Editor accepts
numeric values for comma variables with or without commas; or in scientific notation.
 DOT: A numeric variable whose values are displayed with periods delimiting every
three places, and with the comma as a decimal delimiter. The Data Editor accepts
numeric values for dot variables with or without dots; or in scientific notation.
 SCIENTIFIC NOTATION: A numeric variable whose values are displayed with an
embedded E and a signed power-of-ten exponent.
 DATA: A numeric variable whose values are displayed in one of several calendar-date
or clock-time formats. Select format from a list. Select a format from the list.
 CUSTOM CURRENCY: A numeric variable values which are displayed in one of
the custom currency formats that you have defined in the currency tab of the options
dialog box.
 STRING: Values of a string variable are not numeric, and hence not used in
calculations. They can contain any characters up to the defined length. Uppercase and
Lowercase letters are considered distinct. Also known as an alphanumeric variable.
2.2 VARIABLE NAMES AND LABEL

In SPSS, variable names eight characters, period. And no funny characters like spaces
or hyphens. Here are the rules:
 Names must begin with a letter.
 Names must not end with a period.
 Names must be no longer than eight characters.
 Names must be unique.
 Names cannot contain blanks or special characters.
 Names are not case sensitive. Its doesn’t matter if you call your variables CLIENT,
client, or CliENt. Its all client to SPSS.
2.3 MISSING VALUES
If you do not enter any data in a field, it will be considered as missing and SPSS
will enter a period for you.
2.4 ALIGN
There are three alignments in the SPSS sheet, as follows:
1)RIGHT

OUTPUT
2)LEFT ALIGN

OUTPUT:
3) CENTRE ALIGN

OUTPUT:
2.5 MEASURES SCALES
Types of scales
We use a scale to make the measurements of a variable, and the characteristics of the scale
determine the characteristics of the data we collect and, in turn, how we describe our data.
Generally speaking, there are four measurement scales: nominal, ordinal, ratio and interval.
Nominal and ordinal variables are often called “categorical” or “qualitative”, whereas ratio and
interval variables are often referred as “continuous” or “qualitative “.

In SPSS both ratio as well as interval are considered in same category as SCALE.

TYPE TYPE
NOMINAL Categorical/ qualitative
ORDINAL Categorical/ qualitative
RATIO Continuous/ quantitative
INTERVAL Continuous / quantitative
It should also be noted that a nominal variable with only two categories/values is called
“dichotomous” (or “binary, or “dummy”) whereas a nominal variable with more than two
categories is called “polytomous”.

DIFFERENCE BETWEEN THE SCALES

These scales differ in three important ways: hierarchy, distance and zero point.

What does “arrange/order the values hierarchically” mean? If we take gender as an example, it
is not reasonable to say that “Man” is less or more than “Woman”. As another example, we
can take ethnicity: it is not reasonable to see “Danish” as less or more than “Finnish”. For
variables such as self-rated health, on the other hand, it is possible to say that “Excellent health”
is better than “Good health”. Moreover, it is possible to say that the grade “A” is better than
the grade “B”.

What does “distance” mean? If we take income as an example, we know that 1000 dollars are
twice as much as 500 dollars, and 2000 dollars are twice as much as 1000 dollars. The same
logic applies to variables such as age: it is the same distance between 2 years and 4 years as
between 6 years and 8 years. Thus, having the same distance between the values means that
the differences between two values are the same regardless of which part of the scale you are
looking at.

What does “absolute zero point” mean? Basically, it means that the scale cannot have negative
values. It is possible for the temperature to be minus 10 degrees Celsius, but is not possible to
have less than zero years of schooling or having less than zero days of unemployment.

SCALE VALUES EXAMPLES


Nominal Order values: NO Yes/ No questions
Same distance: NO Gender
Absolute zero Point: Not Applicable Ethnicity
Ordinal Order values: YES Attitude questions
Same distance: NO Self-rated health
Absolute zero Point: Not Applicable Educational level
Nominal Order values: YES Age
Same distance: YES Income
Absolute zero Point: YES School marks
Interval Order values: YES Temperature (Celsius)
Same distance: YES
Absolute zero Point: NO

A nominal variable is hence a variable for which the values cannot be ranked, and we do
not have the same distance between the values, e.g. gender or questions that can be answered
with yes or no. Ordinal variables are similar, but here the values can be ranked, such as for self-
rated health: “Excellent is better than “Good”; “Good” is better than “Fair”; and “Fair” is better
than “Poor”. However, for ordinal scales we do not have the same distance between the values:
the “amount” of better health is not necessarily the same between “Poor” and “Fair” as between
“Good” and “Excellent”. The ratio scale is similar to the ordinal scale, but here we do have the
same distance between the values: for examples, we know that 10 years of schooling is twice
as much as 5 years of schooling. The interval scale is similar to the ratio scale, but here we also
have an absolute zero point.

TYPES OF VALUES

It is possible to distinguish between two types of values: discrete and continuous. Discrete
values can only assume “whole” values, such as “Man”, “Women”, “Green”, “Car”, and
“House”. Continuous values can assume any value along a scale, such as “3.5 years”, “58.3
seconds”, and “163.5 centimetres”. Note, however, that continuous variables (i.e. on a ratio or
interval scale) do not necessarily have continuous values. For example, number of cars is a
ratio variable but it has discrete values: while the average number of cars in a population may
be 0.8, it is not correct (although many do) to say that any given individual in a population has
0.8 (since car is a WHOLE value).

NAME TYPE
Discrete Whole value
Continuous Any value
3. DESCRIPTIVE STATISTICS

3.1 FREQUENCIES TABLES


This function is used primarily for categorical variables (i.e. nominal/ordinal) but can
be used for any type of variable; the concern is that the table becomes too lengthy if
there are many categories/values in the variable. The Frequencies function does not
only allow us to create a frequency table, it is also possible to produce a variety of
statistics.

TYPES OF STATISTICS
FREQUENCY The absolute number of observations within each category
MEAN The average value
MEDIAN The value in the absolute middle
MODE The most frequently occurring value
SUM Sum of all the values
STD. DEVIATION Standard deviation
VARIANCE Variance
RANGE The difference between the minimum value and the maximum value
MINIMUM Minimum (smallest) observed value
MAXIMUM Maximum (largest) observed value
SKEWNESS Skewness and standard error of skewness
KURTOSIS Kurtosis and standard error of kurtosis
STEPS FOR FREQENCY TABLE:

1) GO to menu bar select analyse/ statistics /frequencies.

2) a new dialog box called frequencies will be open on the screen. Transfer
the variables to other side of the box.
3) now click on the option statistics and tick the options uh want.

4) now click on continue and then press OK for the output.

OUTPUT OF FREQUENCY TABLE:


3.2 TYPES OF GRAPHS
3.2.1 BAR GRAPH
The bar chart is useful primarily for categorical variables (i.e. nominal/ordinal)
but can be used for any type of variable as long as there are not too many values for
each variable. types of bar chart: the simple bar chart
SIMPLE BAR CHART
The simple bar chart allows for an illustration of one variable, but it is possible to split
it by a second variable.
Number of variables IT IS POSSIBLE TO SPLIT/PANEL THE CHART BY
A SECOND VARIABLE
Scale of variable(s) CATEGORICAL (NOMINAL/ ORDINAL)

STEPS TO OPEN SIMPLE BAR CHART:


1) Go to menu bar, select ANALYZE.
2) A small window with various options will, select DESCRIPTIVE STATISTICS.
And then select new option FREQUENCIES.

3) A dialog box will open called frequencies, and transfer the variables from left to
right.
4)Now select option Charts and a window will appear with types of chart.

5) Then click continue and press ok.


OUTPUT: This is the bar chart of the variable GENDER. The x-axis represents the values of
the variables and y-axis represents the frequency of the sample.

3.2.2 HISTOGRAM
This function is used to illustrate the distribution of continuous variables (i.e.
ratio/interval). It is possible to include a normal curve to chart in order to see how the
data adheres to a normal distribution.
Number of variables One (it is possible to split/panel the chart by a
second variable)
Scale of variable(s) Continuous (Ratio/Interval)
STEPS TO OPEN HISTOGRAM:
1) Go to menu bar, select ANALYZE.
2) A small window with various options will open, select DESCRIPTIVE
STATISTICS. And then select new option FREQUENCIES.
3) A dialog box will open called frequencies, and transfer the variables from left to right

4)Now select option Charts and a window will appear with types of chart.
. 5) Click continue and Then press OK.

OUTPUT OF HISTOGRAM: This is the bar chart of the variable AGE. The x-axis represents
the values of the variables and y-axis represents the frequency of the sample
HISTOGRAM WITH NORMAL CURVES

1) Go to menu bar, select ANALYZE.


2) A small window with various options will open, select DESCRIPTIVE STATISTICS.
And then select new option FREQUENCIES.
3) A dialog box will open called frequencies, and transfer the variables from left to right

4) Now select option Charts and a window will appear with types of chart
5) Add a new option by clicking on with normal curve while selecting type of chart.

OUTPUT WITH NORMAL CURVE:


3.3.3 PIE CHART

This function is used only for categorical variables (i.e. nominal/ordinal) with relatively few
categories – otherwise the pie chart will get too complex.

Number of variables One (it is possible to split/panel the chart by a


second variable)
Scale of variable(s) Categorical (nominal/ ordinal)

STEPS TO OPEN PIE CHART:

1)Go to menu bar, select ANALYZE

2) A small window with various options will, select DESCRIPTIVE STATISTICS and then
select new option FREQUENCIES.
3) A dialog box will open called frequencies, and transfer the variables from left to
right

4)Now select option Charts and a window will appear with types of chart.
5)click continue and Then press okay.

OUTPUT OF PIE CHART: This is the bar chart of the variable MONTHLY INCOME.

This is a pie chart of the variable HOMETYPE. It is a circular diagram, divided into slices,
where each slice represents the proportion of a specific value of the variable.
3.3 MEASURE OF CENTRAL TENDENCY

Central tendency can be defined as measures of the location of the middle in a distribution.
The most common types of central tendency are:

MEASURE DEFINITION
Mean The average value
Median The value in the absolute middle
Mode The most frequently occurring value

3.3.1 MEAN: The mean is perhaps the most commonly used type of central tendency and we
get it by dividing the sum of all values by the number of values.

3.3.2 MEDIAN: The value in the absolute middle of the distribution - is obtained by sorting
all the values from low to high and then identifying the value in the middle of the list.

Note that when we have an odd number of values, it is easy to identify the value in the
absolute middle of the distribution. When we have an even number of values, we get the
median by adding the values in the middle together and dividing the sum by 2.

3.3.3 MODE OR TYPE: It is defined as the most frequently occurring values in a


distribution. Here as well, one starts by sorting responses from the lowest one to highest
value and then identifies the most common value.
STEPS TO FIND OUT THE CENTRAL TENDENCY:

1)Go to menu bar, select ANALYZE

2) A small window with various options will open, select DESCRIPTIVE STATISTICS and
then select new option FREQUENCIES.

3)A dialog box will open called frequencies, and transfer the variables from left to right

4)Now select option statistics and a new dialog box will be open
5)Now press continue and okay, hence the output will appear on the screen.

OUTPUT OF CENTRAL TENDENCY:


3.4 MEASURE OF VARIATION

Besides the mean, median and mode, we may use measures of variation to describe our
variables further. Here are some of most common measure of variations:

MEASURE DEFINITION
MAX The lowest value
MIN The highest value
RANGE The difference between the lowest and highest value
STANDARD DEVIAION The dispersion of values from the mean

These measures are most suitable for continuous variables (i.e., ratio or interval) but
sometimes min, max, and range are used for ordinal variables as well. However, they cannot
be used for nominal variables (for the same reason as why we do not use mean or median to
describe nominal variables).

DESCRIPTIVES

Number of variables At least one


Scale of variable(s) Continuous (ratio/interval) or ordinal

The Descriptive function is used primarily for continuous variables (i.e.,


ratio/interval) but could also be used for some ordinal variables that are
approximately continuous. The SPSS function allows you to order the following
statistics:

MEAN Mean value


SUM Sum of all values
STDDEV Standard deviation
MIN Minimum (smallest) observed value
MAX Maximum (largest) observed value
VARIANCE Variance
RANGE The difference between the minimum value
and the maximum value
SEMEAN Standard error of the mean
KURTOSIS Kurtosis and standard error of kurtosis
SKEWNESS Skewness and standard error of skewness

STEPS OF DESCRIPTIVES:

1) Go to Menu bar, choose Analyze / Descriptive Statistics /Descriptives.

2)This will open up a new window called Descriptives

3)A small window will open, where you see two boxes.

4)In the left box, all your variables are displayed. Here you choose the variable(s) you
want to get the measures of central tendency and/or variation for.

5)Click on the small arrow between the boxes to transfer the variable(s) to the box to the
right
6)Click on Options.

7)Tick the boxes for the measures you want to have.

8)Click on the continue to close the small window.

9) Click on Ok to close the descriptives window in order to get the result in your output
screen.
OUTPUT OF DESCRIPTIVES:
4) STATISTICAL SIGNIFICANE
4.1 Hypothesis testing
Quantitative research is commonly about examining relationships between variables.

Assuming that all is done correctly, data analysis will give us the direction of the relationship
(i.e.is the relationship negative or positive) and the effect size (i.e. how strong the relationship
is). These are the two most important outcome of data analysis, but it is not uncommon that
research inquiry instead focuses on a third point: STATISTICAL SIGNIFICANCE .Statistical
significance can be seen as an indicator of the reliability of the results – although that is
important indeed, it is not what exclusively should guide which findings we focus on and which
we discard.

PRIORITY LIST
1. DIRECTION Is the relationship positive or negative?
2. EFFECT SIZE Is the relationship strong or weak?
3. STATISTICAL SIGNIFICANCE Is the relationship reliable?
4. PRACTICAL IMPORTANCE Is the relationship relevant?

HYPOTHESES
NULL HYPOTHESIS (Ho) There is no difference
ALTERNATIVE HYPOTHESIS(H1) There is a difference

There is no “law” saying that the null hypothesis is always “no difference” and the alternative
hypothesis is always “difference”. However, for the null hypothesis, precedence is commonly
given to the “simpler” (or more “conservative” or “normative”) hypothesis.

OUTCOMES
There are two possible outcomes of hypothesis testing:

OUTCOMES OF HYPOTHESIS TESTING


Reject Ho in favour of H1 Suggests that the alternative hypothesis may be true (but it
does not prove it)

Do not reject Ho Suggests that there is not sufficient evidence against Ho in


favour of H1 (but it does not prove that the null hypothesis is
true)
ERRORS
There are two types of error that may occur in hypothesis testing: a type I error occurs when
the null hypothesis is rejected although it is true whereas a type II error occurs when the null
hypothesis is not rejected although it is false.

TYPE I AND TYPE II


ERROR
CONCLUSION
Reject Ho in favour Do not reject Ho
of H1
TRUTH Ho Type 1 error Right decision
H1 Right decision Type II error

Type I errors are generally considered to be more serious that type II errors. Type II errors are
often due to small sample sizes.

STATISTICAL HYPOTHESIS TESTING


Conducting a statistical hypothesis test is easy to do in statistical software such as SPSS.
These tests give us a probability value (p-value) that can help us decide whether or not the
null hypothesis should be rejected.

4.2 P-Values
The probability value – or p-value-help us decide whether or not the null hypothesis
should be rejected. There are some common misunderstandings about p- values:

THE P- VALUE IS NOT


….. the probability that the null hypothesis is true
….. the probability that the alternative hypothesis is false
….. the probability of the occurrence of a type I error (falsely rejecting Ho)
….. the probability that replicating the experiment would yield the same
conclusion
….an indicator of the size of the effect or importance of the finding
……. the probability that the finding is a fluke

Using the p-value to make this decision, it must first be decided what probability
value we find acceptable. This is often referred to “the significance level”. If the p-
value is below this level, it means that we can reject the null hypothesis in favour of
the alternative hypothesis, and if the p-value is above this level, it means that we
cannot reject the null hypothesis. The smaller the p-value, the more convincing is the
rejection of the null hypothesis.
SIGNIFICANCE LEVELS
The significance level is set by the individual researcher – it that sense, it is
quite arbitrary – but there are some levels that are widely used.

SIGNIFICANCE
LEVELS
p< 0.05 Statistically significance at the 5% level *
P<0.01 Statistically significance at the 1% level **
P<0.001 Statistically significance at the 0.1% level ***

It should be noted that p<0.10 – statistical significance at the 10 % level – is also a commonly
used significance level in some filed of research.
It should be noted that the p-value is affected by the sample size, which means that a smaller
sample size often translates to a larger p-value, conversely large sample size makes it easier
to find small p-values. In other words, the size of the sample influences the chances of
rejecting the null hypothesis.

CONFIDENCE LEVEL
Confidence intervals (CI) are closely related to the concept of statistical hypothesis testing,
but they are more informative than p-values since they do not only suggest whether we
should reject H0 or not, they also provide the range of plausible values.

LIMITS AND LEVELS


The interval has an upper and a lower bound (i.e. confidence limits). Similar to p-values,
confidence intervals have “confidence levels” that indicate how certain we can be that the
interval includes the true population parameter. Confidence intervals are typically stated at
the 5 % level. A 95 % confidence level would thus mean that if we replicated a certain
analysis in 100 samples of the population, we would expect that 95 % of the intervals would
include the true population parameter. Thus, strictly speaking, it is not correct to say that
“with 95 % probability, the true population parameter lies within this interval” (because the
parameter either is or is not within the interval).
5. RELIABILTY ANALYSIS

Reliability refers to whether or not you get the same answer by using an instrument to measure
something more than once. In simple terms, research reliability is the degree to which research
method produces stable and consistent results, refers to the consistency of a measure.

A specific measure is considered to be reliable if its application on the same object of


measurement number of times produces the same results.

CRONBACH’ALPHA

Number of variables Two or more


Scale of variables Continuous (ratio/interval) or approximately continuous

The common application of the Cronbach’s alpha is when we have a composite measure – i.e.
an index – and want to see if the variables included in the index actually reflect the same
underlying factor/dimension. Formally speaking, the Cronbach's alpha is a measure of
internal consistency; how closely related a number of items are as a group. The coefficient
ranges between 0 and 1. A high alpha value indicates that items measure an underlying
factor. However, it is not a statistical test but a test of reliability/ consistency.

One important thing to note is that the Cronbach’s alpha is affected by the number of
variables: including a higher number of variables automatically increases the alpha value to
some extent.

RULE OF THUMB

There are many rules of thumb with regard to what is considered a good or an alpha value.
Generally, an alpha value of at least 0.7 is considered acceptable.

Between 0.7 and 0.1 Acceptable


Below 0.7 Not acceptable
STEPS TO CHECK RELIABILITY:

1)Go to the Menu bar, choose Analyze\Scale\Reliability Analysis.

2) A new window called Reliability Analysis will open.


3)In the left box, all your variables are displayed. Highlight the variables that you want to
include in the analysis, and then transfer them to Items.

4) If you want to see what would happen to the alpha value if you would exclude any specific
variable, click on Statistics. Tick the box called Scale if item deleted, and then click on
Continuous and click on okay.

OUTPUT:
6.CORRELATION ANALYSIS

Number of variables Two or more


Scales of variables Continuous (ratio/interval)

A correlation analysis tests the relationship between two continuous variables in terms of: a)
how strong the relationship is, and b) in what direction the relationship goes. The strength of
the relationship is given as a coefficient (the Pearson product-moment correlation coefficient,
or simply Pearson’s r) which can be anything between -1 and 1. But how do we know if the
relationship is strong or weak? This is not an exact science, but here is one rule of thumb:

Negative Positive
-1 1 PERFECT
-0.9 TO -0.7 0.7 TO 0.9 STRONG
-0.6 TO -0.4 0.4 TO 0.6 MODERATE
-0.3 TO -0.1 0.1 TO O.3 WEAK
0 0 ZERO

Thus, the coefficient can be negative or positive. These terms, “negative” and “positive”, are
not the same as good and bad (e.g. excellent health or poor health; high income or low
income). They merely reflect the direction of relationship.

Negative As the values of variable 1 increase, the values of variable 2 decreases


Positive As the values of variable 1 increase, the values of variable 2 increases

However, that correlation analysis does not imply anything about causality: Variable 1 does
not cause Variable 2 (or vice versa). The correlation analysis only says something about the
degree to which the two variables co-vary.
STEPS FOR CORRELATIONAL ANAYLIS:

1)Go the menu bar, choose ANALYZE/ CORRELATE/BIVARIATE.

2) A new window called Bivariate Correlations will open.


3)In the left box, all your variables are displayed. Highlight the variables for which you want
to test the correlations, and then transfer them to variables.

4) Click on continue and then press OK

OUTPUT FOR CORRELATIONAL ANALYSIS:

The table called correlations shows the results from the correlation analysis of the 12
variables. The table is a matrix, meaning that it can be read from left to right or for top to
bottom.

Here =, we focus on the row called PEARSON CORRELATION. Of course, the correlation
between cleanliness of room and cleanliness of room is perfect(r=1), and so is the correlation
between cleanliness of check in counter and cleanliness of check in counter is perfect (r=1).

The correlation coefficient for cleanliness of room and cleanliness of check in counter is
0.757, which is positive.

Sig. (2-tailed) shows the p-value for the correlation. A p-value smaller than 0.05 suggests that
the correlation is statistically significant (at the 5 % level). SPSS also includes a significance
test at 1% level, indicated by the asterisks (**) presented next to the correlation coefficient.
7: CHI-SQUARE
NUMBER OF VARIABLES TWO
SCALE OF VARIABLES CATEGORICAL (NOMINAL/ORDINAL)

There are two different forms of the chi-square test: a) The multidimensional chi-square test,
and b) The goodness of Fit chi-square test.

The multidimensional chi-square test assesses whether there is a relationship between two
categorical variables. For example, you want to see if young women smoke more than young
men. The variable gender has two categories (men and women) and, in this particular case, the
variable smoking consists of the categories: no smoking, occasional smoking and frequent
smoking.

ASSUMPTIONS

First, you have to check your data to see that the assumptions behind the chi-
square test hold. If your data “passes” these assumptions, you will have a valid
result.

TWO OR MORE UNRELATED Both variables should be categorical (i.e.,


CATEGORIES IN BOTH VARIABLES nominal or ordinal) and consist of two or
more group. Unrelated means that the groups
should be mutually excluded: no individual
can be in more than one of the groups. For
example, low vs medium vs high, poor vs
good vs excellent health; and so on.
STEPS FOR CHI- SQUARE:
1) Go to the menu bar, choose Analyse/Descriptive Statistics/ Crosstabs

2) A small window will open, where you see one big box and three small
boxes. In the left box, all your variables are displayed.
3) Here, you choose two variables: one to be the Row variable, and one to be
the Column variable.
4) Move your variables to the Row and Column boxes by using the arrows.
5)Click on Statistics.
6) Tick on Chi- square.

7)Click on Continue and press OK. Hence the output obtained.


OUTPUT OF CHI – SQUARE:
The table called Chi-Square Tests shows the results from chi-square test for variables bfast
and age. Here, we look at the row called PEARSON CHI-SQUARE and the column ASYMP.
Sig. (2sided) to see the p-value for the test.
A p-value smaller than 0.05 indicates that there is a statistically significant association (at 5%
level) between the two variables in the test, whereas a p-value larger than 0.05 suggests that
there is significant association.

Chi-Square Tests

Value df Asymptotic
Significance (2-
sided)

Pearson Chi-Square 309.336a 6 .000

Likelihood Ratio 350.688 6 .000

Linear-by-Linear
4.986 1 .026
Association

N of Valid Cases 880

a. 0 cells (.0%) have expected count less than 5. The minimum


expected count is 47.51.
8) COMPARE MEANS
8.1 T-TEST
NUMBER OF VARIABLES ONE INDEPENDENT (x)
SCALE OF VARIABLES ONE DEPENDENT (y)

The independent samples t-test is a method for comparing the mean of one variable between
two (unrelated) groups.
ASSUMPTIONS
First, you have to check your data to see that the assumptions behind the independent samples
t-test hold. If your data “passes” these assumptions, you will have a valid result. However,
“real world” data is often a bit complicated, and it is not uncommon that at least one of the
assumptions is violated. While you most commonly will be able to conduct the t-test
anywhere
Continuous dependent Your dependent variable should be continuous (i.e.
variable interval/ratio). For example: Income, height, weight, number of
years of schooling, and so on. Although they are not really
continuous, it is still very common to use ratings as continuous
variables, such as: “How satisfied with your income are you?”
(on a scale 1-10) or “To what extent do you agree
Two unrelated Your independent variable should be categorical and consist of
categories in the only two groups. Unrelated means that the two groups should
independent variables be mutually excluded: no individual can be in both groups. For
example: men vs. women, employed vs. unemployed and so
on.
No outlier An outlier is an extreme (low or high) value. For example: if
most individuals have a test score between 40 and 60, but one
individual has a score of 96 or another individual has a score of
1, this will the distort the test.
STEPS FOR THE T-TEST:
1. Go to the Menu bar, choose Analyze\Compare Means\Independent-Samples T Test.

2. In the left box, all your variables are displayed. You choose the variable you want to have
as your dependent variable and transfer it to the box called Test Variable(s).
3. Then you choose the variable you want as your independent variable and transfer it to the
box called Grouping Variable.
4. Click on Define Groups…
5. Specify which values the two categories in the independent variable have.

5. Click on Continue and then press OK.

OUTPUT OF THE T-TEST:


The table called Group Statistics sums the statistics for the variables in the t-test. Here, it can
be interesting to look at each groups’ mean value. As can be seen, in the table below the
mean value of Male and female for exam anxiety are very similar (i.e., 74.38 for male and
74.30 for females)

Group Statistics
Std.
Std. Error
Gender N Mean Deviation Mean
Time Male
Spent 52 18.33 18.326 2.541
Revising
Female 51 21.41 18.035 2.525
Exam Male
Anxiety 52 74.3837 16.42166 2.27727

Female 51 74.3028 18.08794 2.53282


The difference between the male and female mean value is the tested in the next table
(independent sample test).

The first value of interest is the Levene’s Test for Equality of Variances. This test indicates
which row of the table you are supposed to focus on. Look at the column called Sig. If Levene’s
test is significant at the 5 % level (p<0.05) then you focus on the row for Equal variances not
assumed. If the test is not significant (p>0.05), you focus on the row for Equal variances
assumed.

Once you have established which row you are supposed to look at, the second value of interest
is the column called Sig. (2-tailed). A significant p-value here means that the difference
between the groups is statistically significant. In this case, the p-value is 0.000 which means
that the difference we found in the table.
8.2 ANOVA

Number of variables One independent (x)


One dependent (y)
Scale of variable (s) Independent:categorical (nominal/ordinal)
Dependent: continuous(ratio/interval)

The one-way ANOVA is very similar to the independent samples t-test. The difference is that
the one-way ANOVA allows you to have more than two categories in your independent
variable. For example, you can compare how many cups of coffee people drink per day
depending on if they have a low-stress, medium-stress, or high-stress job. Or you can see if the
number of days of paternity leave differs between fathers in Sweden, Denmark, Norway and
Finland. However, it is important to remember that the one-way ANOVA does not tell you
exactly which groups are different from each other: it only tells you at least two of the groups
differ in terms of the outcome.

ASSUMPTIONS:

First, you have to check your data to see that the assumptions behind the one-way ANOVA
hold. If your data “passes” these assumptions, you will have a valid result. However, “real
world” data is often a bit complicated, and it is not uncommon that at least one of the
assumptions is violated. While you most common will be able to conduct the test anyway, it is
an important to be aware of the possible problems.

Two unrelated categories Your independent variable should be categorical and consist of only two
in the independent groups. Unrelated means that the two groups should be mutually
variables excluded: no individual can be in both groups. For example: men vs.
women, employed vs. unemployed and so on.
Continuous dependent Your dependent variable should be continuous (i.e. interval/ratio). For
variable example: Income, height, weight, number of years of schooling, and so
on. Although they are not really continuous, it is still very common to
use ratings as continuous variables, such as: “How satisfied with your
income are you?” (on a scale 1-10) or “To what extent do you agree
No outlier An outlier is an extreme (low or high) value. For example: if most
individuals have a test score between 40 and 60, but one individual has a
score of 96 or another individual has a score of 1, this will the distort the
test.

STEPS FOR THE ANOVA TEST:

1. Go to Menu bar, choose Analyse/ compare means/ One-way ANOVA.

2. In the left box, all your variables are displayed. You choose the variable you want to
have as your dependent variable and transfer it to the box called Dependent list.
3. You also choose the variable you want as your independent variable and transfer it to the
box called Factor.
4.Go to the box Option. Tick the boxes called Descriptive, Homogeneity of variance test,
Brown-Forsythe, Welch and Means Plot.

5. Click on Continue and then OK.


OUTPUT:

The table called Paired Samples Statistics shows the descriptive statistics for the variables,
including the mean value of the dependent variable (lifestyle(active)) for each category of the
independent variable (preferred breakfast).

Descriptives
Lifestyle
95%
Confidence
Std. Interval for
N Mean Error Mean Minimum Maximum
Std. Lower Upper
Deviation Bound Bound
Breakfast 231 0.66 0.474 0.031 0.60 0.72 0 1
Bar
Oatmeal 310 0.33 0.471 0.027 0.28 0.38 0 1

Cereal 339 0.45 0.498 0.027 0.39 0.50 0 1


Total 880 0.46 0.499 0.017 0.43 0.49 0 1

The table called Test of Homogeneity of Variances shows the results from a Levene’s test for
testing the assumption of equal variances. Put differently, this test is concerned with whether
or not the variances of the categories are different from one another. The column called Sig.
shows the p-value for this test. If the p-value is larger than 0.05, we can use the results from
the standard ANOVA test. However, if the p-value is smaller than 0.05, it means that the
assumption of homogeneity of variance is violated and we cannot trust the standard ANOVA
results. Instead, we focus on the results from the Welch ANOVA. Note, however, then both
these tests produce so called F-Statistics
Test of Homogeneity of Variances

Levene
Statistic df1 df2 Sig.
Lifestyle Based 15.979 2 877 0.000
on Mean
Based 5.717 2 877 0.003
on
Median
Based 5.717 2 874.593 0.003
on
Median
and with
adjusted
df
Based 15.979 2 877 0.000
on
trimmed
mean

If the p-value for the Levene’s test had been larger than 0.05 in this example,
would have focused on the table called ANOVA. The column called Sig. shows
whether or not we have a statistically significant difference in our dependent
variable between the categories of the independent variable. A p-value that is
smaller than 0.05.

ANOVA
Lifestyle
Sum of Mean
Squares df Square F Sig.
Between 14.845 2 7.422 31.934 0.000
Groups
Within 203.841 877 0.232
Groups
Total 218.686 879

Since the p-value for the Levene’s test in this example was smaller than 0.05, we
instead focus on the next table: Robust Tests of Equality of Means. The same
principle as for the standard ANOVA test applies here: if the p-value (in the
column called Sig.) is smaller than 0.05, it means that we have a statistically
significant difference (at the 5 % level).

Robust Tests of Equality of Means


Lifestyle
Statisticsa df1 df2 Sig.
Welch 33.158 2 554.244 0.000
Brown- 32.172 2 836.430 0.000
Forsythe
a.
Asymptotically
F distributed.
9) APPENDEX

9.1 Appendex1

EXCEL SHEET MAILED SEPARATELY


9.2 Appendex2

EXAM ANXIETY FILE

CODE REVISE EXAM ANXIETY GENDER


1 4 40 86.3 1
2 11 65 88.72 2
3 27 80 70.18 1
4 53 80 61.31 1
5 4 40 89.52 1
6 22 70 60.51 2
7 16 20 81.46 2
8 21 55 75.82 2
9 25 50 69.37 2
10 18 40 82.27 2
11 18 45 79.04 1
12 16 85 80.66 1
13 13 70 70.18 1
14 18 50 75.01 2
15 98 95 34.71 1
16 1 70 95.16 1
17 14 95 75.82 1
18 29 95 79.04 2
19 4 50 91.13 2
20 23 60 64.54 1
21 14 80 80.66 1
22 12 75 77.43 1
23 22 85 65.34 2
24 84 90 0.06 2
25 23 30 71.79 2
26 26 60 81.46 2
27 24 75 63.73 1
28 72 75 27.46 2
29 37 27 73.4 2
30 10 20 89.52 1
31 3 75 89.52 2
32 36 90 75.01 2
33 43 60 43.58 1
34 19 30 82.27 1
35 12 80 79.04 1
36 9 10 79.04 2
37 72 85 37.13 1
38 10 7 81.46 1
39 12 5 83.07 2
40 30 85 50.83 1
41 15 20 82.27 1
42 8 45 78.24 2
43 34 60 72.6 1
44 22 70 74.21 2
45 21 50 75.82 2
46 27 25 70.98 1
47 6 50 97.58 1
48 18 40 67.76 1
49 8 80 75.01 1
50 19 50 73.4 2
51 0 35 93.55 2
52 52 80 58.89 2
53 38 50 53.25 2
54 19 49 84.69 1
55 23 75 89.52 2
56 11 25 71.79 2
57 27 65 82.27 1
58 17 80 69.37 1
59 13 50 62.12 1
60 42 70 68.57 2
61 4 40 93.55 1
62 8 80 84.69 2
63 6 10 82.27 1
64 11 20 81.46 2
65 7 40 82.27 1
66 15 40 91.13 1
67 4 70 91.94 2
68 28 52 86.3 2
69 22 50 72.6 1
70 29 60 63.73 2
71 2 80 63.73 1
72 16 60 71.79 2
73 59 65 57.28 1
74 10 15 84.69 2
75 13 85 84.69 1
76 8 20 77.43 2
77 5 80 82.27 2
78 2 100 10 1
79 38 100 50.83 2
80 4 80 87.91 1
81 10 10 83.88 1
82 6 70 84.69 2
83 68 100 20.21 2
84 8 70 87.1 1
85 1 70 83.88 2
86 14 65 67.76 1
87 42 75 95.97 2
88 13 85 62.12 2
89 1 30 84.69 1
90 3 5 92.75 1
91 5 10 84.69 2
92 12 90 83.07 2
93 19 70 73.4 1
94 2 20 87.91 2
95 19 85 71.79 1
96 11 35 86.3 1
97 15 30 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