SlideShare a Scribd company logo
1 of 31
Shakir Rahman
BScN, MScN, MSc Applied Psychology,
PhD Nursing (Candidate)
University of Minnesota USA.
Principal & Assistant Professor
Ayub International College of Nursing &
AHS Peshawar
Visiting Faculty
Swabi College of Nursing & Health
Sciences Swabi
Nowshera College of Nursing & Health
Sciences Nowshera
T –test for two
Independent
Samples
Example 1
– Q1.The mean serum creatinine level measured in 36 patients
after they received a newly proposed antibiotic was 1.2 mg/dl
and the standard deviation was 0.4 mg/dl . A physician claims that
the mean serum creatinine in the general population is 1 mg/dl.
– Using a significance level of 0.05, test if the mean serum
creatinine level in the general population is greater than 1
mg/dl.
Z test
Example 2
Q2.The mean serum creatinine level measured in 25
patients, after they received a newly proposed
antibiotic, was 1.1 mg/dl and the sample standard
deviation is 0.6 mg/dl. A physician claims that the
mean serum creatinine in the general population is
0.9 mg/dl.
Using a significance level of 0.05, test if the mean
serum creatinine level in the general population is
different from 0.9 mg/dl.
t test for Onesample
Example 3
Q3. The mean serum creatinine level is measured in 13 white
women who received a newly proposed antibiotic was 1.2
mg/dl and the standard deviation was 0.6 mg/ dl.
Another sample of 12 black women who have receivedan
old antibiotic have mean serum creatinine level of 1.0
mg/dl with standard deviation of 0.4 mg/dl.
Using a significance level of 0.05, test if the mean serum
creatinine level in white women is different than the black
women.
What is Different in the 3rd Example?
• Two groups
• Two means
• Two SDs
Comparison of two
means By
t- test
Decide 2 samples are independent or dependent on each
other.
Independent:
If there is no connection between two samples then
Perform t- test for two
independent samples
t Test for Two Independent Samples
• Compare means of two groups
– Experimental—treatment versus control
– Existing groups—males versus females
9
Underlying Assumptions for Independent Samples t-test
1. The samples have been randomly selected from
normally distributed populations
2. The samples are independent of each other
3. Population variances 1
2 and 2
2 are unknown
Contd…
4. In order to estimate the unknown population
variances, there are two ways:
– If the two population variances are assumed to be
equal i.e. 1
2 = 2
2 , a pooled variance is calculated as
an estimate of the unknown population variances
– If the two population variances are assumed to be
unequal i.e. 1
2 ≠ 2
2, a different formula isused
2
2
2
1 1 2
1 2
n  n  2
n  1s  n  1s
s2
p 
 1 2 
p
n n
 1 1 
S2   
X1  X2  μ1 μ2 
t 
12
1
2
3
4
5
State null
and
Alternative
hypotheses
Level of
significance
= α
Test
Statistics
Critical
region/
P value
Conclusion
Follow the same steps of
Hypothesis Testing
t
TEST
Hypotheses to test two independent
means
STEP I:
Lower tail test:
H0: μ1  μ2
Ha: μ1 <μ2
Upper tail test:
H : μ ≤ μ
0 1 2
Ha: μ1 >μ2
Two-tailedtest:
H0: μ1 =μ2
Ha: μ1 ≠μ2
Notations to indicate two Groups
Group I Group II
n1
s1
X1
n2
s2
X2
STEP II:
Level of Significance α =0.05
STEP III:
Test Statistic =
1 2 
t 
p
n n
 1 
S2 1
X1  X2  μ1 μ2 
Now since 2 is unknown, we need to find an
estimate for it, using the variances from the
1 2.
two samples S2 & S2 This estimate is called
the pooled variance, Sp2
2
2
2
1 1 2
1 2
n  n  2
 1
