SlideShare a Scribd company logo
1 of 55
t test using SPSS
Deciding Test
Parameter
Categorical
(Binary)
Scale
Scale
t test
for
single mean
Step 1: Null hypothesis H0: πœ‡ = πœ‡0
Step 2: Alternative hypothesis H1: πœ‡ β‰  πœ‡0 or πœ‡ > πœ‡0 or πœ‡ < πœ‡0
Step 3: Check Assumptions
Step 4: Test statistic – t 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
The population from which the sample
drawn is assumed as Normal distribution
Shapiro-Wilks
/ qq plot
The population variance 𝜎2 is unknown ____
Example 1.
Based on field experiments, a new variety of green gram is expected to give an average yield
of 12.0 quintals per hectare. The variety was tested on 10 randomly selected farmer’s fields.
The yield (quintals/hectare) were recorded as
14.3,12.6,13.7,10.9,13.7,12.0,11.4,12.0,12.6,13.1.
(File Name: Green_gram.xlsx)
Do the results confirm to the expectation?
Null & Alternative
Hypothesis
Step 1: Null hypothesis H0: πœ‡ = 12
[Average yield is 12 quintals per hectare ]
Step 2: Alternative hypothesis H1: πœ‡ β‰  12 ( Two-tailed test)
[Average yield is not 12 quintals per hectare ]
Step 3:
Normality Check
Here p = 0.891 > 0.05
Yield of green gram is normally distributed
Output
Here the points are almost close to
the line, so we can say that Yield of
green gram is normally distributed
Output
Step 4:
Test statistic – t
and p value
Step 5:
Here, the test statistic- t value = 1.836 and p = 0.100 > 0.05
So we fail to reject the Null hypothesis at 5% level of significance
Thus, new variety of green gram is expected to give a yield of 12.0 quintals per
Output
Example 2
A researcher is investigating hemoglobin levels of school girls in a particular area. 15 school
girls were randomly selected and their hemoglobin level is as follows. Does the data reveal
that average hemoglobin level among school girls is more than 11.5? Use 5 % level of
significance. (File Name: Hb_girls.xlsx)
11.9 11.5 11.1 10.6 10.4 12 10.9 11.6 11.4 11.6 11.8 11.5 10.9 11.2 11.7
Null &
Alternative
Hypothesis
Step 1: Null hypothesis H0: πœ‡ = 11.5
[Average haemoglobin level is not more than 11.5]
Step 2: Alternative hypothesis H1: πœ‡ > 11.5 ( One-tailed test)
[Average haemoglobin level is more than 11.5]
Step 3:
Normality Check
Here p = 0.505 > 0.05
Data of Haemoglobin level among 15 girls is normally distributed
Output
Here the points are almost
close to the line, so we can say
that
Hb is normally distributed
Output
Step 4:
Test statistic – t
and p value
Step 5:
Here, the test statistic- t value = -1.301 and p = 0.214 ( for two-tailed)
∴ p value for one-tailed will be (0.214/2) = 0.107 > 0.05
So we fail to reject the Null hypothesis at 5% level of significance
Thus, average hemoglobin level among school girls is not more than 11.5.
Output
t test
for
means of two
independent
samples
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 – t 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
The population from which two samples drawn are
assumed as Normal distribution
Shapiro-Wilks
/ qq plot
Two population variance are unknown
(Equal / Unequal)
F test
The two samples are independently distributed ____
t test for Equal Variances t test for Unequal Variances
(Welch t test)
d.f. =
where
Example 1.
In a fertilizer trial, the grain yield of paddy (Kg/plot) was observed as follows:
(File Name: Fertilizers.xlsx)
Under ammonium_chloride 42, 39, 38, 60, 41
Under urea 38, 42, 56, 64, 68, 69, 62
Find whether there is any difference between the sources of nitrogen?
Null & Alternative
Hypothesis
Step 1: Null hypothesis H0: πœ‡1= πœ‡2
[There is no significant difference between the sources of
nitrogen]
Step 2: Alternative hypothesis H1: πœ‡1 β‰  πœ‡2 ( Two-tailed test)
[There is no significant difference between the sources of
nitrogen]
Step 3:
Normality Check
For Ammonium Chloride, p = 0.967 > 0.05. So, data of yield of paddy under
Ammonium chloride is normally distributed.
For Urea, p = 0.172 > 0.05. So, data of yield of paddy under urea is normally
distributed.
Output
Here the points are almost close to the line, so we can say that both the data is
normally distributed
Output
Step 4:
Test statistic – t
and p value
Before testing equality of two means, we have to test equality of two variances.
Here, the test statistic- F value = 9.872 and p = 0.010 < 0.05
So we reject the Null hypothesis at 5% level of significance
∴ Variances are not equal
Output
Step 5:
Here, the test statistic- t value = -3.580 and p = 0.011 < 0.05
So we reject the Null hypothesis at 5% level of significance
Thus, there is difference in the yield of paddy because of sources of nitrogen.
Output
Example 2
Researchers wished to know if body temperature of males is less than that of
females. He took a random sample of 51 females and 49 males and measured their
body temperature. (Data: bodytemperature.txt)
What should the researchers conclude?
Null & Alternative
Hypothesis
Let πœ‡1 = average body temperature of males
and πœ‡2 = average body temperature of females
Step 1: Null hypothesis H0: πœ‡1= πœ‡2
[ Body temp. of males is not less than that of females]
Step 2: Alternative hypothesis H1: πœ‡1< πœ‡2
[ Body temp. of males is not less than that females]
( One-tailed test)
Step 3:
Normality Check
For females, p = 721 > 0.05. So, data of body temperature of females is normally
distributed.
For males, p = 0.135 > 0.05. So, data of body temperature of males is normally
distributed.
Output
Here the points are almost close to the line, so we can say that data of body
temperature of females and males is normally distributed
Output
Step 4:
Test statistic – t
and p value
Before testing equality of two means, we have to test equality of two variances.
Here, the test statistic- F value = 2.248 and p = 0.137 > 0.05
So we fail to reject the Null hypothesis at 5% level of significance
∴ Variances are equal
Output
Step 5:
Here, the test statistic- t value = -1.353 and p = (0.177/2) = 0.0885 > 0.05
So we fail to reject the Null hypothesis at 5% level of significance
Thus, body temp. of males is not less than that of females
Output
t test
for
means of two
dependent
samples
(Paired t test)
Step 1: Null hypothesis H0: 𝑑 = 0
Step 2: Alternative hypothesis H1: 𝑑 β‰  0 , 𝑑 > 0, 𝑑 < 0
Step 3: Check Assumptions
Step 4: Test statistic – t 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
The difference between the two samples
are normally distributed.
Shapiro-Wilks
/ qq plot
The difference between the two samples
are independently distributed
____
The two samples are independently
distributed
____
Example 1
The iron contents of fruits before and after applying farm yard manure was observed as follows:
Fruit No: 1 2 3 4 5 6 7 8 9 10
Before Applying 7.7 8.5 7.2 6.3 8.1 5.2 6.5 9.4 8.3 7.5
After Applying 8.1 8.9 7.0 6.1 8.2 8.0 5.8 8.9 8.7 8.0
Is there any significant difference between the mean iron contents in the fruits after applying the
farm yarn manure? (File Name: Fruit_iron_content.xlsx)
Null &
Alternative
Hypothesis
Step 1: Null hypothesis H0: 𝑑 = 0
[There is no significant difference between the mean iron
contents in the fruits after applying the farm yarn manure]
Step 2: Alternative hypothesis H1: 𝑑 β‰  0 ( two-tailed test)
[There is significant difference between the mean iron contents in
the fruits after applying the farm yarn manure]
Step 3: Normality Check
For difference, p = 0.536 > 0.05. So, data of difference is normally distributed
Output
Here the points are almost close to
the line, so we can say that data of
body temperature of females and
males is normally distributed
Output
Step 4:
Test statistic – t
and p value
Here, the test statistic- t value = -0.655 and p = 0.529 > 0.05
So we fail to reject the Null hypothesis at 5% level of significance
∴ There is no significant difference between the mean iron contents in the fruits
after applying the farm yarn manure
Output
THANK YOU
Dr Parag Shah | M.Sc., M.Phil., Ph.D. ( Statistics)
pbshah@hlcollege.edu
www.paragstatistics.wordpress.com

