Presentation is loading. Please wait.

Presentation is loading. Please wait.

Psy B07 Chapter 7Slide 1 HYPOTHESIS TESTING APPLIED TO MEANS.

Similar presentations


Presentation on theme: "Psy B07 Chapter 7Slide 1 HYPOTHESIS TESTING APPLIED TO MEANS."— Presentation transcript:

1 Psy B07 Chapter 7Slide 1 HYPOTHESIS TESTING APPLIED TO MEANS

2 Psy B07 Chapter 7Slide 2  Central Limit Theorem  Single Means – σ is known  Single Means – σ is unknown  Pairs of Means – Matched Samples  Pairs of Means – Independent Samples  Variance Sum Law  Pooling Variances & Unequal Ns  Heterogeneity of Variance  The Cookbook Outline

3 Psy B07 Chapter 7Slide 3 Typical Question Q1: Is some sample mean different from what would be expected given some population distribution?  On the face of it, this question should remind you of your previous fun with z-scores.  In the case of z-scores, we asked whether some observation was significantly different from some sample mean.  In the case of this question, we are asking whether some sample mean is significantly different from some population mean

4 Psy B07 Chapter 7Slide 4 Typical Question  Despite this apparent similarity, the questions are different because the sampling distribution of the mean (the t distribution) is different from the sampling distribution of observations the z distribution).  In order to understand the distinction between the z and t-tests, we need to understand the Central Limit Theorem...

5 Psy B07 Chapter 7Slide 5 Central Limit Theorem  CLT: Given a population with mean μ and variance σ, the sampling distribution of the mean (the distribution of sample means) will have a mean equal to μ (i.e., ), a variance ( ) equal to, and a standard deviation ( ) equal to. The distribution will approach the normal distribution as N, the sample size, increases.

6 Psy B07 Chapter 7Slide 6 Central Limit Theorem 1.Population of Scores 1, 2, 4, 5, 8 N = 5 μ x = 4.00 σ X = 2.45

7 Psy B07 Chapter 7Slide 7 Central Limit Theorem 2.All possible samples of size 2 (n=2) 1,12,14,15,18,1 1,22,24,25,28,2 1,42,44,45,48,4 1,52,54,55,58,5 1,82,84,85,88,8

8 Psy B07 Chapter 7Slide 8 Central Limit Theorem 3. Sampling distribution of sample means 1.01.52.53.04.5 1.52.03.03.55.0 2.53.04.04.56.0 3.03.54.55.06.5 4.55.06.06.58.0

9 Psy B07 Chapter 7Slide 9 Central Limit Theorem 4.

10 Psy B07 Chapter 7Slide 10 Central Limit Theorem 5.

11 Psy B07 Chapter 7Slide 11 Single Means – σ is known  Although it is seldom the case, sometimes we know the variance (as well as the mean) of the population distribution of interest.  In such cases, we can do a revised version of the z-test that takes into account the central limit theorem

12 Psy B07 Chapter 7Slide 12 Single Means – σ is known  Specifically......becomes...

13 Psy B07 Chapter 7Slide 13 Single Means – σ is known  With this formula, we can answer questions like the following: Say I sampled 25 students at UofT and measured their IQ, finding a mean of 110. Is this mean significantly different from the population which has a mean IQ of 100 and a standard deviation of 15?

14 Psy B07 Chapter 7Slide 14 Single Means – σ is unknown  Unfortunately, it is very rare that we know the population standard deviation.  Instead we must use the sample standard deviation, s, to estimate .  However, there is a hitch to this. While s 2 is an unbiased estimator of  2 (i.e., the mean of the sampling distribution of s 2 equals  2 ), the sampling distribution of s 2 is positively skewed

15 Psy B07 Chapter 7Slide 15 Single Means – σ is unknown  This means that any individual s 2 chosen from the sampling distribution of s 2 will tend to underestimate  2.  Thus, if we used the formula that we used when  was known, we would tend to get z values that were larger than they should be, leading to too many significant results

16 Psy B07 Chapter 7Slide 16 Single Means – σ is unknown  The solution? Use the same formula (modified to use s instead of ), find its distribution under H 0, then use that distribution for doing hypothesis testing. The result:

17 Psy B07 Chapter 7Slide 17 Single Means – σ is unknown  When a t-value is calculated in this manner, it is evaluated using the t-table (p. 747 of the text) and the row for n-1 degrees of freedom.  So, with all this in hand, we can now answer questions of the following type...

