RM Project Report
RM Project Report
RM Project Report
ON
"RESEARCH METHODOLOGY"
1
CERTIFICATE
This is to certify that the practical titled “Research methodology -Lab” submitted by
HARSH SETHI to New Delhi Institute of Management, Guru Gobind Singh Indraprastha
University in partial fulfilment of requirement for the award of the Bachelor of Business
Administration degree is an original piece of work carried out under my guidance and may
be submitted for evaluation.
The assistance rendered during the study has been duly acknowledged.
No part of this work has been submitted for any other degree.
2
TABLE OF CONTENTS
SNo. CONTENTS Page No.
Chapter 1 Introduction to SPSS
1.1 Introduction to SPSS
1.2 How to install SPSS
Chapter 2 Layout of SPSS
2.1 Layout of SPSS
2.2 Components of SPSS
2.3 Graphs
Chapter 3 SPSS Lab Exercise
3.1 Exercise 1- Descriptive Statistics
3.2 Exercise 2 – Histogram
3.3 Exercise 3 – Crosstabs
3.4 Exercise 4 – Chi Square
3.5 Exercise 5 – T Test
3.6 Exercise 6 – One Way ANOVA
3.7 Exercise 7 – Independent Sample test
3.8 Exercise 8 – Pie Chart
3.9 Exercise 9 – 3D Graph
3.10 Exercise 10 – Bar graph
Annexure Questionnaire
3
ACKNOWLEDGEMENT
Any accomplishment requires the effort of many people and this work is
not different. Regardless of the source, I wish to express my gratitude to
those who may have contributed to this work, even though anonymously.
HARSH SETHI
4
CHAPTER
1
INTRODUCTION
TO SPSS
5
server log files of a website. SPSS can open all file formats
that are commonly used forstructured data such as
spreadsheets from MS Excel orOpen Office;
plain text files (.txt or .csv); • relational (SQL) databases;
Stata and SAS.
6
Data Analysis
Right, so SPSS can open all sorts of data and display them -
and their metadata in twosheets in its Data Editor window. So
how to analyse your data in SPSS? Well, one option isusing
SPSS' elaborate menu options.For instance, if our data contain
a variable holding respondents' incomes over 2010, wecan
compute the average income by navigating to Descriptive
Statistics as shown below.Doing so opens a dialog box in
which we select one or many variables and one orseveral
statistics we'd like to inspect.
SPSS Output Window
After clicking Ok, a new window opens up: SPSS' output
viewer window. It holds a nice tablewith all statistics on all
variables we chose. The screenshot below shows what it looks
like.As we see, the Output Viewer window has a different
layout and structure than the Data Editorwindow we saw
earlier. Creating output in SPSS does not change our data in
any way, unlike Excel,SPSS uses different windows for data
and research outcomes based on those data.For non- SPSS
users, the look and feel of SPSS' Output Viewer window
probably comesclosest to a Powerpoint slide holding items
such as blocks of text, tables and charts.
SPSS Reporting
SPSS Output items, typically tables and charts, are easily
copy-pasted into other programs.For instance, many SPSS
users use a word processor such as MS Word, OpenOffice
orGoogleDocs for reporting. Tables are usually copied in rich
text format, which means they'llretain their styling such as
fonts and borders. The screenshot below illustrates the result.
7
SPSS Syntax Editor Window
The output table we showed was created by running
Descriptive Statistics from SPSS' menu.Now, SPSS has a
second option for running this (or any other) command: we
can open athird window, known as the syntax editor window.
Here we can type and run SPSS codeknown as SPSS syntax.
For instance, running descriptive income_2010. has theexact
same result as running this command from SPSS' menu like
we did earlierBesides typing commands into the Syntax Editor
window, most of them can also be pastedinto it by clicking
through SPSS' menu options. Like so, SPSS users unfamiliar
with syntax canstill use it. But why use syntax if SPSS has
such a nice menu?The basic point is that syntax can be saved,
corrected, rerun and shared between projects orusers. Your
syntax makes your SPSS work replicable. If anybody raises
any doubts regardingyour outcomes, you can show exactly
what you did and -if needed-correct and rerun it inseconds.For
non SPSS users, the look and feel of SPSS' Syntax Editor
window probably come closestto Notepad: a single window
basically just containing plain text.
SPSS - Overview Main Features
Now that we have a basic idea of how SPSS works, let's take a
look at what it can do.Following a typical project workflow,
SPSS is great forOpening data_files, either in SPSS' own file
format or many others;Editing data such as computing sums
and means over columns or rows of data. SPSShasoutstanding
options for more complex operations as well.Creating tables
and charts containing frequency counts or summary statistics
over (groupsof) cases and variables.running inferential
8
statistics such as ANOVA, regression and factor
analysis.saving_data_and output in a wide variety of file
formats.
We'll now take a closer look at each one of these features.
Opening Data Files
SPSS has its own data file format. Other file formats it easily
deals with include MS Excel,plain text files, SQL, Stata and
SAS.
Web analytics data -often downloaded as Excel files- can
easily be opened andfurther analysed in SPSS.
Editing Data
In real world research, raw data usually need some editing
before they can be properlyanalysed. Typical examples are
creating means or sums as new variables, restructuring dataor
detecting and removing unlikely observations. SPSS performs
such tasks -and morecomplex ones with amazing
efficiency.For getting things done fast, SPSS contains many
numeric functions, string functions, datefunctions and other
handy routines.
Tables and Charts
All basic tables and charts can be created easily and fast in
SPSS. Typical examples aredemonstrated under Data
Analysis. A real weakness of SPSS is that its charts tend to
beugly and often have a clumsy layout. A great way
toovercome this problem is developingand applying SPSS
chart templates. Doing so, however, requires a fair amount of
effort andexpertise
9
SPSS clustered bar chart with chart template applied.
Inferential Statistics
SPSS contains all basic statistical tests and multivariate
analyses such as
. t-tests;
. chi-square tests
. ANOVA
. correlations and other association measures;
. regression
. nonparametric tests
. factor analysis
. cluster analysis
APPLICATIONS OF SPSS
Statistical Package for the social sciences (SPSS) is awindow-
based program first launched in 1968. In 2009, SPSS is
acquired by IBM. Hence, it is officially known as IBM SPSS
statistics. SPSS is widely used in the social andbehavioural
sciences. It is also used by health researchers, market
researchers, survey companies, education researchers,
government, etc. Various windows can be opened when using
SPSS such as data editor, output navigator, pivot table editor,
chart editor, text output editor, and syntax editor. The data
editor is a spreadsheet in which variables can be defined and
entered into the data. Each row corresponds to a case while
each column represents a variable. This window opens
11
automatically when SPSS is started. The output navigator
window displays the statistical results, tables, and charts from
the analysis. Output displayed in pivot tables can be modified
in many ways with the pivot table editor. It is possible to
modify and save high-resolution charts and plots by invoking
the chart editor for a certain chart in an output navigator
window. Text output not displayed in pivot tables can be
modified with the text output editor.SPSS contains all basic
statistical tests and multivariate analyses such as t-tests, chi-
square tests, ANOVA, correlations and regressions, non-
parametric tests, cluster analysis, etc.IBM SPASS statistics 26
continues to increase accessibility to advanced analytics
through improved tools, integration, output, and ease-of-use
features. This release mainly focuses on increasing the
analytic capabilities of the software through quantile
regression, ROC analysis, Bayesian statistics, one
samplebinomial and Poisson enhancements, reliability
analysis, and command enhancements.SPSS software is used
for editing and analysing all sorts of data available from
scientific research, clinical studies, customer database, Google
Analytics, etc. SPSS can open all file formats that are
commonly used for structured data such as spreadsheets from
MS Excel, plain text files, relational database, stata, SAS, etc.
SPSS Statistics can read and write data from ASCII text files,
other statistics packages, spreadsheets, and databases.
Statistical output is a proprietary file format and the
proprietary output can be exported to text or Microsoft word,
pdf, excel, and other formats. The typical workflow of SPSS
software is as follows:
• Opening data files in SPSS file format or others.
12
• Editing data such as computing sums and means over
columns or rows of data.
• Creating tables and charts containing frequency counts or
summary statistics over cases and variables.
• Running inferential statistics such as one-way ANOVA,
two-way ANOVA, regression, correlation, factor analysis, etc.
• Saving data and output in different file formats.
13
CHAPTER
2
LAYOUT OF
SPSS
14
Opening SPSS Data
When SPSS is launched, a pop-up window (Error! Reference source not found.) with a few
options will appear. Assume the goal is to analyze a data set, one can select New Dataset or
open a file recently used or another file under Recent Files and then click OK. The other
windows shows What’s New, Modules and Programmability and Tutorials, which help one to
navigate SPSS. IBM SPSS Welcome Screen Sometimes you have already entered the SPSS
session as described above, worked on a data set for a while, and then want to open and work
on another data set. You do not have to quit the current SPSS session to perform this. Simply
click on the File menu, follow Open then Data… and find your file .
OPEN SPSS
SPSS Windows
The SPSS program has three main types of windows: the data editor, output window and
syntax window. The data editor window is open by default, and contains the data set. It
consists of two views, the Data View and the Variable View. This window is described in
15
more detail in the section on Working With Data and Variables. Data files are saved with a
file type of .sav.
The output window holds the results of analyses. This window will open automatically once
an analysis is requested. The tables of the Output Viewer are saved (click File, Save or Save
As) with a file type of .spv, which can only be opened with SPSS software.
The syntax window contains written commands corresponding to each menu command and
options. Syntax can be created by hitting {Paste} instead of {oK} on main windows for each
procedure. Using {Paste} will not cause the procedure to be performed. To run procedures
from the syntax window, click on .
The syntax window will only open if a syntax file is opened by the user, or if the paste option
is used when executing a command. Output and syntax files can be saved and opened using
the File menu. Multiple output and syntax files can be open at the same time. Syntax files are
saved as plain text and almost any text editor can open them, but with a file extension of .sps.
Dialogue Boxes
Although each dialog box is unique, they have many common features. A fairly typical
example is the dialog box for producing frequency tables (tables with counts and percents).
To bring up this dialog box from the menus in the data window, click on Analyze
Descriptive Statistics Frequencies.
16
Data in SPSS can be viewed in two different ways: data view and variable view. The data
view allows the user to look at the entire data set, with each row showing a different
observation, and each column representing a different variable. Another way to view the data
is to use the variable view. This shows the variable names and general properties for each
variable. The user can alternate between these views using the tabs at the bottom left hand
side of the SPSS data editor window, Figure 8 below shows the data view.
To define or change the attributes of variables, change to “Variable View” to see a list of all
the variables with their properties from the current data file. Click or double click the variable
you would like to specify or change. Descriptions of each attribute are shown below
17
Name is the name of the variable. Rules for establishing variable names can be found on
IBM SPSS help Command Syntax Reference Universals Variables Variable Names.
Type is the type of a variable. Common options are Numeric for numbers, Date for dates,
and String for character strings. The string option allows the user to type in any set of
characters including punctuation marks and blank spaces. It is ideal for inputting open- ended
questions which are not coded.
Widthis the maximal number of characters or digits allowed for a variable. Generally a
width large enough to accommodate all the possible values of the variable should be chosen;
otherwise any values with length greater than the specified value will be truncated.
Decimals are valid for numeric variables only. It specifies the number of decimals to be
kept for a variable. All the extra decimals will be rounded up and the rounded numbers will
be used in all the analysis, so be careful to specify the number of decimals to fit the required
precision.
Labelis the descriptive label for a variable. One can assign descriptive variable labels up to
256 characters long, and variable labels can contain spaces and reserved characters not
allowed in variable names.
Valuesis the descriptive value labels for each value of a variable. This is particularly useful
if the data file uses numeric codes to represent non-numeric categories (for example, codes of
1 and 2 for male and female).
18
Missing specifies some data values as user-missing values. Refer to the Missing Values
section for more detail.
Columns is the column width for a variable. Column formats affect only the display of
values in the Data Editor. Changing the column width does not change the defined width of a
variable. If the defined and actual width of a value are wider than the column, asterisks (*)
are displayed in the Data 10 view. Column widths can also be changed in the Data view by
clicking and dragging the column borders.
Aligncontrols the display of data values and/or value labels in the Data view. The default
alignment is right for numeric variables and left for string variables. This setting affects only
the display in the Data view.
Measure is the level of measurement as scale (numeric data on an interval or ratio scale),
ordinal, or nominal. Nominal and ordinal data can be either string (alphanumeric) or numeric.
Nominal and ordinal are both treated as categorical. The variable, origin (Country of Origin)
is measured on a nominal scale as the cars are distinguished on the basis of a name or label,
i.e. American, European, and Japanese; whilst the variable gallon (miles per gallon) is
measured on a scale, specifically, ratio measurement scale because the difference between
measurements and ratios are meaningful, and that they have a true zero value.
To download the Cars data file as an SPSS file (i.e. with the .sav extension and all variable
attributes edited as in the example) already click here.
Missing Values
Missing values are a topic that deserves special attention. This section explains why they
arise and how to define them. In SPSS there are two types of missing values: user defined
missing values and system missing values. By default in SPSS, both types of missing values
will be disregarded in all statistical procedures, except for analyses devoted specifically to
missing values, for example, replacing missing values. In frequency tables, missing values
will be shown, but they will be marked as such and will not be used in computation.
User defined missing values indicate data values that are either missing, due to reasons like
nonresponse, or are not desired to be used in most analyses (e.g. “Not Applicable”.) By
default SPSS uses “.” to represent missing values. In some cases, there might be the need to
distinguish between data missing because a respondent refused to answer and data missing
19
because the question did not apply to that respondent, and thus would like more than one
expression for missing values. One can achieve this by setting up the “Missing” property of
the corresponding variable to specify some data values as missing values. These options
allows one to enter up to three discrete missing values, a range of missing values, or a range
plus one discrete missing value. All string values, including null or blank values, are
considered valid values unless they are explicitly defined as missing. To define null or blank
values as missing for a string variable, enter a single space in one of the fields for discrete
missing values. You will notice missing values denoted by “.”, for the variable mpg
observations 11-15. The example in below shows how to specify user defined missing values
for variable mpg by setting up its Missing” property
System missing values occur when no value can be obtained for a variable during data
transformations. For example, if there are two variables, one indicating a person’s gender and
the other whether she or he is married and you create a new variable that tells whether (a) a
person is male and married, (b) female and married, (c) male and not married, all females that
are not married will have a system missing value (“.”) instead of a real value.
Insert
20
The easiest way to manually input a new variable is to scroll through the data view
spreadsheet horizontally until the first empty column is encountered, and entering in the data.
The new variable can be named appropriately in the variable view spreadsheet. Alternatively,
selecting the “Insert Variable” option under the “Data” menu allows insertion of a new
variable at other locations in the table. By default, this inserts the new variable in the first
column of the spreadsheet, but this can be changed by highlighting the column to the right of
the desired location.
Recode
The recode function can be used to collapse ranges of data into categorical variables, and
reassigning existing values to other values. To create a new variable as a function of another
(log, sin, etc), use “Compute” (described in the next section.)
1. Select Recode into Different Variables under the Transform menu. Recoding into Same
Variables is not recommended, since it will change existing variables and you will lose the
original values.
2. Select each variable to be transformed, and move it into the section on the right hand side
using the button. Note that the same transformation will be applied to all of these variables. If
different types of transformations are required, each transformation needs to be done
separately.
3. If new variables are being created, define name for the output variable on the right hand
side. If desired, a label can be entered as well, though it is not required. Once the desired
name and label are entered, you must click the Change button.
4. Select the Old and New Values button and the window below will appear. In the Old Value
side of the window, select the appropriate original values to be recoded.
21
a) By selecting Value one can specify a value to replace (e.g. “male” or “1”). It is case
sensitive, so “A” and “a” are considered to be different values.
c) The three range options partition numeric variables into categories. The above figure
demonstrates how a range of continuous variables can be condensed into a category. Rather
than running any procedures to find out the range of variables, the range options with
LOWEST through value: and value through HIGHEST: can be used to catch every point in
the data set.
d) All other values can be used to pick up values not specifically referenced elsewhere.
5. On the New Value side, type in the new value. Then click the Add button to add it to the
Old->New list. When recoding into different variables, one has the option of changing
numbers to strings, or converting numbers saved as strings to numbers. Unless otherwise
specified, the new variable will be saved in the same format as the original variable. Click
Continue to close the window. On the main screen, click OK or Paste to finish
22
Compute
Suppose you want to create a new variable, measuring the ratio of the vehicle’s weight to its
horsepower, you define the new variable as weihorse for the weight per unit horsepower. To
create a new variable as a function of one or more existing variables, select Compute from
the Transform menu. Enter the name of the new variable, weihorse, in the Target Variable
box. In the Numeric Expression box, use the keypad, function list, and the variable list to
write out the equation used to compute the new variable, (in this example: weight/horse).
Click OK or Paste to close the window..
23
CREATING GRAPHS
Graphs in SPSS may be generated using one of two options. The first option is the Legacy
Dialogs, which allows one to create basic charts and graphs. The second option is to use the
Chart Builder which allows one to generate charts either from a predefined gallery or by
specifying individual parts (for example, axes and bars). The steps to create a few common
graphs are shown below. However, SPSS has the ability to produce many other graphs such
as population pyramid, error bar, and 3-D bar chart. The Chart Builder allows more flexibility
in creating graphs. For any graph generated in SPSS, one can double click on the graph to
invoke a Chart Editor window, inside which one can double click any part of the graph to edit
it.
Scatterplot
Suppose, we seek to investigate the linear relationship between miles per gallon and the
vehicle weight, we first plot a scatterplot to see the direction in which they are related. We
will introduce the Simple Scatterplot. In the “Graphs” menu, choose Legacy Dialogs
Scatter/dot. Select Simple Scatter, click on the Define button to get the window shown below.
Select a variable for the Y-axis and a variable for the X-axis. These variables must be numeric
and not in date format. One can also select a categorical variable to define rows of panels and
another categorical variable to define columns of panels. Using the “Title” button one may
specify the title, subtitles and the footnotes for the plot. In the following example we are
plotting mpg against vehicle weight, using model year to define rows of panels
24
Histogram
25
Q-Q Plot
The Q-Q Plot (quantile-quantile plot) procedure plots the quantiles of a variable's
distribution against the quantiles of a variable from a test distribution. Q-Q plots are generally
used to investigate whether the distribution of a variable is consistent with a proposed
distribution. Specifically, Q-Q plots can be used to investigate whether a variable (e.g.
residuals in a regression model) follows a Normal distribution. If the distribution of the
variable and the proposed distribution are the same, points in the Q-Q plot follow a straight
line. If the distributions are not similar, points in the Q-Q plot deviate from the straight line.
Suppose you want to generate a Q-Q plot with a Normal distribution as the test distribution.
Select Descriptive Statistics Q-Q Plots in the Analyze menu. Enter the variables you want
to plot into the Variables box, and select Normal by clicking Test Distribution. Click OK to
generate the plot.
26
Syntax File
Here is an example of the syntax for the Q-Q plot in Figure 18. After selecting Descriptive
Statistics QQ Plots in the Analyze menu. You enter the variables, mpg (Miles per Gallon),
you want to plot into the Variables box, and select Normal by clicking Test Distribution. Then
you click Paste to generate the syntax, below
27
You can save the syntax as a .sps file for later access in running the analysis.
CHAPTER
3
28
SPSS LAB
EXRECISE
It will look like this after you Apply (IF Condition) in excel
sheet.
30
EXERCISE 1
DESCRIPTIVE STATISTICS
In the Analyze menu, the option Descriptive Statistics produces a
submenu with the choices Frequencies, Descriptives, Explore, Crosstabs,
and Ratio. Of these, Crosstabs and Descriptives have some particularly
useful features which this manual will cover. For more information on the
other three, more information can be found in the SPSS help menu, which
is discussed on section “Help in SPSS” of this manual.
Descriptives
The descriptives procedure calculates univariate statistics for selected
variables. In addition, it provides the option of creating a standardized
variable for the selected variables. Simply check the box at the bottom of
the window to save the standardized variable. The options menu provides
a list of univariate statistics available. For more statistics or computing
statistics by group, see the Means procedure under Compare Means
Frequencies
Statistics
which How often Amount
brand Are you you drink spend on Why do
Energy willing to your your you drink
drink you change Energy energy energy
AGE prefer the brand drink? drink drink?
N Valid 11 11 11 11 11 11
Missi 0 0 0 0 0 0
ng
Mean 1.18 1.27 2.09 2.09 1.45 2.36
Median 1.00 1.00 2.00 2.00 1.00 2.00
Mode 1 1 2 2 1 1a
a. Multiple modes exist. The smallest value is shown
31
Frequency Table
AGE
Frequen Valid Cumulative
cy Percent Percent Percent
Valid 16-24 9 81.8 81.8 81.8
24-32 2 18.2 18.2 100.0
Total 11 100.0 100.0
32
Total 11 100.0 100.0
EXERCISE 2
Histogram
33
observations falling into that group. A histogram has an appearance similar to a
vertical bar chart, but there are no gaps between the bars.
34
35
36
EXERCISE 3
Crosstabs
Crosstab
which brand Energy drink
you prefer
Red bull Monster Total
AGE 16-24 Count 6 3 9
% within AGE 66.7% 33.3% 100.0%
% within which brand 75.0% 100.0% 81.8%
Energy drink you
prefer
24-32 Count 2 0 2
% within AGE 100.0% 0.0% 100.0%
% within which brand 25.0% 0.0% 18.2%
Energy drink you
prefer
Total Count 8 3 11
% within AGE 72.7% 27.3% 100.0%
38
% within which brand 100.0% 100.0% 100.0%
Energy drink you
prefer
Chi-Square Tests
Asymptotic
Significance Exact Sig. Exact Sig.
Value df (2-sided) (2-sided) (1-sided)
Pearson Chi-Square .917a 1 .338
Continuity Correctionb .006 1 .936
Likelihood Ratio 1.434 1 .231
Fisher's Exact Test 1.000 .509
Linear-by-Linear .833 1 .361
Association
N of Valid Cases 11
a. 3 cells (75.0%) have expected count less than 5. The minimum expected count is
.55.
b. Computed only for a 2x2 table
Crosstab
Are you willing to change
the brand
Yes No Maybe Total
AGE 16-24 Count 0 6 3 9
% within AGE 0.0% 66.7% 33.3% 100.0%
% within Are you 0.0% 100.0% 100.0% 81.8%
willing to change the
brand
24-32 Count 2 0 0 2
% within AGE 100.0% 0.0% 0.0% 100.0%
% within Are you 100.0% 0.0% 0.0% 18.2%
willing to change the
brand
Total Count 2 6 3 11
% within AGE 18.2% 54.5% 27.3% 100.0%
39
% within Are you 100.0% 100.0% 100.0% 100.0%
willing to change the
brand
Chi-Square Tests
Asymptotic
Significance
Value df (2-sided)
Pearson Chi-Square 11.000a 2 .004
Likelihood Ratio 10.431 2 .005
Linear-by-Linear 5.926 1 .015
Association
N of Valid Cases 11
a. 6 cells (100.0%) have expected count less than 5.
The minimum expected count is .36.
Crosstab
Why do you drink energy drink?
it make it give you
It give you more enthusias
energy active m other Total
AGE 16- Count 3 3 2 1 9
24 % within AGE 33.3% 33.3% 22.2% 11.1% 100.0
%
% within Why do 100.0% 100.0% 66.7% 50.0% 81.8%
you drink energy
drink?
24- Count 0 0 1 1 2
32 % within AGE 0.0% 0.0% 50.0% 50.0% 100.0
%
% within Why do 0.0% 0.0% 33.3% 50.0% 18.2%
you drink energy
drink?
40
Total Count 3 3 3 2 11
% within AGE 27.3% 27.3% 27.3% 18.2% 100.0
%
% within Why do 100.0% 100.0% 100.0% 100.0 100.0
you drink energy % %
drink?
Oneway ANOVA
ANOVA
Amount spend on your energy drink
Sum of Mean
Squares df Square F Sig.
Between 2.672 1 2.672 3.971 .077
Groups
Within 6.056 9 .673
Groups
Total 8.727 10
ANOVA
Amount spend on your energy drink
Sum of Mean
Squares df Square F Sig.
Between 2.672 1 2.672 3.971 .077
Groups
Within 6.056 9 .673
Groups
Total 8.727 10
EXERCISE 4
41
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.
This test utilizes a contingency table to analyze the data. A contingency table
(also known as a cross-tabulation, crosstab, or two-way table) is an arrangement
in which data is classified according to two categorical variables. The categories
for one variable appear in the rows, and the categories for the other variable
appear in columns.
Chi-Square Tests
Asymptotic
Significance
Value df (2-sided)
Pearson Chi-Square .543a 2 .762
Likelihood Ratio .896 2 .639
Linear-by-Linear .041 1 .839
Association
N of Valid Cases 11
a. 5 cells (83.3%) have expected count less than 5. The
minimum expected count is .18.
42
EXERCISE 5
T-Test
A t-test is a type of inferential statistic used to determine if there is a significant
difference between the means of two groups, which may be related in certain
features. It is mostly used when the data sets, like the data set recorded as the
outcome from flipping a coin 100 times, would follow a normal distribution
and may have unknown variances. A t-test is used as a hypothesis testing tool,
which allows testing of an assumption applicable to a population.
A t-test looks at the t-statistic, the t-distribution values, and the degrees of
freedom to determine the statistical significance. To conduct a test with three or
more means, one must use an analysis of variance.
Group Statistics
Std. Std. Error
AGE N Mean Deviation Mean
Amount spend on 16-24 9 1.22 .441 .147
your energy drink 24-32 2 2.50 2.121 1.500
EXERCISE 6
One Way ANOVA
The one-way analysis of variance (ANOVA) is used to determine whether there
are any statistically significant differences between the means of three or more
independent (unrelated) groups. This guide will provide a brief introduction to
the one-way ANOVA, including the assumptions of the test and when you
should use this test.
Oneway ANOVA
ANOVA
Amount spend on your energy drink
Sum of Mean
Squares df Square F Sig.
43
Between 2.672 1 2.672 3.971 .077
Groups
Within 6.056 9 .673
Groups
Total 8.727 10
ANOVA
Amount spend on your energy drink
Sum of Mean
Squares df Square F Sig.
Between 2.672 1 2.672 3.971 .077
Groups
Within 6.056 9 .673
Groups
Total 8.727 10
EXERCISE 7
The Independent Samples t Test compares the means of two independent groups
in order to determine whether there is statistical evidence that the associated
population means are significantly different. The Independent Samples t Test is
a parametric test.
Independent t Test
Independent Measures t Test
Independent Two-sample t Test
Student t Test
Two-Sample t Test
Uncorrelated Scores t Test
Unpaired t Test
Unrelated t Test
44
Independent Samples Test
Levene's
Test for
Equality of
Variances t-test for Equality of Means
95%
Confidence
Interval of
Significan the
ce Difference
One Two
- - Mea Std.
Sid Sid n Error
ed ed Differ Differ Low Uppe
F Sig. t df p p ence ence er r
Amount Equal 40.8 <.00 - 9 .03 .07 - .641 - .173
spend on variances 73 1 1.9 9 7 1.27 2.72
your assumed 93 8 8
energy Equal - 1.0 .27 .55 - 1.50 - 17.0
drink variances .84 19 5 0 1.27 7 19.5 37
not 8 8 93
assumed
45
a. The denominator used in estimating the effect sizes.
Cohen's d uses the pooled standard deviation.
Hedges' correction uses the pooled standard deviation, plus a correction factor.
Glass's delta uses the sample standard deviation of the control group.
EXERCISE 8
PIE CHART
A Pie Chart is a type of graph that displays data in a circular graph. The pieces of the graph are
proportional to the fraction of the whole in each category. In other words, each slice of the pie is
relative to the size of that category in the group as a whole. The entire “pie” represents 100
percent of a whole, while the pie “slices” represent portions of the whole.
Pie charts give you a snapshot of how a group is broken down into smaller pieces. The following
chart shows what New Yorkers throw in their trash cans. You could read that New Yorkers (perhaps
surprisingly) throw a lot of recyclables into their trash, but a pie graph gives a clear picture of the
large percentage of recyclables that find their way into the trash.
BM SPSS statistics is software specifically designed for stats, especially in the social sciences. The
software is capable of creating a large number of graph types with a huge variety of options.
Unlike simpler programs like Excel, SPSS gives you a lot of options for creating pie charts.
EXERCISE 9 46
3D GRAPH
Three-dimensional graphs are rarely used in practice except for didactic purposes.
47
48