More Related Content

What's hot

introduction to spss
introduction to spssintroduction to spss
introduction to spss
Omid Minooee
Β 
Research method ch07 statistical methods 1
Research method ch07 statistical methods 1Research method ch07 statistical methods 1
Research method ch07 statistical methods 1
naranbatn
Β 
Dependent v. independent variables
Dependent v. independent variablesDependent v. independent variables
Dependent v. independent variables
Tarun Gehlot
Β 
Inferential statistics.ppt
Inferential statistics.pptInferential statistics.ppt
Inferential statistics.ppt
Nursing Path
Β 
Test of hypothesis
Test of hypothesisTest of hypothesis
Test of hypothesis
vikramlawand
Β 

What's hot (20)

introduction to spss
introduction to spssintroduction to spss
introduction to spss
Β 
Introduction To SPSS
Introduction To SPSSIntroduction To SPSS
Introduction To SPSS
Β 
T test statistics
T test statisticsT test statistics
T test statistics
Β 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
Β 
Research method ch07 statistical methods 1
Research method ch07 statistical methods 1Research method ch07 statistical methods 1
Research method ch07 statistical methods 1
Β 
Dependent v. independent variables
Dependent v. independent variablesDependent v. independent variables
Dependent v. independent variables
Β 
Quasi Experimental Research Designs
Quasi Experimental Research DesignsQuasi Experimental Research Designs
Quasi Experimental Research Designs
Β 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
Β 
Inferential statistics.ppt
Inferential statistics.pptInferential statistics.ppt
Inferential statistics.ppt
Β 
Statistics "Descriptive & Inferential"
Statistics "Descriptive & Inferential"Statistics "Descriptive & Inferential"
Statistics "Descriptive & Inferential"
Β 
Test of hypothesis
Test of hypothesisTest of hypothesis
Test of hypothesis
Β 
Analysis of data in research
Analysis of data in researchAnalysis of data in research
Analysis of data in research
Β 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Β 
Quantitative Data Analysis
Quantitative Data AnalysisQuantitative Data Analysis
Quantitative Data Analysis
Β 
Choosing a statistical test
Choosing a statistical testChoosing a statistical test
Choosing a statistical test
Β 
data analysis techniques and statistical softwares
data analysis techniques and statistical softwaresdata analysis techniques and statistical softwares
data analysis techniques and statistical softwares
Β 
Lesson 2 selection of research topic
Lesson 2 selection of research topicLesson 2 selection of research topic
Lesson 2 selection of research topic
Β 
Hypothesis testing1
Hypothesis testing1Hypothesis testing1
Hypothesis testing1
Β 
Introduction to spss
Introduction to spssIntroduction to spss
Introduction to spss
Β 
multiple linear regression in spss (procedure and output)
multiple linear regression in spss (procedure and output)multiple linear regression in spss (procedure and output)
multiple linear regression in spss (procedure and output)
Β 

