SlideShare a Scribd company logo
1 of 29
Download to read offline
The t-test
Inferences about Population Means
Properties of Student’s t
distribution
• Similar to Standard normal distribution
– Symmetric
– unimodal
– Centred at zero
• Larger spread about zero.
– The reason for this is the increased variability
introduced by replacing σ by s.
• As the sample size increases (degrees of
freedom increases) the t distribution
approaches the standard normal distribution
Background
• The t-test is used to test hypotheses
about means when the population
variance is unknown (the usual case).
Closely related to z, the unit normal.
• Developed by Gossett for the quality
control of beer.
• Comes in 3 varieties:
• Single sample, independent samples,
and dependent samples.
What kind of t is it?
• Single sample t – we have only 1 group; want
to test against a hypothetical mean.
• Independent samples t – we have 2 means, 2
groups; no relation between groups, e.g.,
people randomly assigned to a single group.
• Dependent t – we have two means. Either
same people in both groups, or people are
related, e.g., husband-wife, left hand-right
hand, hospital patient and visitor.
Degrees of Freedom
For the t distribution, degrees of freedom are always a
simple function of the sample size, e.g., (N-1).
One way of explaining df is that if we know the total or
mean, and all but one score, the last (N-1) score is not free
to vary. It is fixed by the other scores. 4+3+2+X = 10.
X=1.
1-Sample t-test
• Z test requires that you know σ from
pop
• Use a t-test when you don’t know the
population standard deviation.
• One sample t-test:
– Compare a sample mean to a population
with a known mean but an unknown
variance
– Use Sy (sample std dev) to estimate σ (pop
std dev)
The one-sample t-test (also called the
"single-parameter t test" or "single-sample
t-test") is used to determine whether a
sample comes from a population with a
specific mean. This population mean is not
always known, but is sometimes
hypothesized.
When to Use a One Sample T Test‐ ‐
To determine whether some obtained value is
statistically different from a neutral value, from a
previously published population mean, from zero,
or from some other externally dictated mean score,
a one-sample t-test can be used. The one-sample t-
test asks whether the mean score from the sample
you have tested is statistically different from the
externally determined mean score you are using to
compare it to.
Basic requirements of the one-sample t-test
• Assumption #1: You have one dependent
variable that is measured at the
continuous level.
• Assumption #2: The data are
independent (i.e., not correlated/related).
Study Designs
A one-sample t-test could be used as
part of a robust sampling strategy or
used when you want to make a
comparison to a criterion measure.
Sampling accuracy/adequacy
• The one-sample t-test can be used as
part of a robust sampling strategy. After
all, if the results from the sample are to
be generalized to the population, it is
important that the characteristics of the
sample reflect those of the population
that the sample is drawn from.
Comparison to a criterion measure
• The one-sample t-test can be used to
compare a value from a sample to a
criterion measure (i.e., to some other
value). The criterion measure may be
known or hypothesized.
Independent-samples t-test
The independent-samples t-test is used to
determine if a difference exists between
the means of two independent groups on a
continuous dependent variable. More
specifically, it will let you determine
whether the difference between these two
groups is statistically significant.
Basic requirements of the independent-samples
t-test
• Assumption #1: You have one dependent
variable that is measured at the continuous
level
• Assumption #2: You have one independent
variable that consists of two categorical,
independent groups (i.e., a dichotomous
variable). Example independent variables that
meet this criterion include gender (two groups:
"males" or "females"),
Study Designs
• An independent-samples t-test is most
often used to analyse the results of three
different types of study design: (a)
determining if there are differences
between two independent groups; (b)
determining if there are differences
between interventions; and (c)
determining if there are differences in
change scores.
Determining if there are differences between
two independent groups
• You have a study design where you are
measuring a dependent variable (e.g.,
weight, anxiety level, salary, reaction
time, etc.) in two independent/different
groups (e.g., males/females,
employed/unemployed, under 21 years
old/21 years old or older, etc.), and you
wish to know if there is a mean
difference in the dependent variable
between the two groups.
Determining if there are differences between
interventions
You have a study design where
participants are randomly assigned to one
of two groups. Each group receives a
different intervention (e.g., Group A
received no intervention, known as a
'control', whilst Group B undergo an
exercise programme; Group A listens to
music, whilst Group B does not listen to
music;
The paired-samples t-test
The paired-samples t-test is used to
determine whether the mean difference
between paired observations is
statistically significantly different from
zero. The participants are either the same
individuals tested at two time points or
under two different conditions on the
same dependent variable..
Basic requirements of the paired-samples t-test
Assumption #1: You have one dependent
variable that is measured at the
continuous (i.e., ratio or interval) level
Assumption #2: You have one
independent variable that consists of
two categorical, related groups or
matched pairs (i.e., a dichotomous
variable).
Study Designs
Determine if there are changes over time
between two related groups.
Example
Health professionals want to
investigate the medium-term effect of a
hypnotherapy programme on the daily
cigarette use of heavy smokers
Research question
Is there a difference in daily cigarette use amongst
heavy smokers six months after a hypnotherapy
programme?
Null hypothesis
There is no difference in daily cigarette use amongst
heavy smokers six months after a hypnotherapy
programme.
Alternative hypothesis
There is a difference in daily cigarette use amongst
heavy smokers six months after a hypnotherapy
programme.
Dependent variable
Cigarette consumption (measured in terms of the
number of cigarettes smoked daily)
Independent variable
Time, which has two levels:
Time point #1: Immediately before the start of the
hypnotherapy programme
Time point #2: 6 months after completion of the
hypnotherapy programme
The paired-samples t-test is used to determine
whether any difference between the two related
groups (i.e., the two time points) is statistically
significant.
Study Design #2
• Determine if there are differences between
conditions
• In this study design, you want to
determine if there are differences in the
scores of a dependent variable between
two related groups.
Example
An online retailer wants to know
whether using background music in
their order fulfilment centre would
lead to greater productivity amongst
packers
Research question
Is there a difference in productivity amongst
packers based on the use of background music?
Null hypothesis
There is no difference in productivity amongst
packers based on the use of background music.
Alternative hypothesis
There is a difference in productivity amongst
packers based on the use of background music.
Dependent variable
Productivity (measured in terms of packages
processed per hour)
Independent variable
Background music
Group 1: No Music (the "control")
Group 2: Music (the "treatment")
The paired-samples t-test is used to determine whether
any difference between the two related groups (i.e., the
two conditions) is statistically significant.
EXAMPLE
A researcher wants to test a new formula
for a sports drink that improves running
performance. Instead of a regular,
carbohydrate-only drink, this new sports
drink contains a new carbohydrate-
protein mixture. The researcher would
like to know whether this new
carbohydrate-protein drink leads to a
difference in performance compared to
the carbohydrate-only sports drink.
To do this, the researcher recruited 20 participants who
each performed two trials in which they had to run as far as
possible in 2 hours on a treadmill. In one of the trials they
drank the carbohydrate-only drink and in the other trial
they drank the carbohydrate-protein drink. The order of the
trials was counterbalanced and the distance they ran in both
trials was recorded.
For a paired-samples t-test, you will have two variables. In
this example, these are:
1) carb, which is the distance run (in km) in two hours for
the carbohydrate-only trial;
and
2) carb_protein, which is the distance run (in km) in two
hours for the carbohydrate-protein trial.
A behavioral scientist wants to know
whether drinking a single glass of beer
affects reaction times. She has 30
participants perform some tasks before
and after having a beer and records their
reaction times. For each participant she
calculates the average reaction time over
tasks both before and after the beer,
resulting in reaction_times.sav. Can we
conclude from these data that a single
beer affects reaction time?
EXAMPLE

