SlideShare une entreprise Scribd logo
1  sur  33
Chi Square and t-tests
Presented by
Group C
Introduction
Data analysis can be done basically in
three ways using SPSS, as
i. Describing data through descriptive
statistics
ii. Examining relationships between
variables
iii. Comparing groups to determine
significant differences between
them
Introduction
Considering the third category i.e.
comparing groups, chi square and t-tests
are two of the important tests. These are
tests of significance.
Chi-Square Test
 Chi-Square test was introduced by Karl
Pearson. It follows a specific distribution
known as chi-square distribution.
 It is used to measure the differences
between what is observed and what is
expected according to an assumed
hypothesis.
Chi-Square Test
 The Chi-Square is denoted by X² and the
formula is given as:𝑋2
=
(𝑂−𝐸)2
𝐸
Here,
O = Observed frequency
E = Expected frequency
∑ = Summation
X²= Chi Square value
 A chi-square test is a statistical test
commonly used for testing independence and
goodness of fit.
Chi-Square Test
 Testing independence determines whether
two or more observations across two
populations are dependent on each other
(i.e., whether one variable helps to estimate
the other). If the calculated value is less than
the table value at certain level of significance
for a given degree of freedom, we conclude
that null hypotheses stands which means
that two attributes are independent or not
associated. If calculated value is greater than
the table value, we reject the null
hypotheses.
Chi-Square Test
This test enables to explain whether or not
two attributes are associated. For instance,
suppose a study collecting data of survivors
in Titanic, for this X² test is useful.
Chi-Square Test
 Testing for goodness of fit determines
how well the assumed theoretical
distribution (such as normal distribution)
fit to the observed data. When the
calculated value of χ2 is less than the table
value at certain level of significance, the
fit is considered to be good one and if the
calculated value is greater than the table
value, the fit is not considered to be good.
Let’s explain its use in SPSS
with the help of an example
Chi-Square in SPSS
Data: Survival on the Titanic by
Gender
Analyze →Descriptive Statistics
→Crosstabs
Chi-Square in SPSS
Move one variable
into ROW and the
other into
COLUMNS.
CLICK on CELLS
Chi-Square in SPSS
 Independent Variable
(Gender) is in the Rows
 Always show Observed
count
 Optionally, show
Expected
count
 Percentage across the
Rows
 Click CONTINUE
 In main dialogue box,
Click STATISTICS
Chi-Square in SPSS
 Choose Chi-Square
for hypothesis test
 Click Phi and
Cramer’s V for
measure of strength
of the relationship
 Click CONTINUE
 On main dialogue
box,
Click OK
Chi-Square in SPSS
 Observed count (yellow highlight)
 Expected count (orange highlight)
 Percent within each Gender who Died or
Survived (pink highlight)
 Report: “Most men on the Titanic (80.2%)
died while most women (71.6%) survived.”
gender * survival Crosstabulation
680.000 168.000 848.000
529.4 318.6 848.0
80.2% 19.8% 100.0%
126.000 317.000 443.000
276.6 166.4 443.0
28.4% 71.6% 100.0%
806.000 485.000 1291.000
806.0 485.0 1291.0
62.4% 37.6% 100.0%
Count
Expected Count
% w ithin gender
Count
Expected Count
% w ithin gender
Count
Expected Count
% w ithin gender
1 Men
2 Women
gender
Total
1 Died 2 Survived
survival
Total
Chi-Square Tests
332.205b
1 .000
330.003 1 .000
335.804 1 .000
.000 .000
331.948 1 .000
1291
Pearson Chi-Square
Continuity Correctiona
Likelihood Ratio
Fisher's Exact Test
Linear-by-Linear
Association
N of Valid Cases
Value df
Asymp. Sig.
(2-sided)
Exact Sig.
(2-sided)
Exact Sig.
(1-sided)
Computed only for a 2x2 tablea.
0 cells (.0%) have expected count less than 5. The minimum expected count is 166.
43.
b.
Chi-Square in SPSS
 Pearson chi-square is the default test
 When Sig < alpha, variables are related.
 Report:
