Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 7: Inference for Distributions

Similar presentations


Presentation on theme: "Chapter 7: Inference for Distributions"— Presentation transcript:

1 Chapter 7: Inference for Distributions

2 Chapter 7: Inference for Distributions
A visual comparison of normal and paranormal distribution Lower caption says 'Paranormal Distribution' - no idea why the graphical artifact is occurring. X

3 7.1: Inference for the Mean of a Population - Goals
Be able to distinguish the standard deviation from the standard error of the sample mean. Be able to construct a level C confidence interval (without knowing ) and interpret the results. Perform a one-sample t significance and summarize the results. Be able to determine when the t procedure is valid.

4 Conditions for Inference (Chapter 6)
The variable we measure has a Normal distribution with mean  and standard deviation σ. We don’t know , but we do know σ. We have an SRS from the population of interest.

5 Shape of t-distribution

6 t-Table (Table D)

7 Table A vs. Table D Table A Table D Standard normal (z) t-distribution
P(Z ≤ z) P(T > t*) df not required df required Require: z Answer: probability Require: probability Answer: t*

8 Example: t critical values
What is the t critical value for the following: Central area = 0.95, df = 10 Central area = 0.95, df = 60 Central area = 0.95, df = 100 Central area = 0.95, z curve Upper area = 0.99, df = 10 Lower area = 0.99, df = 10

9 Summary: CI – t distribution
Confidence Interval Upper Confidence Bound Lower Confidence Bound Sample Size

10 Example: Sample size You are in charge of quality control in your food company. You sample randomly four packs of cherry tomatoes. The average weight from your four boxes is 222 g with a sample standard deviation of 5 g. a) What sample size is required to obtain a margin of error of 2 g at a 95% confidence level?

11 Single mean test: Summary
Null hypothesis: H0: μ = μ0 Test statistic: Alternative Hypothesis P-Value One-sided: upper-tailed Ha: μ > μ0 P(T ≥ t) One-sided: lower-tailed Ha: μ < μ0 P(T ≤ t) two-sided Ha: μ ≠ μ0 2P(T ≥ |t|)

12 Robustness of the t-procedure
A statistical value or procedure is robust if the calculations required are insensitive to violations of the condition. The t-procedure is robust against normality. n < 15 : population distribution should be close to normal. 15 < n < 40: mild skewedness is acceptable n > 40: procedure is usually valid.

13 Inferences for Non-Normal Distributions
If you know what the distribution is, use the appropriate model. If the data is skewed, you can transform the variable. Use a nonparametric procedure.

14 7.2: Comparing two Means - Goals
Be able to construct a level C confidence interval for the difference between two means and interpret the results. Perform a two-sample t significance and summarize the results. Be able to construct a level C confidence interval for a matched pair and interpret the results. Perform a matched pair t significance and summarize the results. Be able to determine when the t procedure is valid.

15 Conditions for Inference: 2 - sample
Each group is considered to be a sample from a distinct population. We have an SRS from the population of interest for each variable. The responses in each group are independent of those in the other group. The variable(s) we measure has a Normal distribution with mean  and standard deviation σ.

16 Df for 2-sample t test

17 Two-sample Test (independent): Summary
Null hypothesis: H0: μ1 – μ2 = Δ Test statistic: Note: If we are determining if the two populations are equal, then Δ = 0 Alternative Hypothesis P-Value Upper-tailed Ha: μ1 – μ2 > Δ P(T ≥ t) Lower-tailed Ha: μ1 – μ2 < Δ P(T ≤ t) two-sided Ha: μ1 – μ2 ≠ Δ 2P(T ≥ |t|)

18 Example: two-sample Independent t
A group of 15 college seniors are selected to participate in a manual dexterity skill test against a group of 20 industrial workers. Skills are assessed by scores obtained on a test taken by both groups. The data is shown in the following table: a) Perform a significance test to determine if the skills are the same for college students and industrial works at a significance level of b) Calculate and interpret the 95% confidence interval. Group n s Students 15 35.12 4.31 Workers 20 37.32 3.83

19 Example: two-sample Independent t (cont)
The data does not provide support (P = 0.128) to the claim that there is a difference between the population mean tests for students and workers.

