SlideShare a Scribd company logo
1 of 26
AGUSTIN.DE
VILLA.DOMINGO.VERZOSA
III-BECQUEREL
T-TEST FOR INDEPENDENT
VARIABLES
WHAT IS THIS TEST?
 The t-test assesses whether the means
of two groups are statistically different
from each other. This analysis is
appropriate whenever you want to
compare the means of two groups, and
especially appropriate as the analysis
for the posttest-only two-group
randomized experimental design.
WHAT IS THIS TEST?
 The test statistic in the t-test is known as
the t-statistic. The t-test looks at the t-
statistic, t-distribution and degrees of
freedom to determine a p value
(probability) that can be used to determine
whether the population means differ. The t-
test is one of a number of hypothesis tests.
To compare three or more variables,
statisticians use an analysis of variance
(ANOVA). If the sample size is large, they
use a z-test. Other hypothesis tests include
the chi-square test and f-test.
WHAT IS THIS TEST?
 A statistical examination of two population
means.
 A two-sample t-test examines whether two
samples are different and is commonly
used when the variances of two normal
distributions are unknown and when an
experiment uses a small sample size. For
example, a t-test could be used to compare
the average floor routine score of the U.S.
women's Olympic gymnastic team to the
average floor routine score of China's
WHERE IS IT USED?
Hypothesis for the independent t-test
 The null hypothesis for the independent t-test is that the
population means from the two unrelated groups are
equal:
 H0: u1 = u2
 In most cases, we are looking to see if we can show that
we can reject the null hypothesis and accept the
alternative hypothesis, which is that the population means
are not equal:
 HA: u1 ≠ u2
 To do this, we need to set a significance level (alpha) that
allows us to either reject or accept the alternative
hypothesis. Most commonly, this value is set at 0.05.
What do you need to run an
independent t-test?
 In order to run an independent t-
test, you need the following:
 One independent, categorical variable that has
two levels.
 One dependent variable.
Unrelated groups
 Unrelated groups, also called unpaired groups or
independent groups, are groups in which the
cases in each group are different. Often we are
investigating differences in individuals, which
means that when comparing two groups, an
individual in one group cannot also be a member
of the other group and vice versa. An example
would be gender - an individual would have to be
classified as either male or female - not both.
STEPS
Determine the null and
alternative hypothesis.
Determine α
STEPS
Create four columns: "x",
"(x-Mx)2", "y", "(y-My)2"
Put the raw data for group
X in column x, and for
group Y in column y
STEPS
Calculate the mean for
both groups
STEPS
Calculate deviation scores
for each group by subtracting
each score from it's group
mean and squaring it and put
these in the columns "(x-
Mx)2" and "(y-My)2"
STEPS
Sum the squared
deviation scores
for each group
STEPS
Calculate S2 for
each group
x = individual scores
M = mean
n= number of scores in
group
STEPS
Set up formula
Calculate t
M = mean
n = number of scores per group
STEPS
Check to see if t is statistically
significant on probability table
with df = N-2 and p < .05 (N =
total number of scores)
PROBLEM
 Sam Sleepresearcher hypothesizes that people
who are allowed to sleep for only four hours will
score significantly lower than people who are
allowed to sleep for eight hours on a cognitive
skills test. He brings sixteen participants into his
sleep lab and randomly assigns them to one of
two groups. In one group he has participants
sleep for eight hours and in the other group he
has them sleep for four. The next morning he
administers the SCAT (Sam's Cognitive Ability
Test) to all participants. (Scores on the SCAT
range from 1-9 with high scores representing
better performance).
DATA TABLE
SCAT scores
8 hours sleep group (X) 5 7 5 3 5 3 3 9
4 hours sleep group (Y) 8 1 4 6 6 4 1 2
STEP 1
 Null hypothesis: People who are allowed to
sleep for only four hours will not score
significantly lower than people who are
allowed to sleep for eight hours on a cognitive
skills test.
 Alternative Hypothesis: People who are