“The relationship is significant (χ2(1) = 332.205, p <
.005).”
Sym metric Measures
.507 .000
.507 .000
1291
Phi
Cramer's V
Nominal by
Nominal
N of Valid Cases
Value Approx. Sig.
Not assuming the null hypothesis.a.
Using the asymptotic standard error assuming the null
hypothesis.
b.
Chi-Square in SPSS
 Phi for 2x2 tables
Cramer’s V for
larger tables
 Both range from 0
to 1 with 0 = no
relationship
 For df = 1
◦ V = 0.10 is a small
effect
◦ V = 0.30 is a
medium effect
◦ V = 0.50 is a large
effect
 Report: “Gender
had a large effect
on chance of
survival for the
Titanic
passengers.”
t-test
 The t-test is a basic test that is limited to
two groups. For multiple groups, we
should have to compare each pair of
groups, for example with three groups
there would be three tests (AB, AC, BC).
 It is used to test whether there is
significant difference between the means
of two groups, e.g.:
 Male v female
 Full-time v part-time
t-test
There are three types of t-tests as below
 A one sample t-test: used when we want
to know if there is a significant difference
between a sample mean and a test value
(known mean from a population or some
other value to compare with sample
mean), i.e. to compare the mean of a
sample with population mean.
t-test
 An independent sample t-test: used to
compare the mean scores when samples
are not matched or for two different
groups of subjects i.e. to compare the
mean of one sample with the mean of
another independent sample.
t-test
 Paired sample t-test: used to compare the
means of two variables or when samples
appear in pairs (e.g. before and after),
i.e. to compare between the values
(readings) of one sample but in 2
occasions.
Let’s explain performing t-test in
SPSS…
t-test in SPSS
Start by clicking “Analyze” on menu bar
Analyze → Compare Means → Independent-
Samples T-test
Compare Means
Analyze
Independent-Samples T Test
t-test in SPSS
 Select the variables to test (Test
Variables)
 And bring the variables to the “Test
Variables” box
Test variables are selected and carried to the box
on the right by pressing the arrow
The test variables
t-test in SPSS
 Select the grouping variable, i.e. gender;
bring it to the “grouping variable” box
 Click “Define Groups”
Gender is the grouping variable
t-test in SPSS
 Choose “Use specified values”
 Key in the codes for the variable “gender”
as used in the “Value Labels”. In this
case:
1 - Male
2 - Female
 Click “Continue”, then “OK”
Specified values for gender are: 1 (Male) and 2 (Female)
For t-test interpretation lets
switch to SPSS
The End

Contenu connexe

Tendances

Regression analysis
Regression analysisRegression analysis
Regression analysis
Ravi shankar
 

Tendances (20)

Logistic Regression.ppt
Logistic Regression.pptLogistic Regression.ppt
Logistic Regression.ppt
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
regression and correlation
regression and correlationregression and correlation
regression and correlation
 
Hypothesis testing and p values 06
Hypothesis testing and p values  06Hypothesis testing and p values  06
Hypothesis testing and p values 06
 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVA
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Lecture2 hypothesis testing
Lecture2 hypothesis testingLecture2 hypothesis testing
Lecture2 hypothesis testing
 
Linear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec domsLinear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec doms
 
Introduction to spss
Introduction to spssIntroduction to spss
Introduction to spss
 
Chi square Test Using SPSS
Chi square Test Using SPSSChi square Test Using SPSS
Chi square Test Using SPSS
 
Simple & Multiple Regression Analysis
Simple & Multiple Regression AnalysisSimple & Multiple Regression Analysis
Simple & Multiple Regression Analysis
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Multiple Regression Analysis (MRA)
Multiple Regression Analysis (MRA)Multiple Regression Analysis (MRA)
Multiple Regression Analysis (MRA)
 
