SlideShare a Scribd company logo
ADVANCED STATISTICS




                           Cochran’s Q Test
 Kristine Joey Palencia
MP-Industrial Psychology
Definition
• A nonparametric procedure for categorical data employed in a
  hypothesis testing situation involving a design with k=2 or
  more dependent samples

• Cochran's Q test is an extension to the McNemar test for
  related samples that provides a method for testing for
  differences between three or more matched sets of
  frequencies or proportions. The matching samples can be
  based on k characteristics of N individuals that are associated
  with the response. Alternatively N individuals may be
  observed under k different treatments or conditions.

• Cochran's Q tests whether the probability of a target response
  is equal across all conditions; verify if k treatments have
  identical effects
Cochran's Q test is

H0: The treatments are equally effective.
Ha: There is a difference in effectiveness
among treatments.

 Subject   Treatment   Treatment Treatment Treatment
  (case)       A           B         C         D
   1          1           1          0         0
   2          1           1          0         1
   3          1           0          0         0
   4          1           1          1         0
   5          1           1          0         1
   6          1           1          0         1
Cochran's Q test is based on the
             following assumptions:
•A large sample approximation; in particular, it
assumes that b is "large".

•The blocks (rows) were randomly selected from
the population of all possible blocks.

•The outcomes of the treatments can be coded as
binary responses (i.e., a "0" or "1") in a way that is
common to all treatments within each block.
Example
     The researcher who had collected the Pet Shop data
wanted to examine whether pet stores displayed different
types of reptiles during different times of the year. So, the
researcher visited each of the 12 stores four times during the
next year that were chosen because of their proximity to
holidays, Valentine’s Day, July 4, Halloween and Christmas.
During each visit, the researcher recorded if the shop
displayed only snakes or lizards (coded = 0) or both types of
reptiles (coded = 1).

     In this analysis the one variable is the time of the year and
the response variable is the type of reptile(s) displayed.
Data from the 12 stores:
 0, 0, 0, 1 0, 0, 0, 1 0, 0, 0, 1      1, 1, 1, 1
 1, 0, 0, 1 0, 1, 0, 1 1, 0, 0, 1      0, 0, 0, 1
 0, 1, 0, 0 0, 0, 0, 0 1, 0, 0, 1      0, 0, 1, 1

Research Hypothesis:
      The researcher hypothesized that pet shops
  would be more likely to display both reptiles to
  Christmas than during the other times of the year

HO = Stores are equally likely to display both types of
 reptiles during all parts of the year
Pet Shop   Valentine’s       July 4       Halloween           Christmas
              Day
   1            0               0               0                 1
   2            0               0               0                 1
   3            0               0               0                 1
   4            1               1               1                 1
   5            1               0               0                 1
   6            0               1               0                 1
   7            1               0               0                 1
   8            0               0               0                 1
   9            0               1               0                 0
   10           0               0               0                 0
   11           1               0               0                 1
   12           0               0               1                 1
 N = 12      G1 = 4          G2 = 3           G3 = 2           G4 = 10


             Snakes or lizards = 0 ; snakes and lizards = 1
Pet     Valentine’s July 4    Halloween   Christmas    L        L2
Shop        Day
  1          0          0          0           1        1        1
  2          0          0          0           1        1        1
  3          0          0          0           1        1        1
  4          1          1          1           1        4        16
  5          1          0          0           1        2        4
  6          0          1          0           1        2        4
  7          1          0          0           1        2        4
  8          0          0          0           1        1        1
  9          0          1          0           0        1        1
 10          0          0          0           0        0        0
 11          1          0          0           1        2        4
 12          0          0          1           1        2        4
N = 12     G1 = 4     G2 = 3     G3 = 2     G4 = 10    L= 19   L2 = 41


                    Number of conditions (k) = 4
k = number of cases/treatment
G or Tj = sum for each column
L or Ui = sum for each row or
block
Use the Chi-square table to determine the
 critical X2 value for df = k – 1 and p = . 05



  X2 (df = 3, p = .05) = 7.82
