SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Lecture2 hypothesis testing
Lecture2 hypothesis testingLecture2 hypothesis testing
Lecture2 hypothesis testingo_devinyak
 
Mann Whitney U Test
Mann Whitney U TestMann Whitney U Test
Mann Whitney U TestJohn Barlow
 
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 anovaQasim Raza
 
Estimation and hypothesis testing 1 (graduate statistics2)
Estimation and hypothesis testing 1 (graduate statistics2)Estimation and hypothesis testing 1 (graduate statistics2)
Estimation and hypothesis testing 1 (graduate statistics2)Harve Abella
 
One-Sample Hypothesis Tests
One-Sample Hypothesis TestsOne-Sample Hypothesis Tests
One-Sample Hypothesis TestsSr Edith Bogue
 
Inferential statistics.ppt
Inferential statistics.pptInferential statistics.ppt
Inferential statistics.pptNursing Path
 
Review & Hypothesis Testing
Review & Hypothesis TestingReview & Hypothesis Testing
Review & Hypothesis TestingSr Edith Bogue
 
Basis of statistical inference
Basis of statistical inferenceBasis of statistical inference
Basis of statistical inferencezahidacademy
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis TestingKen Plummer
 
Formulating hypotheses
Formulating hypothesesFormulating hypotheses
Formulating hypothesesAniket Verma
 
Testing of hypotheses
Testing of hypothesesTesting of hypotheses
Testing of hypothesesRajThakuri
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regressionJames Neill
 

Was ist angesagt? (20)

Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
Inferential statistics
Inferential statisticsInferential statistics
Inferential statistics
 
Basics of Hypothesis Testing
Basics of Hypothesis Testing  Basics of Hypothesis Testing
Basics of Hypothesis Testing
 
Lecture2 hypothesis testing
Lecture2 hypothesis testingLecture2 hypothesis testing
Lecture2 hypothesis testing
 
Mann Whitney U Test
Mann Whitney U TestMann Whitney U Test
Mann Whitney U Test
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
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
 
Estimation and hypothesis testing 1 (graduate statistics2)
Estimation and hypothesis testing 1 (graduate statistics2)Estimation and hypothesis testing 1 (graduate statistics2)
Estimation and hypothesis testing 1 (graduate statistics2)
 
Two-Way ANOVA
Two-Way ANOVATwo-Way ANOVA
Two-Way ANOVA
 
One-Sample Hypothesis Tests
One-Sample Hypothesis TestsOne-Sample Hypothesis Tests
One-Sample Hypothesis Tests
 
Inferential statistics.ppt
Inferential statistics.pptInferential statistics.ppt
Inferential statistics.ppt
 
Testing Hypothesis
Testing HypothesisTesting Hypothesis
Testing Hypothesis
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
Review & Hypothesis Testing
Review & Hypothesis TestingReview & Hypothesis Testing
Review & Hypothesis Testing
 
Basis of statistical inference
Basis of statistical inferenceBasis of statistical inference
Basis of statistical inference
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
Confidence Intervals
Confidence IntervalsConfidence Intervals
Confidence Intervals
 
Formulating hypotheses
Formulating hypothesesFormulating hypotheses
Formulating hypotheses
 
Testing of hypotheses
Testing of hypothesesTesting of hypotheses
Testing of hypotheses
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 

Ähnlich wie t test using spss

10. sampling and hypotehsis
10. sampling and hypotehsis10. sampling and hypotehsis
10. sampling and hypotehsisKaran Kukreja
 
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 testdr.balan shaikh
 
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 ...The Stockker
 
Ch5 Hypothesis Testing
Ch5 Hypothesis TestingCh5 Hypothesis Testing
Ch5 Hypothesis TestingFarhan Alfin
 
Basics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for PharmacyBasics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for PharmacyParag Shah
 
Intro to tests of significance qualitative
Intro to tests of significance qualitativeIntro to tests of significance qualitative
Intro to tests of significance qualitativePandurangi Raghavendra
 
Interim analysis in clinical trials (1)
Interim analysis in clinical trials (1)Interim analysis in clinical trials (1)
Interim analysis in clinical trials (1)ADITYA CHAKRABORTY
 
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 dataHakeem-Ur- Rehman
 
Lect w6 hypothesis_testing
Lect w6 hypothesis_testingLect w6 hypothesis_testing
Lect w6 hypothesis_testingRione Drevale
 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic LogicSumit Prajapati
 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic LogicSumit Prajapati
 
Unit 4 Tests of Significance
Unit 4 Tests of SignificanceUnit 4 Tests of Significance
Unit 4 Tests of SignificanceRai University
 
Hypothesis Testing with ease
Hypothesis Testing with easeHypothesis Testing with ease
Hypothesis Testing with easeRupak Roy
 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic Logicghalan
 
Hypothesis Testing Lesson 1
Hypothesis Testing Lesson 1Hypothesis Testing Lesson 1
Hypothesis Testing Lesson 1yhchung
 
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.pptxDr. Chirag Sonkusare
 
Testing of hypothesis - large sample test
Testing of hypothesis - large sample testTesting of hypothesis - large sample test
Testing of hypothesis - large sample testParag Shah
 

Ähnlich wie 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
 
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
 
Testing of hypothesis - large sample test
Testing of hypothesis - large sample testTesting of hypothesis - large sample test
Testing of hypothesis - large sample test
 

Mehr von Parag Shah

Basic Statistics in 1 hour.pptx
Basic Statistics in 1 hour.pptxBasic Statistics in 1 hour.pptx
Basic Statistics in 1 hour.pptxParag Shah
 
Non- Parametric Tests
Non- Parametric TestsNon- Parametric Tests
Non- Parametric TestsParag Shah
 
Correlation & Regression Analysis using SPSS
Correlation & Regression Analysis  using SPSSCorrelation & Regression Analysis  using SPSS
Correlation & Regression Analysis using SPSSParag Shah
 
Proportion test using Chi square
Proportion test using Chi squareProportion test using Chi square
Proportion test using Chi squareParag Shah
 
Chi square tests using spss
Chi square tests using spssChi square tests using spss
Chi square tests using spssParag Shah
 
Chi square tests using SPSS
Chi square tests using SPSSChi square tests using SPSS
Chi square tests using SPSSParag Shah
 
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 SciencesParag Shah
 
Basic stat analysis using excel
Basic stat analysis using excelBasic stat analysis using excel
Basic stat analysis using excelParag Shah
 
Statistical inference: Estimation
Statistical inference: EstimationStatistical inference: Estimation
Statistical inference: EstimationParag Shah
 
Small sample test
Small sample testSmall sample test
Small sample testParag Shah
 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVAParag Shah
 
Testing of hypothesis - Chi-Square test
Testing of hypothesis - Chi-Square testTesting of hypothesis - Chi-Square test
Testing of hypothesis - Chi-Square testParag Shah
 
Statistics for Physical Education
Statistics for Physical EducationStatistics for Physical Education
Statistics for Physical EducationParag Shah
 
Career option for stats
Career option for statsCareer option for stats
Career option for statsParag Shah
 

Mehr von Parag Shah (15)

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
 
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
 

Kürzlich hochgeladen

Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
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 FellowsMebane Rash
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 

Kürzlich hochgeladen (20)

Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
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
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

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