Presentation is loading. Please wait.

Presentation is loading. Please wait.

Don’t spam class lists!!!. Farshad has prepared a suggested format for you final project. It will be on the web

Similar presentations


Presentation on theme: "Don’t spam class lists!!!. Farshad has prepared a suggested format for you final project. It will be on the web"— Presentation transcript:

1 Don’t spam class email lists!!!

2 Farshad (farshad.nemati@uleth.ca) has prepared a suggested format for you final project. It will be on the web site.farshad.nemati@uleth.ca

3 The Z statistic Where

4 The Z statistic Where

5 The Z statistic Where

6 The Z statistic Where

7 The t Statistic(s) Using an estimated, which we’ll call we can create an estimate of which we’ll call Estimate: and:

8 The t Statistic(s) Caution: some textbooks and some calculators use the symbol S 2 to represent this estimated population variance

9 The t Statistic(s) Using, instead of we get a statistic that isn’t from a normal (Z) distribution - it is from a family of distributions called t

10 The t Statistic(s) What’s the difference between t and Z?

11 The t Statistic(s) What’s the difference between t and Z? Nothing if n is really large (approaching infinity) –because n-1 and n are almost the same number!

12 The t Statistic(s) With small values of n, the shape of the t distribution depends on the degrees of freedom (n-1)

13 The t Statistic(s) With small values of n, the shape of the t distribution depends on the degrees of freedom (n-1) –specifically it is flatter but still symmetric with small n

14 The t Statistic(s) Since the shape of the t distribution depends on the d.f., the fraction of t scores falling within any given range also depends on d. f.

15 The t Statistic(s) The Z table isn’t useful (unless n is huge) instead we use a t-table which gives t crit for different degrees of freedom (and both one- and two-tailed tests)

16 The t Statistic(s) There is a t table on page 142 of your book Look it over - notice how t crit changes with the d.f. and the alpha level

17 The t Statistic(s) The logic of using this table to test alternative hypothesis against null hypothesis is precisely as with Z scores - in fact, the values in the bottom row are given by the Z table and the familiar +/- 1.96 appears for alpha =.05 (two- tailed)

18 An Example You have a theory that drivers in Alberta are illegally speedy

19 An Example You have a theory that drivers in Alberta are illegally speedy –Prediction: the mean speed on highway 2 between Ft. Mac and Calgary is greater than 110

20 An Example You have a theory that drivers in Alberta are illegally speedy –Prediction: the mean speed on highway 2 between Ft. Mac and Calgary is greater than 110 Here’s another way to say that: a sample of n drivers on the highway is not a sample from a population of drivers with a mean speed of 110

21 An Example Set up the problem: –null hypothesis: your sample of drivers on highway 2 are representative of a population with an average speed of 110 km/hr –alternative hypothesis: sample of drivers is from a population with a mean speed greater than 110 thus: in 95% of such samples and

22 An Example Here are some (fake) data

23 An Example –t crit for a one-tailed test with 5-1 = 4 d.f. is 2.1318 –Our computed t = 1.59 does not exceed t crit thus we cannot reject the null hypothesis –We conclude there is no evidence to support our hypothesis that drivers are speeding on highway 2 –Does this mean that drivers are not speeding on highway 2?

24 T-test for one sample mean We’ve discussed how to create and use a t statistic when we want to compare a sample mean to a hypothesized mean

25 t Tests for Two Sample Means We’re often interested in a more sophisticated and powerful experimental design…

26 t Tests for Two Sample Means We’re often interested in a more sophisticated and powerful experimental design… Usually we perform some experimental manipulation and look for a change on some score or variable –e.g. before and after taking a drug

27 t Tests for Two Sample Means We manipulate a variable (eg. drug dose) and we want to know whether some other variable (e.g. fever) depends on our manipulation

28 t Tests for Two Sample Means We manipulate a variable (eg. drug dose) and we want to know whether some other variable (e.g. fever) depends on our manipulation Let’s introduce some formal terms: –independent variable: the variable that you control –dependent variable: the variable that depends on the experimental manipulation (the one you measure)

29 t Tests for Two Sample Means Example: Let’s ask whether or not Tylenol reduces fever - there are two ways you could do this…

30 t Tests for Two Sample Means Example: Let’s ask whether or not Tylenol reduces fever - there are two ways you could do this… 1. Get a bunch of people with fevers, give half of them Tylenol and half of them a placebo and then measure their temperatures

31 t Tests for Two Sample Means Example: Let’s ask whether or not Tylenol reduces fever - there are two ways you could do this… 1. Get a bunch of people with fevers, give half of them Tylenol and half of them a placebo and then measure their temperatures 2. Get a bunch of people with fevers, measure their temperatures, then give them Tylenol and measure them again

32 t Tests for Two Sample Means Repeated Measures - an experiment in which the same subject (or object) is measured in two (or more!) conditions

33 t Tests for Two Sample Means Repeated Measures - an experiment in which the same subject (or object) is measured in two (or more!) conditions The two samples are actually pairs of scores and those pairs are correlated or dependent

