SlideShare uma empresa Scribd logo
1 de 12
The t test




             1
Applications
 To compare the mean of a sample with
  population mean.
 To compare the mean of one sample

  with the mean of another independent
  sample.
 To compare between the values

  (readings) of one sample but in 2
  occasions.                        2
1.Sample mean and population
                mean
   The general steps of testing hypothesis must be
    followed.
   Ho: Sample mean=Population mean.
   Degrees of freedom = n - 1
                     −
          X −µ
      t =
           SE
                                                      3
Example
The following data represents hemoglobin values in
  gm/dl for 10 patients:
    10.5 9        6.5     8      11
    7      7.5    8.5     9.5    12

Is the mean value for patients significantly differ
   from the mean value of general population
(12 gm/dl) . Evaluate the role of chance.

                                                      4
Solution
   Mention all steps of testing hypothesis.

       8.95 − 12
    t=           = −5.352
       1.80201
               10
Then compare with tabulated value, for 9 df, and 5% level of
  significance. It is = 2.262
The calculated value>tabulated value.
Reject Ho and conclude that there is a statistically significant difference
  between the mean of sample and population mean, and this
  difference is unlikely due to chance.

                                                                          5
6
2.Two independent samples
The following data represents weight in Kg for 10
  males and 12 females.
Males:
           80    75   95    55        60
           70    75   72    80        65

Females:
            60   70   50   85    45    60
            80   65   70   62    77    82

                                                    7
2.Two independent samples, cont.

   Is there a statistically significant difference between
    the mean weight of males and females. Let alpha =
    0.01
   To solve it follow the steps and use this equation.
                          −
                              −
                       X1 − X 2
     t=
                   2              2
          (n1 − 1) S1 + (n 2 − 1) S 2 1   1
                                      ( + )
                 n1 + n 2 − 2          n1 n 2

                                                       8
Results
   Mean1=72.7         Mean2=67.17
   Variance1=128.46 Variance2=157.787
   Df = n1+n2-2=20
   t = 1.074
   The tabulated t, 2 sides, for alpha 0.01 is 2.845
   Then accept Ho and conclude that there is no
    significant difference between the 2 means. This
    difference may be due to chance.
   P>0.01
                                                    9
3.One sample in two occasions
   Mention steps of testing hypothesis.
   The df here = n – 1.
                −
        d
     t =
        sd
                 n

                     (∑ d ) 2
            ∑ d2 −
                        n
     sd =
                n −1

                                           10
Example: Blood pressure of 8
patients, before & after treatment
BP before BP after    d        d2
180        140        40       1600
200        145        55       3025
230        150        80       6400
240        155        85       7225
170        120        50       2500
190        130        60       3600
200        140        60       3600
165        130        35       1225
Mean d=465/8=58.125   ∑d=465   ∑d2=2917511
Results and conclusion
   t=9.387
   Tabulated t (df7), with level of significance
    0.05, two tails, = 2.36
   We reject Ho and conclude that there is
    significant difference between BP readings
    before and after treatment.
   P<0.05.

                                               12

Mais conteúdo relacionado

Destaque

การพอกดูดคราบ
การพอกดูดคราบการพอกดูดคราบ
การพอกดูดคราบnintasook26
 
การพอกดูดคราบ
การพอกดูดคราบการพอกดูดคราบ
การพอกดูดคราบnintasook26
 
M_100 Global Not Monoline-bb1(09182050143)
M_100 Global Not Monoline-bb1(09182050143)M_100 Global Not Monoline-bb1(09182050143)
M_100 Global Not Monoline-bb1(09182050143)Mark Deson Abayon
 
Stat 4 the normal distribution & steps of testing hypothesis
Stat 4 the normal distribution & steps of testing hypothesisStat 4 the normal distribution & steps of testing hypothesis
Stat 4 the normal distribution & steps of testing hypothesisForensic Pathology
 
Cellinjuryanddeath lecture-i-090515081023-phpapp01
Cellinjuryanddeath lecture-i-090515081023-phpapp01Cellinjuryanddeath lecture-i-090515081023-phpapp01
Cellinjuryanddeath lecture-i-090515081023-phpapp01Forensic Pathology
 
Inheritance and genetic of blood group
Inheritance and genetic of blood groupInheritance and genetic of blood group
Inheritance and genetic of blood groupForensic Pathology
 

Destaque (13)

การพอกดูดคราบ
การพอกดูดคราบการพอกดูดคราบ
การพอกดูดคราบ
 
05 the axial skeleton english
05 the axial skeleton english05 the axial skeleton english
05 the axial skeleton english
 
การพอกดูดคราบ
การพอกดูดคราบการพอกดูดคราบ
การพอกดูดคราบ
 
M_100 Global Not Monoline-bb1(09182050143)
M_100 Global Not Monoline-bb1(09182050143)M_100 Global Not Monoline-bb1(09182050143)
M_100 Global Not Monoline-bb1(09182050143)
 
Stat 4 the normal distribution & steps of testing hypothesis
Stat 4 the normal distribution & steps of testing hypothesisStat 4 the normal distribution & steps of testing hypothesis
Stat 4 the normal distribution & steps of testing hypothesis
 
