STA258 Lecture 08
- Review
- Today we're going to see large sample Confidence Intervals.
Confidence Intervals and as well. - #tk Large sample Confidence Intervals are on the test.
- Large Sample Confidence Intervals
- We know
- If
- Then
- So we have
- Suppose we have
- What should our
be? - Suppose we have a normal.
- Our area is
- So our tails are
- Since we have symmetry
- We need to isolate
- So our Confidence Intervals
- So our CI for
is the point estimator our cutoff times standard error.
- Example:
- We have the mean annual household income of a set if
- Assume this is based on a sample of
households. - We have
- Then
- Then CI for
: - Compute margin of error.
- We want a
CI - Look at
on the table - We get
- CI is
- If we increase the CI. What will happen?
- Likely we have a larger interval.
- Look at point on table
- CI
- See we have a larger interval. Which increases our confidence interval.
- #tk Can we optimize the tradeoff. Get the most confidence with least interval.
- We have the mean annual household income of a set if
- Analyzing pharma
- We're looking for some
to achieve a CI with confidence as our margin of error - We get
- How don't we know the mean but we know the
- From historical data we can estimate
- How don't we know the mean but we know the
- Margin of error
- So
- Is it realistic to assume that the population follows a normal?
- Usually we need that
for Central Limit Theorem. - There's a danger that our sampling dist is not normal then CLT doesn't hold.
- We're looking for some
- Example:
- We have
- and
as the value for - Find the Sample Size Recommended to Estimate Mean.
- #tk that's it for test 1.
- We have
- Confidence Intervals based on the
dist - What if
is not known. - Estimate it by
- Find two end points of the interval.
- Our area is
our points are - Always isolate the unknown parameter.
- The lower and upper limit are Random Variables.
- Prior to observation, the CI is random.
- After an observation, then the CI is deterministic.
- CI is not the most accurate interpretation that our parameter is in there.
- If we have 90 percent confidence, 90 out of 100 trials we will have our Estimator correctly Estimate the parameter.
- What if
- Normal Population Assumption
- For small samples of
. The data should follow a normal dist. If you see outliers or skewness, be cautious. - For moderate samples of
. The data should not show strong skewness or outliers. Make a histogram, boxplot or Q-Q plot to check. - For large samples of
. The procedure is fairly robust to non-normality. Unless the data are extremely skewed or contain outliers. Make a histogram, boxplot or Q-Q plot to check. - The reason, as
, the dist approaches the normal dist.
- The reason, as
- For small samples of
- Example:
- Ancient air.
- We can examine gas inside ancient amber.
- Will give us sample of time when amber was formed.
- We have these observations:
- Find a
CI for the mean nitrogen level. - Our present atmosphere is $78.% $ nitrogen
- Example:
- A film-processing company want to know how many pictures were stored on computers.
- Random sample of 10 digital camera owners.
- Estimate with
confidence the mean number of pictures stored. - Data:
- Margin of error:
- CI:
- Assumption of normality is critical here since
is small. - #tk learn q-q-plots Normal Q-Q Plot.
- Example:
- Suppose we have a random sample:
- How can we estimate
? - Flip a coin
times, how can you estimate ? - It's the number of successes over number of trials.
is total number of successes. is our proportion of successes. An estimator for . - We need to standardize.
- Based on Central Limit Theorem we have:
- CI for
:
- Example:
- In a poll of
adults indicated that movies are getting better. indicated that movies are getting worse. - Find a
CI for the proportion of all adults who think movies are getting better. - CI for
: - We need to use the plug-in estimate since we don't know
. - But we want a result in terms of known quantities.
- We need to use the plug-in estimate since we don't know
- Since we have less than
for our CI. - Then even in the best case for our
confidence interval, less than half of adults think movies are getting better.
- In a poll of
- Example:
- Utility of mobile devices raises questions on intrusion of work into personal life.
of employees took work with them on vacation. - a:
- What is the point estimate of the population proportion of all employees who take work with them on vacation?
- b:
- At
confidence, what is the margin of error for the population proportion of all employees who take work with them on vacation? - CI:
- At
- Example:
- Aisha Shariff and Yvette Ye are candidates for mayor.
- You are planning a small survey to determine the percent of voters to vote for shariff.
is population proportion of voters who will vote for Shariff. - You want to be
confident that your estimate of is within of the true value. - How large a sample should you take?
- What is
? - When we don't know that value of
- We can use
- If you sketch the plot of
- At
it's maximized.
- When we don't know that value of
- Sample size for an interval estimate of a population proportion:
- Planning values
can be chosen by: - Sample proportion from a previous sample of the same or similar units
- Use a planning value of
to maximize the required sample size when no reasonable estimate of is available.
condition - If less than
of the population is sampled, the sample observations can be assumed to be independent. - We also consider
in this fashion, and instead of the rules for CLT.
- If less than
- Confidence Intervals for Variance
- You know
as long as we have a normal population from which we draw our sample. - We want
- We need to find two points on the chi-square dist.
- Top value is:
- Bottom value is:
- Top value is:
- CI:
- Estimate
with CC means - Crazy wide interval.
- Maybe because Skewness as well as low samples.
- You know