Critical
 values of
Chi-square
Obtain the Q value and critical Chi-square value

               Q = 13.287             X2 = 7.82

If the obtained Q is less than the critical X2, then retain the
null hypothesis
If the obtained Q is greater than critical X2, then reject the
null hypothesis

         REJECT THE NULL HYPOTHESIS
 There is a relationship between the subject’s values on
 one categorical variable and their values on the other
 categorical variable, in the population represented by the
 sample
 There were more stores displaying both types of reptiles
 during Christmas buying season than during the other times
 of the year
To validate the null hypothesis:

Pet Shop Valentine's Day   July 4   Halloween Christmas
N = 12        G1 = 4       G2 = 3    G3 = 2    G4 = 10
Mean %        33%          25%        17%       83%



     As hypothesized, there were more stores
     displaying both types of reptiles during the
     Christmas buying season than during the
     other times of the year.
Application on SPSS
Application on XLSTAT (Excel)
End of Report



Thank you!

More Related Content

What's hot

T Test For Two Independent Samples
T Test For Two Independent SamplesT Test For Two Independent Samples
T Test For Two Independent Samples
shoffma5
 
Kruskal-Wallis H test
Kruskal-Wallis H testKruskal-Wallis H test
Kruskal-Wallis H test
Sharlaine Ruth
 
The Standard Normal Distribution
The Standard Normal Distribution  The Standard Normal Distribution
The Standard Normal Distribution
Long Beach City College
 
What is an independent samples-t test?
What is an independent samples-t test?What is an independent samples-t test?
What is an independent samples-t test?
Ken Plummer
 
The kolmogorov smirnov test
The kolmogorov smirnov testThe kolmogorov smirnov test
The kolmogorov smirnov test
Subhradeep Mitra
 
Lecture - ANCOVA 4 Slides.pdf
Lecture - ANCOVA 4 Slides.pdfLecture - ANCOVA 4 Slides.pdf
Lecture - ANCOVA 4 Slides.pdf
muhammad shahid
 
Chapter 6 part2-Introduction to Inference-Tests of Significance, Stating Hyp...
Chapter 6 part2-Introduction to Inference-Tests of Significance,  Stating Hyp...Chapter 6 part2-Introduction to Inference-Tests of Significance,  Stating Hyp...
Chapter 6 part2-Introduction to Inference-Tests of Significance, Stating Hyp...
nszakir
 
Spearman Rank Correlation Presentation
Spearman Rank Correlation PresentationSpearman Rank Correlation Presentation
Spearman Rank Correlation Presentation
cae_021
 
Normal Curve
Normal CurveNormal Curve
Normal Curve
Ace Matilac
 
Normal Distribution
Normal DistributionNormal Distribution
Normal Distribution
CIToolkit
 
Types of variables in statistics
Types of variables in statisticsTypes of variables in statistics
Types of variables in statistics
Zakaria Hossain
 
Discrete and continuous probability distributions ppt @ bec doms
Discrete and continuous probability distributions ppt @ bec domsDiscrete and continuous probability distributions ppt @ bec doms
Discrete and continuous probability distributions ppt @ bec doms
Babasab Patil
 
The normal distribution
The normal distributionThe normal distribution
Estimation and confidence interval
Estimation and confidence intervalEstimation and confidence interval
Estimation and confidence interval
Homework Guru
 
Confidence Intervals
Confidence IntervalsConfidence Intervals
Confidence Intervals
mandalina landy
 
Variability
VariabilityVariability
Sign Test
Sign TestSign Test
Sign Test
AdrizaBera
 
7 anova chi square test
 7 anova chi square test 7 anova chi square test
7 anova chi square test
Penny Jiang
 
Statistical analysis using spss
Statistical analysis using spssStatistical analysis using spss
Statistical analysis using spss
jpcagphil
 
T test, independant sample, paired sample and anova
T test, independant sample, paired sample and anovaT test, independant sample, paired sample and anova
T test, independant sample, paired sample and anova
Qasim Raza
 