20 Two-sample Test (independent): CI Summary
𝑝𝑜𝑖𝑛𝑡 𝑒𝑠𝑡𝑖𝑚𝑎𝑡𝑒±𝑚=𝑝𝑜𝑖𝑛𝑡 𝑒𝑠𝑡𝑖𝑚𝑎𝑡𝑒± 𝑡 ∗ (𝑑𝑓)𝑆𝐸= 𝑥 1 − 𝑥 2 ± 𝑡 ∗ (𝑑𝑓) 𝑠 𝑛 𝑠 𝑛 2

21 Example: two-sample Independent t
A group of 15 college seniors are selected to participate in a manual dexterity skill test against a group of 20 industrial workers. Skills are assessed by scores obtained on a test taken by both groups. The data is shown in the following table: a) Perform a significance test to determine if the skills are the same for college students and industrial works at a significance level of b) Calculate and interpret the 95% confidence interval. Group n s Students 15 35.12 4.31 Workers 20 37.32 3.83

22 Example: two-sample Independent t (CI) (cont)
We are 95% confident that the difference between the population mean tests of students and workers is between and P-value = 0.128, (-5.08, 0.68)

23 Matched Pairs Procedures
To compare the responses to the two treatments in a matched-pairs design, find the difference between the responses within each pair. Then apply the one-sample t procedures to these differences.

24 Conditions for Inference: 2 - sample
Each pair is considered to be a sample from a population of pairs. We have an SRS from the population of pairs. Each pair is independent of the other pairs. The difference of the each pair that we measure has a Normal distribution with mean D and standard deviation σD.

25 Two-sample Matched Pair
𝑆𝐸= 𝑠 𝑑 𝑛 𝑑 ± 𝑡 ∗ (𝑑𝑓) 𝑠 𝑑 𝑛

26 Two-sample matched pair Test: Summary
Null hypothesis: H0: μD =  Test statistic: Note: If we are determining if the two populations are equal, then Δ = 0 Alternative Hypothesis P-Value One-sided: upper-tailed Ha: μD >  P(T ≥ t) One-sided: lower-tailed Ha: μD <  P(T ≤ t) two-sided Ha: μD ≠  2P(T ≥ |t|)

27 Example: Paired t test Procedure
In an effort to determine whether sensitivity training for nurses would improve the quality of nursing provided at an area hospital, the following study was conducted. Eight different nurses were selected and their nursing skills were given a score from 1 to 10. After this initial screening, a training program was administered, and then the same nurses were rated again. On the next slide is a table of their pre- and post-training scores. a) Conduct a test to determine whether the training could on average improve the quality of nursing provided in the population at a 0.01 significance level. b) Calculate and interpret the 99% lower confidence bound of the population mean difference in nursing scores?

28 Individual Pre-Training Post-Training Pre - Post 1 2.56 4.54 -1.98 2 3.22 5.33 -2.11 3 3.45 4.32 -0.87 4 5.55 7.45 -1.90 5 5.63 7.00 -1.37 6 7.89 9.80 -1.91 7 7.66 7.33 0.33 8 6.20 6.80 -0.60 mean 5.27 6.57 -1.30 stdev 2.018 1.803 0.861

29 Example: Paired t test Procedure (cont)
The data does provide strong support (P = 0.002) to the claim that the population average score did improve after training.

30 Example: Paired t test Procedure
In an effort to determine whether sensitivity training for nurses would improve the quality of nursing provided at an area hospital, the following study was conducted. Eight different nurses were selected and their nursing skills were given a score from 1 to 10. After this initial screening, a training program was administered, and then the same nurses were rated again. On the next slide is a table of their pre- and post-training scores. a) Conduct a test to determine whether the training could on average improve the quality of nursing provided in the population at a 0.01 significance level. b) Calculate and interpret the 99% upper confidence bound of the population mean difference in nursing scores?

31 Example: Paired t test Procedure (cont)
We are 99% confident that the difference in the scores between pre-training and post-training scores is less than P =  < -0.39

32 Independent vs. Paired 1. If there is great heterogeneity between experimental units and a large correlation within experimental units then a paired experiment is preferable. 2. If the experimental units are relatively homogeneous and the correlation within pairs is not large, then unpaired experiments should be used