Testing of hypotheses
Testing of hypothesesTesting of hypotheses
Testing of hypotheses
 
Introduction to Probability and Probability Distributions
Introduction to Probability and Probability DistributionsIntroduction to Probability and Probability Distributions
Introduction to Probability and Probability Distributions
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-Step
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 
Regression
RegressionRegression
Regression
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
Testing Hypothesis
Testing HypothesisTesting Hypothesis
Testing Hypothesis
 

En vedette

Hypothesis testing ppt final
Hypothesis testing ppt finalHypothesis testing ppt final
Hypothesis testing ppt final
piyushdhaker
 
Sampling error; the need for sampling distributions
Sampling error; the need for sampling distributionsSampling error; the need for sampling distributions
Sampling error; the need for sampling distributions
azmatmengal
 
T8 hypothesis testing
T8 hypothesis testingT8 hypothesis testing
T8 hypothesis testing
kompellark
 

En vedette (20)

Test of significance (t-test, proportion test, chi-square test)
Test of significance (t-test, proportion test, chi-square test)Test of significance (t-test, proportion test, chi-square test)
Test of significance (t-test, proportion test, chi-square test)
 
Student t-test
Student t-testStudent t-test
Student t-test
 
Hypothesis testing; z test, t-test. f-test
Hypothesis testing; z test, t-test. f-testHypothesis testing; z test, t-test. f-test
Hypothesis testing; z test, t-test. f-test
 
Hypothesis testing ppt final
Hypothesis testing ppt finalHypothesis testing ppt final
Hypothesis testing ppt final
 
T test
T testT test
T test
 
Tests of significance
Tests of significanceTests of significance
Tests of significance
 
Chi square test
Chi square testChi square test
Chi square test
 
Lect w7 t_test_amp_chi_test
Lect w7 t_test_amp_chi_testLect w7 t_test_amp_chi_test
Lect w7 t_test_amp_chi_test
 
Hypothesis and t-tests
Hypothesis and t-testsHypothesis and t-tests
Hypothesis and t-tests
 
Aron chpt 8 ed
Aron chpt 8 edAron chpt 8 ed
Aron chpt 8 ed
 
Sampling
SamplingSampling
Sampling
 
Ch. 21 Type Ii Error
Ch. 21 Type Ii ErrorCh. 21 Type Ii Error
Ch. 21 Type Ii Error
 
Ch. 21 Type I And Type Ii Error
Ch. 21 Type I And Type Ii ErrorCh. 21 Type I And Type Ii Error
Ch. 21 Type I And Type Ii Error
 
Sampling error; the need for sampling distributions
Sampling error; the need for sampling distributionsSampling error; the need for sampling distributions
Sampling error; the need for sampling distributions
 
Medical Statistics Part-II:Inferential statistics
Medical Statistics Part-II:Inferential  statisticsMedical Statistics Part-II:Inferential  statistics
Medical Statistics Part-II:Inferential statistics
 
T8 hypothesis testing
T8 hypothesis testingT8 hypothesis testing
T8 hypothesis testing
 
The Difference Between t-tests and ANOVAs
The Difference Between t-tests and ANOVAsThe Difference Between t-tests and ANOVAs
The Difference Between t-tests and ANOVAs
 
Types of sampling
Types of samplingTypes of sampling
Types of sampling
 
Anova and T-Test
Anova and T-TestAnova and T-Test
Anova and T-Test
 
Linear Regression Using SPSS
Linear Regression Using SPSSLinear Regression Using SPSS
Linear Regression Using SPSS
 

Similaire à Chi square and t tests, Neelam zafar & group

Chi square test social research refer.ppt
Chi square test social research refer.pptChi square test social research refer.ppt
Chi square test social research refer.ppt
Snehamurali18
 
Elementary statistics for Food Indusrty
Elementary statistics for Food IndusrtyElementary statistics for Food Indusrty
Elementary statistics for Food Indusrty
Atcharaporn Khoomtong
 