More Related Content

What's hot (20)

Statistical analysis
Statistical  analysisStatistical  analysis
Statistical analysis
 
Parametric Statistical tests
Parametric Statistical testsParametric Statistical tests
Parametric Statistical tests
 
Unpaired t Test Family
Unpaired t Test FamilyUnpaired t Test Family
Unpaired t Test Family
 
Anova and T-Test
Anova and T-TestAnova and T-Test
Anova and T-Test
 
Applied statistics lecture_8
Applied statistics lecture_8Applied statistics lecture_8
Applied statistics lecture_8
 
Parametric test 7
Parametric test 7Parametric test 7
Parametric test 7
 
T test
T testT test
T test
 
Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)
 
Parametric tests
Parametric testsParametric tests
Parametric tests
 
Anova test
Anova testAnova test
Anova test
 
t-test vs ANOVA
t-test vs ANOVAt-test vs ANOVA
t-test vs ANOVA
 
t Test- Thiyagu
t Test- Thiyagut Test- Thiyagu
t Test- Thiyagu
 
Anova in easyest way
Anova in easyest wayAnova in easyest way
Anova in easyest way
 
Statistical tests
Statistical tests Statistical tests
Statistical tests
 
Inferential statistics quantitative data - anova
Inferential statistics   quantitative data - anovaInferential statistics   quantitative data - anova
Inferential statistics quantitative data - anova
 