34 t Tests for Two Sample Means Repeated Measures - an experiment in which the same subject (or object) is measured in two (or more!) conditions The two samples are actually pairs of scores and those pairs are correlated or dependent This type of t test is called a test for two dependent sample means (sometimes called a paired t-test)

35 t Tests for Two Dependent Sample Means When comparing two paired samples we’re often not interested in the absolute scores but we are interested in the differences between scores X 11 X 12. X 1n X 21 X 22. X 2n Sample 1Sample 2Difference X 11 - X 21 X 12 - X 22. X 1n - X 2n This is a sample of differences taken from a population of differences it has a mean and standard deviation

36 t Tests for Two Dependent Sample Means If we’re wondering whether an independent variable has some effect on the dependent variable then our null hypothesis is that there is no difference between the two paired measurements in our sample

37 t Tests for Two Dependent Sample Means If we’re wondering whether an independent variable has some effect on the dependent variable then our null hypothesis is that there is no difference between the two paired measurements in our sample Some differences would be positive, some would be negative, on average the difference would be zero

38 t Tests for Two Dependent Sample Means We can use a t-test to test if the sample of differences has a mean that is significantly different from zero This is done by simply treating your column of differences as a one-sample t-test with a null hypothesis that u = 0

39 t Tests for Two Dependent Sample Means Some curiosities that make your life easier with regard to paired t-tests –Note that: –And that n 1 always equals n 2 –As with the z-test, the t distribution is symmetric so you treat negative differences as if they were positive for comparing to t crit –Also as with the z-test, one- or two-tailed tests are possible…simply use the appropriate column from the t table

40 t Test for Two Independent Sample Means Often we have a situation in which repeated measures is inappropriate or impossible (e.g. any time measuring the dependant variable once alters subsequent measurements)

41 t Test for Two Independent Sample Means Often we have a situation in which repeated measures is inappropriate or impossible (e.g. any time measuring the dependant variable once alters subsequent measurements) In this situation we must use a between- subjects design

42 t Test for Two Independent Sample Means The data are laid out like the repeated measures case except they aren’t pairs of scores, the two columns are measurements of different subjects (objects, etc.) We thus usually only refer to a single measurement with respect to the mean of that sample Sample 1Sample 2Difference

43 t Test for Two Independent Sample Means The null hypothesis states that these two independent samples are random samples from the same population

44 t Test for Two Independent Sample Means The null hypothesis states that these two independent samples are random samples from the same population –so you would expect the difference to be zero on average

45 t Test for Two Independent Sample Means The null hypothesis states that these two independent samples are random samples from the same population –so you would expect the difference to be zero on average –therefore the numerator of the t statistic in this situation works just like the dependent samples case where

46 t Test for Two Independent Sample Means The denominator is different because…

47 t Test for Two Independent Sample Means The denominator is different because… How many degrees of freedom are there?

48 t Test for Two Independent Sample Means The denominator is different because… How many degrees of freedom are there? –The mean difference is based on two different samples, each with their own degrees of freedom

49 t Test for Two Independent Sample Means The denominator is different because… How many degrees of freedom are there? –The mean difference is based on two different samples, each with their own degrees of freedom –So there are n 1 -1+n 2 -1 = n 1 +n 2 -2 d.f.

50 t Test for Two Independent Sample Means The denominator is different because… How many degrees of freedom are there? –The mean difference is based on two different samples, each with their own degrees of freedom –So there are n 1 -1+n 2 -1 = n 1 +n 2 -2 d.f. –The best estimate of the population standard deviation will incorporate both samples so that it has more degrees of freedom

51 t Test for Two Independent Sample Means We can pool the sums of squares (which weights the variances according to the number in each sample)

52 t Test for Two Independent Sample Means We can pool the sums of squares (which weights the variances according to the number in each sample) Then divide by the pooled degrees of freedom to estimate

53 t Test for Two Independent Sample Means Estimate : Both samples contribute to the standard error of the mean differences so and…

54 t Test for Two Independent Sample Means Now we can construct a t statistic

55 t Test for Two Independent Sample Means Notice that this t statistic has more degrees of freedom than its dependent samples counterpart Why does a repeated measures design still tend to have more power?

56 t Test for Two Independent Sample Means Consider an example: –Are northbound drivers slower than southbound drivers on highway 2 ? –Null hypothesis: samples of n speeds taken from northbound and southbound traffic are from the same population –Alternative hypothesis: samples of southbound drivers are from a population with a mean greater than that of northbound drivers

57 t Test for Two Independent Sample Means For a one-tailed test at  =.05, with 8 d.f., t crit = 1.86. We can therefore reject the null hypothesis and conclude that southbound drivers are faster.

58 t Test for Two Independent Sample Means Some caveats and disclaimers about independent-sample t-tests: –There is an assumption of equal variance in the two underlying populations If this assumption is violated, your Type I error rate is greater than the indicated alpha! However, for samples of equal n, the t-test is quite robust to violations of this assumption (so you usually don’t have to worry about it) –Note that n need not be equal! (but it’s better if possible)

59 Next Time: Too many t tests spoils the statistics


Download ppt "Don’t spam class lists!!!. Farshad has prepared a suggested format for you final project. It will be on the web"

Similar presentations


Ads by Google