Similar to t test using spss

Intro to tests of significance qualitative
Intro to tests of significance qualitativeIntro to tests of significance qualitative
Intro to tests of significance qualitative
Pandurangi Raghavendra
Β 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic Logic
Sumit Prajapati
Β 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic Logic
Sumit Prajapati
Β 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic Logic
ghalan
Β 
Hypothesis Testing Lesson 1
Hypothesis Testing Lesson 1Hypothesis Testing Lesson 1
Hypothesis Testing Lesson 1
yhchung
Β 

Similar to t test using spss (20)

10. sampling and hypotehsis
10. sampling and hypotehsis10. sampling and hypotehsis
10. sampling and hypotehsis
Β 
Test of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square testTest of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square test
Β 
Test of significance
Test of significanceTest of significance
Test of significance
Β 
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Β 
Ch5 Hypothesis Testing
Ch5 Hypothesis TestingCh5 Hypothesis Testing
Ch5 Hypothesis Testing
Β 
Basics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for PharmacyBasics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for Pharmacy
Β 
Intro to tests of significance qualitative
Intro to tests of significance qualitativeIntro to tests of significance qualitative
Intro to tests of significance qualitative
Β 
Interim analysis in clinical trials (1)
Interim analysis in clinical trials (1)Interim analysis in clinical trials (1)
Interim analysis in clinical trials (1)
Β 
8. testing of hypothesis for variable &amp; attribute data
8. testing of hypothesis for variable &amp; attribute  data8. testing of hypothesis for variable &amp; attribute  data
8. testing of hypothesis for variable &amp; attribute data
Β 
Lect w6 hypothesis_testing
Lect w6 hypothesis_testingLect w6 hypothesis_testing
Lect w6 hypothesis_testing
Β 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic Logic
Β 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic Logic
Β 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
Β 
Unit 4 Tests of Significance
Unit 4 Tests of SignificanceUnit 4 Tests of Significance
Unit 4 Tests of Significance
Β 
Non parametric-tests
Non parametric-testsNon parametric-tests
Non parametric-tests
Β 
Hypothesis Testing with ease
Hypothesis Testing with easeHypothesis Testing with ease
Hypothesis Testing with ease
Β 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic Logic
Β 
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...
Β 
Hypothesis Testing Lesson 1
Hypothesis Testing Lesson 1Hypothesis Testing Lesson 1
Hypothesis Testing Lesson 1
Β 
Non parametric test- MANN WHITNEY U TEST.pptx
Non parametric test- MANN WHITNEY U TEST.pptxNon parametric test- MANN WHITNEY U TEST.pptx
Non parametric test- MANN WHITNEY U TEST.pptx
Β 

