Confidence Intervals with Means. What is the purpose of a confidence interval? To estimate an unknown population parameter.

Slides:



Advertisements
Similar presentations
Confidence Intervals Chapter 9.
Advertisements

Regression Inferential Methods
Two-Sample Inference Procedures with Means
Hypothesis Tests Hypothesis Tests One Sample Means.
INFERENCE WITH MATCHED PAIRS a special type of t-inference AP Statistics Chapter 25.
Confidence Intervals with Means Chapter 9. What is the purpose of a confidence interval? To estimate an unknown population parameter.
Confidence Intervals Chapter 7. Rate your confidence Guess my mom’s age within 10 years? –within 5 years? –within 1 year? Shooting a basketball.
Confidence Intervals Chapter 10. Rate your confidence Name my age within 10 years? 0 within 5 years? 0 within 1 year? 0 Shooting a basketball.
INFERENCE WITH MATCHED PAIRS a special type of t-inference AP Statistics Chapter 25.
Two-Sample Inference Procedures with Means. Remember: We will be intereste d in the differen ce of means, so we will use this to find standard error.
Hypothesis Tests Hypothesis Tests One Sample Means.
Confidence Interval and Hypothesis Testing for:
Confidence Intervals Chapter 10. Rate your confidence Name my age within 10 years? within 5 years? within 1 year? Shooting a basketball at a wading.
CHAPTER 23 Inference for Means.
Chapter 24: Comparing Means.
Chapter 11.1 Inference for the Mean of a Population.
Inference for One-Sample Means
Two-Sample Inference Procedures with Means. Two-Sample Procedures with means two treatments two populationsThe goal of these inference procedures is to.
Student’s t-distributions. Student’s t-Model: Family of distributions similar to the Normal model but changes based on degrees-of- freedom. Degrees-of-freedom.
Chapter 10 Inferences from Two Samples
Regression. Height Weight How much would an adult female weigh if she were 5 feet tall? She could weigh varying amounts – in other words, there is a distribution.
Regression. Height Weight Suppose you took many samples of the same size from this population & calculated the LSRL for each. Using the slope from each.
Hypothesis Tests OR Tests of Significance One Sample Means.
10.2 Tests of Significance Use confidence intervals when the goal is to estimate the population parameter If the goal is to.
Two-Sample Inference Procedures with Means. Of the following situations, decide which should be analyzed using one-sample matched pair procedure and which.
Hypothesis Tests for Notes: Page 194 Hypothesis Tests for One Sample Means Notes: Page 194.
1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples.
Regression with Inference Notes: Page 231. Height Weight Suppose you took many samples of the same size from this population & calculated the LSRL for.
Chapter 23 Inference for One- Sample Means. Steps for doing a confidence interval: 1)State the parameter 2)Conditions 1) The sample should be chosen randomly.
Hypothesis Tests Hypothesis Tests One Sample Means.
Two-Sample Inference Procedures with Means. Remember: We will be interested in the difference of means, so we will use this to find standard error.
Confidence Intervals with Means Unit 12, Notes p 189.
Warm Up 8/26/14 A study of college freshmen’s study habits found that the time (in hours) that college freshmen use to study each week follows a distribution.
Confidence Intervals For a Sample Mean. Point Estimate singleUse a single statistic based on sample data to estimate a population parameter Simplest approach.
Confidence Intervals. Rate your confidence Name my age within 10 years? within 5 years? within 1 year? Shooting a basketball at a wading pool,
Hypothesis Tests One Sample Means
AP Statistics Chapter 24 Comparing Means.
Confidence Intervals with Means. Rate your confidence Name my age within 10 years? Name my age within 10 years? within 5 years? within 5 years?
CH 25 Paired Samples and Blocks. Paired Data 1. Observations that are collected in pairs (data on age differences between husbands and wives, for instance).
Matched Pairs Test A special type of t-inference Notes: Page 196.
Hypothesis Tests Hypothesis Tests One Sample Means.
AP Statistics Friday, 29 January 2016 OBJECTIVE TSW determine confidence intervals. Yesterday’s tests are not graded. TEST: Continuous Distributions tests.
AP Statistics Tuesday, 09 February 2016 OBJECTIVE TSW explore Hypothesis Testing. Student to Ms. Havens: “Is either yesterday’s test or the previous test.
Of the following situations, decide which should be analyzed using one-sample matched pair procedure and which should be analyzed using two-sample procedures?
Hypothesis Tests Hypothesis Tests (for Means). 1. A government agency has received numerous complaints that a particular restaurant has been selling underweight.
Hypothesis Tests Hypothesis Tests One Sample Means.
Confidence Intervals with Means Chapter 9. What is the purpose of a confidence interval? To estimate an unknown population parameter.
Confidence Intervals Chapter 9. How confident are you? Guess my weight… –within 50 pounds –within 20 pounds –within 1 pound Shoot a basketball… –at a.
Hypothesis Tests. 1. A lottery advertises that 10% of people who buy a lottery ticket win a prize. Recently, the organization that oversees this lottery.
Regression Inference. Height Weight How much would an adult male weigh if he were 5 feet tall? He could weigh varying amounts (in other words, there is.
Confidence Intervals with Means. Rate your confidence Name my age within 10 years? Name my age within 10 years? within 5 years? within 5 years?
Hypothesis Tests One Sample Means
Confidence Intervals Chapter 8.
Two-Sample Inference Procedures with Means
Student t-Distribution
Confidence Intervals with Means
Basketball Applet
Two-Sample Inference Procedures with Means
Hypothesis Tests One Sample Means
Two-Sample Inference Procedures with Means
Hypothesis Tests One Sample Means
Confidence Intervals with Means
Hypothesis Tests One Sample Means
Two-Sample Hypothesis Test with Means
A special type of t-inference
Two-Sample Inference Procedures with Means
Two-Sample Inference Procedures with Means
Two-Sample Inference Procedures with Means
Presentation transcript:

Confidence Intervals with Means

What is the purpose of a confidence interval? To estimate an unknown population parameter

Formula: statistic Critical value Standard deviation of statistic Margin of error

In a randomized comparative experiment on the effects of calcium on blood pressure, researchers divided 54 healthy, white males at random into two groups, taking calcium or placebo. The paper reports a mean seated systolic blood pressure of with standard deviation of 9.3 for the placebo group. Assume systolic blood pressure is normally distributed. Can you find a z-interval for this problem? Why or why not?

Student’s t- distribution Continuous distribution Unimodal, symmetrical, bell-shaped density curve Above the horizontal axis Area under the curve equals 1 Based on degrees of freedom df = n - 1

Formula: statistic Critical value Standard deviation of statistic Margin of error Standard error – when you substitute s for .

How to find t* Use Table B for t distributions Look up confidence level at bottom & df on the sides df = n – 1 Find these t* 90% confidence when n = 5 95% confidence when n = 15 t* = t* = Can also use invT on the calculator! Need upper t* value with 5% is above – so 95% is below invT(p,df)

Steps for doing a confidence interval: 1)Assumptions – 2)Calculate the interval 3)Write a statement about the interval in the context of the problem.

