Question

In: Statistics and Probability

SOLVE THE FOLLOWING USING STATISTICAL SOFTWARE R, POST YOUR CODE: PROBLEM 1. Suppose we have 100...

SOLVE THE FOLLOWING USING STATISTICAL SOFTWARE R, POST YOUR CODE:

PROBLEM 1.

Suppose we have 100 independent draws from some population distribution whose shape is unknown but where the population mean is 10 and SD is 2.5. Suppose tha tn=100 is sufficiently large that for the sample mean to have an approximately normal distribution.

(a) What is the chance that the sample mean is within 0.1 units of the population mean?

(b) What is the chance that the sample mean exceeds the population mean by at least 0.25 units?

PROBLEM 2.

We are interested in estimating the concentration of a biomarker on the basis of measurements of a number of technical replicates. Suppose measurements of such replicates will be approximately normally distributed with unknown mean (the true concentration) and known SD = 0.75 units. How many replicates should we measure if we wish our 95% confidence interval for the true concentration to have width <1 units?

Solutions

Expert Solution

PROBLEM 1.

(a)

Standard error of mean =

The sampling distribution of sample mean is N( 10, s = )

P[|x - | 0.1] = P[-0.1 < (x - ) < 0.1] = P[(x - ​​​​​​​) < 0.1] - P[(x - ) < -0.1]

= P[x < + 0.1] - P[x < ​​​​​​​ - 0.1]

Running below R code, we get P[|x - | 0.1] = 0.3108435

mu = 10
sigma = 2.5
n = 100
s = sigma/sqrt(n)
pnorm(mu+0.1, mu, s) - pnorm(mu-0.1, mu, s)

(b)

P[x - 0.25] = P[x > + 0.25]

Running below R code, we get P[x > + 0.25] = 0.1586553

mu = 10
sigma = 2.5
n = 100
s = sigma/sqrt(n)
pnorm(mu+0.25, mu, s, lower.tail = FALSE)

PROBLEM 2.

Required sample size is,

n = (z / E)2

where z is the z value for 95% confidence interval (p = 0.95 + (1 - 0.95)/2 = 0.975)

is population SD = 0.75

E is the largest margin of error = width interval / 2 = 1/2 = 0.5

Required sample size using below R code is n = 8.64 ​​​​​​​ 9

z = qnorm(0.975) #For 95% confidence interval
E = 1/2
sigma = 0.75
(z * sigma / E)^2 #Sample size


Related Solutions

SOLVE THE FOLLOWING USING STATISTICAL SOFTWARE R. SHOW YOUR CODE PROBLEM 1 A study of 400...
SOLVE THE FOLLOWING USING STATISTICAL SOFTWARE R. SHOW YOUR CODE PROBLEM 1 A study of 400 glaucoma patients yields a sample mean of 140 mm and a sample standard deviation of 25 mm for the the following summaries for the systolic blood pressure readings. Construct the 95% and 99% confidence intervals for μ, the population average systolic blood pressure for glaucoma patients. PROBLEM 2 Suppose that fasting plasma glucose concentrations (FPG) in some population are normally distributed with a mean...
SOLVE THE FOLLOWING USING STATISTICAL SOFTWARE R. SHOW YOUR CODE AND ANSWERS, USING AN RMD FILE...
SOLVE THE FOLLOWING USING STATISTICAL SOFTWARE R. SHOW YOUR CODE AND ANSWERS, USING AN RMD FILE (SHOW ANSWERS IN R MARKDOWN FORWAT WITH CODE AND ANSWERS) PROBLEM 1 A study of 400 glaucoma patients yields a sample mean of 140 mm and a sample standard deviation of 25 mm for the the following summaries for the systolic blood pressure readings. Construct the 95% and 99% confidence intervals for μ, the population average systolic blood pressure for glaucoma patients. PROBLEM 2...
How do I even begin to solve this using R statistical software? A random sample of...
How do I even begin to solve this using R statistical software? A random sample of eight pairs of twins was randomly assigned to treatment A or treatment B. The data are given in the following table: Twins 1 2 3 4 5 6 7 8 Treatment A 48.3 44.6 49.7 40.5 54.3 55.6 45.8 35.4 Treatment B 43.5 43.8 53.7 43.9 54.4 54.7 45.2 34.4 What is the p-value of the Wilcoxon signed-rank test? Is there any significant evidence...
Using R code solve Here, we look at how t critical values behave as their df...
Using R code solve Here, we look at how t critical values behave as their df (degrees of freedom) increases: a. First, what is z.05? b. Second, if you look at t.05,df (t critical values for α = .05) with df = 20, 40, 60, etc (continuing up by 20 each time), for what df does the t critical value first fall strictly within (e.g. < ) i. .05 of z.05? ii. .02 of z.05? iii. .01 of z.05? c....
The following should be performed using R and the R code included in your submission. To...
The following should be performed using R and the R code included in your submission. To obtain first prize in a lottery, you need to correctly choose n different numbers from N and 1 number from 20, known as the supplementary. That is we first draw n numbers from 1:N without replacement and then 1 number from 1:20 in another draw. Suppose n=7 and N=35. Let X be the number of drawn numbers that match your selection, where the supplementary...
Q3. Please use R software to solve this. A confidence interval having 100(1 − α)% confidence...
Q3. Please use R software to solve this. A confidence interval having 100(1 − α)% confidence for normally distributed data is formed by y ± zα/2σ / √n. (That's actually y-bar in the expression, not y). Generate 500 records of 10 columns of normal data with mean 50 and standard deviation 10. Generate two more columns using the confidence bounds expression to give a lower and upper bound consistent with a 95% confidence interval, using each record as a sample...
Solve following using Program R studio. Please show code and results. Thank you. 1. Assume that...
Solve following using Program R studio. Please show code and results. Thank you. 1. Assume that ? is a random variable follows binomial probability distribution with parameters 15 and 0.25.   a. Simulate 100 binomial pseudorandom numbers from the given distribution (using set.seed(200)) and assign them to vector called binran. b. Calculate ?(? < 8) using cumulative probability function. c. Calculate ?(? = 8) using probability distribution function. d. Calculate the average of simulated data and compare it with the corresponding...
1. Basic use of R/R Studio. Solve the following problem in R and print out the...
1. Basic use of R/R Studio. Solve the following problem in R and print out the commands and outputs. (a) Create a vector of the positive odd integers less than 100; Remove the values greater than 60 and less than 80; Find the variance of the remaining set of values (b) What’s the difference in output between the commands 2*1:5 and (2*1):5? Why is there a difference? (c) If you wanted to enter the odd numbers from 1 to 19...
solve using r, include code in your answer (a) Generate 25 variables, each of which consists...
solve using r, include code in your answer (a) Generate 25 variables, each of which consists of 25 random samples from a standard normal. Store these variables in a data frame – call it df.train – and randomly select one variable to be the response – rename it y. (The end result should be a data frame with 25 observations on 25 variables but with no relationships between any of the variables.)Now  Repeat the same steps  to create a test set called...
Suppose we are given the following information of a stock: S = 100, r = 5%,...
Suppose we are given the following information of a stock: S = 100, r = 5%, σ = 30%, and the stock doesn’t pay any dividend. Calculate the delta of a credit spread using two put options (strike price = $90 and $80) that matures in 0.5 year, based on BSM model. A. 0.135 B. -0.135 C. 0.337 D. -0.337
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT