SlideShare a Scribd company logo
TEST FOR PROPORTION(S)
USING SPSS
TEST FOR PROPORTION(S)
There are mainly two tests for proportion
• Test for single proportion
• Test for significant difference between proportion of two samples
SPSS does not have Z test to test the proportion(s).
But Chi-Square test can be used to the test the proportion in SPSS.
Chi- Square Statistic
If X~𝑁(𝜇, 𝜎2) then 𝑍 =
𝑋−𝜇
𝜎
~𝑁(0,1) and
𝑍2
=
𝑋−𝜇
𝜎
2
~𝜒2
with 1 d.f. and
𝑋−𝜇
𝜎
2
~𝜒2
with n d.f.
Test of Single
Proportion
Step 1: Null hypothesis H0: 𝑃 = 𝑃0
Step 2: Alternative hypothesis H1: 𝑃 ≠ 𝑃0 or 𝑃 > 𝑃0 or 𝑃 < 𝑃0
Step 3: Test statistics
𝑧 =
𝑝 −𝑃0
𝑃0 ∗𝑄0
𝑛
Denominator is the Standard Error of sample proportion i.e. S.E.(𝑝)
Step 4: Table value of z at 𝛼 % level of significance
Step 5: If z ≤ z table value, H0 is Accepted
If z > z table value, H0 is Rejected
Test of Single
Proportion
Step 1: Null hypothesis H0: 𝑃 = 𝑃0
Step 2: Alternative hypothesis H1: 𝑃 ≠ 𝑃0 or 𝑃 > 𝑃0 or 𝑃 < 𝑃0
Step 3: Check Assumptions
Step 4: Test statistic – Chi-square and p value
Step 5: Conclusion
• If p ≤ Level of significance (∝), We Reject Null hypothesis
• If p > Level of significance (∝), We fail to Reject Null hypothesis
Case Study
The CEO of a large water pump manufacturing company claims that more than 80 percent of
his customers are satisfied with the water pump. To test this claim, the local newspaper
surveyed 100 customers, using simple random sampling. Among the sampled customers, 73
percent say they are very satisfied. Based on these findings, what can we say about the
manufacturer’s claim ? Use a 0.05 level of significance.
Null & Alternative
Hypothesis
Step 1: H0: P = 0.80
[Not more than 80% of the customers are satisfied ]
Step 2: H1: P > 0.80
[More than 80% of the customers are satisfied ]
(One-tailed test)
Data in SPSS
The local newspaper
surveyed 100 customers,
using simple random
sampling. Among the
sampled customers, 73
percent say they are very
satisfied
Assigning weights
Chi-Square test
Chi-Square test
Output
The Chi-square value is 3.063 and
p value = (0.080)/ 2 = 0.04
As p < 0.05, We reject the Null hypothesis.
∴ More than 80% of the customers are
satisfied
𝑧 =
𝑝 −𝑃
𝑃∗𝑄
𝑛
=
0.73 −0.80
0.80∗0.20
100
= 1.75
Chi-Square = Square of z value
Test of significance of difference between two proportions
Step 1: Null hypothesis H0: 𝑃1= 𝑃2
Step 2: Alternative hypothesis H1: 𝑃1 ≠ 𝑃2 or 𝑃1 > 𝑃2 or 𝑃1 < 𝑃2
Step 3: Test statistics
𝑧 =
𝑝1 − 𝑝2
𝑃1∗𝑄1
𝑛1
+
𝑃2∗𝑄2
𝑛2
or
𝑝1 − 𝑝2
𝑃∗𝑄 (
1
𝑛1
+
1
𝑛2
)
where 𝑃 =
𝑛1𝑝1+𝑛2𝑝2
𝑛1+𝑛2
Denominator is the Standard Error of difference in sample proportion i.e. S.E.(𝑝1 − 𝑝2)
Step 4: Table value of z at 𝛼 % level of significance
Step 5: If z ≤ z table value, H0 is Accepted
If z > z table value, H0 is Rejected
Z test
for
two proportions
Step 1: Null hypothesis H0: 𝑃1 = 𝑃2
Step 2: Alternative hypothesis H1: 𝑃1≠ 𝑃2 or 𝑃1 > 𝑃2 or 𝑃1 < 𝑃2
Step 3: Check Assumptions
Step 4: Test statistic – Chi-square and p value
Step 5: Conclusion
• If p ≤ Level of significance (∝), We Reject Null hypothesis
• If p > Level of significance (∝), We fail to Reject Null hypothesis
Assumptions Tests
𝑛1 × 𝑝1 > 10 and 𝑛1 × (1 − 𝑝1) > 10
𝑛2 × 𝑝2 > 10 and 𝑛2 × (1 − 𝑝2) > 10
____
Case Study
Two brands of coffee - Starbucks and CCD were to be compared. A sample of 100 under-
graduate students were selected and of them randomly 50 students were given Starbucks
coffee and remaining 50 were given CCD coffee. Coffee were served to them without brand
labels. 42 students liked the taste of Starbucks coffee while 45 students liked the taste of CCD
coffee. Is there a significant difference in likeness of the two brands for the under-graduate
students?
Null & Alternative
Hypothesis
Step 1: H0: 𝑃1 = 𝑃1
[There is no significant difference in likeness of the two brands]
Step 2: H1: 𝑃1 ≠ 𝑃1
[There is significant difference in likeness of the two brands]
(Two-tailed test)
Data in SPSS
50 students were given
Starbucks coffee and
remaining 50 were given
CCD coffee. Coffee were
served to them without
brand labels. 42 students
liked the taste of Starbucks
coffee while 45 students
liked the taste of CCD
coffee
Assigning weights
Chi-Square test
Chi-Square test
Chi-Square test
Output
The Chi-square value is 0.796 and
p value = 0.372 > 0.05.
We fail to reject the Null hypothesis.
∴ There is no significant difference in likeness of the two
brands among under-graduate students
Z=
𝑝1 − 𝑝2
𝑃∗𝑄 (
1
𝑛1
+
1
𝑛2
)
=
0.84−0.90
0.87∗0.13 (
1
50
+
1
50
)
= 0.8955
Chi-Square = Square of z value
THANK YOU
Dr Parag Shah | M.Sc., M.Phil., Ph.D. ( Statistics)
pbshah@hlcollege.edu
www.paragstatistics.wordpress.com

