Presentation is loading. Please wait.

Presentation is loading. Please wait.

T-distribution & comparison of means Z as test statistic Use a Z-statistic only if you know the population standard deviation (σ). Z-statistic converts.

Similar presentations


Presentation on theme: "T-distribution & comparison of means Z as test statistic Use a Z-statistic only if you know the population standard deviation (σ). Z-statistic converts."— Presentation transcript:

1 T-distribution & comparison of means Z as test statistic Use a Z-statistic only if you know the population standard deviation (σ). Z-statistic converts a sample mean into a z-score from the null distribution. p-value is the probability of getting a Z test as extreme as yours under the null distribution

2 T-distribution & comparison of means t-test: uses sample data to evaluate a hypothesis about a population mean when population stdev (  ) is unknown We use the sample stdev (s) to estimate the standard error t as a test statistic x =x =  n sx =sx = s n standard error estimated standard error

3 T-distribution & comparison of means You can use s to approximate σ, but then the sampling distribution is a t distribution instead of a normal distribution Why are Z-scores normally distributed, but t-scores are not? t distribution Random variable constant Random variable constant (normal) (non-normal)

4 T-distribution & comparison of means t distribution Very large sample - estimated standard error almost = the true standard error (t almost exactly the same as Z) t distribution is a family of curves. As n gets bigger, t becomes more normal. For smaller n, the t distribution is platykurtic (narrower peak, fatter tails) Use “degrees of freedom” to decide which t curve to use. Basic t-test, df = n-1

5 T-distribution & comparison of means t distribution df.05.025.01.005 12341234 6.314 2.920 2.353 2.132 12.706 4.303 3.182 2.776 32.821 6.965 4.541 3.747 63.657 9.925 5.841 4.604 t crit Level of significance for a one-tailed test

6 T-distribution & comparison of means Practice with Table B.3 With a sample of size 6, what are the degrees of freedom? For a one-tailed test, what is the critical value of t for an alpha of.05? And for an alpha of.01? Df = 5, t crit = 2.015; t crit = 3.365

7 T-distribution & comparison of means Practice with Table B.3 For a sample of size 25, doing a two-tailed test, what are the degrees of freedom and the critical value of t for an alpha of.05 and for an alpha of.01? Df = 24, t crit = 2.064; t crit = 2.797

8 T-distribution & comparison of means Practice with Table B.3 You have a sample of size 13 and you are doing a one-tailed test. Your t calc = 2. What do you approximate the p-value to be? p-value between.025 and.05 What if you had the same data, but were doing a two-tailed test? p-value between.05 and.10

9 T-distribution & comparison of means Two-sample testing All the inferential statistics we have considered involve using one sample as the basis for drawing conclusion about one population. Most research studies aim to compare of two (or more) sets of data in order to make inferences about the differences between two (or more) populations. What do we do when our research question concerns a mean difference between two sets of data?

10 T-distribution & comparison of means Two-sample testing Steps for Calculating a Test Statistic: To test the null hypothesis – compute a t statistic and look up in Table B.3 H o :  1 -  2 = 0 H A :  1 -  2  0

11 T-distribution & comparison of means Two-sample testing Steps for Calculating a Test Statistic: General t formula t = sample statistic - hypothesized population parameter estimated standard error

12 T-distribution & comparison of means Two-sample testing Steps for Calculating a Test Statistic: One Sample t Remember? For two-sample test

13 T-distribution & comparison of means Two-sample testing Steps for Calculating a Test Statistic: Standard Error for a Difference in Means The one-sample standard error ( sx ) measures how much error expected between X and . The two sample standard error (sx 1 -x 2 ) measures how much error is expected when you are using a sample mean difference (X 1 – X 2 ) to represent a population mean difference.

14 T-distribution & comparison of means Two-sample testing Steps for Calculating a Test Statistic: Standard Error for a Difference in Means

15 T-distribution & comparison of means Two-sample testing Steps for Calculating a Test Statistic: Calculate the total amount of error involved in using two sample means - find the error from each sample separately and then add the two errors together. Each of the two sample means - there is some error.

16 T-distribution & comparison of means Two-sample testing Steps for Calculating a Test Statistic: Standard Error for a Difference in Means BUT: Only works when n 1 = n 2

17 T-distribution & comparison of means Two-sample testing Steps for Calculating a Test Statistic: Change the formula slightly - use the pooled sample variance instead of the individual sample variances. Pooled variance = weighted estimate of the variance derived from the two samples.

18 T-distribution & comparison of means One-Sample T 1.Calculate sample mean 2.Calculate standard error 3.Calculate T and d.f. 4.Use Table B.3

19 T-distribution & comparison of means Two-Sample T 1.Calculate X 1 -X 2 d.f. = (n 1 - 1) + (n 2 - 1) 2.Calculate pooled variance 3.Calculate standard error 4.Calculate T and d.f. 5.Use Table B.3

20 T-distribution & comparison of means EXAMPLE

21 T-distribution & comparison of means EXAMPLE

22 T-distribution & comparison of means EXAMPLE

23 T-distribution & comparison of means EXAMPLE

24 T-distribution & comparison of means EXAMPLE

25 T-distribution & comparison of means EXAMPLE

26 T-distribution & comparison of means SUMMARY OF EQUATIONS


Download ppt "T-distribution & comparison of means Z as test statistic Use a Z-statistic only if you know the population standard deviation (σ). Z-statistic converts."

Similar presentations


Ads by Google