Statement: (memorize!!) We are ________% confident that the true mean context is between ______ and ______.

Assumptions for t-inference Have an SRS from population (or randomly assigned treatments)  unknown Normal (or approx. normal) distribution –Given –Large sample size –Check graph of data Use only one of these methods to check normality

Ex. 1) Find a 95% confidence interval for the true mean systolic blood pressure of the placebo group. Assumptions: Have randomly assigned males to treatment Systolic blood pressure is normally distributed (given).  is unknown We are 95% confident that the true mean systolic blood pressure is between and

Find a sample size: If a certain margin of error is wanted, then to find the sample size necessary for that margin of error use: Always round up to the nearest person!

Ex 4) The heights of PWSH male students is normally distributed with  = 2.5 inches. How large a sample is necessary to be accurate within +.75 inches with a 95% confidence interval? n = 43

Hypothesis Tests Hypothesis Tests One Sample Means

A government agency has received numerous complaints that a particular restaurant has been selling underweight hamburgers. The restaurant advertises that it’s patties are “a quarter pound” (4 ounces). How can I tell if they really are underweight? Take a sample & find x. expect unlikely But how do I know if this x is one that I expect to happen or is it one that is unlikely to happen? A hypothesis test will allow me to decide if the claim is true or not!

Steps for doing a hypothesis test 1)Assumptions 2)Write hypotheses & define parameter 3)Calculate the test statistic & p-value 4)Write a statement in the context of the problem. H 0 :  = 12 vs H a :  (, or ≠) 12 “Since the p-value ) , I reject (fail to reject) the H 0. There is (is not) sufficient evidence to suggest that H a (in context).”