Week 5 Lecture 14 The Chi Square TestQuite often, patterns of .docx
Week 5 Lecture 14 The Chi Square TestQuite often, patterns of .docxWeek 5 Lecture 14 The Chi Square TestQuite often, patterns of .docx
Week 5 Lecture 14 The Chi Square TestQuite often, patterns of .docx
cockekeshia
 
Week 5 Lecture 14 The Chi Square Test Quite often, pat.docx
Week 5 Lecture 14 The Chi Square Test Quite often, pat.docxWeek 5 Lecture 14 The Chi Square Test Quite often, pat.docx
Week 5 Lecture 14 The Chi Square Test Quite often, pat.docx
cockekeshia
 
Biostatistics
BiostatisticsBiostatistics
Biostatistics
priyarokz
 

Similaire à Chi square and t tests, Neelam zafar & group (20)

Chi square test social research refer.ppt
Chi square test social research refer.pptChi square test social research refer.ppt
Chi square test social research refer.ppt
 
Nonparametric tests assignment
Nonparametric tests assignmentNonparametric tests assignment
Nonparametric tests assignment
 
Chi2 Anova
Chi2 AnovaChi2 Anova
Chi2 Anova
 
Chapter12
Chapter12Chapter12
Chapter12
 
Overview of Advance Marketing Research
Overview of Advance Marketing ResearchOverview of Advance Marketing Research
Overview of Advance Marketing Research
 
Elementary statistics for Food Indusrty
Elementary statistics for Food IndusrtyElementary statistics for Food Indusrty
Elementary statistics for Food Indusrty
 
Parametric & non parametric
Parametric & non parametricParametric & non parametric
Parametric & non parametric
 
elementary statistic
elementary statisticelementary statistic
elementary statistic
 
Week 5 Lecture 14 The Chi Square TestQuite often, patterns of .docx
Week 5 Lecture 14 The Chi Square TestQuite often, patterns of .docxWeek 5 Lecture 14 The Chi Square TestQuite often, patterns of .docx
Week 5 Lecture 14 The Chi Square TestQuite often, patterns of .docx
 
Inferential statistics
Inferential statisticsInferential statistics
Inferential statistics
 
inferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdfinferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdf
 
Ch7 Analysis of Variance (ANOVA)
Ch7 Analysis of Variance (ANOVA)Ch7 Analysis of Variance (ANOVA)
Ch7 Analysis of Variance (ANOVA)
 
QNT 275 Exceptional Education - snaptutorial.com
QNT 275   Exceptional Education - snaptutorial.comQNT 275   Exceptional Education - snaptutorial.com
QNT 275 Exceptional Education - snaptutorial.com
 
Qt notes by mj
Qt notes by mjQt notes by mj
Qt notes by mj
 
Chapter11
Chapter11Chapter11
Chapter11
 
Week 5 Lecture 14 The Chi Square Test Quite often, pat.docx
Week 5 Lecture 14 The Chi Square Test Quite often, pat.docxWeek 5 Lecture 14 The Chi Square Test Quite often, pat.docx
Week 5 Lecture 14 The Chi Square Test Quite often, pat.docx
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
Biostatistics
BiostatisticsBiostatistics
Biostatistics
 
QNT 275 Inspiring Innovation / tutorialrank.com
QNT 275 Inspiring Innovation / tutorialrank.comQNT 275 Inspiring Innovation / tutorialrank.com
QNT 275 Inspiring Innovation / tutorialrank.com
 
BasicStatistics.pdf
BasicStatistics.pdfBasicStatistics.pdf
BasicStatistics.pdf
 

Dernier

Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learning
levieagacer
 
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
Scintica Instrumentation
 
The Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptxThe Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptx
seri bangash
 

Dernier (20)

Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
 
Molecular markers- RFLP, RAPD, AFLP, SNP etc.
Molecular markers- RFLP, RAPD, AFLP, SNP etc.Molecular markers- RFLP, RAPD, AFLP, SNP etc.
Molecular markers- RFLP, RAPD, AFLP, SNP etc.
 
GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)
 
Velocity and Acceleration PowerPoint.ppt
Velocity and Acceleration PowerPoint.pptVelocity and Acceleration PowerPoint.ppt
Velocity and Acceleration PowerPoint.ppt
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learning
 
Stages in the normal growth curve
Stages in the normal growth curveStages in the normal growth curve
Stages in the normal growth curve
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
 
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptxClimate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
 
FAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical ScienceFAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical Science
 
Zoology 5th semester notes( Sumit_yadav).pdf
Zoology 5th semester notes( Sumit_yadav).pdfZoology 5th semester notes( Sumit_yadav).pdf
Zoology 5th semester notes( Sumit_yadav).pdf
 
Chemistry 5th semester paper 1st Notes.pdf
Chemistry 5th semester paper 1st Notes.pdfChemistry 5th semester paper 1st Notes.pdf
Chemistry 5th semester paper 1st Notes.pdf
 
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
 
GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)
 
Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.
 
An introduction on sequence tagged site mapping
An introduction on sequence tagged site mappingAn introduction on sequence tagged site mapping
An introduction on sequence tagged site mapping
 
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
 
The Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptxThe Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptx
 
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIACURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
 
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
 
Grade 7 - Lesson 1 - Microscope and Its Functions
Grade 7 - Lesson 1 - Microscope and Its FunctionsGrade 7 - Lesson 1 - Microscope and Its Functions
Grade 7 - Lesson 1 - Microscope and Its Functions
 