18 Psy B07 Chapter 7Slide 18 Single Means – σ is unknown Example: Let’s say that the average human who has reached maturity is 68” tall. I’m curious whether the average height of our class differs from this population mean. So, I measure the height of the 100 people who come to class one day, and get a mean 70” and a standard deviation of 5”. What can I conclude?

19 Psy B07 Chapter 7Slide 19 Single Means – σ is unknown  If we look at the t-table, we find the critical t-value for alpha=.05 and 99 (n-1) degrees of freedom is 1.984.  Since the t obt > t crit, we reject H 0

20 Psy B07 Chapter 7Slide 20 Typical Questions  Quite often, instead of comparing a single score or a single mean to a population, we want to compare two means against one another  In other words – is the mean of one group significantly different from another?  Matched Sample  Independent Sample

21 Psy B07 Chapter 7Slide 21 Pairs of Means – Matched Samples  In many studies, we test the same subject on multiple sessions or in different test conditions.  We then wish to compare the means across these sessions or test conditions.  This type of situation is referred to as a pair wise or matched samples (or within subjects) design, and it must be used anytime different data points cannot be assumed to be independent  sexist profs example

22 Psy B07 Chapter 7Slide 22 Pairs of Means – Matched Samples  As you are about to see, the t-test used in this situation is basically identical to the t-test discussed in the previous section, once the data has been transformed to provide difference scores

23 Psy B07 Chapter 7Slide 23 Pairs of Means – Matched Samples  Assume we have some measure of rudeness and we then measure 10 profs rudeness index; once when the offending TA is male, and once when they are female.

24 Psy B07 Chapter 7Slide 24 Pairs of Means – Matched Samples  Question becomes, is the average difference score significantly different from 0?  So, when we do the math:

25 Psy B07 Chapter 7Slide 25 Pairs of Means – Matched Samples  The critical t with alpha equal.05 (two- tailed) and 9 (n-1) degrees of freedom is 2.262.  Since t obt is not greater than t crit, we can not reject H 0.  Thus, we have no evidence that the profs rudeness is difference across TAs of different genders

26 Psy B07 Chapter 7Slide 26 Pairs of Means – Independent Samples  Another common situation is one where we have two of more groups composed of independent observations.  That is, each subject is in only one group and there is no reason to believe that knowing about one subjects performance in one of the groups would tell you anything about another subjects performance in one of the other groups

27 Psy B07 Chapter 7Slide 27 Pairs of Means – Independent Samples  In this situation we are said to have independent samples or, as it is sometimes called, a between subjects design  Example: Let’s take the famous “Misinformation Effect” memory experiment where subjects see a video of a car accident and are asked to estimate the speed of the car involved in the accident. The adjective used to describe the collision (smashed vs. ran into vs. contacted) is varied across groups (n=20). Did the manipulation affect speed estimates? That is, are the mean speed estimates of the various groups different?

28 Psy B07 Chapter 7Slide 28 Pairs of Means – Independent Samples  In the accident video, about how fast (in km/h) do you think the gray car was going when it ________ the side of the red car?

29 Psy B07 Chapter 7Slide 29 Pairs of Means – Independent Samples  There are, in fact, three different t-tests we can perform in this situation, comparing groups 1 &2, 1&3, or 2&3.  For demonstration purposes, let’s only worry about groups 1 & 2 for now.  So, we could ask, do subjects in Group 1 give different estimates of the gray car’s speed than subjects in Group 2?

30 Psy B07 Chapter 7Slide 30 Variance Sum Law  When testing a difference between two independent means, we must once again think about the sampling distribution associated with H 0.  If we assume the means come from separate populations, we could simultaneously draw samples from each population and calculate the mean of each sample

31 Psy B07 Chapter 7Slide 31 Variance Sum Law  If we repeat this process a number of times, we could generate sampling distributions of the mean of each population, and a sampling distribution of the difference of the two means.  If we actually did this, we would find that the sampling distribution of the difference would have a variance equal to the sum of the two population variances

32 Psy B07 Chapter 7Slide 32 Variance Sum Law  In fact, the Variance Sum Law states that: The variance of a sum or difference of two independent variables is equal to the sum of their variances

33 Psy B07 Chapter 7Slide 33 Pairs of Means – Independent Samples  Now recall that when we performed a t-test in the situation where the population standard deviation was unknown, we used the formula:  Given all of the above, we can now alter this formula in a way that will allow us to use it in the independent means example

34 Psy B07 Chapter 7Slide 34 Pairs of Means – Independent Samples  Specifically, instead of comparing a single sample mean with some mean, we want to see if the difference between two sample means equals zero.  Thus the numerator (top part) will change to: or simply

