Student’s t test This test was invented by a statistician WS Gosset (1867- 1937), but preferred to keep anonymous so wrote under the name “Student”. This.

Slides:



Advertisements
Similar presentations
The t-distribution William Gosset lived from 1876 to 1937 Gosset invented the t -test to handle small samples for quality control in brewing. He wrote.
Advertisements

“Students” t-test.
Student’s t test This test was invented by a statistician working for the brewer Guinness. He was called WS Gosset ( ), but preferred to keep.
Statistical tests for Quantitative variables (z-test & t-test) BY Dr.Shaikh Shaffi Ahamed Ph.D., Associate Professor Dept. of Family & Community Medicine.
Statistics Review – Part II Topics: – Hypothesis Testing – Paired Tests – Tests of variability 1.
Chapter 12: Testing hypotheses about single means (z and t) Example: Suppose you have the hypothesis that UW undergrads have higher than the average IQ.
Review of the Basic Logic of NHST Significance tests are used to accept or reject the null hypothesis. This is done by studying the sampling distribution.
Chapter 9 Hypothesis Tests. The logic behind a confidence interval is that if we build an interval around a sample value there is a high likelihood that.
The t-test:. Answers the question: is the difference between the two conditions in my experiment "real" or due to chance? Two versions: (a) “Dependent-means.
Independent Samples and Paired Samples t-tests PSY440 June 24, 2008.
Today Today: Chapter 10 Sections from Chapter 10: Recommended Questions: 10.1, 10.2, 10-8, 10-10, 10.17,
Overview of Lecture Parametric Analysis is used for
Inferences About Means of Single Samples Chapter 10 Homework: 1-6.
Inferences About Means of Single Samples Chapter 10 Homework: 1-6.
Statistics 101 Class 9. Overview Last class Last class Our FAVORATE 3 distributions Our FAVORATE 3 distributions The one sample Z-test The one sample.
T-Tests Lecture: Nov. 6, 2002.
Testing the Difference Between Means (Small Independent Samples)
Statistical Inference Dr. Mona Hassan Ahmed Prof. of Biostatistics HIPH, Alexandria University.
Estimation and Hypothesis Testing Faculty of Information Technology King Mongkut’s University of Technology North Bangkok 1.
Hypothesis Testing:.
Copyright © Cengage Learning. All rights reserved. 13 Linear Correlation and Regression Analysis.
CHP400: Community Health Program - lI Research Methodology. Data analysis Hypothesis testing Statistical Inference test t-test and 22 Test of Significance.
Section 10.1 ~ t Distribution for Inferences about a Mean Introduction to Probability and Statistics Ms. Young.
Education 793 Class Notes T-tests 29 October 2003.
Inference about Two Population Standard Deviations.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 2 – Slide 1 of 25 Chapter 11 Section 2 Inference about Two Means: Independent.
- Interfering factors in the comparison of two sample means using unpaired samples may inflate the pooled estimate of variance of test results. - It is.
The Hypothesis of Difference Chapter 10. Sampling Distribution of Differences Use a Sampling Distribution of Differences when we want to examine a hypothesis.
PowerPoint presentations prepared by Lloyd Jaisingh, Morehead State University Statistical Inference: Hypotheses testing for single and two populations.
Week 111 Power of the t-test - Example In a metropolitan area, the concentration of cadmium (Cd) in leaf lettuce was measured in 7 representative gardens.
Hypothesis tests III. Statistical errors, one-and two sided tests. One-way analysis of variance. 1.
1 Objective Compare of two matched-paired means using two samples from each population. Hypothesis Tests and Confidence Intervals of two dependent means.
Statistical Analysis Mean, Standard deviation, Standard deviation of the sample means, t-test.
One-sample In the previous cases we had one sample and were comparing its mean to a hypothesized population mean However in many situations we will use.
Copyright © Cengage Learning. All rights reserved. 10 Inferences Involving Two Populations.
1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples.
Copyright © Cengage Learning. All rights reserved. 14 Elements of Nonparametric Statistics.
Interval Estimation and Hypothesis Testing Prepared by Vera Tabakova, East Carolina University.
1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use.
Reasoning in Psychology Using Statistics Psychology
Chapter 8 Parameter Estimates and Hypothesis Testing.
Example You give 100 random students a questionnaire designed to measure attitudes toward living in dormitories Scores range from 1 to 7 –(1 = unfavorable;
The t-distribution William Gosset lived from 1876 to 1937 Gosset invented the t -test to handle small samples for quality control in brewing. He wrote.
- We have samples for each of two conditions. We provide an answer for “Are the two sample means significantly different from each other, or could both.
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
1 Objective Compare of two matched-paired means using two samples from each population. Hypothesis Tests and Confidence Intervals of two dependent means.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 1 – Slide 1 of 26 Chapter 11 Section 1 Inference about Two Means: Dependent Samples.
T tests: confidence intervals and hypothesis tests
Comparing the Means of Two Dependent Populations.
Statistical tests for Quantitative variables (z-test, t-test & Correlation) BY Dr.Shaikh Shaffi Ahamed Ph.D., Associate Professor Dept. of Family & Community.
1 Section 8.5 Testing a claim about a mean (σ unknown) Objective For a population with mean µ (with σ unknown), use a sample to test a claim about the.
T tests comparing two means t tests comparing two means.
Significance Tests for Regression Analysis. A. Testing the Significance of Regression Models The first important significance test is for the regression.
Testing Differences in Means (t-tests) Dr. Richard Jackson © Mercer University 2005 All Rights Reserved.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
Introduction to the t statistic. Steps to calculate the denominator for the t-test 1. Calculate variance or SD s 2 = SS/n-1 2. Calculate the standard.
Chapter 7 Inference Concerning Populations (Numeric Responses)
1 Section 8.4 Testing a claim about a mean (σ known) Objective For a population with mean µ (with σ known), use a sample (with a sample mean) to test a.
Chapter 10: The t Test For Two Independent Samples.
Micro array Data Analysis. Differential Gene Expression Analysis The Experiment Micro-array experiment measures gene expression in Rats (>5000 genes).
When the means of two groups are to be compared (where each group consists of subjects that are not related) then the excel two-sample t-test procedure.
Lecture Nine - Twelve Tests of Significance.
Chapter 8 Hypothesis Testing with Two Samples.
“Students” t-test Prof Dr Najlaa Fawzi
chapter-7 hypothesis testing for quantitative variable
Reasoning in Psychology Using Statistics
Hypothesis Tests for a Standard Deviation
Dr.Shaikh Shaffi Ahamed Ph.D., Dept. of Family & Community Medicine
Presentation transcript:

Student’s t test This test was invented by a statistician WS Gosset ( ), but preferred to keep anonymous so wrote under the name “Student”. This test was invented by a statistician WS Gosset ( ), but preferred to keep anonymous so wrote under the name “Student”.

The t-distribution William Gosset lived from 1876 to 1937 Gosset invented the t -test to handle small samples for quality control in brewing. He wrote under the name "Student".

t-Statistic When the sampled population is normally distributed, the t statistic is Student t distributed with n-1 degrees of freedom. When the sampled population is normally distributed, the t statistic is Student t distributed with n-1 degrees of freedom.

T-test 1.Test for single mean Whether the sample mean is equal to the predefined population mean ?. Test for difference in means 2. Test for difference in means Whether the CD4 level of patients taking treatment A is equal to CD4 level of patients taking treatment B ? Test for paired observation 3. Test for paired observation Whether the treatment conferred any significant benefit ?

T- test for single mean The following are the weight (mg) of each of 20 rats drawn at random from a large stock. Is it likely that the mean weight of these 20 rats are similar to the mean weight ( 24 mg) of the whole stock ?

Steps for test for single mean 1.Questioned to be answered Is the Mean weight of the sample of 20 rats is 24 mg? N=20, =21.0 mg, sd=5.91, =24.0 mg 2. Null Hypothesis The mean weight of rats is 24 mg. That is, The sample mean is equal to population mean. 3. Test statistics --- t (n-1) df 4. Comparison with theoretical value if tab t (n-1) < cal t (n-1) reject Ho, if tab t (n-1) > cal t (n-1) accept Ho, 5. Inference

t –test for single mean Test statistics Test statistics n=20, =21.0 mg, sd=5.91, =24.0 mg n=20, =21.0 mg, sd=5.91, =24.0 mg t  = t.05, 19 = Accept H 0 if t = Inference : There is no evidence that the sample is taken from the population with mean weight of 24 gm There is no evidence that the sample is taken from the population with mean weight of 24 gm

Area =.025 Area =.005 Z Area =.025 Area = Determining the p-Value

.9 5 t 0 f(t)  red area = rejection region for 2-sided test

Given below are the 24 hrs total energy expenditure (MJ/day) in groups of lean and obese women. Examine whether the obese women’s mean energy expenditure is significantly higher ?. Lean Lean T-test for difference in means Obese Obese

T-test for difference in means Null Hypothesis Null Hypothesis Obese women’s mean energy expenditure is equal to the lean women’s energy expenditure. Obese women’s mean energy expenditure is equal to the lean women’s energy expenditure. Test statistics : 1, 2 - means of sample 1 and sample 2 1, 2 – sd of sample 1 and sample 2 n1, n2 – number of study subjects in sample 1 and sample 2 t(n1+n2-2)

T-test for difference in means Data Summary lean Obese lean Obese N S Inference : The cal t (3.82) is higher than tab t at 0.05, 20. ie This implies that there is a evidence that the mean energy expenditure in obese group is significantly (p<0.05) higher than that of lean group tab t =20 df = t 0.05,20 =2.086

Two sample t-test Difference between means Sample size Variability of data t-test t t t t + +

Example Suppose we want to test the effectiveness of a program designed to increase scores on the quantitative section of the Graduate Record Exam (GRE). We test the program on a group of 8 students. Prior to entering the program, each student takes a practice quantitative GRE; after completing the program, each student takes another practice exam. Based on their performance, was the program effective?

Each subject contributes 2 scores: repeated measures design Each subject contributes 2 scores: repeated measures design StudentBefore ProgramAfter Program

Can represent each student with a single score: the difference (D) between the scores Can represent each student with a single score: the difference (D) between the scores Student Before ProgramAfter Program D

Approach: test the effectiveness of program by testing significance of D Approach: test the effectiveness of program by testing significance of D Null hypothesis: There is no difference in the scores of before and after program Null hypothesis: There is no difference in the scores of before and after program Alternative hypothesis: program is effective → scores after program will be higher than scores before program → average D will be greater than zero Alternative hypothesis: program is effective → scores after program will be higher than scores before program → average D will be greater than zero H 0 : µ D = 0 H 1 : µ D > 0

Student Before Program After ProgramDD2D ∑D = 180∑D 2 = 7900 So, need to know ∑D and ∑D 2 :

Recall that for single samples: For related samples: where: and

Standard deviation of D: Mean of D: Standard error:

Under H 0, µ D = 0, so: From Table B.2: for α = 0.05, one-tailed, with df = 7, t critical = > → reject H 0 The program is effective.

t-Value t is a measure of: How difficult is it to believe the null hypothesis? High t Difficult to believe the null hypothesis - accept that there is a real difference. Low t Easy to believe the null hypothesis - have not proved any difference.

In Conclusion ! Student ‘s t-test will be used: Student ‘s t-test will be used: --- When Sample size is small --- When Sample size is small and for the following situations: and for the following situations: (1) to compare the single sample mean (1) to compare the single sample mean with the population mean with the population mean (2) to compare the sample means of (2) to compare the sample means of two indpendent samples two indpendent samples (3) to compare the sample means of paired samples (3) to compare the sample means of paired samples