student’s t test.ppt

上传人:仙人指路1688 文档编号:2870329 上传时间:2023-02-28 格式:PPT 页数:26 大小:323KB
返回 下载 相关 举报
student’s t test.ppt_第1页
第1页 / 共26页
student’s t test.ppt_第2页
第2页 / 共26页
student’s t test.ppt_第3页
第3页 / 共26页
student’s t test.ppt_第4页
第4页 / 共26页
student’s t test.ppt_第5页
第5页 / 共26页
点击查看更多>>
资源描述

《student’s t test.ppt》由会员分享,可在线阅读,更多相关《student’s t test.ppt(26页珍藏版)》请在三一办公上搜索。

1、Students t test,This test was invented by a statistician working for the brewer Guinness.He was called WS Gosset(1867-1937),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 f

2、or 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.,T-test,Test for single mean Whether the sample mean is equal to the predefined population mean?2.Test f

3、or difference in means Whether the CD4 level of patients taking treatment A is equal to CD4 level of patients taking treatment B?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 r

4、andom from a large stock.Is it likely that the mean weight for the whole stock could be 24 mg,a value observed in some previous work?.,9 18 21 26 18 22 27 19 22 29 19 24 3016 20 24 32,Steps for test for single mean,Questioned to be answered Is the Mean weight of the sample of 20 rats is 24 mg?N=20,=

5、21.0 mg,sd=5.91,=24.0 mg2.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)df4.Comparison with theoretical value if tab t(n-1)cal t(n-1)accept Ho,5.Inference,t test for single mean,Test statistics n=20,=21.0 mg,sd=5.91,=24.0

6、 mg t=t.05,19=2.093 Accept H0 if t=2.093,Inference:There is no evidence that the sample is taken from the population with mean weight of 24 gm,Determining the p-Value,.95,t,0,f(t),-1.96,1.96,.025,.025,red area=rejection region for 2-sided test,Given below are the 24 hrs total energy expenditure(MJ/d

7、ay)in groups of lean and obese women.Examine whether the obese womens mean energy expenditure is significantly higher?.,Lean 6.1 7.0 7.57.5 5.5 7.67.9 8.1 8.18.1 8.4 10.210.9,T-test for difference in means,Obese 8.8 9.2 9.2 9.7 9.7 10.0 11.5 11.8 12.8,Two sample t-test,Difference between means,Sampl

8、e size,Variability of data,t-test,t,+,+,T-test for difference in means,Null Hypothesis Obese womens mean energy expenditure is equal to the lean womens energy expenditure.Test statistics:,1,2-means of sample 1 and sample 2 1,2 sd of sample 1 and sample 2n1,n2 number of study subjects in sample 1 and

9、 sample 2,t(n1+n2-2),T-test for difference in means,Data Summary lean ObeseN 13 9 8.10 10.30S 1.38 1.25,Inference:The cal t(3.82)is higher than tab t at 0.05,20.ie 2.086.This implies that there is a evidence that the mean energy expenditure in obese group is significantly(p0.05)higher than that of l

10、ean group,tab t 9+13-2=20 df=t 0.05,20=2.086,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 practic

11、e 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,Can represent each student with a single score:the difference(D)between the scores,Approach:test t

12、he effectiveness of program by testing significance of DAlternative hypothesis:program is effective scores after program will be higher than scores before program average D will be greater than zeroH0:D 0H1:D 0,So,need to know D and D2:,Recall that for single samples:,For related samples:,where:,and

13、,Standard deviation of D:,Mean of D:,Standard error:,Under H0,D=0,so:,From Table B.2:for=0.05,one-tailed,with df=7,tcrit=1.8952.714 1.895 reject H0 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-

14、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:-When Sample size is small and for the following situations:(1)to compare the single sample mean with the population mean(2)to compare the sample means of two indpendent samples(3)to compare the sample means of paired samples,

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 建筑/施工/环境 > 项目建议


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号