More Related Content

PPT
Independent sample t test
PPT
Bivariate analysis
PPTX
What is a two sample z test?
PPTX
PPTX
Logistic regression with SPSS
PPTX
Inferential statistics
PPTX
Spearman rank correlation coefficient
PPTX
What is a single sample t test?
Independent sample t test
Bivariate analysis
What is a two sample z test?
Logistic regression with SPSS
Inferential statistics
Spearman rank correlation coefficient
What is a single sample t test?

What's hot (20)

PPTX
Sampling and statistical inference
PPTX
The Central Limit Theorem
PPTX
INFERENTIAL TECHNIQUES. Inferential Stat. pt 3
PPT
Hypothesis
PPT
PDF
Scales of Measurement - Statistics
PPT
Sampling distribution
DOC
Mc Nemar
PDF
Categorical data analysis
PPTX
T test for one sample mean
PPTX
Deciles & Quartiles - Point Measures
PPTX
Systematic sampling
PPTX
Hypothesis Testing
PPTX
Chapter 2: Frequency Distribution and Graphs
PDF
Chi square Test Using SPSS
PPT
Business Statistics Chapter 9
PDF
Hypothesis testing an introduction
PPT
LECTURE 1 ONE SAMPLE T TEST.ppt
PPT
Two sample t-test
PPTX
Sampling and statistical inference
The Central Limit Theorem
INFERENTIAL TECHNIQUES. Inferential Stat. pt 3
Hypothesis
Scales of Measurement - Statistics
Sampling distribution
Mc Nemar
Categorical data analysis
T test for one sample mean
Deciles & Quartiles - Point Measures
Systematic sampling
Hypothesis Testing
Chapter 2: Frequency Distribution and Graphs
Chi square Test Using SPSS
Business Statistics Chapter 9
Hypothesis testing an introduction
LECTURE 1 ONE SAMPLE T TEST.ppt
Two sample t-test
Ad

Similar to Proportion test using Chi square (20)

PPTX
Hypothesis test business research methods presentation
PPTX
Test hypothesis
PPTX
Test the significant for large sample maths mini project
PDF
BasicStatistics.pdf
PPTX
hypothesis teesting
PPTX
TEST-ON-POPULATION-MEANkjgnkdngjdkr.pptx
PDF
HypothesisTesting_HANDOUT.pdf
PPT
Identifying Appropriate Test Statistics Involving Population Mean
PPT
Market Research Presentation - Hypothesis Testing
PPTX
hypothesis testing-tests of proportions and variances in six sigma
PPT
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
PPTX
Non parametric-tests
PPT
Lesson05_Static11
PPTX
CrashCourse_0622
PPT
10. sampling and hypotehsis
PDF
Inferential Statistics.pdf
PPT
Ch5 Hypothesis Testing
PPTX
Basics of Hypothesis testing for Pharmacy
PDF
Testing of Hypothesis.pdf
PPT
MktRes-MARK7362-Lecture4_002_hypothesis_testing.ppt
Hypothesis test business research methods presentation
Test hypothesis
Test the significant for large sample maths mini project
BasicStatistics.pdf
hypothesis teesting
TEST-ON-POPULATION-MEANkjgnkdngjdkr.pptx
HypothesisTesting_HANDOUT.pdf
Identifying Appropriate Test Statistics Involving Population Mean
Market Research Presentation - Hypothesis Testing
hypothesis testing-tests of proportions and variances in six sigma
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Non parametric-tests
Lesson05_Static11
CrashCourse_0622
10. sampling and hypotehsis
Inferential Statistics.pdf
Ch5 Hypothesis Testing
Basics of Hypothesis testing for Pharmacy
Testing of Hypothesis.pdf
MktRes-MARK7362-Lecture4_002_hypothesis_testing.ppt
Ad

More from Parag Shah (16)

PPTX
Basic Statistics in 1 hour.pptx
PPTX
Non- Parametric Tests
PPTX
Correlation & Regression Analysis using SPSS
PPTX
Chi square tests using spss
PPTX
Chi square tests using SPSS
PPTX
t test using spss
PPTX
Exploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
PPTX
Probability
PPTX
Basic stat analysis using excel
PPTX
Statistical inference: Estimation
PPTX
Small sample test
PPTX
F test and ANOVA
PPTX
Testing of hypothesis - Chi-Square test
PPTX
Testing of hypothesis - large sample test
PPTX
Statistics for Physical Education
PPTX
Career option for stats
Basic Statistics in 1 hour.pptx
Non- Parametric Tests
Correlation & Regression Analysis using SPSS
Chi square tests using spss
Chi square tests using SPSS
t test using spss
Exploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Probability
Basic stat analysis using excel
Statistical inference: Estimation
Small sample test
F test and ANOVA
Testing of hypothesis - Chi-Square test
Testing of hypothesis - large sample test
Statistics for Physical Education
Career option for stats

Recently uploaded (20)

PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
Business Acumen Training GuidePresentation.pptx
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PPTX
climate analysis of Dhaka ,Banglades.pptx
PPTX
Introduction to machine learning and Linear Models
PDF
Fluorescence-microscope_Botany_detailed content
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PDF
Foundation of Data Science unit number two notes
PDF
.pdf is not working space design for the following data for the following dat...
PDF
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
PPTX
Business Ppt On Nestle.pptx huunnnhhgfvu
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PPTX
Qualitative Qantitative and Mixed Methods.pptx
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
Supervised vs unsupervised machine learning algorithms
Business Acumen Training GuidePresentation.pptx
Galatica Smart Energy Infrastructure Startup Pitch Deck
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Introduction to Knowledge Engineering Part 1
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
climate analysis of Dhaka ,Banglades.pptx
Introduction to machine learning and Linear Models
Fluorescence-microscope_Botany_detailed content
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
Foundation of Data Science unit number two notes
.pdf is not working space design for the following data for the following dat...
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
Business Ppt On Nestle.pptx huunnnhhgfvu
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
Qualitative Qantitative and Mixed Methods.pptx

Proportion test using Chi square

  • 2. TEST FOR PROPORTION(S) There are mainly two tests for proportion • Test for single proportion • Test for significant difference between proportion of two samples SPSS does not have Z test to test the proportion(s). But Chi-Square test can be used to the test the proportion in SPSS.
  • 3. Chi- Square Statistic If X~𝑁(𝜇, 𝜎2) then 𝑍 = 𝑋−𝜇 𝜎 ~𝑁(0,1) and 𝑍2 = 𝑋−𝜇 𝜎 2 ~𝜒2 with 1 d.f. and 𝑋−𝜇 𝜎 2 ~𝜒2 with n d.f.
  • 4. Test of Single Proportion Step 1: Null hypothesis H0: 𝑃 = 𝑃0 Step 2: Alternative hypothesis H1: 𝑃 ≠ 𝑃0 or 𝑃 > 𝑃0 or 𝑃 < 𝑃0 Step 3: Test statistics 𝑧 = 𝑝 −𝑃0 𝑃0 ∗𝑄0 𝑛 Denominator is the Standard Error of sample proportion i.e. S.E.(𝑝) Step 4: Table value of z at 𝛼 % level of significance Step 5: If z ≤ z table value, H0 is Accepted If z > z table value, H0 is Rejected
  • 5. Test of Single Proportion Step 1: Null hypothesis H0: 𝑃 = 𝑃0 Step 2: Alternative hypothesis H1: 𝑃 ≠ 𝑃0 or 𝑃 > 𝑃0 or 𝑃 < 𝑃0 Step 3: Check Assumptions Step 4: Test statistic – Chi-square and p value Step 5: Conclusion • If p ≤ Level of significance (∝), We Reject Null hypothesis • If p > Level of significance (∝), We fail to Reject Null hypothesis
  • 6. Case Study The CEO of a large water pump manufacturing company claims that more than 80 percent of his customers are satisfied with the water pump. To test this claim, the local newspaper surveyed 100 customers, using simple random sampling. Among the sampled customers, 73 percent say they are very satisfied. Based on these findings, what can we say about the manufacturer’s claim ? Use a 0.05 level of significance.
  • 7. Null & Alternative Hypothesis Step 1: H0: P = 0.80 [Not more than 80% of the customers are satisfied ] Step 2: H1: P > 0.80 [More than 80% of the customers are satisfied ] (One-tailed test)
  • 8. Data in SPSS The local newspaper surveyed 100 customers, using simple random sampling. Among the sampled customers, 73 percent say they are very satisfied
  • 12. Output The Chi-square value is 3.063 and p value = (0.080)/ 2 = 0.04 As p < 0.05, We reject the Null hypothesis. ∴ More than 80% of the customers are satisfied 𝑧 = 𝑝 −𝑃 𝑃∗𝑄 𝑛 = 0.73 −0.80 0.80∗0.20 100 = 1.75 Chi-Square = Square of z value
  • 13. Test of significance of difference between two proportions Step 1: Null hypothesis H0: 𝑃1= 𝑃2 Step 2: Alternative hypothesis H1: 𝑃1 ≠ 𝑃2 or 𝑃1 > 𝑃2 or 𝑃1 < 𝑃2 Step 3: Test statistics 𝑧 = 𝑝1 − 𝑝2 𝑃1∗𝑄1 𝑛1 + 𝑃2∗𝑄2 𝑛2 or 𝑝1 − 𝑝2 𝑃∗𝑄 ( 1 𝑛1 + 1 𝑛2 ) where 𝑃 = 𝑛1𝑝1+𝑛2𝑝2 𝑛1+𝑛2 Denominator is the Standard Error of difference in sample proportion i.e. S.E.(𝑝1 − 𝑝2) Step 4: Table value of z at 𝛼 % level of significance Step 5: If z ≤ z table value, H0 is Accepted If z > z table value, H0 is Rejected
  • 14. Z test for two proportions Step 1: Null hypothesis H0: 𝑃1 = 𝑃2 Step 2: Alternative hypothesis H1: 𝑃1≠ 𝑃2 or 𝑃1 > 𝑃2 or 𝑃1 < 𝑃2 Step 3: Check Assumptions Step 4: Test statistic – Chi-square and p value Step 5: Conclusion • If p ≤ Level of significance (∝), We Reject Null hypothesis • If p > Level of significance (∝), We fail to Reject Null hypothesis Assumptions Tests 𝑛1 × 𝑝1 > 10 and 𝑛1 × (1 − 𝑝1) > 10 𝑛2 × 𝑝2 > 10 and 𝑛2 × (1 − 𝑝2) > 10 ____
  • 15. Case Study Two brands of coffee - Starbucks and CCD were to be compared. A sample of 100 under- graduate students were selected and of them randomly 50 students were given Starbucks coffee and remaining 50 were given CCD coffee. Coffee were served to them without brand labels. 42 students liked the taste of Starbucks coffee while 45 students liked the taste of CCD coffee. Is there a significant difference in likeness of the two brands for the under-graduate students?
  • 16. Null & Alternative Hypothesis Step 1: H0: 𝑃1 = 𝑃1 [There is no significant difference in likeness of the two brands] Step 2: H1: 𝑃1 ≠ 𝑃1 [There is significant difference in likeness of the two brands] (Two-tailed test)
  • 17. Data in SPSS 50 students were given Starbucks coffee and remaining 50 were given CCD coffee. Coffee were served to them without brand labels. 42 students liked the taste of Starbucks coffee while 45 students liked the taste of CCD coffee
  • 22. Output The Chi-square value is 0.796 and p value = 0.372 > 0.05. We fail to reject the Null hypothesis. ∴ There is no significant difference in likeness of the two brands among under-graduate students Z= 𝑝1 − 𝑝2 𝑃∗𝑄 ( 1 𝑛1 + 1 𝑛2 ) = 0.84−0.90 0.87∗0.13 ( 1 50 + 1 50 ) = 0.8955 Chi-Square = Square of z value
  • 23. THANK YOU Dr Parag Shah | M.Sc., M.Phil., Ph.D. ( Statistics) pbshah@hlcollege.edu www.paragstatistics.wordpress.com