allowed to sleep for only four hours will score
significantly lower than people who are
allowed to sleep for eight hours on a cognitive
skills test.
STEP 2
x (x-Mx)2 y (y - My)2
5 0 8 16
7 4 1 9
5 0 4 0
3 4 6 4
5 0 6 4
3 4 4 0
3 4 1 9
9 16 2 4
STEP 3
x (x-Mx)2 y (y - My)2
5 0 8 16
7 4 1 9
5 0 4 0
3 4 6 4
5 0 6 4
3 4 4 0
3 4 1 9
9 16 2 4
STEP 4
x (x-Mx)2 y (y - My)2
5 0 8 16
7 4 1 9
5 0 4 0
3 4 6 4
5 0 6 4
3 4 4 0
3 4 1 9
9 16 2 4
x=40 (x-Mx)2=32 y=32 (y-My)2=46
Mx=5 My=4
STEP 5
CALCULATE
FOR t.
STEP 6
According to the t
sig/probability table with df =
14, t must be at least 2.145
to reach p < .05, so this
difference is not statistically
significant
INTERPRETATION
Sam's hypothesis was not
confirmed. He did not find a
significant difference between
those who slept for four hours
versus those who slept for eight
hours on cognitive test
performance.

More Related Content

What's hot

What's hot (20)

The Kruskal-Wallis H Test
The Kruskal-Wallis H TestThe Kruskal-Wallis H Test
The Kruskal-Wallis H Test
 
One Way Anova
One Way AnovaOne Way Anova
One Way Anova
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
EXPERIMENTAL RESEARCH DESIGN
EXPERIMENTAL RESEARCH DESIGNEXPERIMENTAL RESEARCH DESIGN
EXPERIMENTAL RESEARCH DESIGN
 
Chi square tests using SPSS
Chi square tests using SPSSChi square tests using SPSS
Chi square tests using SPSS
 
z-test
z-testz-test
z-test
 
One sided or one-tailed tests
One sided or one-tailed testsOne sided or one-tailed tests
One sided or one-tailed tests
 
Friedman test Stat
Friedman test Stat Friedman test Stat
Friedman test Stat
 
Advanced statistics Lesson 1
Advanced statistics Lesson 1Advanced statistics Lesson 1
Advanced statistics Lesson 1
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
T test
T testT test
T test
 
Inferential statistics powerpoint
Inferential statistics powerpointInferential statistics powerpoint
Inferential statistics powerpoint
 
Experimental Research Design
Experimental Research DesignExperimental Research Design
Experimental Research Design
 
Data Analysis With Spss - Reliability
Data Analysis With Spss -  ReliabilityData Analysis With Spss -  Reliability
Data Analysis With Spss - Reliability
 
Experimental design
Experimental designExperimental design
Experimental design
 
Data analysis with spss anova
Data analysis with spss anovaData analysis with spss anova
Data analysis with spss anova
 
Types of experimental research designs
Types of experimental research designsTypes of experimental research designs
Types of experimental research designs
 
Parametric tests
Parametric testsParametric tests
Parametric tests
 
Parametric vs Non-Parametric
Parametric vs Non-ParametricParametric vs Non-Parametric
Parametric vs Non-Parametric
 
Repeated Measures ANOVA
Repeated Measures ANOVARepeated Measures ANOVA
Repeated Measures ANOVA
 

Similar to T test for independent variables

Basic of Statistical Inference Part-V: Types of Hypothesis Test (Parametric)
Basic of Statistical Inference Part-V: Types of Hypothesis Test (Parametric) Basic of Statistical Inference Part-V: Types of Hypothesis Test (Parametric)
Basic of Statistical Inference Part-V: Types of Hypothesis Test (Parametric) Dexlab Analytics
 
Assessment 3 ContextYou will review the theory, logic, and a.docx
Assessment 3 ContextYou will review the theory, logic, and a.docxAssessment 3 ContextYou will review the theory, logic, and a.docx
Assessment 3 ContextYou will review the theory, logic, and a.docxgalerussel59292
 
WEEK 6 – EXERCISES Enter your answers in the spaces pr.docx
WEEK 6 – EXERCISES Enter your answers in the spaces pr.docxWEEK 6 – EXERCISES Enter your answers in the spaces pr.docx
WEEK 6 – EXERCISES Enter your answers in the spaces pr.docxwendolynhalbert
 