33 Robustness of the 2 sample t-procedure
The t-procedure is very robust against normality. Let n = n1 + n2 n < 15 : population distribution should be close to normal. 15 < n < 40: mild skewedness is acceptable n > 40: procedure is usually valid. Best when n1  n2 Best when distributions are similar.

34 z-test vs. t-test Z-test t-test Population standard deviation
Sample standard deviation s

35 In Class: 2-sample Independent or Paired
On the worksheet, state which method is better; independent or paired and why. The following explanations are wrong: 1) there is no information for one of the methods, 2) the data is matched in the exercise, 3) the number of data points is different (or the same).

36 Story 1 1. Does dress affect competence and intelligence ratings? Researchers performed a study to examine whether or not women are perceived as less competent and less intelligent when they dress in a sexy manner versus a business-like manner. Competence was rated from 1 (not at all) to 7 (extremely), and a 1 to 5 scale was used for intelligence. Under each condition, 17 subjects provided data.

37 Story 2 2. Perceived quality of high- and low-performing restaurants. A study classified 394 quick-service restaurants (QSR) into high-performing and low-performing groups based on their total sales. Each restaurant was rated on a collection of perceived measures of quality by a large number of diners using a 1 to 7 scale. In this study we view the diners as a measuring instrument, and our major interest is in comparing the 170 high-sales restaurants with the 224 low-sales restaurants.

38 Story 3 3. Air in poultry-processing plants. The air in poultry-processing plants often contains fungus spores. If the ventilation is inadequate, this can affect the health of the workers. The problem is most serious during the summer. To measure the presence of spores, air samples are pumped to an agar plate and “colony-forming units (CFUs)” are counted after an incubation period. Here are data from two locations in a plant that processes 37,000 turkeys per day, taken on four days in the summer.

39 Stories 4 and 5 4. Occupation and diet. Do various occupational groups differ in their diets? A British study of this question compared 98 drivers and 83 conductors of London double-decker buses. The conductors’ jobs require more physical activity. 5. Temperatures. You can obtain the average temperature for each month from the U.S. Department of Commerce Environmental Data Service. Are the average temperatures different for Buffalo, New York and Grand Rapids, Michigan?

40 Story 6 6. Startup Costs. Guide to Franchise and Business Opportunities (1994 Annual Report Entrepreneur Magazine) contains an extensive listing of over 1500 small business and franchises that are for sale. In addition to basic information about each business, the guide also lists startup costs necessary to get the business going. Often a person can borrow much of this from a bank if she has an established line of credit. Are the startup costs for sports equipment and apparel different from the startup costs for travel agencies?

41 Story 7 7. The manufacture of dyed clothing fabrics. Different fabrics respond differently when dyed. This matters to clothing manufacturers, who want the color of the fabric to be just right. Fabrics made of cotton and of ramie are dyed with the same “procion blue” die applied in the same way. A colorimeter is used to measure the lightness of the color on a scale in which black is 0 and white is 100.

42 Story 8 8. Durable press and breaking strength. “Durable press” cotton fabrics are treated to improve their recovery from wrinkles after washing. Unfortunately, the treatment also reduces the strength of the fabric. A study compared the breaking strength of fabric treated by two commercial durable press processes. Five specimens of the same fabric were assigned at random to each process.

43 Story 9 9. Brain training. The assessment of computerized brain-training programs is a rapidly growing area of research. Researchers are now focusing on who this training benefits most, what brain functions are most susceptible to improvement, and which products are most effective. A recent study looked at 487 community-dwelling adults aged 65 and older, each randomly assigned to one of two training groups. In one group, the participants used a computerized program 1 hour per day. In the other, DVD-based educational programs were shown and quizzes were administered after each video. The training period lasted 8 weeks. The response was the improvement in a composite score obtained from an auditory memory/attention survey given before and after the 8 weeks.

44 Story 10 10. Equality in Jobs. In a random sample of nine small and medium-sized colleges and universities in the western United States, the numbers of male and female Assistant Professors were determined from “Academe; Bulletin of the American Association of University Professors” (April 1993). Is there a gender bias in small and medium-sized Colleges in the western United States?


Download ppt "Chapter 7: Inference for Distributions"

Similar presentations


Ads by Google