STA258 Lecture 10
- Estimator
- Confidence Intervals
- Example:
- Mutual funds purchases.
- Can investors do better by buying mutual funds directly rather than through brokers?
- We have a random sample of net annual returns through brokers and directly.
- Find a
CI for is direct is broker - Assume
and annual returns are normal. - We get that
- Pooled Variance
direct broker - Since
is not included, this means the difference is not negligible. - Because our difference is positive, it means that
. So direct is better. - If
- Since
so that's why it's better. - How sure can we be sure that direct is better than broker?
times we will have a better return directly. But how strongly can we be confident in this? #tk something about hypothesis testing. - Since our interval is almost including
. We need to worry about it: - If we have
, it's almost - If we have
, it's pretty far away from isn't as close to as the first example, but it's almost there.
- If we have
- Suppose
- We don't pool it because we need to account for different variance.
- This is the Welch method. Easier to do with R.
- Otherwise, you can do:
- This will widen the T Distribution, and will give a conservative answer for your CI.
- Example:
- A company sells edu materials.
- A consultant has a
grade glass of for weeks. - This is a treatment group
- We need a control group, so we have
grade students without the materials. - At the end, both groups are given a DRP test to measure.
- Find a
CI for the mean improvement. - Conservative approach
- The lower bound of mean improvement is barely anything. The higher bound is really effective.
- But otherwise,
, so it is effective. - Since
is pretty close to , how strongly can we know if it would include it or not? - We also need to know what the test is, does
mean marks, or percent? Could it be rounded down?
- Not caring about domain knowledge is very dangerous:
- You could end up with a case like the memes about "What they did in the study showing red meat causes cancer" and it's just a video of someone launching cannonballs in a catapult.
- Outcomes are valid, but interpretations matters in application of it.
- Assumption in the above
grader thing is important too. That the population is normal. We'd need to do a Normal Q-Q Plot. To see if it's normal. - We don't have evidence for normality by the chart, but we don't have evidence against it.
- Example:
- Conservationsist example
unlogged forests - Create a
CI on difference in mean - Does logging have an impact?
so it doesn't
- Paired Samples
- Compare two tires
- Do the data provide evidence in mean wear for tire types
and - Mounted on the same car, but when we get the difference, it's independent.
- First find the difference.
- The interval is positive and doesn't contain
so there is a difference between these two tires.
- Comparing two proportions
- We use
critical values
- We use
- Notes whether mother has epidural, do the babies still nurse after
months those who had an epidural and are nursing at months those who didn't who are nursing at months - First find the Point Estimators for two proportions.
- Without doing a confidence interval, it seems we already have a pretty big difference.
- Since
is not in the interval, and we have a negative difference. It means that epidural means the baby will nurse likelier than another. - There's an abundance of women who haven't had an epidural. Why are there different sample sizes, make one sample size match the other.
- The impact is
- The numbers aren't balanced. They're getting weighed by the sample sizes.
- Extreme sample:
- Control group is 1000 people
- What would happen to the Confidence Intervals?
- It would be smaller, but we don't have balance in the dataset regarding those who had an epidural.
- We are
confident that percent of nursing is mothers at 6 months for those who had an epidural are between and less than those who didn't.
- Example:
- Smoking
- We have
smokers who want to stop to receive nicotine patches receive both a path and the anti-depressant - After a year
in the nicotine group had abstained in the patch plus drug group have. - Give a
CI for the difference, in the proportion of smokers who quit. - Find the Point Estimator for proportions
- Already we see that there are a lot more who quit in the treatment group.
- There is a benefit. Because
, if then the difference is and there aren't benefits. - You don't remove someone from another group if someone withdrew from the first.
- If you remove someone, then you need to start the experiment again from day 0.
- You don't extend it to day 60 for the initial
- You don't have the effects through 10 days with the new guy if you add one.
- Comparing two population variances
- Compare the ratio of
- We know that
- Example:
- Managerial success
- Index based on length of time in the org, and level within the term.
- Compare group 1, high volume of interactions with people.
- Group 2, rarely interact with people outside their work unit.
- Is there a significant difference?
- Already, yes.
- However, we don't know about the index, so we don't know if
points is or isn't really significant.
- There is not a significant variance based on our
. Because - No evidence to show that the population variances of managerial success index is different.