35 Psy B07 Chapter 7Slide 35 Pairs of Means – Independent Samples  And, because the standard error associated with the difference between two means is the sum of each mean’s standard error (by the variance sum law), the denominator of the formula changes to

36 Psy B07 Chapter 7Slide 36 Pairs of Means – Independent Samples  Thus, the basic formula for calculating a t-test for independent samples is:

37 Psy B07 Chapter 7Slide 37 Pairs of Means – Independent Samples  Finishing the example: Comparing groups 1 and 2, we end up with:  df = (n 1 +n 2 -2) = 38, t CRIT = 2.021.  Since t OBT > t CRIT we reject H 0

38 Psy B07 Chapter 7Slide 38 Pooling Variances & Unequal Ns  The previous formula is fine when sample sizes are equal.  However, when sample sizes are unequal, it treats both of the S 2 as equal in terms of their ability to estimate the population variance

39 Psy B07 Chapter 7Slide 39 Pooling Variances & Unequal Ns  Instead, it would be better to combine the s2 in a way that weighted them according to their respective sample sizes. This is done using the following pooled variance estimate:

40 Psy B07 Chapter 7Slide 40 Pooling Variances & Unequal Ns  Given this, the new formula for calculating an independent groups t-test is:

41 Psy B07 Chapter 7Slide 41 Pooling Variances & Unequal Ns  Using the pooled variances version of the t formula for independent samples is no different from using the separate variances version when sample sizes are equal. It can have a big effect, however, when sample sizes are unequal.

42 Psy B07 Chapter 7Slide 42 Heterogeneity of Variance  The text book has a large section on heterogeneity of variance (pp 213-216) including lots of nasty looking formulae. All I want you to know is the following:  When doing a t-test across two groups, you are assuming that the variances of the two groups are approximately equal.  If the variances look fairly different, there are tests that can be used to see if the difference is so great as to be a problem

43 Psy B07 Chapter 7Slide 43 Heterogeneity of Variance  If the variances are different across the groups, there are ways of correcting the t-test to take the heterogeneity in account.  In fact, t-tests are often quite robust to this problem, so you don’t have to worry about it too much.

44 Psy B07 Chapter 7Slide 44 The Cookbook One Observation vs. Population :

45 Psy B07 Chapter 7Slide 45 The Cookbook One Mean vs. One Population Mean: Population variance known:

46 Psy B07 Chapter 7Slide 46 The Cookbook One Mean vs. One Population Mean: Population variance unknown: df = n-1

47 Psy B07 Chapter 7Slide 47 The Cookbook Two Means: Matched samples: first create a difference score, then... df = n D -1

48 Psy B07 Chapter 7Slide 48 The Cookbook Two Means: Independent samples: df = n 1 +n 2 -2

49 Psy B07 Chapter 7Slide 49 The Cookbook Two Means: Independent samples...continued: where: Easy as baking a cake, right? Now for some examples of using these recipes to cook up some tasty conclusions...

50 Psy B07 Chapter 7Slide 50 Examples 1) The population spends an average of 8 hours per day working, with a standard deviation of 1 hour. A certain researcher believes that profs work less hours than average and wants to test whether the average hours per day that profs work is different from the population. This researcher samples 10 professors and asks them how many hours they work per day, leading to the following data set:  perform the appropriate statistical test and state your conclusions.

51 Psy B07 Chapter 7Slide 51 Examples 2) Now answer the question again except assume the population variance is unknown. 3) Does the use of examples improve memory for the concepts being taught? Joe Researcher tested this possibility by teaching 10 subjects 20 concepts each. For each subject, examples were provided to help explain 10 of the new concepts, no examples were provided for the other 10. Joe then tested his subjects memory for the concepts and recorded how many concepts, out of 10, that the subject could remember. Here is the data (next slide):

52 Psy B07 Chapter 7Slide 52 Examples

53 Psy B07 Chapter 7Slide 53 Examples 4) Circadian rhythms suggest that young adults are at their physical peek in the early afternoon, and are at their physical low point in the early morning. Are cognitive factors affected by these rhythms? To test this question I bring subjects in to run a recognition memory experiment. Half of the subjects are run at 8 am, the other half at 2pm. I then record their recognition memory accuracy. Here are the results: 8 am 2 pm.60.78.60.78.58.85.58.85.68.81.68.81.74.82.74.82.71.76.71.76.62.73.62.73


Download ppt "Psy B07 Chapter 7Slide 1 HYPOTHESIS TESTING APPLIED TO MEANS."

Similar presentations


Ads by Google