Parametric & non-parametric
Parametric & non-parametricParametric & non-parametric
Parametric & non-parametricSoniaBabaee
 
Marketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxMarketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxxababid981
 
Basics of Educational Statistics (T-test)
Basics of Educational Statistics (T-test)Basics of Educational Statistics (T-test)
Basics of Educational Statistics (T-test)HennaAnsari
 
Mann- Whitney Test.pptx
Mann- Whitney Test.pptxMann- Whitney Test.pptx
Mann- Whitney Test.pptxEchaACagalitan
 
Power study: 1-way anova vs kruskall wallis
Power study: 1-way anova vs kruskall wallisPower study: 1-way anova vs kruskall wallis
Power study: 1-way anova vs kruskall wallisDon Cua
 
Assessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docxAssessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docxgalerussel59292
 
hypothesis testing.pptx
hypothesis testing.pptxhypothesis testing.pptx
hypothesis testing.pptxRUELLICANTO1
 
Statistics for Anaesthesiologists
Statistics for AnaesthesiologistsStatistics for Anaesthesiologists
Statistics for Anaesthesiologistsxeonfusion
 
Assessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docxAssessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docxfestockton
 
REVISION SLIDES 2.pptx
REVISION SLIDES 2.pptxREVISION SLIDES 2.pptx
REVISION SLIDES 2.pptxssuser0bb1f22
 
Medical Statistics Part-II:Inferential statistics
Medical Statistics Part-II:Inferential  statisticsMedical Statistics Part-II:Inferential  statistics
Medical Statistics Part-II:Inferential statisticsRamachandra Barik
 
6ONE-WAY BETWEEN-SUBJECTS ANALYSIS OFVARIANCE6.1 .docx
6ONE-WAY BETWEEN-SUBJECTS ANALYSIS OFVARIANCE6.1  .docx6ONE-WAY BETWEEN-SUBJECTS ANALYSIS OFVARIANCE6.1  .docx
6ONE-WAY BETWEEN-SUBJECTS ANALYSIS OFVARIANCE6.1 .docxalinainglis
 

Similar to T test for independent variables (20)

Basic of Statistical Inference Part-V: Types of Hypothesis Test (Parametric)
Basic of Statistical Inference Part-V: Types of Hypothesis Test (Parametric) Basic of Statistical Inference Part-V: Types of Hypothesis Test (Parametric)
Basic of Statistical Inference Part-V: Types of Hypothesis Test (Parametric)
 
Assessment 3 ContextYou will review the theory, logic, and a.docx
Assessment 3 ContextYou will review the theory, logic, and a.docxAssessment 3 ContextYou will review the theory, logic, and a.docx
Assessment 3 ContextYou will review the theory, logic, and a.docx
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
WEEK 6 – EXERCISES Enter your answers in the spaces pr.docx
WEEK 6 – EXERCISES Enter your answers in the spaces pr.docxWEEK 6 – EXERCISES Enter your answers in the spaces pr.docx
WEEK 6 – EXERCISES Enter your answers in the spaces pr.docx
 
Ttest
TtestTtest
Ttest
 
T test
T test T test
T test
 
Parametric & non-parametric
Parametric & non-parametricParametric & non-parametric
Parametric & non-parametric
 
Marketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxMarketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptx
 
GROUP 08 .pptx
GROUP 08 .pptxGROUP 08 .pptx
GROUP 08 .pptx
 
Basics of Educational Statistics (T-test)
Basics of Educational Statistics (T-test)Basics of Educational Statistics (T-test)
Basics of Educational Statistics (T-test)
 
Mann- Whitney Test.pptx
Mann- Whitney Test.pptxMann- Whitney Test.pptx
Mann- Whitney Test.pptx
 
Power study: 1-way anova vs kruskall wallis
Power study: 1-way anova vs kruskall wallisPower study: 1-way anova vs kruskall wallis
Power study: 1-way anova vs kruskall wallis
 
Assessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docxAssessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docx
 