What's hot (20)

T Test For Two Independent Samples
T Test For Two Independent SamplesT Test For Two Independent Samples
T Test For Two Independent Samples
 
Kruskal-Wallis H test
Kruskal-Wallis H testKruskal-Wallis H test
Kruskal-Wallis H test
 
The Standard Normal Distribution
The Standard Normal Distribution  The Standard Normal Distribution
The Standard Normal Distribution
 
What is an independent samples-t test?
What is an independent samples-t test?What is an independent samples-t test?
What is an independent samples-t test?
 
The kolmogorov smirnov test
The kolmogorov smirnov testThe kolmogorov smirnov test
The kolmogorov smirnov test
 
Lecture - ANCOVA 4 Slides.pdf
Lecture - ANCOVA 4 Slides.pdfLecture - ANCOVA 4 Slides.pdf
Lecture - ANCOVA 4 Slides.pdf
 
Chapter 6 part2-Introduction to Inference-Tests of Significance, Stating Hyp...
Chapter 6 part2-Introduction to Inference-Tests of Significance,  Stating Hyp...Chapter 6 part2-Introduction to Inference-Tests of Significance,  Stating Hyp...
Chapter 6 part2-Introduction to Inference-Tests of Significance, Stating Hyp...
 
Spearman Rank Correlation Presentation
Spearman Rank Correlation PresentationSpearman Rank Correlation Presentation
Spearman Rank Correlation Presentation
 
Normal Curve
Normal CurveNormal Curve
Normal Curve
 
Normal Distribution
Normal DistributionNormal Distribution
Normal Distribution
 
Types of variables in statistics
Types of variables in statisticsTypes of variables in statistics
Types of variables in statistics
 
Discrete and continuous probability distributions ppt @ bec doms
Discrete and continuous probability distributions ppt @ bec domsDiscrete and continuous probability distributions ppt @ bec doms
Discrete and continuous probability distributions ppt @ bec doms
 
The normal distribution
The normal distributionThe normal distribution
The normal distribution
 
Estimation and confidence interval
Estimation and confidence intervalEstimation and confidence interval
Estimation and confidence interval
 
Confidence Intervals
Confidence IntervalsConfidence Intervals
Confidence Intervals
 
Variability
VariabilityVariability
Variability
 
Sign Test
Sign TestSign Test
Sign Test
 
7 anova chi square test
 7 anova chi square test 7 anova chi square test
7 anova chi square test
 
Statistical analysis using spss
Statistical analysis using spssStatistical analysis using spss
Statistical analysis using spss
 
T test, independant sample, paired sample and anova
T test, independant sample, paired sample and anovaT test, independant sample, paired sample and anova
T test, independant sample, paired sample and anova
 

Viewers also liked

Non parametric tests
Non parametric testsNon parametric tests
Non parametric tests
Raghavendra Huchchannavar
 
Chapter 07 Chi Square
Chapter 07 Chi SquareChapter 07 Chi Square
Chapter 07 Chi Square
ghalan
 
Non Parametric Tests
Non Parametric TestsNon Parametric Tests
Non Parametric Tests
Neeraj Kaushik
 
Multivariate Analysis Techniques
Multivariate Analysis TechniquesMultivariate Analysis Techniques
Multivariate Analysis Techniques
Mehul Gondaliya
 
Lesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And RegressionLesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And Regression
Sumit Prajapati
 
Lilliefors test
Lilliefors testLilliefors test
Kendall rank correlation
Kendall rank correlationKendall rank correlation
Kendall rank correlation
Islamia College University Peshawar
 
Shapiro wilk test
Shapiro wilk testShapiro wilk test
5. Non parametric analysis
5. Non parametric analysis5. Non parametric analysis
5. Non parametric analysis
Razif Shahril
 
Spearmans rank correlation test
Spearmans rank correlation testSpearmans rank correlation test
Spearmans rank correlation test
Islamia College University Peshawar
 
