Part (b) For the correct choice of the test given above, and any possible value of k = {0,1,..., 15), find the probability of committing type I error if the true proportion of late deliveries is pЄ [0, 1]. To do that create a function ptypeIerr (p,k), with input parameters p and k which for any input value k returns ptypeIerr(p,k) = P(type I error if the critical value is k) = probability of commiting type I error if the true proportion is p and the critical value of the test is k Do NOT round your answer! Note: your function should assume any possible input of p = [0, 1] and any possible integer k = {0, 1, ..., 15}. You do not need to worry about values of p and k outside these ranges. (Hint: just one line of a code inside the function may be sufficient, if you apply (p<=0.2)* + (p>0.2)*. This is because logical values TRUE and FALSE, when multiplied by numeric values, get coerced into 1 and 0, respectively, before multiplied with the numeric value. If you feel more comfortable applying if...else statement to treat various values of p, that's also fine. Also, when applying appropriate R function, read the documentation about values of lower.tail parameter and their meanings. Keep in mind that for a discrete random variable X, in general, P(X ≤k) P(X k). A fabric manufacturer believes that the proportion p of orders arriving late from a certain supplier of raw material exceeds 20%. To test this claim, the manufacturer collects a sample of 15 orders and records X = the number of orders in the sample that had been late. You can assume the orders are independent of each other, in terms of tardiness. The manufacturer wants to bring this problem up and confront the supplier only if they are certain in the claim with significance level of at most 10%. Part (a) Which of the following tests may the manufacturer perform for this purpose? p > 0.2; critical region: X0.2; critical region: Xk for some k € Z. p < 0.2; critical region: X ≤ k for some k Є Z 1. Ho 2. Ho 3. Ho p≤0.2 vs. Ha p≤0.2 vs. Ha p≥ 0.2 vs. Ha 4. Ho p≥ 0.2 vs. Ha p < 0.2; critical region: X > k for some k EZ 5. Ho p=0.2 vs. Ha p0.2; critical region: X k2 k2 6. Ho p = 0.2 vs. Ha p 0.2; critical region: k₁ ≤ X ≤ k₂ for some k₁, k₂ E Z. 7. None of the above
Part (b) For the correct choice of the test given above, and any possible value of k = {0,1,..., 15), find the probability of committing type I error if the true proportion of late deliveries is pЄ [0, 1]. To do that create a function ptypeIerr (p,k), with input parameters p and k which for any input value k returns ptypeIerr(p,k) = P(type I error if the critical value is k) = probability of commiting type I error if the true proportion is p and the critical value of the test is k Do NOT round your answer! Note: your function should assume any possible input of p = [0, 1] and any possible integer k = {0, 1, ..., 15}. You do not need to worry about values of p and k outside these ranges. (Hint: just one line of a code inside the function may be sufficient, if you apply (p<=0.2)* + (p>0.2)*. This is because logical values TRUE and FALSE, when multiplied by numeric values, get coerced into 1 and 0, respectively, before multiplied with the numeric value. If you feel more comfortable applying if...else statement to treat various values of p, that's also fine. Also, when applying appropriate R function, read the documentation about values of lower.tail parameter and their meanings. Keep in mind that for a discrete random variable X, in general, P(X ≤k) P(X k). A fabric manufacturer believes that the proportion p of orders arriving late from a certain supplier of raw material exceeds 20%. To test this claim, the manufacturer collects a sample of 15 orders and records X = the number of orders in the sample that had been late. You can assume the orders are independent of each other, in terms of tardiness. The manufacturer wants to bring this problem up and confront the supplier only if they are certain in the claim with significance level of at most 10%. Part (a) Which of the following tests may the manufacturer perform for this purpose? p > 0.2; critical region: X0.2; critical region: Xk for some k € Z. p < 0.2; critical region: X ≤ k for some k Є Z 1. Ho 2. Ho 3. Ho p≤0.2 vs. Ha p≤0.2 vs. Ha p≥ 0.2 vs. Ha 4. Ho p≥ 0.2 vs. Ha p < 0.2; critical region: X > k for some k EZ 5. Ho p=0.2 vs. Ha p0.2; critical region: X k2 k2 6. Ho p = 0.2 vs. Ha p 0.2; critical region: k₁ ≤ X ≤ k₂ for some k₁, k₂ E Z. 7. None of the above
MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
Related questions
Question
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
Unlock instant AI solutions
Tap the button
to generate a solution
Recommended textbooks for you
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman