Question
Really short question! Please help me to solve part(b), also need the R code, thank you!
Problem 4 [26 points] (Section 2.4): Consider a one-sample z-test (known variance) with hypotheses: Ho: μ lo vs H, μ μο. a/2 where φ(.)Is the CDF of N(0,1), d-layo, and δ is the difference between the true mean and the mean under Ho (a) [10 points] Based on the fact that φ(x) [pdf of N(0,1)] is a decreasing function in x when x> 0, show that (i) for specified values of α and n, (ii) for specified values of α and d, β is a decreasing function of d. β is a decreasing function of n. (b)[16 points] Suppose the true mean is H 13.46. Consider the hypotheses Ho: H14.0 vs H,: μ#14.0 (u-0.05) with variance known at σ2-0.36, what is the minimum sample size to ensure that the probability of Type II error is less than 0.05?
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer 4b)

(b) z-statistic = V n(x-13.46)-yM(X-13.46) V0.36 0.6 We reject Ho at level 0.05 if -13.46)1.96. 0.6 Probability of Type 11 error- y(X-13.46)|-1.96|μ = 14 0.6 Vn(x 1414 13.46) 0.6 < 1.961, 14 Φ (1.96-0.9 -Φ (-1.96-0.9泂< 0.05R code: n=10:20 p pnorm(1.96-0.9*sqrt(n))-pnorm(-196-0.9*sqrt(n) k-length(n) m=1k for(i in 1:k) if(plil<0.05) elsel mil-0 N-min(subset(m, m>0)) Out put: Ir

Add a comment
Know the answer?
Add Answer to:
Really short question! Please help me to solve part(b), also need the R code, thank you!...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Really short question! Please help me to solve ONLY part(b) with R code. Thank you! Problem...

    Really short question! Please help me to solve ONLY part(b) with R code. Thank you! Problem 4 [26 points] (Section 2.4): Consider a one-sample z-test (known variance) with hypotheses: Ho: μ lo vs H, μ *Ho. The probability of Type II error can be written in the form |ß D(%2_Jnd)-0(-%2_Jnd) where Φ㈠ is the CDF of N(0,1), d Isyo, and δ is the difference between the true mean and the mean under Ho (a) [10 points] Based on the fact...

  • Really short question! Please help me to solve, thank you! Yet, the data set is too...

    Really short question! Please help me to solve, thank you! Yet, the data set is too big (n=8000) as I can’t show all of them. Hope that the information of the second picture would be helpful. (30%)Q4 (EM algorithm): The heights of n 8000 students are drawn from a school. Assume the height largely depends on the gender. We denote the height of student i by Yi, and the gender of student i by Z..(Y; : 1 i n) are...

  • Really short question! Please help me to solve! It also needs the R code, thank you!...

    Really short question! Please help me to solve! It also needs the R code, thank you! Requirements: (25%)Q2: Please use the accept-reject method to generate 5000 samples from f(x) = 02 n which gfx) - 3e-3) and M f(x) M.g() and prove thet in which gr)3e 1-9(3) 3V2T (1-(3) algorithm proof R code

  • I would like the whole Question done on r studio with the R Code. 1. In...

    I would like the whole Question done on r studio with the R Code. 1. In this question we will evaluate type I and type II error probabilities for one-sided tests. We will consider normally distributed data, with unit variance and independent obervations. We will use Ho : μ-0 for the null and H1 : μ-1 for the alternative, unless otherwise stated. (a) Suppose we have n-6 observationsx. What is the sampling distribution of the (10 marks) sample mean (that...

  • Really short question! Please help me to solve, thank you! (10%)Q3 (Logistic regression): We collected n...

    Really short question! Please help me to solve, thank you! (10%)Q3 (Logistic regression): We collected n 15 independent binary observations : i- 1, , 15) and their corresponding covariates {xi : і = 1, , 15). Assume the relationship between yi and zi (for i = 1, , 15) is Vi ~ Bernoulli(p.) and logit(Pi)-α+82i, where logit(t) = log ti. Please 1) write down the likelihood function L(a, B|x, y) of the logistic regression model; 2) derive the Newton method...

  • Please assist with 6.52 Whats Wrong questions!!! Please explain why, if possible. Thank you!!! SECTION 6.2...

    Please assist with 6.52 Whats Wrong questions!!! Please explain why, if possible. Thank you!!! SECTION 6.2 SUMMARY e A test of significance i A test of significance is intended to assess the evidence provide against a null hypothesis Ho in favor of an alternative hypothesis Ha . The hypotheses are stated in terms of population is a statement that no effect or no difference is present, and Ha says there is an effect or difference in a specific direction (one-sided...

  • Really short question! Please help me to solve, thank you! (30%)Q2 (Poisson regression): We collected n...

    Really short question! Please help me to solve, thank you! (30%)Q2 (Poisson regression): We collected n 15 independent count observations {Vi : 1,..., 15 and their corresponding covariates (i 1,..., 15). Assume the relationship between Vi and xỉ (for i-: 1, , 15) is yi ~ Poisson(A) and log(A) α+ßxi. Please 1) write down the likelihood function L(a, B|x, y) of the Poisson regression model; 2) derive the Newton method for maxmizing L(a, BIx, y); 3) implement the Newton method...

  • please show your work...................... 14. a. Probability of making a Type I error b. Probability of...

    please show your work...................... 14. a. Probability of making a Type I error b. Probability of making a Type Il error c. Probability of rejecting Ho when you are supposed to d. Probability of not rejecting Ho when you shouldn't. Which of the following probabilities is equal to the significance level a? 15. If we reject the null hypothesis when it is false, then we have committed a. a Type ll error b. a Type l error both a Type...

  • please help with part b and c 12 11.4.003 My Ask Your For each suocessive poGeorge...

    please help with part b and c 12 11.4.003 My Ask Your For each suocessive poGeorge i W. Bush, the party ofilation controlin the White House is shown below wheredesnates Republican and D designates Democrat Reference: The New York Times Almanac.) RRRDDRRD D D D DRDR R DR R R Historical Note: In cases in which a president died in office or resigned, the period during which the vice president finished the term is not counted as a new term....

  • Please help me answer correctly all parts: b. test​ statistic ? c. P-value ? d. state...

    Please help me answer correctly all parts: b. test​ statistic ? c. P-value ? d. state the final conclusion that addresses the original claim. Assume that a simple random sample has been selected from a normally distributed population and test the given claim. Identify the null and altenative hypotheses, test statistic, P-value, and state the final conclusion that addresses the oginal claim. A safety administration conducted crash tests of child booster seats for cars. Listed below are results from those...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT