Presentation is loading. Please wait.

Presentation is loading. Please wait.

381 Hypothesis Testing (Testing with Two Samples-III) QSCI 381 – Lecture 32 (Larson and Farber, Sects 8.3 – 8.4)

Similar presentations


Presentation on theme: "381 Hypothesis Testing (Testing with Two Samples-III) QSCI 381 – Lecture 32 (Larson and Farber, Sects 8.3 – 8.4)"— Presentation transcript:

1 381 Hypothesis Testing (Testing with Two Samples-III) QSCI 381 – Lecture 32 (Larson and Farber, Sects 8.3 – 8.4)

2 381 Independent and Dependent Samples Two samples are if the sample selected from one population is not related to the sample selected from the second population. The two samples are if each member of one sample corresponds to a member of the other sample. Dependent samples are also called or matched samples.

3 381 Examples Which are independent and dependent samples? 25 fish in each of two ponds are weighed. Weights of 25 fish in a pond on two successive days. Weights and lengths of 30 fish. Heights of 25 males and 25 females.

4 381 t-test for the Difference Between Means-I (Conditions) A t-test can be used to test the difference of two population means when a sample is randomly selected from each population. The samples must be randomly selected. The samples must be dependent (paired). Both populations must be normally distributed.

5 381 t-test for the Difference Between Means-II The approaches in lectures 30 and 31 only apply to independent samples. Dependent data are analyzed by considering the difference for each pair: The test statistic is the mean difference:

6 381 t-test for the Difference Between Means-III The test statistic is: and the standardized test statistic is: is the hypothesized mean of the differences of the paired data in the population. d.f. = n-1.

7 381 Example-I You are evaluating a program that aims to recover degraded streams. The data available are “environmental scores” before and after the recovery program. Prior to the start of the recovery program, the contractors claimed that the “environmental score” would increase by an average of more than 5 points. Evaluate the claim at the 5% level of significance.

8 381 Example-II 1. H 0 :  d  5; H a :  d > 5; 2. The level of significance is 0.05, the d.f.=15-1=14, and we have a right-tailed test. The rejection region is therefore t > 1.76. 3. The standard deviation of the differences, s d, is given by: 4. The standardized test statistic is: 5. We fail to reject the null hypothesis. Note that but will still fail to reject the null hypothesis – why?

9 381 Constructing a c-confidence Interval To construct a confidence interval for  d, use the following inequality: Construct a 90% confidence interval for  d for Example I.

10 381 Two sample z-test for the difference between proportions-I We can test the difference between two population proportions p 1 and p 2 based on samples from each population. We can use the z- test if the following conditions are true: The samples are randomly selected. The samples are independent. The sample sizes are large enough to use a normal sampling distribution assumption, i.e.:

11 381 Two sample z-test for the difference between proportions-II The sampling distribution for, the difference between the sample proportions, is a normal distribution with mean difference: and standard error: The standard error can be approximated by:

12 381 Two sample z-test for difference between proportions-III 1. State H 0 and H a. 2. Identify  and find the critical values(s) and rejection region(s). 3. Find the weighted estimate of and : 4. Calculate the standardized test statistic: 5. Make a decision to reject or fail to reject the null hypothesis.

13 381 Example-I One expectation of creating a marine reserve is that the fraction of “large” fish should increase. 100 fish are sampled from each of two areas (one a reserve and another actively fished). Test whether the fraction of “large” fish in the reserve and the fished area differ at the 1% level of significance. ReserveNon-reserve n 1 =100n 2 =100 x 1 =17x 2 =6

14 381 Example-II H 0 : p 1 =p 2 ; H a : p 1  p 2.  =0.01; rejection region |z|>2.576. The weighted proportion estimate is: The standardized test statistic: We fail to reject the null hypothesis at the 1% level of significance.

15 381 Constructing a c-confidence Interval To construct a confidence interval for p 1 -p 2, use the following inequality: Construct a 95% confidence interval for p 1 -p 2 for Example I.

16 381 Review Use t-test for dependent samples Are the samples independent? Are both samples large? Are both populations normal? Cannot use any of the tests Use a t-test for small independent samples. Are both population standard deviations known? Use z-test Use z-test for large independent samples Yes No


Download ppt "381 Hypothesis Testing (Testing with Two Samples-III) QSCI 381 – Lecture 32 (Larson and Farber, Sects 8.3 – 8.4)"

Similar presentations


Ads by Google