Regression vs ANOVA
Regression vs ANOVARegression vs ANOVA
Regression vs ANOVA
 
Advanced statistics
Advanced statisticsAdvanced statistics
Advanced statistics
 
Anova lecture
Anova lectureAnova lecture
Anova lecture
 
Repeated anova measures ppt
Repeated anova measures pptRepeated anova measures ppt
Repeated anova measures ppt
 
non parametric statistics
non parametric statisticsnon parametric statistics
non parametric statistics
 

Similar to The t test

T Test and ANOVA Presentation_By Limon.pptx
T Test and ANOVA Presentation_By Limon.pptxT Test and ANOVA Presentation_By Limon.pptx
T Test and ANOVA Presentation_By Limon.pptxAkhtaruzzamanlimon1
 
Parametric & non-parametric
Parametric & non-parametricParametric & non-parametric
Parametric & non-parametricSoniaBabaee
 
Statistical test in spss
Statistical test in spssStatistical test in spss
Statistical test in spssBipin Neupane
 
When to use, What Statistical Test for data Analysis modified.pptx
When to use, What Statistical Test for data Analysis modified.pptxWhen to use, What Statistical Test for data Analysis modified.pptx
When to use, What Statistical Test for data Analysis modified.pptxAsokan R
 
Testing of hypothesis.pptx
Testing of hypothesis.pptxTesting of hypothesis.pptx
Testing of hypothesis.pptxSyedaKumail
 
INDEPENDENT SAMPLE T TEST.pptx
INDEPENDENT SAMPLE T TEST.pptxINDEPENDENT SAMPLE T TEST.pptx
INDEPENDENT SAMPLE T TEST.pptxMisbah660782
 
T test^jsample size^j ethics
T test^jsample size^j ethicsT test^jsample size^j ethics
T test^jsample size^j ethicsAbhishek Thakur
 
Parametric Test by Vikramjit Singh
Parametric Test  by  Vikramjit SinghParametric Test  by  Vikramjit Singh
Parametric Test by Vikramjit SinghVikramjit Singh
 
Research method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anovaResearch method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anovanaranbatn
 

Similar to The t test (20)

1 ANOVA.ppt
1 ANOVA.ppt1 ANOVA.ppt
1 ANOVA.ppt
 
T Test and ANOVA Presentation_By Limon.pptx
T Test and ANOVA Presentation_By Limon.pptxT Test and ANOVA Presentation_By Limon.pptx
T Test and ANOVA Presentation_By Limon.pptx
 
Student's T-Test
Student's T-TestStudent's T-Test
Student's T-Test
 
t-test Parametric test Biostatics and Research Methodology
t-test Parametric test Biostatics and Research Methodologyt-test Parametric test Biostatics and Research Methodology
t-test Parametric test Biostatics and Research Methodology
 
Parametric & non-parametric
Parametric & non-parametricParametric & non-parametric
Parametric & non-parametric
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
Statistical test in spss
Statistical test in spssStatistical test in spss
Statistical test in spss
 
When to use, What Statistical Test for data Analysis modified.pptx
When to use, What Statistical Test for data Analysis modified.pptxWhen to use, What Statistical Test for data Analysis modified.pptx
When to use, What Statistical Test for data Analysis modified.pptx
 
Testing of hypothesis.pptx
Testing of hypothesis.pptxTesting of hypothesis.pptx
Testing of hypothesis.pptx
 
HYPOTHESES.pptx
HYPOTHESES.pptxHYPOTHESES.pptx
HYPOTHESES.pptx
 
Student t test
Student t testStudent t test
Student t test
 
Workshop on Data Analysis and Result Interpretation in Social Science Researc...
Workshop on Data Analysis and Result Interpretation in Social Science Researc...Workshop on Data Analysis and Result Interpretation in Social Science Researc...
Workshop on Data Analysis and Result Interpretation in Social Science Researc...
 