n  1s  n s
s2
p 
STEP IV:
Critical region: for significance level α and
df = n1+n2-2
Reject H0 if
tcal > ttab
or
tcal <- ttab
STEP V: Conclusion
Example
A researcher wishes to determine whether the
salaries of professional nurses employed by
private hospitals are higher than those of nurses
employed by government hospitals. She selects a
sample of nurses from each type of hospital and
calculates the means and standard deviations of
their salaries.
At α = 0.01, can she conclude that the private
hospitals pay more than the government
hospitals? Assume that the populations are
approximately normally distributed.
Data:
Private Government
X1 = $ 26,800
s1 = $ 600
n1 = 10
X2= $ 25, 400
s2 = $ 450
n2 = 8
Step I:
Ho : µ1 ≤ µ2
Ha: µ1 > µ2
Step II:
α = 0.01
t tabα, d.f. = t tab 0.01, 16 =2.583
Step III:
t statistic = 5.47
1 2 
t 
p
 n n
 1 
X1  X2  μ1 μ2 
S2 1
2
2
2
1 2
1
n1  n2  2
s
n  1s  n  1
2
sp 
Step IV:
Critical region:
Reject Ho if t cal> t tab
5.47 > 2.583
Step V:
– Since our t cal is greater than our t tab (5.47 > 2.583) and falls under
critical region, so we reject our Ho at 1 % level of significance and we
have sufficient evidence to conclude that the salaries paid to nurses
employed by private hospitals are higher than those paid to nurses
employed by government hospitals.
Computing Confidence Interval for the
difference in means of 2 groups


1 2
(x  x )  t ,df
2
2  1 1 
n2 
 n1
s p
Bluman (2012). Elementary Statistics: A Step by StepApproach
(8th.). McGraw Hill.
Daniel (2014). Biostatistics: Basic Concepts and Methodology
for the Health Sciences. New York: John Wiley &Sons.
Acknowledgements
Dr Tazeen Saeed Ali
RM, RM, BScN, MSc ( Epidemiology & Biostatistics), Ph.D. (Medical Sciences),
Post Doctorate (Health Policy & Planning)
Associate Dean School of Nursing & Midwifery
The Aga Khan University Karachi.
Kiran Ramzan Ali Lalani
BScN, MSc Epidemiology & Biostatistics (Candidate) Registered Nurse (NICU)
Aga Khan University Hospital
Lecture 10 t –test for Two Independent Samples.pptx

More Related Content

Similar to Lecture 10 t –test for Two Independent Samples.pptx

Statistical methods for the life sciences lb
Statistical methods for the life sciences lbStatistical methods for the life sciences lb
Statistical methods for the life sciences lbpriyaupm
 
Parametric tests seminar
Parametric tests seminarParametric tests seminar
Parametric tests seminardrdeepika87
 
Commonly used statistical tests in research
Commonly used statistical tests in researchCommonly used statistical tests in research
Commonly used statistical tests in researchNaqeeb Ullah Khan
 
Ct lecture 7. comparing two groups cont data
Ct lecture 7. comparing two groups   cont dataCt lecture 7. comparing two groups   cont data
Ct lecture 7. comparing two groups cont dataHau Pham
 
