Solution verification for hypothesis testing and confidence interval problem
There's a random sample of size observations over a normally distributed population with standard deviation :
8.7, 7, 4, 7.6, 3, 8.1, 6.4, 6.1, 9.4, 6.2
- Find 96% confidence interval for the population mean
- Test the hypothesis against Ha: with significance level . Find approximation of the observed p value.
My Solution:
We are looking for real numbers l and u s.t.:
, where
We are looking for which from the z-score table is: 2.055. Therefore:
For the second part:
We set two z-scores: from which we construct a two-tailed test.
Our test statistic is: from where we see the test statistic t is not in the rejection region, therefore we fail to reject the null hypothesis.
To calculate the credible region for the odds ratio . This is part of a bigger problem where I have already calculated credible region for random variable :
Finding upper confidence limit without mean and sd
So the question I'm trying to answer looks like this:
We are interested in p, the population proportion of all people who are currently happy with their cell phone plans. In a small study done in 2012, it was found that in a sample of 150 people, there were 90 who were happy with their cell phone plans.
Find the upper confidence limit of an 82% confidence interval for p.
I know the formula is
Find a 95 confidence interval for based on inverting the test statistic statistic .
For our data we have
Therefore it can be proven that the MLE for is given by
To find the confidence interval I should invert the test statistic .
The most powerful unbiased size test for testing
where has acceptance region
Substituting my problem (I think) we get that the most powerful unbiased size test for testing
has acceptance region
or equivalently,
Substituting we obtain
This means that my confindence interval is defined to be
But I can't seem to find anything concrete and I feel that I've made mistakes somewhere. What to do?