AP Calculus BC: 11-02 Generating Power Series!
AP Calculus BC: 11-02 Generating Power Series!AP Calculus BC: 11-02 Generating Power Series!
AP Calculus BC: 11-02 Generating Power Series!
A Jorge Garcia
 
Review of series
Review of seriesReview of series
Review of series
Tarun Gehlot
 
Power series & Radius of convergence
Power series & Radius of convergencePower series & Radius of convergence
Power series & Radius of convergence
Dhruv Darji
 
power series & radius of convergence
power series & radius of convergencepower series & radius of convergence
power series & radius of convergence
jigar sable
 
Calculus II - 22
Calculus II - 22Calculus II - 22
Calculus II - 22
David Mao
 
Calculus II - 24
Calculus II - 24Calculus II - 24
Calculus II - 24
David Mao
 
Chapter 04
Chapter 04Chapter 04
Chapter 04
bmcfad01
 
Uniform Distribution
Uniform DistributionUniform Distribution
Uniform Distribution
mathscontent
 
Linear programming using the simplex method
Linear programming using the simplex methodLinear programming using the simplex method
Linear programming using the simplex method
Shivek Khurana
 
Writing up your results – apa style guidelines
Writing up your results – apa style guidelinesWriting up your results – apa style guidelines
Writing up your results – apa style guidelines
Marialena Kostouli
 

Viewers also liked (20)

Non parametric tests
Non parametric testsNon parametric tests
Non parametric tests
 
Chapter 07 Chi Square
Chapter 07 Chi SquareChapter 07 Chi Square
Chapter 07 Chi Square
 
Non Parametric Tests
Non Parametric TestsNon Parametric Tests
Non Parametric Tests
 
Multivariate Analysis Techniques
Multivariate Analysis TechniquesMultivariate Analysis Techniques
Multivariate Analysis Techniques
 
Lesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And RegressionLesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And Regression
 
Lilliefors test
Lilliefors testLilliefors test
Lilliefors test
 
Kendall rank correlation
Kendall rank correlationKendall rank correlation
Kendall rank correlation
 
Shapiro wilk test
Shapiro wilk testShapiro wilk test
Shapiro wilk test
 
5. Non parametric analysis
5. Non parametric analysis5. Non parametric analysis
5. Non parametric analysis
 
Spearmans rank correlation test
Spearmans rank correlation testSpearmans rank correlation test
Spearmans rank correlation test
 
AP Calculus BC: 11-02 Generating Power Series!
AP Calculus BC: 11-02 Generating Power Series!AP Calculus BC: 11-02 Generating Power Series!
AP Calculus BC: 11-02 Generating Power Series!
 
Review of series
Review of seriesReview of series
Review of series
 
Power series & Radius of convergence
Power series & Radius of convergencePower series & Radius of convergence
Power series & Radius of convergence
 
power series & radius of convergence
power series & radius of convergencepower series & radius of convergence
power series & radius of convergence
 
Calculus II - 22
Calculus II - 22Calculus II - 22
Calculus II - 22
 
Calculus II - 24
Calculus II - 24Calculus II - 24
Calculus II - 24
 
Chapter 04
Chapter 04Chapter 04
Chapter 04
 
Uniform Distribution
Uniform DistributionUniform Distribution
Uniform Distribution
 
Linear programming using the simplex method
Linear programming using the simplex methodLinear programming using the simplex method
Linear programming using the simplex method
 
Writing up your results – apa style guidelines
Writing up your results – apa style guidelinesWriting up your results – apa style guidelines
Writing up your results – apa style guidelines
 

Recently uploaded

一比一原版(McGill毕业证书)麦吉尔大学毕业证如何办理
一比一原版(McGill毕业证书)麦吉尔大学毕业证如何办理一比一原版(McGill毕业证书)麦吉尔大学毕业证如何办理
一比一原版(McGill毕业证书)麦吉尔大学毕业证如何办理
lyurzi7r
 