INDEPENDENT SAMPLE T TEST.pptx
INDEPENDENT SAMPLE T TEST.pptxINDEPENDENT SAMPLE T TEST.pptx
INDEPENDENT SAMPLE T TEST.pptx
 
spss
spss spss
spss
 
T test^jsample size^j ethics
T test^jsample size^j ethicsT test^jsample size^j ethics
T test^jsample size^j ethics
 
Ttest
TtestTtest
Ttest
 
Parametric Test by Vikramjit Singh
Parametric Test  by  Vikramjit SinghParametric Test  by  Vikramjit Singh
Parametric Test by Vikramjit Singh
 
Amrita kumari
Amrita kumariAmrita kumari
Amrita kumari
 
Research method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anovaResearch method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anova
 
mean comparison.pptx
mean comparison.pptxmean comparison.pptx
mean comparison.pptx
 

More from freelancer

KNOWLEDGE MANAGEMENT notes.docx
KNOWLEDGE MANAGEMENT notes.docxKNOWLEDGE MANAGEMENT notes.docx
KNOWLEDGE MANAGEMENT notes.docxfreelancer
 
KNOWLEDGE MANAGEMENT notes.docx
KNOWLEDGE MANAGEMENT notes.docxKNOWLEDGE MANAGEMENT notes.docx
KNOWLEDGE MANAGEMENT notes.docxfreelancer
 
academic model.docx
academic model.docxacademic model.docx
academic model.docxfreelancer
 
Three Statement Model.pptx
Three Statement Model.pptxThree Statement Model.pptx
Three Statement Model.pptxfreelancer
 
Conjoint Analysis.pptx
Conjoint Analysis.pptxConjoint Analysis.pptx
Conjoint Analysis.pptxfreelancer
 
Conjoint analysis
Conjoint analysisConjoint analysis
Conjoint analysisfreelancer
 
Demography ppt2
Demography ppt2Demography ppt2
Demography ppt2freelancer
 
Chapter 4-analytics-talent-management
Chapter 4-analytics-talent-managementChapter 4-analytics-talent-management
Chapter 4-analytics-talent-managementfreelancer
 
Correlation and regression impt
Correlation and regression imptCorrelation and regression impt
Correlation and regression imptfreelancer
 

More from freelancer (12)

PPT1KM.pptx
PPT1KM.pptxPPT1KM.pptx
PPT1KM.pptx
 
KNOWLEDGE MANAGEMENT notes.docx
KNOWLEDGE MANAGEMENT notes.docxKNOWLEDGE MANAGEMENT notes.docx
KNOWLEDGE MANAGEMENT notes.docx
 
KNOWLEDGE MANAGEMENT notes.docx
KNOWLEDGE MANAGEMENT notes.docxKNOWLEDGE MANAGEMENT notes.docx
KNOWLEDGE MANAGEMENT notes.docx
 
academic model.docx
academic model.docxacademic model.docx
academic model.docx
 
AI BASICS.ppt
AI BASICS.pptAI BASICS.ppt
AI BASICS.ppt
 
Three Statement Model.pptx
Three Statement Model.pptxThree Statement Model.pptx
Three Statement Model.pptx
 
Conjoint Analysis.pptx
Conjoint Analysis.pptxConjoint Analysis.pptx
Conjoint Analysis.pptx
 
Conjoint analysis
Conjoint analysisConjoint analysis
Conjoint analysis
 
Demography ppt2
Demography ppt2Demography ppt2
Demography ppt2
 
Chapter 4-analytics-talent-management
Chapter 4-analytics-talent-managementChapter 4-analytics-talent-management
Chapter 4-analytics-talent-management
 
Tabulation
TabulationTabulation
Tabulation
 
Correlation and regression impt
Correlation and regression imptCorrelation and regression impt
Correlation and regression impt
 

Recently uploaded

Non Text Magic Studio Magic Design for Presentations L&P.pdf
Non Text Magic Studio Magic Design for Presentations L&P.pdfNon Text Magic Studio Magic Design for Presentations L&P.pdf
Non Text Magic Studio Magic Design for Presentations L&P.pdfPratikPatil591646
 
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxmodul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxaleedritatuxx
 
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...Boston Institute of Analytics
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Cathrine Wilhelmsen
 
