R code:
n=10:20
p=pnorm(1.96-0.9*sqrt(n))-pnorm(-1.96-0.9*sqrt(n))
k=length(n)
m=1:k
for(i in 1:k)
{
if(p[i]<0.05){
m[i]=n[i]
}
else{
m[i]=0
}
}
N=min(subset(m, m>0))
N
Out put:
> N
[1] 17
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 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,...
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...
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...
2. Let X1,.n be a random sample from the density 0 otherwise Suppose n = 2m+ 1 for some integer m. Let Y be the sample median and Z = max(Xi) be the sample maximum (a) Apply the usual formula for the density of an order statistic to show the density of Y is (b) Note that a beta random variable X has density f(x) = TaT(可 with mean μ = α/(a + β) and variance σ2 = αβ/((a +s+...
It's a multi part question set - if you can't finish all of it, that's ok! I would just really appreciate any and all help as soon as possible, will give thumbs up, thank you so much in advance! Thank you!! Inventory management There are 13 questions in this set As you proceed through these questions, use necessary information from previous questions. Walzon recently made changes to its inventory management and delivery systems. Walzon wants to know whether these changes...
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
It's a multi part question set - if you can't finish all of it, that's ok! I would just really appreciate any and all help as soon as possible, will give thumbs up, thank you so much in advance! Here are more clear photos, help is really needed on the last three questions if you can't do all of it, thank you in advance! IS 25 1) CL E) 10) (이 13) Thank you!! Inventory management There are 13 questions...
Please solve on only PART 2 b) and c) , PART 1 is only for REFERENCE :) Part I: Ene concept of a percentile (equivalently, quantile) is very important in data analysis. It applies to both samples and distributions. So, let's get some wi practice with them, starting with the binomial distribution. In prelab, you learned that the function gbinom(p. size prob) gives the p-th quantile of the binomial distribution with parameters n - size and pi prob. tocus on...
Really just need the LAST part but you can answer all if u want (D) Output from a software package follows: One-Sample 2: Test of mu = 14.5 vs > 14.5 The assumed standard deviation = 1.1 Variable N Mean StDey SE Mean 16 15.016 1.015 2 (a) [1 point) Is this a one-sided or a two-sided test? Z 2 P ? (b) (3 points) Fill in the SE Mean, Z, and P. (c) [3 points] Use the normal table...
(b) (c) and (d) please Problem(5) (a) (1 pt) Let Z~ Normal(0, 1). Recall the definition of z-value, i.e., P(Z > zr) = r. Find the probability of P(-70/2 < 3 < 2a/2). (b) (4 points) Let X1, X2, ... , Xn be a random sample from some population with (un- known) mean u and (known) variance o?. Based on the Central Limit Theorem and part (a) above, show that the confidence intervals for the population mean y can be...