Types of Garage Doors Explained: Energy Efficiency, Style, and More
Types of Garage Doors Explained: Energy Efficiency, Style, and MoreTypes of Garage Doors Explained: Energy Efficiency, Style, and More
Types of Garage Doors Explained: Energy Efficiency, Style, and More
Affordable Garage Door Repair
 
一比一原版(UoL毕业证)伦敦大学毕业证如何办理
一比一原版(UoL毕业证)伦敦大学毕业证如何办理一比一原版(UoL毕业证)伦敦大学毕业证如何办理
一比一原版(UoL毕业证)伦敦大学毕业证如何办理
qghuhwa
 
Analysis and Assessment of Gateway Process – HemiSync(1).PDF
Analysis and Assessment of Gateway Process – HemiSync(1).PDFAnalysis and Assessment of Gateway Process – HemiSync(1).PDF
Analysis and Assessment of Gateway Process – HemiSync(1).PDF
JoshuaDagama1
 
Calendario 2024 mensual anual documento A4 multicolor pastel imprimible bla...
Calendario 2024 mensual  anual  documento A4 multicolor pastel imprimible bla...Calendario 2024 mensual  anual  documento A4 multicolor pastel imprimible bla...
Calendario 2024 mensual anual documento A4 multicolor pastel imprimible bla...
ValentinoRueda
 
Insanony: Watch Instagram Stories Secretly - A Complete Guide
Insanony: Watch Instagram Stories Secretly - A Complete GuideInsanony: Watch Instagram Stories Secretly - A Complete Guide
Insanony: Watch Instagram Stories Secretly - A Complete Guide
Trending Blogers
 
Biography and career history of Bruno Amezcua
Biography and career history of Bruno AmezcuaBiography and career history of Bruno Amezcua
Biography and career history of Bruno Amezcua
Bruno Amezcua
 
MISS TEEN LUCKNOW 2024 - WINNER ASIYA 2024
MISS TEEN LUCKNOW 2024 - WINNER ASIYA 2024MISS TEEN LUCKNOW 2024 - WINNER ASIYA 2024
MISS TEEN LUCKNOW 2024 - WINNER ASIYA 2024
DK PAGEANT
 
Capsule Wardrobe Women: A document show
Capsule Wardrobe Women:  A document showCapsule Wardrobe Women:  A document show
Capsule Wardrobe Women: A document show
mustaphaadeyemi08
 
Confidence is Key: Fashion for Women Over 50
Confidence is Key: Fashion for Women Over 50Confidence is Key: Fashion for Women Over 50
Confidence is Key: Fashion for Women Over 50
miabarn9
 
一比一原版塔夫斯大学毕业证Tufts成绩单一模一样
一比一原版塔夫斯大学毕业证Tufts成绩单一模一样一比一原版塔夫斯大学毕业证Tufts成绩单一模一样
一比一原版塔夫斯大学毕业证Tufts成绩单一模一样
stgq9v39
 
Self-Discipline: The Secret Weapon for Certain Victory
Self-Discipline: The Secret Weapon for Certain VictorySelf-Discipline: The Secret Weapon for Certain Victory
Self-Discipline: The Secret Weapon for Certain Victory
bluetroyvictorVinay
 
快速办理(加拿大CBU毕业证书)卡普顿大学毕业证毕业完成信一模一样
快速办理(加拿大CBU毕业证书)卡普顿大学毕业证毕业完成信一模一样快速办理(加拿大CBU毕业证书)卡普顿大学毕业证毕业完成信一模一样
快速办理(加拿大CBU毕业证书)卡普顿大学毕业证毕业完成信一模一样
ubopub
 

Recently uploaded (13)

一比一原版(McGill毕业证书)麦吉尔大学毕业证如何办理
一比一原版(McGill毕业证书)麦吉尔大学毕业证如何办理一比一原版(McGill毕业证书)麦吉尔大学毕业证如何办理
一比一原版(McGill毕业证书)麦吉尔大学毕业证如何办理
 