Rithik Kumar Singh codealpha pythohn.pdf
Rithik Kumar Singh codealpha pythohn.pdfRithik Kumar Singh codealpha pythohn.pdf
Rithik Kumar Singh codealpha pythohn.pdfrahulyadav957181
 
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdfEnglish-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdfblazblazml
 
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...Dr Arash Najmaei ( Phd., MBA, BSc)
 
knowledge representation in artificial intelligence
knowledge representation in artificial intelligenceknowledge representation in artificial intelligence
knowledge representation in artificial intelligencePriyadharshiniG41
 
Decoding Patterns: Customer Churn Prediction Data Analysis Project
Decoding Patterns: Customer Churn Prediction Data Analysis ProjectDecoding Patterns: Customer Churn Prediction Data Analysis Project
Decoding Patterns: Customer Churn Prediction Data Analysis ProjectBoston Institute of Analytics
 
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Boston Institute of Analytics
 
Digital Indonesia Report 2024 by We Are Social .pdf
Digital Indonesia Report 2024 by We Are Social .pdfDigital Indonesia Report 2024 by We Are Social .pdf
Digital Indonesia Report 2024 by We Are Social .pdfNicoChristianSunaryo
 
Principles and Practices of Data Visualization
Principles and Practices of Data VisualizationPrinciples and Practices of Data Visualization
Principles and Practices of Data VisualizationKianJazayeri1
 
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024Susanna-Assunta Sansone
 
What To Do For World Nature Conservation Day by Slidesgo.pptx
What To Do For World Nature Conservation Day by Slidesgo.pptxWhat To Do For World Nature Conservation Day by Slidesgo.pptx
What To Do For World Nature Conservation Day by Slidesgo.pptxSimranPal17
 
Introduction to Mongo DB-open-­‐source, high-­‐performance, document-­‐orient...
Introduction to Mongo DB-open-­‐source, high-­‐performance, document-­‐orient...Introduction to Mongo DB-open-­‐source, high-­‐performance, document-­‐orient...
Introduction to Mongo DB-open-­‐source, high-­‐performance, document-­‐orient...boychatmate1
 
IBEF report on the Insurance market in India
IBEF report on the Insurance market in IndiaIBEF report on the Insurance market in India
IBEF report on the Insurance market in IndiaManalVerma4
 
Digital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing worksDigital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing worksdeepakthakur548787
 
Bank Loan Approval Analysis: A Comprehensive Data Analysis Project
Bank Loan Approval Analysis: A Comprehensive Data Analysis ProjectBank Loan Approval Analysis: A Comprehensive Data Analysis Project
Bank Loan Approval Analysis: A Comprehensive Data Analysis ProjectBoston Institute of Analytics
 

Recently uploaded (20)

Non Text Magic Studio Magic Design for Presentations L&P.pdf
Non Text Magic Studio Magic Design for Presentations L&P.pdfNon Text Magic Studio Magic Design for Presentations L&P.pdf
Non Text Magic Studio Magic Design for Presentations L&P.pdf
 
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxmodul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
 
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)
 
Rithik Kumar Singh codealpha pythohn.pdf
Rithik Kumar Singh codealpha pythohn.pdfRithik Kumar Singh codealpha pythohn.pdf
Rithik Kumar Singh codealpha pythohn.pdf
 
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdfEnglish-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
 
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
 
knowledge representation in artificial intelligence
knowledge representation in artificial intelligenceknowledge representation in artificial intelligence
knowledge representation in artificial intelligence
 
Decoding Patterns: Customer Churn Prediction Data Analysis Project
Decoding Patterns: Customer Churn Prediction Data Analysis ProjectDecoding Patterns: Customer Churn Prediction Data Analysis Project
Decoding Patterns: Customer Churn Prediction Data Analysis Project
 
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
 
Digital Indonesia Report 2024 by We Are Social .pdf
Digital Indonesia Report 2024 by We Are Social .pdfDigital Indonesia Report 2024 by We Are Social .pdf
Digital Indonesia Report 2024 by We Are Social .pdf
 
Principles and Practices of Data Visualization
Principles and Practices of Data VisualizationPrinciples and Practices of Data Visualization
Principles and Practices of Data Visualization
 
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
 
What To Do For World Nature Conservation Day by Slidesgo.pptx
What To Do For World Nature Conservation Day by Slidesgo.pptxWhat To Do For World Nature Conservation Day by Slidesgo.pptx
What To Do For World Nature Conservation Day by Slidesgo.pptx
 
