Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Hypothesis Testing One-sample tests –One-sample tests for the mean –One-sample tests for proportions Two-sample tests –Two-sample tests for the mean.

Similar presentations


Presentation on theme: "1 Hypothesis Testing One-sample tests –One-sample tests for the mean –One-sample tests for proportions Two-sample tests –Two-sample tests for the mean."— Presentation transcript:

1 1 Hypothesis Testing One-sample tests –One-sample tests for the mean –One-sample tests for proportions Two-sample tests –Two-sample tests for the mean

2 2 Hypothesis Testing 1. State the null hypothesis, H 0 2. State the alternative hypothesis, H A 3. Choose α, our significance level 4. Select a statistical test, and find the observed test statistic 5. Find the critical value of the test statistic 6. Compare the observed test statistic with the critical value, and decide to accept or reject H 0

3 3 Suppose we are interested in mean annual precipitation across the western US. A sample of 23 weather stations has = 550.47mm, s = 389.44mm. Use these values to test whether or not the mean annual precipitation across the western US is different from 500mm.

4 4 Data: Acidity data has been collected for a population of ~6000 lakes in Ontario, with a mean pH of μ = 6.69, and σ = 0.83. A group of 27 lakes in a particular region of Ontario with acidic conditions is sampled and is found to have a mean pH of x = 6.16, and a s = 0.60. Research question: Are the lakes in that particular region more acidic than the lakes throughout Ontario?

5 5 One-Sample Tests for Proportions A proportion, rather than a mean Can we use z statistic?

6 6 Sampling distribution of a proportion Binomial distribution Large values of n and values of p 0 around 0.5  normal distribution Source: http://www.ruf.rice.edu/%7Elane/stat_sim/binom_demo.html

7 7 One-Sample Tests for Proportions Data: A citywide survey finds that the proportion of households that own cars is p 0 = 0.2. We survey 50 households and find that 16 of them own a car (p = 16/50 = 0.32) Research question: Is the proportion of households in our survey that has a car different from the proportion found in the citywide survey?

8 8

9 9 In 2004, the proportion of rainy days at Chapel Hill is 0.22. I randomly selected 40 days, and found that 13 of them were rainy days. Is the proportion of rainy days in the sample significantly higher than the proportion throughout the year?

10 10 Hypothesis Testing One-sample tests –One-sample tests for the mean –One-sample tests for proportions Two-sample tests –Two-sample tests for the mean

11 11 Two-Sample t-tests t test = | x 1 - x 2 | (1 / n 1 ) + (1 / n 2 ) SpSp spsp (n 1 - 1)s 1 2 + (n 2 - 1)s 2 2 n 1 + n 2 - 2 = Variances are equal (homoscedasticity) Pooled estimate of the standard deviation:  df = n 1 + n 2 - 2

12 12 t test = | x 1 - x 2 | (s 1 2 / n 1 ) + (s 2 2 / n 2 ) df = min[(n 1 - 1),(n 2 - 1)] Two-Sample t-tests Variances are unequal

13 13 Two-Sample t-tests F-test df1 = n 1 – 1 df2 = n 2 – 1

14 14 F-test Table A.5 on pp. 218-220 gives F-dists. for 3  levels (0.10, 0.05, and 0.01). E.g. selecting  = 0.05, given samples n 1 = 11, n 2 = 15 we would use df1 = 10, df2 = 14

15 15 Source: http://pics.bothner.com/2002/BristleconePines/BristeconePines02info.html

16 16 n 1 = 10 n 2 = 12 Soil Moisture Data NS 0.530.4 0.630.35 0.490.51 0.520.55 0.650.49 0.540.47 0.60.51 0.670.44 0.430.49 0.510.54 0.59 0.39 Is the north-facing slope wetter than the south-facing slope?

17 17 Assignment #4 Confidence Intervals & Hypothesis Testing Textbook: Page 40: #7 Pages 62-64: #1, #2, #4, #5, #7 Due: 5pm, Mar 24, 2006 (Friday ) Hardcopy preferred

18 18 Project (Optional) Course website –http://www.unc.edu/courses/2006spring/geog/090/001/wwwhttp://www.unc.edu/courses/2006spring/geog/090/001/www Due: 27 April 2006 (Thursday)

19 19 Lab 2 Hypothesis Testing & Geographic Problems Data: soilmoisure.xls soilmoisure.xls Due: 03/31/2006 (Friday) Electronic copy is preferred.

20 20 Exam II R (Mar 30) Not cumulative Review?


Download ppt "1 Hypothesis Testing One-sample tests –One-sample tests for the mean –One-sample tests for proportions Two-sample tests –Two-sample tests for the mean."

Similar presentations


Ads by Google