Types of Garage Doors Explained: Energy Efficiency, Style, and More
Types of Garage Doors Explained: Energy Efficiency, Style, and MoreTypes of Garage Doors Explained: Energy Efficiency, Style, and More
Types of Garage Doors Explained: Energy Efficiency, Style, and More
 
一比一原版(UoL毕业证)伦敦大学毕业证如何办理
一比一原版(UoL毕业证)伦敦大学毕业证如何办理一比一原版(UoL毕业证)伦敦大学毕业证如何办理
一比一原版(UoL毕业证)伦敦大学毕业证如何办理
 
Analysis and Assessment of Gateway Process – HemiSync(1).PDF
Analysis and Assessment of Gateway Process – HemiSync(1).PDFAnalysis and Assessment of Gateway Process – HemiSync(1).PDF
Analysis and Assessment of Gateway Process – HemiSync(1).PDF
 
Calendario 2024 mensual anual documento A4 multicolor pastel imprimible bla...
Calendario 2024 mensual  anual  documento A4 multicolor pastel imprimible bla...Calendario 2024 mensual  anual  documento A4 multicolor pastel imprimible bla...
Calendario 2024 mensual anual documento A4 multicolor pastel imprimible bla...
 
Insanony: Watch Instagram Stories Secretly - A Complete Guide
Insanony: Watch Instagram Stories Secretly - A Complete GuideInsanony: Watch Instagram Stories Secretly - A Complete Guide
Insanony: Watch Instagram Stories Secretly - A Complete Guide
 
Biography and career history of Bruno Amezcua
Biography and career history of Bruno AmezcuaBiography and career history of Bruno Amezcua
Biography and career history of Bruno Amezcua
 
MISS TEEN LUCKNOW 2024 - WINNER ASIYA 2024
MISS TEEN LUCKNOW 2024 - WINNER ASIYA 2024MISS TEEN LUCKNOW 2024 - WINNER ASIYA 2024
MISS TEEN LUCKNOW 2024 - WINNER ASIYA 2024
 
Capsule Wardrobe Women: A document show
Capsule Wardrobe Women:  A document showCapsule Wardrobe Women:  A document show
Capsule Wardrobe Women: A document show
 
Confidence is Key: Fashion for Women Over 50
Confidence is Key: Fashion for Women Over 50Confidence is Key: Fashion for Women Over 50
Confidence is Key: Fashion for Women Over 50
 
一比一原版塔夫斯大学毕业证Tufts成绩单一模一样
一比一原版塔夫斯大学毕业证Tufts成绩单一模一样一比一原版塔夫斯大学毕业证Tufts成绩单一模一样
一比一原版塔夫斯大学毕业证Tufts成绩单一模一样
 
Self-Discipline: The Secret Weapon for Certain Victory
Self-Discipline: The Secret Weapon for Certain VictorySelf-Discipline: The Secret Weapon for Certain Victory
Self-Discipline: The Secret Weapon for Certain Victory
 
快速办理(加拿大CBU毕业证书)卡普顿大学毕业证毕业完成信一模一样
快速办理(加拿大CBU毕业证书)卡普顿大学毕业证毕业完成信一模一样快速办理(加拿大CBU毕业证书)卡普顿大学毕业证毕业完成信一模一样
快速办理(加拿大CBU毕业证书)卡普顿大学毕业证毕业完成信一模一样
 