Introduction to Mongo DB-open-­‐source, high-­‐performance, document-­‐orient...
Introduction to Mongo DB-open-­‐source, high-­‐performance, document-­‐orient...Introduction to Mongo DB-open-­‐source, high-­‐performance, document-­‐orient...
Introduction to Mongo DB-open-­‐source, high-­‐performance, document-­‐orient...
 
IBEF report on the Insurance market in India
IBEF report on the Insurance market in IndiaIBEF report on the Insurance market in India
IBEF report on the Insurance market in India
 
Insurance Churn Prediction Data Analysis Project
Insurance Churn Prediction Data Analysis ProjectInsurance Churn Prediction Data Analysis Project
Insurance Churn Prediction Data Analysis Project
 
Digital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing worksDigital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing works
 
Data Analysis Project: Stroke Prediction
Data Analysis Project: Stroke PredictionData Analysis Project: Stroke Prediction
Data Analysis Project: Stroke Prediction
 
Bank Loan Approval Analysis: A Comprehensive Data Analysis Project
Bank Loan Approval Analysis: A Comprehensive Data Analysis ProjectBank Loan Approval Analysis: A Comprehensive Data Analysis Project
Bank Loan Approval Analysis: A Comprehensive Data Analysis Project
 

The t test

  • 1. The t-test Inferences about Population Means
  • 2. Properties of Student’s t distribution • Similar to Standard normal distribution – Symmetric – unimodal – Centred at zero • Larger spread about zero. – The reason for this is the increased variability introduced by replacing σ by s. • As the sample size increases (degrees of freedom increases) the t distribution approaches the standard normal distribution
  • 3. Background • The t-test is used to test hypotheses about means when the population variance is unknown (the usual case). Closely related to z, the unit normal. • Developed by Gossett for the quality control of beer. • Comes in 3 varieties: • Single sample, independent samples, and dependent samples.
  • 4. What kind of t is it? • Single sample t – we have only 1 group; want to test against a hypothetical mean. • Independent samples t – we have 2 means, 2 groups; no relation between groups, e.g., people randomly assigned to a single group. • Dependent t – we have two means. Either same people in both groups, or people are related, e.g., husband-wife, left hand-right hand, hospital patient and visitor.
  • 5. Degrees of Freedom For the t distribution, degrees of freedom are always a simple function of the sample size, e.g., (N-1). One way of explaining df is that if we know the total or mean, and all but one score, the last (N-1) score is not free to vary. It is fixed by the other scores. 4+3+2+X = 10. X=1.
  • 6. 1-Sample t-test • Z test requires that you know σ from pop • Use a t-test when you don’t know the population standard deviation. • One sample t-test: – Compare a sample mean to a population with a known mean but an unknown variance – Use Sy (sample std dev) to estimate σ (pop std dev)
  • 7. The one-sample t-test (also called the "single-parameter t test" or "single-sample t-test") is used to determine whether a sample comes from a population with a specific mean. This population mean is not always known, but is sometimes hypothesized.
  • 8. When to Use a One Sample T Test‐ ‐ To determine whether some obtained value is statistically different from a neutral value, from a previously published population mean, from zero, or from some other externally dictated mean score, a one-sample t-test can be used. The one-sample t- test asks whether the mean score from the sample you have tested is statistically different from the externally determined mean score you are using to compare it to.
  • 9. Basic requirements of the one-sample t-test • Assumption #1: You have one dependent variable that is measured at the continuous level. • Assumption #2: The data are independent (i.e., not correlated/related).
  • 10. Study Designs A one-sample t-test could be used as part of a robust sampling strategy or used when you want to make a comparison to a criterion measure.
  • 11. Sampling accuracy/adequacy • The one-sample t-test can be used as part of a robust sampling strategy. After all, if the results from the sample are to be generalized to the population, it is important that the characteristics of the sample reflect those of the population that the sample is drawn from.
  • 12. Comparison to a criterion measure • The one-sample t-test can be used to compare a value from a sample to a criterion measure (i.e., to some other value). The criterion measure may be known or hypothesized.
  • 13. Independent-samples t-test The independent-samples t-test is used to determine if a difference exists between the means of two independent groups on a continuous dependent variable. More specifically, it will let you determine whether the difference between these two groups is statistically significant.
  • 14. Basic requirements of the independent-samples t-test • Assumption #1: You have one dependent variable that is measured at the continuous level • Assumption #2: You have one independent variable that consists of two categorical, independent groups (i.e., a dichotomous variable). Example independent variables that meet this criterion include gender (two groups: "males" or "females"),
  • 15. Study Designs • An independent-samples t-test is most often used to analyse the results of three different types of study design: (a) determining if there are differences between two independent groups; (b) determining if there are differences between interventions; and (c) determining if there are differences in change scores.
  • 16. Determining if there are differences between two independent groups • You have a study design where you are measuring a dependent variable (e.g., weight, anxiety level, salary, reaction time, etc.) in two independent/different groups (e.g., males/females, employed/unemployed, under 21 years old/21 years old or older, etc.), and you wish to know if there is a mean difference in the dependent variable between the two groups.
  • 17. Determining if there are differences between interventions You have a study design where participants are randomly assigned to one of two groups. Each group receives a different intervention (e.g., Group A received no intervention, known as a 'control', whilst Group B undergo an exercise programme; Group A listens to music, whilst Group B does not listen to music;
  • 18. The paired-samples t-test The paired-samples t-test is used to determine whether the mean difference between paired observations is statistically significantly different from zero. The participants are either the same individuals tested at two time points or under two different conditions on the same dependent variable..
  • 19. Basic requirements of the paired-samples t-test Assumption #1: You have one dependent variable that is measured at the continuous (i.e., ratio or interval) level Assumption #2: You have one independent variable that consists of two categorical, related groups or matched pairs (i.e., a dichotomous variable).
  • 20. Study Designs Determine if there are changes over time between two related groups. Example Health professionals want to investigate the medium-term effect of a hypnotherapy programme on the daily cigarette use of heavy smokers
  • 21. Research question Is there a difference in daily cigarette use amongst heavy smokers six months after a hypnotherapy programme? Null hypothesis There is no difference in daily cigarette use amongst heavy smokers six months after a hypnotherapy programme. Alternative hypothesis There is a difference in daily cigarette use amongst heavy smokers six months after a hypnotherapy programme.
  • 22. Dependent variable Cigarette consumption (measured in terms of the number of cigarettes smoked daily) Independent variable Time, which has two levels: Time point #1: Immediately before the start of the hypnotherapy programme Time point #2: 6 months after completion of the hypnotherapy programme The paired-samples t-test is used to determine whether any difference between the two related groups (i.e., the two time points) is statistically significant.
  • 23. Study Design #2 • Determine if there are differences between conditions • In this study design, you want to determine if there are differences in the scores of a dependent variable between two related groups.
  • 24. Example An online retailer wants to know whether using background music in their order fulfilment centre would lead to greater productivity amongst packers
  • 25. Research question Is there a difference in productivity amongst packers based on the use of background music? Null hypothesis There is no difference in productivity amongst packers based on the use of background music. Alternative hypothesis There is a difference in productivity amongst packers based on the use of background music.
  • 26. Dependent variable Productivity (measured in terms of packages processed per hour) Independent variable Background music Group 1: No Music (the "control") Group 2: Music (the "treatment") The paired-samples t-test is used to determine whether any difference between the two related groups (i.e., the two conditions) is statistically significant.
  • 27. EXAMPLE A researcher wants to test a new formula for a sports drink that improves running performance. Instead of a regular, carbohydrate-only drink, this new sports drink contains a new carbohydrate- protein mixture. The researcher would like to know whether this new carbohydrate-protein drink leads to a difference in performance compared to the carbohydrate-only sports drink.
  • 28. To do this, the researcher recruited 20 participants who each performed two trials in which they had to run as far as possible in 2 hours on a treadmill. In one of the trials they drank the carbohydrate-only drink and in the other trial they drank the carbohydrate-protein drink. The order of the trials was counterbalanced and the distance they ran in both trials was recorded. For a paired-samples t-test, you will have two variables. In this example, these are: 1) carb, which is the distance run (in km) in two hours for the carbohydrate-only trial; and 2) carb_protein, which is the distance run (in km) in two hours for the carbohydrate-protein trial.
  • 29. A behavioral scientist wants to know whether drinking a single glass of beer affects reaction times. She has 30 participants perform some tasks before and after having a beer and records their reaction times. For each participant she calculates the average reaction time over tasks both before and after the beer, resulting in reaction_times.sav. Can we conclude from these data that a single beer affects reaction time? EXAMPLE