Lect.no.3
Lect.no.3Lect.no.3
Lect.no.3
 
Lect.no.4
Lect.no.4Lect.no.4
Lect.no.4
 
Lect.no (5)
Lect.no (5)Lect.no (5)
Lect.no (5)
 
Cellinjuryanddeath lecture-i-090515081023-phpapp01
Cellinjuryanddeath lecture-i-090515081023-phpapp01Cellinjuryanddeath lecture-i-090515081023-phpapp01
Cellinjuryanddeath lecture-i-090515081023-phpapp01
 
Lect.2
Lect.2Lect.2
Lect.2
 
mortuary health and safety
 mortuary health and safety mortuary health and safety
mortuary health and safety
 
Infectious disease p4
Infectious disease p4Infectious disease p4
Infectious disease p4
 
Inheritance and genetic of blood group
Inheritance and genetic of blood groupInheritance and genetic of blood group
Inheritance and genetic of blood group
 

Semelhante a Stat5 the t test

Hypothesis testing part iii for difference of means
Hypothesis testing part iii for difference of meansHypothesis testing part iii for difference of means
Hypothesis testing part iii for difference of meansNadeem Uddin
 
Lecture 11 Paired t test.pptx
Lecture 11 Paired t test.pptxLecture 11 Paired t test.pptx
Lecture 11 Paired t test.pptxshakirRahman10
 
Statistical Tools for the Quality Control Laboratory and Validation Studies
Statistical Tools for the Quality Control Laboratory and Validation StudiesStatistical Tools for the Quality Control Laboratory and Validation Studies
Statistical Tools for the Quality Control Laboratory and Validation StudiesInstitute of Validation Technology
 
Power Analysis and Sample Size Determination
Power Analysis and Sample Size DeterminationPower Analysis and Sample Size Determination
Power Analysis and Sample Size DeterminationAjay Dhamija
 
Test of significance (t-test, proportion test, chi-square test)
Test of significance (t-test, proportion test, chi-square test)Test of significance (t-test, proportion test, chi-square test)
Test of significance (t-test, proportion test, chi-square test)Ramnath Takiar
 
Dependent T Test
Dependent T TestDependent T Test
Dependent T Testshoffma5
 
Chi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarChi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarAzmi Mohd Tamil
 

Semelhante a Stat5 the t test (20)

Stat5 the t test
Stat5 the t testStat5 the t test
Stat5 the t test
 
Sample A_Book Typesetting
Sample A_Book TypesettingSample A_Book Typesetting
Sample A_Book Typesetting
 
T test
T testT test
T test
 
T test statistics
T test statisticsT test statistics
T test statistics
 
Two Means, Independent Samples
Two Means, Independent SamplesTwo Means, Independent Samples
Two Means, Independent Samples
 
Chapter07.pdf
Chapter07.pdfChapter07.pdf
Chapter07.pdf
 
Hypothesis testing part iii for difference of means
Hypothesis testing part iii for difference of meansHypothesis testing part iii for difference of means
Hypothesis testing part iii for difference of means
 
Two dependent samples (matched pairs)
Two dependent samples (matched pairs) Two dependent samples (matched pairs)
Two dependent samples (matched pairs)
 
Lecture 11 Paired t test.pptx
Lecture 11 Paired t test.pptxLecture 11 Paired t test.pptx
Lecture 11 Paired t test.pptx
 
Statistical controls for qc
Statistical controls for qcStatistical controls for qc
Statistical controls for qc
 
Statistical Tools for the Quality Control Laboratory and Validation Studies
Statistical Tools for the Quality Control Laboratory and Validation StudiesStatistical Tools for the Quality Control Laboratory and Validation Studies
Statistical Tools for the Quality Control Laboratory and Validation Studies
 
Power Analysis and Sample Size Determination
Power Analysis and Sample Size DeterminationPower Analysis and Sample Size Determination
Power Analysis and Sample Size Determination
 
Unit-5.-t-test.ppt
Unit-5.-t-test.pptUnit-5.-t-test.ppt
Unit-5.-t-test.ppt
 
Test of significance (t-test, proportion test, chi-square test)
Test of significance (t-test, proportion test, chi-square test)Test of significance (t-test, proportion test, chi-square test)
Test of significance (t-test, proportion test, chi-square test)
 
The T-test
The T-testThe T-test
The T-test
 
Sample B_Book Typesetting
Sample B_Book TypesettingSample B_Book Typesetting
Sample B_Book Typesetting
 
31st july talk (20021)
31st july talk (20021)31st july talk (20021)
31st july talk (20021)
 
Dependent T Test
Dependent T TestDependent T Test
Dependent T Test
 
Chi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarChi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemar
 
MUMS Undergraduate Workshop - Introduction to Bayesian Inference & Uncertaint...
MUMS Undergraduate Workshop - Introduction to Bayesian Inference & Uncertaint...MUMS Undergraduate Workshop - Introduction to Bayesian Inference & Uncertaint...
MUMS Undergraduate Workshop - Introduction to Bayesian Inference & Uncertaint...
 