More from Parag Shah

More from Parag Shah (16)

Basic Statistics in 1 hour.pptx
Basic Statistics in 1 hour.pptxBasic Statistics in 1 hour.pptx
Basic Statistics in 1 hour.pptx
Β 
Non- Parametric Tests
Non- Parametric TestsNon- Parametric Tests
Non- Parametric Tests
Β 
Correlation & Regression Analysis using SPSS
Correlation & Regression Analysis  using SPSSCorrelation & Regression Analysis  using SPSS
Correlation & Regression Analysis using SPSS
Β 
Proportion test using Chi square
Proportion test using Chi squareProportion test using Chi square
Proportion test using Chi square
Β 
Chi square tests using spss
Chi square tests using spssChi square tests using spss
Chi square tests using spss
Β 
Chi square tests using SPSS
Chi square tests using SPSSChi square tests using SPSS
Chi square tests using SPSS
Β 
Exploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Exploratory Data Analysis for Biotechnology and Pharmaceutical SciencesExploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Exploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Β 
Probability
Probability    Probability
Probability
Β 
Basic stat analysis using excel
Basic stat analysis using excelBasic stat analysis using excel
Basic stat analysis using excel
Β 
Statistical inference: Estimation
Statistical inference: EstimationStatistical inference: Estimation
Statistical inference: Estimation
Β 
Small sample test
Small sample testSmall sample test
Small sample test
Β 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVA
Β 
Testing of hypothesis - Chi-Square test
Testing of hypothesis - Chi-Square testTesting of hypothesis - Chi-Square test
Testing of hypothesis - Chi-Square test
Β 
Testing of hypothesis - large sample test
Testing of hypothesis - large sample testTesting of hypothesis - large sample test
Testing of hypothesis - large sample test
Β 
Statistics for Physical Education
Statistics for Physical EducationStatistics for Physical Education
Statistics for Physical Education
Β 
Career option for stats
Career option for statsCareer option for stats
Career option for stats
Β 

Recently uploaded

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
Β 

Recently uploaded (20)

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Β 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
Β 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
Β 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
Β 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
Β 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
Β 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
Β 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
Β 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
Β 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
Β 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
Β 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
Β 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
Β 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
Β 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
Β 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Β 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
Β 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
Β 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
Β 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
Β 