Formulas:  unknown: t = 

Calculating p-values For z-test statistic – –Use normalcdf(lb,rb) –[using standard normal curve] For t-test statistic – –Use tcdf(lb, rb, df)

Draw & shade a curve & calculate the p-value: 1) right-tail test t = 1.6; n = 20 2) two-tail testt = 2.3; n = 25 P-value =.0630 P-value = (.0152)2 =.0304

Example 1: Bottles of a popular cola are supposed to contain 300 mL of cola. There is some variation from bottle to bottle. An inspector, who suspects that the bottler is under-filling, measures the contents of six randomly selected bottles. Is there sufficient evidence that the bottler is under-filling the bottles? Use  =

I have an SRS of bottles Since the boxplot is approximately symmetrical with no outliers, the sampling distribution is approximately normally distributed  is unknown SRS? p-value =.0880  =.1 Normal? How do you know? H 0 :  = 300where  is the true mean amount H a :  < 300 of cola in bottles What are your hypothesis statements? Is there a key word? Plug values into formula. Do you know  ? Since p-value < , I reject the null hypothesis. There is sufficient evidence to suggest that the true mean cola in the bottles is less than 300 mL. Compare your p-value to  & make decision Write conclusion in context in terms of H a.

Matched Pairs Test A special type of t-inference

Matched Pairs – two forms Pair individuals by certain characteristics Randomly select treatment for individual A Individual B is assigned to other treatment Assignment of B is dependent on assignment of A Individual persons or items receive both treatments Order of treatments are randomly assigned before & after measurements are taken The two measures are dependent on the individual

Is this an example of matched pairs? 1)A college wants to see if there’s a difference in time it took last year’s class to find a job after graduation and the time it took the class from five years ago to find work after graduation. Researchers take a random sample from both classes and measure the number of days between graduation and first day of employment No, there is no pairing of individuals, you have two independent samples

Is this an example of matched pairs? 2) In a taste test, a researcher asks people in a random sample to taste a certain brand of spring water and rate it. Another random sample of people is asked to taste a different brand of water and rate it. The researcher wants to compare these samples No, there is no pairing of individuals, you have two independent samples – If you would have the same people taste both brands in random order, then it would be an example of matched pairs.

Is this an example of matched pairs? 3) A pharmaceutical company wants to test its new weight-loss drug. Before giving the drug to a random sample, company researchers take a weight measurement on each person. After a month of using the drug, each person’s weight is measured again. Yes, you have two measurements that are dependent on each individual.

A whale-watching company noticed that many customers wanted to know whether it was better to book an excursion in the morning or the afternoon. To test this question, the company collected the following data on 15 randomly selected days over the past month. (Note: days were not consecutive.) Day Morning After- noon First, you must find the differences for each day. Since you have two values for each day, they are dependent on the day – making this data matched pairs You may subtract either way – just be careful when writing H a

Day Morning After- noon Differenc es Assumptions: Have an SRS of days for whale-watching  unknown Since the normal probability plot is approximately linear, the distribution of difference is approximately normal. I subtracted: Morning – afternoon You could subtract the other way! You need to state assumptions using the differences! Notice the granularity in this plot, it is still displays a nice linear relationship!

Differences Is there sufficient evidence that more whales are sighted in the afternoon? Be careful writing your H a ! Think about how you subtracted: M-A If afternoon is more should the differences be + or -? Don’t look at numbers!!!! H 0 :  D = 0 H a :  D < 0 Where  D is the true mean difference in whale sightings from morning minus afternoon Notice we used  D for differences & it equals 0 since the null should be that there is NO difference. If you subtract afternoon – morning; then H a :  D >0

finishing the hypothesis test: Since p-value > , I fail to reject H 0. There is insufficient evidence to suggest that more whales are sighted in the afternoon than in the morning. Notice that if you subtracted A-M, then your test statistic t = +.945, but p- value would be the same In your calculator, perform a t-test using the differences (L3) Differences How could I increase the power of this test?