Lecture-6 (t-test and one way ANOVA.ppt
Lecture-6 (t-test and one way ANOVA.pptLecture-6 (t-test and one way ANOVA.ppt
Lecture-6 (t-test and one way ANOVA.pptMohammedAbdela7
 
inferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdfinferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdfChenPalaruan
 
Lecture 9 t-test for one sample.pptx
Lecture 9 t-test for one sample.pptxLecture 9 t-test for one sample.pptx
Lecture 9 t-test for one sample.pptxshakirRahman10
 
Statistical analysis.pptx
Statistical analysis.pptxStatistical analysis.pptx
Statistical analysis.pptxChinna Chadayan
 
Testing hypothesis (methods of testing the statement of organizations)
Testing hypothesis (methods of testing the statement of organizations)Testing hypothesis (methods of testing the statement of organizations)
Testing hypothesis (methods of testing the statement of organizations)syedahadisa929
 
Unit 9b. Sample size estimation.ppt
Unit 9b. Sample size estimation.pptUnit 9b. Sample size estimation.ppt
Unit 9b. Sample size estimation.pptshakirRahman10
 
Intro to tests of significance qualitative
Intro to tests of significance qualitativeIntro to tests of significance qualitative
Intro to tests of significance qualitativePandurangi Raghavendra
 
Non parametric tests by meenu
Non parametric tests by meenuNon parametric tests by meenu
Non parametric tests by meenumeenu saharan
 
T test for two independent samples and induction
T test for two independent samples and inductionT test for two independent samples and induction
T test for two independent samples and inductionEmmanuel Buah
 

Similar to Lecture 10 t –test for Two Independent Samples.pptx (20)

K.A.Sindhura-t,z,f tests
K.A.Sindhura-t,z,f testsK.A.Sindhura-t,z,f tests
K.A.Sindhura-t,z,f tests
 
Statistical methods for the life sciences lb
Statistical methods for the life sciences lbStatistical methods for the life sciences lb
Statistical methods for the life sciences lb
 
Two Means, Independent Samples
Two Means, Independent SamplesTwo Means, Independent Samples
Two Means, Independent Samples
 
Biostatistics.pptx
Biostatistics.pptxBiostatistics.pptx
Biostatistics.pptx
 
Parametric tests seminar
Parametric tests seminarParametric tests seminar
Parametric tests seminar
 
Commonly used statistical tests in research
Commonly used statistical tests in researchCommonly used statistical tests in research
Commonly used statistical tests in research
 
Test of significance
Test of significanceTest of significance
Test of significance
 
Ct lecture 7. comparing two groups cont data
Ct lecture 7. comparing two groups   cont dataCt lecture 7. comparing two groups   cont data
Ct lecture 7. comparing two groups cont data
 
Lecture-6 (t-test and one way ANOVA.ppt
Lecture-6 (t-test and one way ANOVA.pptLecture-6 (t-test and one way ANOVA.ppt
Lecture-6 (t-test and one way ANOVA.ppt
 
inferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdfinferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdf
 
Lecture 9 t-test for one sample.pptx
Lecture 9 t-test for one sample.pptxLecture 9 t-test for one sample.pptx
Lecture 9 t-test for one sample.pptx
 
Inferential statistics
Inferential statisticsInferential statistics
Inferential statistics
 
T test
T testT test
T test
 
Statistical analysis.pptx
Statistical analysis.pptxStatistical analysis.pptx
Statistical analysis.pptx
 
Testing hypothesis (methods of testing the statement of organizations)
Testing hypothesis (methods of testing the statement of organizations)Testing hypothesis (methods of testing the statement of organizations)
Testing hypothesis (methods of testing the statement of organizations)
 
Unit 9b. Sample size estimation.ppt
Unit 9b. Sample size estimation.pptUnit 9b. Sample size estimation.ppt
Unit 9b. Sample size estimation.ppt
 
Intro to tests of significance qualitative
Intro to tests of significance qualitativeIntro to tests of significance qualitative
Intro to tests of significance qualitative
 
Non parametric tests by meenu
Non parametric tests by meenuNon parametric tests by meenu
Non parametric tests by meenu
 
T test for two independent samples and induction
T test for two independent samples and inductionT test for two independent samples and induction
T test for two independent samples and induction
 
Two Variances or Standard Deviations
Two Variances or Standard DeviationsTwo Variances or Standard Deviations
Two Variances or Standard Deviations
 

More from shakirRahman10

Unit 12. Limitations & Recomendations.pptx
Unit 12. Limitations & Recomendations.pptxUnit 12. Limitations & Recomendations.pptx
Unit 12. Limitations & Recomendations.pptxshakirRahman10
 
Unit 11. Interepreting the Research Findings.pptx
Unit 11. Interepreting the Research Findings.pptxUnit 11. Interepreting the Research Findings.pptx
Unit 11. Interepreting the Research Findings.pptxshakirRahman10
 
Unit 10. Data Collection & Analysis.pptx
Unit 10. Data Collection & Analysis.pptxUnit 10. Data Collection & Analysis.pptx
Unit 10. Data Collection & Analysis.pptxshakirRahman10
 
Unit 9c. Data Collection tools.pptx
Unit 9c. Data Collection tools.pptxUnit 9c. Data Collection tools.pptx
Unit 9c. Data Collection tools.pptxshakirRahman10
 
Unit 9a. Sampling Techniques.pptx
Unit 9a. Sampling Techniques.pptxUnit 9a. Sampling Techniques.pptx
Unit 9a. Sampling Techniques.pptxshakirRahman10
 
Unit 8. Ethical Considerations in Reseaerch.pptx
Unit 8. Ethical Considerations in Reseaerch.pptxUnit 8. Ethical Considerations in Reseaerch.pptx
Unit 8. Ethical Considerations in Reseaerch.pptxshakirRahman10
 
Unit 7. Theoritical & Conceptual Framework.pptx
Unit 7. Theoritical & Conceptual Framework.pptxUnit 7. Theoritical & Conceptual Framework.pptx
Unit 7. Theoritical & Conceptual Framework.pptxshakirRahman10
 
Unit 6. Literature Review & Synthesis.pptx
Unit 6. Literature Review & Synthesis.pptxUnit 6. Literature Review & Synthesis.pptx
Unit 6. Literature Review & Synthesis.pptxshakirRahman10
 
Unit 5. Research Question and Hypothesis.pptx
Unit 5. Research Question and Hypothesis.pptxUnit 5. Research Question and Hypothesis.pptx
Unit 5. Research Question and Hypothesis.pptxshakirRahman10
 
Unit 4. Research Problem, Purpose, Objectives, Significance and Scope..pptx
Unit 4. Research Problem, Purpose, Objectives, Significance and Scope..pptxUnit 4. Research Problem, Purpose, Objectives, Significance and Scope..pptx
Unit 4. Research Problem, Purpose, Objectives, Significance and Scope..pptxshakirRahman10
 
Unit 3. Outcome Reseaerch.pptx
Unit 3. Outcome Reseaerch.pptxUnit 3. Outcome Reseaerch.pptx
Unit 3. Outcome Reseaerch.pptxshakirRahman10
 
Unit 2. Introduction to Quantitative & Qualitative Reseaerch.pptx
Unit 2. Introduction to Quantitative & Qualitative Reseaerch.pptxUnit 2. Introduction to Quantitative & Qualitative Reseaerch.pptx
Unit 2. Introduction to Quantitative & Qualitative Reseaerch.pptxshakirRahman10
 
Unit I. Introduction to Nursing Research.pptx
Unit I. Introduction to Nursing Research.pptxUnit I. Introduction to Nursing Research.pptx
Unit I. Introduction to Nursing Research.pptxshakirRahman10
 
Lecture 14. ANOVA.pptx
Lecture 14. ANOVA.pptxLecture 14. ANOVA.pptx
Lecture 14. ANOVA.pptxshakirRahman10
 
Lecture 13 Regression & Correlation.ppt
Lecture 13 Regression & Correlation.pptLecture 13 Regression & Correlation.ppt
Lecture 13 Regression & Correlation.pptshakirRahman10
 
Lecture 12 Chi-Square.pptx
Lecture 12 Chi-Square.pptxLecture 12 Chi-Square.pptx
Lecture 12 Chi-Square.pptxshakirRahman10
 
Lecture 8 Type 1 and 2 errors.pptx
Lecture 8 Type 1 and 2 errors.pptxLecture 8 Type 1 and 2 errors.pptx
Lecture 8 Type 1 and 2 errors.pptxshakirRahman10
 
Lecture 7 Hypothesis testing.pptx
Lecture 7 Hypothesis testing.pptxLecture 7 Hypothesis testing.pptx
Lecture 7 Hypothesis testing.pptxshakirRahman10
 
Lecture 6 Point and Interval Estimation.pptx
Lecture 6 Point and Interval Estimation.pptxLecture 6 Point and Interval Estimation.pptx
Lecture 6 Point and Interval Estimation.pptxshakirRahman10
 
Lecture 5 Sampling distribution of sample mean.pptx
Lecture 5 Sampling distribution of sample mean.pptxLecture 5 Sampling distribution of sample mean.pptx
Lecture 5 Sampling distribution of sample mean.pptxshakirRahman10
 

More from shakirRahman10 (20)

Unit 12. Limitations & Recomendations.pptx
Unit 12. Limitations & Recomendations.pptxUnit 12. Limitations & Recomendations.pptx
Unit 12. Limitations & Recomendations.pptx
 
Unit 11. Interepreting the Research Findings.pptx
Unit 11. Interepreting the Research Findings.pptxUnit 11. Interepreting the Research Findings.pptx
Unit 11. Interepreting the Research Findings.pptx
 
Unit 10. Data Collection & Analysis.pptx
Unit 10. Data Collection & Analysis.pptxUnit 10. Data Collection & Analysis.pptx
Unit 10. Data Collection & Analysis.pptx
 
Unit 9c. Data Collection tools.pptx
Unit 9c. Data Collection tools.pptxUnit 9c. Data Collection tools.pptx
Unit 9c. Data Collection tools.pptx
 
Unit 9a. Sampling Techniques.pptx
Unit 9a. Sampling Techniques.pptxUnit 9a. Sampling Techniques.pptx
Unit 9a. Sampling Techniques.pptx
 
Unit 8. Ethical Considerations in Reseaerch.pptx
Unit 8. Ethical Considerations in Reseaerch.pptxUnit 8. Ethical Considerations in Reseaerch.pptx
Unit 8. Ethical Considerations in Reseaerch.pptx
 
Unit 7. Theoritical & Conceptual Framework.pptx
Unit 7. Theoritical & Conceptual Framework.pptxUnit 7. Theoritical & Conceptual Framework.pptx
Unit 7. Theoritical & Conceptual Framework.pptx
 
Unit 6. Literature Review & Synthesis.pptx
Unit 6. Literature Review & Synthesis.pptxUnit 6. Literature Review & Synthesis.pptx
Unit 6. Literature Review & Synthesis.pptx
 
Unit 5. Research Question and Hypothesis.pptx
Unit 5. Research Question and Hypothesis.pptxUnit 5. Research Question and Hypothesis.pptx
Unit 5. Research Question and Hypothesis.pptx
 
Unit 4. Research Problem, Purpose, Objectives, Significance and Scope..pptx
Unit 4. Research Problem, Purpose, Objectives, Significance and Scope..pptxUnit 4. Research Problem, Purpose, Objectives, Significance and Scope..pptx
Unit 4. Research Problem, Purpose, Objectives, Significance and Scope..pptx
 
Unit 3. Outcome Reseaerch.pptx
Unit 3. Outcome Reseaerch.pptxUnit 3. Outcome Reseaerch.pptx
Unit 3. Outcome Reseaerch.pptx
 
Unit 2. Introduction to Quantitative & Qualitative Reseaerch.pptx
Unit 2. Introduction to Quantitative & Qualitative Reseaerch.pptxUnit 2. Introduction to Quantitative & Qualitative Reseaerch.pptx
Unit 2. Introduction to Quantitative & Qualitative Reseaerch.pptx
 
Unit I. Introduction to Nursing Research.pptx
Unit I. Introduction to Nursing Research.pptxUnit I. Introduction to Nursing Research.pptx
Unit I. Introduction to Nursing Research.pptx
 
Lecture 14. ANOVA.pptx
Lecture 14. ANOVA.pptxLecture 14. ANOVA.pptx
Lecture 14. ANOVA.pptx
 
Lecture 13 Regression & Correlation.ppt
Lecture 13 Regression & Correlation.pptLecture 13 Regression & Correlation.ppt
Lecture 13 Regression & Correlation.ppt
 
Lecture 12 Chi-Square.pptx
Lecture 12 Chi-Square.pptxLecture 12 Chi-Square.pptx
Lecture 12 Chi-Square.pptx
 
Lecture 8 Type 1 and 2 errors.pptx
Lecture 8 Type 1 and 2 errors.pptxLecture 8 Type 1 and 2 errors.pptx
Lecture 8 Type 1 and 2 errors.pptx
 
Lecture 7 Hypothesis testing.pptx
Lecture 7 Hypothesis testing.pptxLecture 7 Hypothesis testing.pptx
Lecture 7 Hypothesis testing.pptx
 
Lecture 6 Point and Interval Estimation.pptx
Lecture 6 Point and Interval Estimation.pptxLecture 6 Point and Interval Estimation.pptx
Lecture 6 Point and Interval Estimation.pptx
 
Lecture 5 Sampling distribution of sample mean.pptx
Lecture 5 Sampling distribution of sample mean.pptxLecture 5 Sampling distribution of sample mean.pptx
Lecture 5 Sampling distribution of sample mean.pptx
 

Recently uploaded

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
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_.pdfSherif Taha
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
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 17Celine George
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
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.christianmathematics
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
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
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 

Recently uploaded (20)

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
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
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.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
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
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.
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
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
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 

Lecture 10 t –test for Two Independent Samples.pptx

  • 1.
  • 2. Shakir Rahman BScN, MScN, MSc Applied Psychology, PhD Nursing (Candidate) University of Minnesota USA. Principal & Assistant Professor Ayub International College of Nursing & AHS Peshawar Visiting Faculty Swabi College of Nursing & Health Sciences Swabi Nowshera College of Nursing & Health Sciences Nowshera T –test for two Independent Samples
  • 3. Example 1 – Q1.The mean serum creatinine level measured in 36 patients after they received a newly proposed antibiotic was 1.2 mg/dl and the standard deviation was 0.4 mg/dl . A physician claims that the mean serum creatinine in the general population is 1 mg/dl. – Using a significance level of 0.05, test if the mean serum creatinine level in the general population is greater than 1 mg/dl.
  • 5. Example 2 Q2.The mean serum creatinine level measured in 25 patients, after they received a newly proposed antibiotic, was 1.1 mg/dl and the sample standard deviation is 0.6 mg/dl. A physician claims that the mean serum creatinine in the general population is 0.9 mg/dl. Using a significance level of 0.05, test if the mean serum creatinine level in the general population is different from 0.9 mg/dl.
  • 6. t test for Onesample
  • 7. Example 3 Q3. The mean serum creatinine level is measured in 13 white women who received a newly proposed antibiotic was 1.2 mg/dl and the standard deviation was 0.6 mg/ dl. Another sample of 12 black women who have receivedan old antibiotic have mean serum creatinine level of 1.0 mg/dl with standard deviation of 0.4 mg/dl. Using a significance level of 0.05, test if the mean serum creatinine level in white women is different than the black women.
  • 8. What is Different in the 3rd Example? • Two groups • Two means • Two SDs Comparison of two means By t- test
  • 9. Decide 2 samples are independent or dependent on each other. Independent: If there is no connection between two samples then Perform t- test for two independent samples
  • 10. t Test for Two Independent Samples • Compare means of two groups – Experimental—treatment versus control – Existing groups—males versus females 9
  • 11. Underlying Assumptions for Independent Samples t-test 1. The samples have been randomly selected from normally distributed populations 2. The samples are independent of each other 3. Population variances 1 2 and 2 2 are unknown
  • 12. Contd… 4. In order to estimate the unknown population variances, there are two ways: – If the two population variances are assumed to be equal i.e. 1 2 = 2 2 , a pooled variance is calculated as an estimate of the unknown population variances – If the two population variances are assumed to be unequal i.e. 1 2 ≠ 2 2, a different formula isused 2 2 2 1 1 2 1 2 n  n  2 n  1s  n  1s s2 p 
  • 13.  1 2  p n n  1 1  S2    X1  X2  μ1 μ2  t  12 1 2 3 4 5 State null and Alternative hypotheses Level of significance = α Test Statistics Critical region/ P value Conclusion Follow the same steps of Hypothesis Testing t TEST
  • 14. Hypotheses to test two independent means STEP I: Lower tail test: H0: μ1  μ2 Ha: μ1 <μ2 Upper tail test: H : μ ≤ μ 0 1 2 Ha: μ1 >μ2 Two-tailedtest: H0: μ1 =μ2 Ha: μ1 ≠μ2
  • 15. Notations to indicate two Groups Group I Group II n1 s1 X1 n2 s2 X2
  • 16. STEP II: Level of Significance α =0.05
  • 17. STEP III: Test Statistic = 1 2  t  p n n  1  S2 1 X1  X2  μ1 μ2 
  • 18. Now since 2 is unknown, we need to find an estimate for it, using the variances from the 1 2. two samples S2 & S2 This estimate is called the pooled variance, Sp2 2 2 2 1 1 2 1 2 n  n  2  1 n  1s  n s s2 p 
  • 19. STEP IV: Critical region: for significance level α and df = n1+n2-2 Reject H0 if tcal > ttab or tcal <- ttab STEP V: Conclusion
  • 20. Example A researcher wishes to determine whether the salaries of professional nurses employed by private hospitals are higher than those of nurses employed by government hospitals. She selects a sample of nurses from each type of hospital and calculates the means and standard deviations of their salaries. At α = 0.01, can she conclude that the private hospitals pay more than the government hospitals? Assume that the populations are approximately normally distributed.
  • 21. Data: Private Government X1 = $ 26,800 s1 = $ 600 n1 = 10 X2= $ 25, 400 s2 = $ 450 n2 = 8
  • 22. Step I: Ho : µ1 ≤ µ2 Ha: µ1 > µ2 Step II: α = 0.01 t tabα, d.f. = t tab 0.01, 16 =2.583
  • 23.
  • 24. Step III: t statistic = 5.47 1 2  t  p  n n  1  X1  X2  μ1 μ2  S2 1 2 2 2 1 2 1 n1  n2  2 s n  1s  n  1 2 sp 
  • 25. Step IV: Critical region: Reject Ho if t cal> t tab 5.47 > 2.583
  • 26. Step V: – Since our t cal is greater than our t tab (5.47 > 2.583) and falls under critical region, so we reject our Ho at 1 % level of significance and we have sufficient evidence to conclude that the salaries paid to nurses employed by private hospitals are higher than those paid to nurses employed by government hospitals.
  • 27. Computing Confidence Interval for the difference in means of 2 groups   1 2 (x  x )  t ,df 2 2  1 1  n2   n1 s p
  • 28.
  • 29. Bluman (2012). Elementary Statistics: A Step by StepApproach (8th.). McGraw Hill. Daniel (2014). Biostatistics: Basic Concepts and Methodology for the Health Sciences. New York: John Wiley &Sons.
  • 30. Acknowledgements Dr Tazeen Saeed Ali RM, RM, BScN, MSc ( Epidemiology & Biostatistics), Ph.D. (Medical Sciences), Post Doctorate (Health Policy & Planning) Associate Dean School of Nursing & Midwifery The Aga Khan University Karachi. Kiran Ramzan Ali Lalani BScN, MSc Epidemiology & Biostatistics (Candidate) Registered Nurse (NICU) Aga Khan University Hospital