Cochran's q test report

  • 1. ADVANCED STATISTICS Cochran’s Q Test Kristine Joey Palencia MP-Industrial Psychology
  • 2. Definition • A nonparametric procedure for categorical data employed in a hypothesis testing situation involving a design with k=2 or more dependent samples • Cochran's Q test is an extension to the McNemar test for related samples that provides a method for testing for differences between three or more matched sets of frequencies or proportions. The matching samples can be based on k characteristics of N individuals that are associated with the response. Alternatively N individuals may be observed under k different treatments or conditions. • Cochran's Q tests whether the probability of a target response is equal across all conditions; verify if k treatments have identical effects
  • 3. Cochran's Q test is H0: The treatments are equally effective. Ha: There is a difference in effectiveness among treatments. Subject Treatment Treatment Treatment Treatment (case) A B C D 1 1 1 0 0 2 1 1 0 1 3 1 0 0 0 4 1 1 1 0 5 1 1 0 1 6 1 1 0 1
  • 4. Cochran's Q test is based on the following assumptions: •A large sample approximation; in particular, it assumes that b is "large". •The blocks (rows) were randomly selected from the population of all possible blocks. •The outcomes of the treatments can be coded as binary responses (i.e., a "0" or "1") in a way that is common to all treatments within each block.
  • 5. Example The researcher who had collected the Pet Shop data wanted to examine whether pet stores displayed different types of reptiles during different times of the year. So, the researcher visited each of the 12 stores four times during the next year that were chosen because of their proximity to holidays, Valentine’s Day, July 4, Halloween and Christmas. During each visit, the researcher recorded if the shop displayed only snakes or lizards (coded = 0) or both types of reptiles (coded = 1). In this analysis the one variable is the time of the year and the response variable is the type of reptile(s) displayed.
  • 6. Data from the 12 stores: 0, 0, 0, 1 0, 0, 0, 1 0, 0, 0, 1 1, 1, 1, 1 1, 0, 0, 1 0, 1, 0, 1 1, 0, 0, 1 0, 0, 0, 1 0, 1, 0, 0 0, 0, 0, 0 1, 0, 0, 1 0, 0, 1, 1 Research Hypothesis: The researcher hypothesized that pet shops would be more likely to display both reptiles to Christmas than during the other times of the year HO = Stores are equally likely to display both types of reptiles during all parts of the year
  • 7. Pet Shop Valentine’s July 4 Halloween Christmas Day 1 0 0 0 1 2 0 0 0 1 3 0 0 0 1 4 1 1 1 1 5 1 0 0 1 6 0 1 0 1 7 1 0 0 1 8 0 0 0 1 9 0 1 0 0 10 0 0 0 0 11 1 0 0 1 12 0 0 1 1 N = 12 G1 = 4 G2 = 3 G3 = 2 G4 = 10 Snakes or lizards = 0 ; snakes and lizards = 1
  • 8. Pet Valentine’s July 4 Halloween Christmas L L2 Shop Day 1 0 0 0 1 1 1 2 0 0 0 1 1 1 3 0 0 0 1 1 1 4 1 1 1 1 4 16 5 1 0 0 1 2 4 6 0 1 0 1 2 4 7 1 0 0 1 2 4 8 0 0 0 1 1 1 9 0 1 0 0 1 1 10 0 0 0 0 0 0 11 1 0 0 1 2 4 12 0 0 1 1 2 4 N = 12 G1 = 4 G2 = 3 G3 = 2 G4 = 10 L= 19 L2 = 41 Number of conditions (k) = 4
  • 9. k = number of cases/treatment G or Tj = sum for each column L or Ui = sum for each row or block
  • 10.
  • 11. Use the Chi-square table to determine the critical X2 value for df = k – 1 and p = . 05 X2 (df = 3, p = .05) = 7.82
  • 13. Obtain the Q value and critical Chi-square value Q = 13.287 X2 = 7.82 If the obtained Q is less than the critical X2, then retain the null hypothesis If the obtained Q is greater than critical X2, then reject the null hypothesis REJECT THE NULL HYPOTHESIS There is a relationship between the subject’s values on one categorical variable and their values on the other categorical variable, in the population represented by the sample There were more stores displaying both types of reptiles during Christmas buying season than during the other times of the year
  • 14. To validate the null hypothesis: Pet Shop Valentine's Day July 4 Halloween Christmas N = 12 G1 = 4 G2 = 3 G3 = 2 G4 = 10 Mean % 33% 25% 17% 83% As hypothesized, there were more stores displaying both types of reptiles during the Christmas buying season than during the other times of the year.