from scipy import stats
from math import sqrt
Problem 1:
def Error(n, p, s):
z = stats.norm.ppf(1-(1-p)/2)
moe = z * s / sqrt(n)
return moe
Problem 2:
def Confidence(n, r, s):
z = r * sqrt(n) / s
v = stats.norm.cdf(z)
p = 1 - 2 * (1 - v)
return p
In 1181:from scipy import stats fron rath import sgrt Confidence Interval For a sample with size...
Write a function in R that will provide the sample size needed (using the confidence interval method) to estimate the true population mean. You will have to pass several input variables to this function: confidence level, margin of error, and estimated standard deviation.
Given the confidence interval for a mean of (74.5738,77.4262), from a sample of size 34 with a population standard deviation of σ=3.6, find the following: Margin of Error(ME)= Standard Error(SE)= Zc= what was the confidence level for this confidence interval?= (Show your work please)
Determine the sample size needed to construct a 95% confidence interval to estimate the average GPA for the student population at a college with a margin of error equal to 0.2. Assume the standard deviation of the GPA for the student population is 25 The sample size needed is (Round up to the nearest integer.) Determine the sample size n needed to construct a 90% confidence interval to estimate the population proportion for the following sample proportions when the margin...
Here is an example with steps you can follow: sample size n=9, sample mean=80, sample standard deviation s=25 (population standard deviation is not known) Estimate confidence interval for population mean with confidence level 90%. Confidence Interval = Sample Mean ± Margin of Error Margin of Error = (t-value)×s/√n t-value should be taken from Appendix Table IV. For n=9 df=n-1=9-1=8 For Confidence Level 90% a = 1 - 0.90 = 0.10, a/2 = 0.10/2 = 0.05 So, we are looking for...
Which statement about a confidence interval estimate of is true? A. Increasing the sample size decreases the error margin. B. Increasing the level of confidence decreases the error margin. OC. Decreasing the error margin makes the confidence interval wider. OD. Increasing the population mean increases the error margin, QUESTION 10 The fishing industry is interested in the mean weight of salmon caught by a certain fishing company. From previous years' data, the standard deviation of the weights of salmon caught...
Determine the sample size needed to construct a 99% confidence interval to estimate the average GPA for the student population at a college with a margin of error equal to 0.7. Assume the standard deviation of the GPA for the student population is 1.0 The sample size needed is _____
a sample size of _ is needed So there a 99% confidence interval will have a margin of error of three.so there a 99% confidence interval will have a margin of error of three. 1. simple random sample of 100 2. mean was 125 hours 3. standard deviation is 20 hours.
What sample size is needed to obtain a 95% confidence interval whose margin of error is no more than 1.7 for the mean of a normal population with standard deviation 4.5?
Determine the sample size needed to construct a 99% confidence interval to estimate the average GPA for the student population at a college with a margin of error equal to 0.4. Assume the standard deviation of the GPA for the student population is 3.0. The sample size needed is (Round up to the nearest integer.)
Use the one-mean t-interval procedure with the sample mean, sample size, sample standard deviation, and confidence level given below to find a confidence interval for the mean of the population from which the sample was drawn. sample mean=3.0 n=41 s=5.4 confidence level=90% The 90% confidence interval about μ is ?? to ???