hypothesis testing.pptx
hypothesis testing.pptxhypothesis testing.pptx
hypothesis testing.pptx
 
Statistics for Anaesthesiologists
Statistics for AnaesthesiologistsStatistics for Anaesthesiologists
Statistics for Anaesthesiologists
 
Assessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docxAssessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docx
 
non para.doc
non para.docnon para.doc
non para.doc
 
REVISION SLIDES 2.pptx
REVISION SLIDES 2.pptxREVISION SLIDES 2.pptx
REVISION SLIDES 2.pptx
 
Medical Statistics Part-II:Inferential statistics
Medical Statistics Part-II:Inferential  statisticsMedical Statistics Part-II:Inferential  statistics
Medical Statistics Part-II:Inferential statistics
 
6ONE-WAY BETWEEN-SUBJECTS ANALYSIS OFVARIANCE6.1 .docx
6ONE-WAY BETWEEN-SUBJECTS ANALYSIS OFVARIANCE6.1  .docx6ONE-WAY BETWEEN-SUBJECTS ANALYSIS OFVARIANCE6.1  .docx
6ONE-WAY BETWEEN-SUBJECTS ANALYSIS OFVARIANCE6.1 .docx
 

Recently uploaded

Event mailer assignment progress report .pdf
Event mailer assignment progress report .pdfEvent mailer assignment progress report .pdf
Event mailer assignment progress report .pdftbatkhuu1
 
The Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case studyThe Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case studyEthan lee
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageMatteo Carbone
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communicationskarancommunications
 
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableDipal Arora
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...Aggregage
 
A305_A2_file_Batkhuu progress report.pdf
A305_A2_file_Batkhuu progress report.pdfA305_A2_file_Batkhuu progress report.pdf
A305_A2_file_Batkhuu progress report.pdftbatkhuu1
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsP&CO
 
Monthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxMonthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxAndy Lambert
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...lizamodels9
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Dave Litwiller
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Centuryrwgiffor
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...amitlee9823
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Roland Driesen
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...Paul Menig
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Serviceritikaroy0888
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesDipal Arora
 
Progress Report - Oracle Database Analyst Summit
Progress  Report - Oracle Database Analyst SummitProgress  Report - Oracle Database Analyst Summit
Progress Report - Oracle Database Analyst SummitHolger Mueller
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfPaul Menig
 

Recently uploaded (20)

Event mailer assignment progress report .pdf
Event mailer assignment progress report .pdfEvent mailer assignment progress report .pdf
Event mailer assignment progress report .pdf
 
The Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case studyThe Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case study
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communications
 
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
 
A305_A2_file_Batkhuu progress report.pdf
A305_A2_file_Batkhuu progress report.pdfA305_A2_file_Batkhuu progress report.pdf
A305_A2_file_Batkhuu progress report.pdf
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and pains
 
Forklift Operations: Safety through Cartoons
Forklift Operations: Safety through CartoonsForklift Operations: Safety through Cartoons
Forklift Operations: Safety through Cartoons
 
Monthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxMonthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptx
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Century
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Service
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
Progress Report - Oracle Database Analyst Summit
Progress  Report - Oracle Database Analyst SummitProgress  Report - Oracle Database Analyst Summit
Progress Report - Oracle Database Analyst Summit
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdf
 