t test using spss

  • 3. t test for single mean Step 1: Null hypothesis H0: πœ‡ = πœ‡0 Step 2: Alternative hypothesis H1: πœ‡ β‰  πœ‡0 or πœ‡ > πœ‡0 or πœ‡ < πœ‡0 Step 3: Check Assumptions Step 4: Test statistic – t 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 The population from which the sample drawn is assumed as Normal distribution Shapiro-Wilks / qq plot The population variance 𝜎2 is unknown ____
  • 4. Example 1. Based on field experiments, a new variety of green gram is expected to give an average yield of 12.0 quintals per hectare. The variety was tested on 10 randomly selected farmer’s fields. The yield (quintals/hectare) were recorded as 14.3,12.6,13.7,10.9,13.7,12.0,11.4,12.0,12.6,13.1. (File Name: Green_gram.xlsx) Do the results confirm to the expectation?
  • 5. Null & Alternative Hypothesis Step 1: Null hypothesis H0: πœ‡ = 12 [Average yield is 12 quintals per hectare ] Step 2: Alternative hypothesis H1: πœ‡ β‰  12 ( Two-tailed test) [Average yield is not 12 quintals per hectare ]
  • 7.
  • 8. Here p = 0.891 > 0.05 Yield of green gram is normally distributed Output
  • 9. Here the points are almost close to the line, so we can say that Yield of green gram is normally distributed Output
  • 10. Step 4: Test statistic – t and p value
  • 11.
  • 12. Step 5: Here, the test statistic- t value = 1.836 and p = 0.100 > 0.05 So we fail to reject the Null hypothesis at 5% level of significance Thus, new variety of green gram is expected to give a yield of 12.0 quintals per Output
  • 13. Example 2 A researcher is investigating hemoglobin levels of school girls in a particular area. 15 school girls were randomly selected and their hemoglobin level is as follows. Does the data reveal that average hemoglobin level among school girls is more than 11.5? Use 5 % level of significance. (File Name: Hb_girls.xlsx) 11.9 11.5 11.1 10.6 10.4 12 10.9 11.6 11.4 11.6 11.8 11.5 10.9 11.2 11.7
  • 14. Null & Alternative Hypothesis Step 1: Null hypothesis H0: πœ‡ = 11.5 [Average haemoglobin level is not more than 11.5] Step 2: Alternative hypothesis H1: πœ‡ > 11.5 ( One-tailed test) [Average haemoglobin level is more than 11.5]
  • 16.
  • 17. Here p = 0.505 > 0.05 Data of Haemoglobin level among 15 girls is normally distributed Output
  • 18. Here the points are almost close to the line, so we can say that Hb is normally distributed Output
  • 19. Step 4: Test statistic – t and p value
  • 20.
  • 21. Step 5: Here, the test statistic- t value = -1.301 and p = 0.214 ( for two-tailed) ∴ p value for one-tailed will be (0.214/2) = 0.107 > 0.05 So we fail to reject the Null hypothesis at 5% level of significance Thus, average hemoglobin level among school girls is not more than 11.5. Output
  • 22. t test for means of two independent samples 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 – t 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 The population from which two samples drawn are assumed as Normal distribution Shapiro-Wilks / qq plot Two population variance are unknown (Equal / Unequal) F test The two samples are independently distributed ____
  • 23. t test for Equal Variances t test for Unequal Variances (Welch t test) d.f. = where
  • 24. Example 1. In a fertilizer trial, the grain yield of paddy (Kg/plot) was observed as follows: (File Name: Fertilizers.xlsx) Under ammonium_chloride 42, 39, 38, 60, 41 Under urea 38, 42, 56, 64, 68, 69, 62 Find whether there is any difference between the sources of nitrogen?
  • 25. Null & Alternative Hypothesis Step 1: Null hypothesis H0: πœ‡1= πœ‡2 [There is no significant difference between the sources of nitrogen] Step 2: Alternative hypothesis H1: πœ‡1 β‰  πœ‡2 ( Two-tailed test) [There is no significant difference between the sources of nitrogen]
  • 27.
  • 28. For Ammonium Chloride, p = 0.967 > 0.05. So, data of yield of paddy under Ammonium chloride is normally distributed. For Urea, p = 0.172 > 0.05. So, data of yield of paddy under urea is normally distributed. Output
  • 29. Here the points are almost close to the line, so we can say that both the data is normally distributed Output
  • 30. Step 4: Test statistic – t and p value
  • 31.
  • 32. Before testing equality of two means, we have to test equality of two variances. Here, the test statistic- F value = 9.872 and p = 0.010 < 0.05 So we reject the Null hypothesis at 5% level of significance ∴ Variances are not equal Output
  • 33. Step 5: Here, the test statistic- t value = -3.580 and p = 0.011 < 0.05 So we reject the Null hypothesis at 5% level of significance Thus, there is difference in the yield of paddy because of sources of nitrogen. Output
  • 34. Example 2 Researchers wished to know if body temperature of males is less than that of females. He took a random sample of 51 females and 49 males and measured their body temperature. (Data: bodytemperature.txt) What should the researchers conclude?
  • 35. Null & Alternative Hypothesis Let πœ‡1 = average body temperature of males and πœ‡2 = average body temperature of females Step 1: Null hypothesis H0: πœ‡1= πœ‡2 [ Body temp. of males is not less than that of females] Step 2: Alternative hypothesis H1: πœ‡1< πœ‡2 [ Body temp. of males is not less than that females] ( One-tailed test)
  • 37.
  • 38. For females, p = 721 > 0.05. So, data of body temperature of females is normally distributed. For males, p = 0.135 > 0.05. So, data of body temperature of males is normally distributed. Output
  • 39. Here the points are almost close to the line, so we can say that data of body temperature of females and males is normally distributed Output
  • 40. Step 4: Test statistic – t and p value
  • 41.
  • 42. Before testing equality of two means, we have to test equality of two variances. Here, the test statistic- F value = 2.248 and p = 0.137 > 0.05 So we fail to reject the Null hypothesis at 5% level of significance ∴ Variances are equal Output
  • 43. Step 5: Here, the test statistic- t value = -1.353 and p = (0.177/2) = 0.0885 > 0.05 So we fail to reject the Null hypothesis at 5% level of significance Thus, body temp. of males is not less than that of females Output
  • 44. t test for means of two dependent samples (Paired t test) Step 1: Null hypothesis H0: 𝑑 = 0 Step 2: Alternative hypothesis H1: 𝑑 β‰  0 , 𝑑 > 0, 𝑑 < 0 Step 3: Check Assumptions Step 4: Test statistic – t 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 The difference between the two samples are normally distributed. Shapiro-Wilks / qq plot The difference between the two samples are independently distributed ____ The two samples are independently distributed ____
  • 45. Example 1 The iron contents of fruits before and after applying farm yard manure was observed as follows: Fruit No: 1 2 3 4 5 6 7 8 9 10 Before Applying 7.7 8.5 7.2 6.3 8.1 5.2 6.5 9.4 8.3 7.5 After Applying 8.1 8.9 7.0 6.1 8.2 8.0 5.8 8.9 8.7 8.0 Is there any significant difference between the mean iron contents in the fruits after applying the farm yarn manure? (File Name: Fruit_iron_content.xlsx)
  • 46. Null & Alternative Hypothesis Step 1: Null hypothesis H0: 𝑑 = 0 [There is no significant difference between the mean iron contents in the fruits after applying the farm yarn manure] Step 2: Alternative hypothesis H1: 𝑑 β‰  0 ( two-tailed test) [There is significant difference between the mean iron contents in the fruits after applying the farm yarn manure]
  • 48.
  • 49.
  • 50. For difference, p = 0.536 > 0.05. So, data of difference is normally distributed Output
  • 51. Here the points are almost close to the line, so we can say that data of body temperature of females and males is normally distributed Output
  • 52. Step 4: Test statistic – t and p value
  • 53.
  • 54. Here, the test statistic- t value = -0.655 and p = 0.529 > 0.05 So we fail to reject the Null hypothesis at 5% level of significance ∴ There is no significant difference between the mean iron contents in the fruits after applying the farm yarn manure Output
  • 55. THANK YOU Dr Parag Shah | M.Sc., M.Phil., Ph.D. ( Statistics) pbshah@hlcollege.edu www.paragstatistics.wordpress.com