Chi square and t tests, Neelam zafar & group

  • 1. Chi Square and t-tests Presented by Group C
  • 2. Introduction Data analysis can be done basically in three ways using SPSS, as i. Describing data through descriptive statistics ii. Examining relationships between variables iii. Comparing groups to determine significant differences between them
  • 3. Introduction Considering the third category i.e. comparing groups, chi square and t-tests are two of the important tests. These are tests of significance.
  • 4. Chi-Square Test  Chi-Square test was introduced by Karl Pearson. It follows a specific distribution known as chi-square distribution.  It is used to measure the differences between what is observed and what is expected according to an assumed hypothesis.
  • 5. Chi-Square Test  The Chi-Square is denoted by X² and the formula is given as:𝑋2 = (𝑂−𝐸)2 𝐸 Here, O = Observed frequency E = Expected frequency ∑ = Summation X²= Chi Square value  A chi-square test is a statistical test commonly used for testing independence and goodness of fit.
  • 6. Chi-Square Test  Testing independence determines whether two or more observations across two populations are dependent on each other (i.e., whether one variable helps to estimate the other). If the calculated value is less than the table value at certain level of significance for a given degree of freedom, we conclude that null hypotheses stands which means that two attributes are independent or not associated. If calculated value is greater than the table value, we reject the null hypotheses.
  • 7. Chi-Square Test This test enables to explain whether or not two attributes are associated. For instance, suppose a study collecting data of survivors in Titanic, for this X² test is useful.
  • 8. Chi-Square Test  Testing for goodness of fit determines how well the assumed theoretical distribution (such as normal distribution) fit to the observed data. When the calculated value of χ2 is less than the table value at certain level of significance, the fit is considered to be good one and if the calculated value is greater than the table value, the fit is not considered to be good.
  • 9. Let’s explain its use in SPSS with the help of an example
  • 10. Chi-Square in SPSS Data: Survival on the Titanic by Gender Analyze →Descriptive Statistics →Crosstabs
  • 11. Chi-Square in SPSS Move one variable into ROW and the other into COLUMNS. CLICK on CELLS
  • 12. Chi-Square in SPSS  Independent Variable (Gender) is in the Rows  Always show Observed count  Optionally, show Expected count  Percentage across the Rows  Click CONTINUE  In main dialogue box, Click STATISTICS
  • 13. Chi-Square in SPSS  Choose Chi-Square for hypothesis test  Click Phi and Cramer’s V for measure of strength of the relationship  Click CONTINUE  On main dialogue box, Click OK
  • 14. Chi-Square in SPSS  Observed count (yellow highlight)  Expected count (orange highlight)  Percent within each Gender who Died or Survived (pink highlight)  Report: “Most men on the Titanic (80.2%) died while most women (71.6%) survived.” gender * survival Crosstabulation 680.000 168.000 848.000 529.4 318.6 848.0 80.2% 19.8% 100.0% 126.000 317.000 443.000 276.6 166.4 443.0 28.4% 71.6% 100.0% 806.000 485.000 1291.000 806.0 485.0 1291.0 62.4% 37.6% 100.0% Count Expected Count % w ithin gender Count Expected Count % w ithin gender Count Expected Count % w ithin gender 1 Men 2 Women gender Total 1 Died 2 Survived survival Total
  • 15. Chi-Square Tests 332.205b 1 .000 330.003 1 .000 335.804 1 .000 .000 .000 331.948 1 .000 1291 Pearson Chi-Square Continuity Correctiona Likelihood Ratio Fisher's Exact Test Linear-by-Linear Association N of Valid Cases Value df Asymp. Sig. (2-sided) Exact Sig. (2-sided) Exact Sig. (1-sided) Computed only for a 2x2 tablea. 0 cells (.0%) have expected count less than 5. The minimum expected count is 166. 43. b. Chi-Square in SPSS  Pearson chi-square is the default test  When Sig < alpha, variables are related.  Report: “The relationship is significant (χ2(1) = 332.205, p < .005).”
  • 16. Sym metric Measures .507 .000 .507 .000 1291 Phi Cramer's V Nominal by Nominal N of Valid Cases Value Approx. Sig. Not assuming the null hypothesis.a. Using the asymptotic standard error assuming the null hypothesis. b. Chi-Square in SPSS  Phi for 2x2 tables Cramer’s V for larger tables  Both range from 0 to 1 with 0 = no relationship  For df = 1 ◦ V = 0.10 is a small effect ◦ V = 0.30 is a medium effect ◦ V = 0.50 is a large effect  Report: “Gender had a large effect on chance of survival for the Titanic passengers.”
  • 17. t-test  The t-test is a basic test that is limited to two groups. For multiple groups, we should have to compare each pair of groups, for example with three groups there would be three tests (AB, AC, BC).  It is used to test whether there is significant difference between the means of two groups, e.g.:  Male v female  Full-time v part-time
  • 18. t-test There are three types of t-tests as below  A one sample t-test: used when we want to know if there is a significant difference between a sample mean and a test value (known mean from a population or some other value to compare with sample mean), i.e. to compare the mean of a sample with population mean.
  • 19. t-test  An independent sample t-test: used to compare the mean scores when samples are not matched or for two different groups of subjects i.e. to compare the mean of one sample with the mean of another independent sample.
  • 20. t-test  Paired sample t-test: used to compare the means of two variables or when samples appear in pairs (e.g. before and after), i.e. to compare between the values (readings) of one sample but in 2 occasions.
  • 21. Let’s explain performing t-test in SPSS…
  • 22. t-test in SPSS Start by clicking “Analyze” on menu bar Analyze → Compare Means → Independent- Samples T-test
  • 25. t-test in SPSS  Select the variables to test (Test Variables)  And bring the variables to the “Test Variables” box
  • 26. Test variables are selected and carried to the box on the right by pressing the arrow
  • 28. t-test in SPSS  Select the grouping variable, i.e. gender; bring it to the “grouping variable” box  Click “Define Groups”
  • 29. Gender is the grouping variable
  • 30. t-test in SPSS  Choose “Use specified values”  Key in the codes for the variable “gender” as used in the “Value Labels”. In this case: 1 - Male 2 - Female  Click “Continue”, then “OK”
  • 31. Specified values for gender are: 1 (Male) and 2 (Female)
  • 32. For t-test interpretation lets switch to SPSS