T test for independent variables

  • 2. WHAT IS THIS TEST?  The t-test assesses whether the means of two groups are statistically different from each other. This analysis is appropriate whenever you want to compare the means of two groups, and especially appropriate as the analysis for the posttest-only two-group randomized experimental design.
  • 3. WHAT IS THIS TEST?  The test statistic in the t-test is known as the t-statistic. The t-test looks at the t- statistic, t-distribution and degrees of freedom to determine a p value (probability) that can be used to determine whether the population means differ. The t- test is one of a number of hypothesis tests. To compare three or more variables, statisticians use an analysis of variance (ANOVA). If the sample size is large, they use a z-test. Other hypothesis tests include the chi-square test and f-test.
  • 4. WHAT IS THIS TEST?  A statistical examination of two population means.  A two-sample t-test examines whether two samples are different and is commonly used when the variances of two normal distributions are unknown and when an experiment uses a small sample size. For example, a t-test could be used to compare the average floor routine score of the U.S. women's Olympic gymnastic team to the average floor routine score of China's
  • 5. WHERE IS IT USED?
  • 6. Hypothesis for the independent t-test  The null hypothesis for the independent t-test is that the population means from the two unrelated groups are equal:  H0: u1 = u2  In most cases, we are looking to see if we can show that we can reject the null hypothesis and accept the alternative hypothesis, which is that the population means are not equal:  HA: u1 ≠ u2  To do this, we need to set a significance level (alpha) that allows us to either reject or accept the alternative hypothesis. Most commonly, this value is set at 0.05.
  • 7. What do you need to run an independent t-test?  In order to run an independent t- test, you need the following:  One independent, categorical variable that has two levels.  One dependent variable.
  • 8. Unrelated groups  Unrelated groups, also called unpaired groups or independent groups, are groups in which the cases in each group are different. Often we are investigating differences in individuals, which means that when comparing two groups, an individual in one group cannot also be a member of the other group and vice versa. An example would be gender - an individual would have to be classified as either male or female - not both.
  • 9. STEPS Determine the null and alternative hypothesis. Determine α
  • 10. STEPS Create four columns: "x", "(x-Mx)2", "y", "(y-My)2" Put the raw data for group X in column x, and for group Y in column y
  • 11. STEPS Calculate the mean for both groups
  • 12. STEPS Calculate deviation scores for each group by subtracting each score from it's group mean and squaring it and put these in the columns "(x- Mx)2" and "(y-My)2"
  • 13. STEPS Sum the squared deviation scores for each group
  • 14. STEPS Calculate S2 for each group x = individual scores M = mean n= number of scores in group
  • 15. STEPS Set up formula Calculate t M = mean n = number of scores per group
  • 16. STEPS Check to see if t is statistically significant on probability table with df = N-2 and p < .05 (N = total number of scores)
  • 17.
  • 18. PROBLEM  Sam Sleepresearcher hypothesizes that people who are allowed to sleep for only four hours will score significantly lower than people who are allowed to sleep for eight hours on a cognitive skills test. He brings sixteen participants into his sleep lab and randomly assigns them to one of two groups. In one group he has participants sleep for eight hours and in the other group he has them sleep for four. The next morning he administers the SCAT (Sam's Cognitive Ability Test) to all participants. (Scores on the SCAT range from 1-9 with high scores representing better performance).
  • 19. DATA TABLE SCAT scores 8 hours sleep group (X) 5 7 5 3 5 3 3 9 4 hours sleep group (Y) 8 1 4 6 6 4 1 2
  • 20. STEP 1  Null hypothesis: People who are allowed to sleep for only four hours will not score significantly lower than people who are allowed to sleep for eight hours on a cognitive skills test.  Alternative Hypothesis: People who are allowed to sleep for only four hours will score significantly lower than people who are allowed to sleep for eight hours on a cognitive skills test.
  • 21. STEP 2 x (x-Mx)2 y (y - My)2 5 0 8 16 7 4 1 9 5 0 4 0 3 4 6 4 5 0 6 4 3 4 4 0 3 4 1 9 9 16 2 4
  • 22. STEP 3 x (x-Mx)2 y (y - My)2 5 0 8 16 7 4 1 9 5 0 4 0 3 4 6 4 5 0 6 4 3 4 4 0 3 4 1 9 9 16 2 4
  • 23. STEP 4 x (x-Mx)2 y (y - My)2 5 0 8 16 7 4 1 9 5 0 4 0 3 4 6 4 5 0 6 4 3 4 4 0 3 4 1 9 9 16 2 4 x=40 (x-Mx)2=32 y=32 (y-My)2=46 Mx=5 My=4
  • 25. STEP 6 According to the t sig/probability table with df = 14, t must be at least 2.145 to reach p < .05, so this difference is not statistically significant
  • 26. INTERPRETATION Sam's hypothesis was not confirmed. He did not find a significant difference between those who slept for four hours versus those who slept for eight hours on cognitive test performance.