Mais de Forensic Pathology (20)

Stat3 central tendency & dispersion
Stat3 central tendency & dispersionStat3 central tendency & dispersion
Stat3 central tendency & dispersion
 
Exercise 1 12 no solution
Exercise 1 12 no solutionExercise 1 12 no solution
Exercise 1 12 no solution
 
Writing a research protocol 2011
Writing a research protocol 2011Writing a research protocol 2011
Writing a research protocol 2011
 
Some statistical defenition
Some statistical defenitionSome statistical defenition
Some statistical defenition
 
Prac excises 3[1].5
Prac excises 3[1].5Prac excises 3[1].5
Prac excises 3[1].5
 
Exercise 1 12 no solution
Exercise 1 12 no solutionExercise 1 12 no solution
Exercise 1 12 no solution
 
Analysis of variance
Analysis of varianceAnalysis of variance
Analysis of variance
 
Stat6 chi square test
Stat6 chi square testStat6 chi square test
Stat6 chi square test
 
Stat3 central tendency & dispersion
Stat3 central tendency & dispersionStat3 central tendency & dispersion
Stat3 central tendency & dispersion
 
Stat 4 the normal distribution & steps of testing hypothesis
Stat 4 the normal distribution & steps of testing hypothesisStat 4 the normal distribution & steps of testing hypothesis
Stat 4 the normal distribution & steps of testing hypothesis
 
Stat 2 data presentation2
Stat 2 data presentation2Stat 2 data presentation2
Stat 2 data presentation2
 
Correlation 3rd
Correlation 3rdCorrelation 3rd
Correlation 3rd
 
Stat 1 variables & sampling
Stat 1 variables & samplingStat 1 variables & sampling
Stat 1 variables & sampling
 
Pancreas 2
Pancreas 2Pancreas 2
Pancreas 2
 
Pancreas 1
Pancreas 1Pancreas 1
Pancreas 1
 
Liver 3
Liver 3Liver 3
Liver 3
 
Liver 2
Liver 2Liver 2
Liver 2
 
Liver 1
Liver 1Liver 1
Liver 1
 
The biliary tract
The biliary tractThe biliary tract
The biliary tract
 
Valvular heart diseases 4
Valvular heart diseases 4Valvular heart diseases 4
Valvular heart diseases 4
 

Stat5 the t test

  • 2. Applications  To compare the mean of a sample with population mean.  To compare the mean of one sample with the mean of another independent sample.  To compare between the values (readings) of one sample but in 2 occasions. 2
  • 3. 1.Sample mean and population mean  The general steps of testing hypothesis must be followed.  Ho: Sample mean=Population mean.  Degrees of freedom = n - 1 − X −µ t = SE 3
  • 4. Example The following data represents hemoglobin values in gm/dl for 10 patients: 10.5 9 6.5 8 11 7 7.5 8.5 9.5 12 Is the mean value for patients significantly differ from the mean value of general population (12 gm/dl) . Evaluate the role of chance. 4
  • 5. Solution  Mention all steps of testing hypothesis. 8.95 − 12 t= = −5.352 1.80201 10 Then compare with tabulated value, for 9 df, and 5% level of significance. It is = 2.262 The calculated value>tabulated value. Reject Ho and conclude that there is a statistically significant difference between the mean of sample and population mean, and this difference is unlikely due to chance. 5
  • 6. 6
  • 7. 2.Two independent samples The following data represents weight in Kg for 10 males and 12 females. Males: 80 75 95 55 60 70 75 72 80 65 Females: 60 70 50 85 45 60 80 65 70 62 77 82 7
  • 8. 2.Two independent samples, cont.  Is there a statistically significant difference between the mean weight of males and females. Let alpha = 0.01  To solve it follow the steps and use this equation. − − X1 − X 2 t= 2 2 (n1 − 1) S1 + (n 2 − 1) S 2 1 1 ( + ) n1 + n 2 − 2 n1 n 2 8
  • 9. Results  Mean1=72.7 Mean2=67.17  Variance1=128.46 Variance2=157.787  Df = n1+n2-2=20  t = 1.074  The tabulated t, 2 sides, for alpha 0.01 is 2.845  Then accept Ho and conclude that there is no significant difference between the 2 means. This difference may be due to chance.  P>0.01 9
  • 10. 3.One sample in two occasions  Mention steps of testing hypothesis.  The df here = n – 1. − d t = sd n (∑ d ) 2 ∑ d2 − n sd = n −1 10
  • 11. Example: Blood pressure of 8 patients, before & after treatment BP before BP after d d2 180 140 40 1600 200 145 55 3025 230 150 80 6400 240 155 85 7225 170 120 50 2500 190 130 60 3600 200 140 60 3600 165 130 35 1225 Mean d=465/8=58.125 ∑d=465 ∑d2=2917511
  • 12. Results and conclusion  t=9.387  Tabulated t (df7), with level of significance 0.05, two tails, = 2.36  We reject Ho and conclude that there is significant difference between BP readings before and after treatment.  P<0.05. 12