First, find the standard deviation for this set (the square root of 40,000). Standard Deviation = 200. Find the Z value for a steer at 979 lbs.
\[Z = \frac{x - \mu}{sd}\]
Z = (979 - 1300) / (200) = -1.605 Use the Z table to convert into percentage. 0.054247 = 5.42% However, the question asks for the probability that the weight of a randomly selected steer is greater than 979 lbs. So the answer is ** 1 - 0.054247 = 0.9457 or 94.57% **
print(round(pnorm(979, mean = 1300, sd = 200, lower.tail=FALSE),4))
## [1] 0.9458
The calculations are similar to question 1. However, will apply the pnorm() function to obtain this answer.
print(round(pnorm(8340, mean = 11000, sd = sqrt(1960000), lower.tail=FALSE),4))
## [1] 0.9713
To find this answer, we need to find the probability between 83 and 85 million dollars. To facilitate this, we need to find the lower.tail probability of 83 million and the higher.tail probability of 85 million. To find the answer, ** 1 - lower.tail probability of 83 million - higher.tail probability of 85 million **.
LessThan83 <- pnorm(83000000, mean=80000000, sd=3000000, lower.tail=TRUE)
MoreThan85 <- pnorm(85000000, mean=80000000, sd=3000000, lower.tail=FALSE)
Total <- LessThan83 + MoreThan85
Answer <- 1 - Total
print(round(Answer,4))
## [1] 0.1109
We need to look for the minimum score required to be in the top 14%, or in other words, we need to find the score that matches with the 86% percentile.
print(round(qnorm(.86, mean=456, sd=123)),0)
## [1] 589
Again, similar to question 4.
print(paste0("The lower limit is: ", round(qnorm(0.07, mean=6.13, sd=0.06), 2)))
## [1] "The lower limit is: 6.04"
print(paste0("The upper limit is: ", round(qnorm(0.93, mean=6.13, sd=0.06), 2)))
## [1] "The upper limit is: 6.22"
HigherLimitOfC <- qnorm(0.55, mean=78.8, sd=9.8)
LowerLimitOfC <- qnorm(0.20, mean=78.8, sd=9.8)
print(paste0("The top limit of a C: ", round(HigherLimitOfC, 0)))
## [1] "The top limit of a C: 80"
print(paste0("The bottom limit of a C: ", round(LowerLimitOfC, 0)))
## [1] "The bottom limit of a C: 71"
print(round(qnorm(0.55, mean=21.2, sd=5.4),1))
## [1] 21.9
Prob.Less.Than.11 <- dbinom(0, size=151, prob=0.09) + dbinom(1, size=151, prob=0.09) + dbinom(2, size=151, prob=0.09) + dbinom(3, size=151, prob=0.09) + dbinom(4, size=151, prob=0.09) + dbinom(5, size=151, prob=0.09) + dbinom(6, size=151, prob=0.09) + dbinom(7, size=151, prob=0.09) + dbinom(8, size=151, prob=0.09) + dbinom(9, size=151, prob=0.09) + dbinom(10, size=151, prob=0.09)
print(round(Prob.Less.Than.11, 4))
## [1] 0.192
Because there is a sample of 147 tires, we must obtain the standard error of the mean. The equation for the standard error of the mean is: square root of the (variance/N) or SD / sqrt(N). Once, we get the standard error the mean, we can use this as our SD number and plug into the pnorm() function and obtain the Upper.Tail to find the probability of tire lifetime greater than 48.33 months.
Standard.Error.Mean <- 7/(sqrt(147))
print(round(pnorm(48.83, mean = 48, sd = Standard.Error.Mean, lower.tail=FALSE),4))
## [1] 0.0753
Similar concept as question 9.
Standard.Error.Mean <- 10/(sqrt(68))
print(round(pnorm(93.54, mean = 91, sd = Standard.Error.Mean, lower.tail=FALSE),4))
## [1] 0.0181
The mean of the sample proportion (p.hat) is p and the standard error of (p.hat) is s.e.(p.hat) = sqrt ( (p * (1-p) )/ n ). Therefore, the standard error of (p.hat) = sqrt (.07 * (1-.07)/540) = .01098.
So now we are attempting to find the probability of no shows between 4% to 10%, given the information we have.
Tenth.Percentile <- pnorm(.10, mean = .07, sd = .01098, lower.tail=TRUE)
Fourth.Percentile <- pnorm(.04, mean = .07, sd = .01098, lower.tail=TRUE)
Answer <- Tenth.Percentile - Fourth.Percentile
print(round(Answer,4))
## [1] 0.9937
Similar to question 11.
S.E <- sqrt((.23 * (1 - .23))/602)
Twentyseventh.Percentile <- pnorm(.27, mean = .23, sd = S.E, lower.tail=TRUE)
Nineteenth.Percentile <- pnorm(.19, mean = .23, sd = S.E, lower.tail=TRUE)
Answer <- Twentyseventh.Percentile - Nineteenth.Percentile
print(round(Answer, 4))
## [1] 0.9803
Calculate the margin of error. Z(alpha/2) * (sd of population) / sqrt(n). Z(.8/2) = Z(.4). Looking up on the z table, Z would equal 1.28 1.28 * (0.8) / sqrt(208) = .0710 Answer = mean +/- .0086 or 3.9 +/- .0710.
The upper limit is:
print(round(3.9 + .0710),1)
## [1] 4
The lower limit is:
print(round(3.9 - .0710,1))
## [1] 3.8
Similar concept as question 13.
Z value that corresponds with Z(.98/2) = Z(.49) = 2.33
sd <- 11
mean <- 16.6
n <- 7472
Coefficient <- (2.33 * sd)/sqrt(n)
upper.limit <- mean + Coefficient
lower.limit <- mean - Coefficient
print(paste0("The upper limit is: ", round(upper.limit,1)))
## [1] "The upper limit is: 16.9"
print(paste0("The lower limit is: ", round(lower.limit,1)))
## [1] "The lower limit is: 16.3"
Refer to the T statistics table. http://www.sjsu.edu/faculty/gerstman/StatPrimer/t-table.pdf
With 26 degrees of freedom, and with 1 tail, the value = 1.706 The best picture that responds to .05 of the area under the curve is image on the TOP RIGHT.
Step 1. Calculate the sample mean for the given sample data. (Round answer to 2 decimal places)
vector.nums <- c(383.6, 347.1, 371.9, 347.6, 325.8, 337)
mean <- sum(vector.nums)/6
print(round(mean,2))
## [1] 352.17
Step 2. Calculate the sample standard deviation for the given sample data. (Round answer to 2 decimal places)
S.D <- sd(vector.nums)
print(round(S.D,2))
## [1] 21.68
Step 3. Find the critical value that should be used in constructing the confidence interval. (Round answer to 3 decimal places)
Typically, if the n number was high enough, we would refer to the Z table to obtain our values with alpha/2. However, given that the sample size is 6. Will need to refer to the T table with (n - 1) degrees of freedom, or in this case, it’s 5. Therefore, according to the table, the critical value is: 2.015
Critical.Value <- 2.015
print(Critical.Value)
## [1] 2.015
Step 4. Construct the 90% confidence intervals. (Round answer to 2 decimal places)
Upper.Limit <- mean + Critical.Value * S.D / sqrt(6)
Lower.Limit <- mean - Critical.Value * S.D / sqrt(6)
print(paste0("Upper Limit: ", round(Upper.Limit,2)))
## [1] "Upper Limit: 370"
print(paste0("Lower Limit: ", round(Lower.Limit,2)))
## [1] "Lower Limit: 334.34"
Step 1. Find the critical value that should be used in constructing the confidence interval. (Round answer to 3 decimal places)
Like the previous problem, whereas, we would have normally used a z table. Given that N = 16, will refer to T table with 15 degrees of freedom. 1.341
Critical.Value <- 1.341
print(round(Critical.Value,3))
## [1] 1.341
Step 2. Construct the 80% confidence interval. (Round answer to 1 decimal place)
S.D <- 2.45
mean1 <- 46.4
Upper.Limit1 <- mean1 + Critical.Value * S.D / sqrt(16)
Lower.Limit1 <- mean1 - Critical.Value * S.D / sqrt(16)
print(paste0("Upper Limit: ", round(Upper.Limit1,1)))
## [1] "Upper Limit: 47.2"
print(paste0("Lower Limit: ", round(Lower.Limit1,1)))
## [1] "Lower Limit: 45.6"
Arrange the formula Critical.Value * S.D / sqrt(n) = .13. –> (Critical.Value * S.D) / .13 ) ^2 = n
population.mean <- 8
population.sd <-1.9
#look for Z data for 99%.
z.99 <- 2.57
n <- round(((z.99 * population.sd)/0.13)^2)
print(n)
## [1] 1411
bacteria.variance <- 3.61
bacteria.sd <- sqrt(3.61)
bacteria.mean <- 12.6
#look for Z data for 95%
z.95 <- 1.96
n <- round(((z.95 * bacteria.sd/0.19)^2))
print(round(n,0))
## [1] 384
Step 1. Suppose a sample of 2089 tenth graders is drawn. Of the students sampled, 1734 read above the eighth grade level. Using the data, estimate the proportion of tenth graders reading at or below the eighth grade level. (Write your answer as a fraction or a decimal number rounded to 3 decimal places)
Below.8 <- 2089 - 1734
print(round(Below.8/2089,3))
## [1] 0.17
Step 2. Suppose a sample of 2089 tenth graders is drawn. Of the students sampled, 1734 read above the eighth grade level. Using the data, construct the 98% confidence interval for the population proportion of tenth graders reading at or below the eighth grade level. (Round your answers to 3 decimal places)
Using the margin of errors formula.
n = 2089
z.98 <- 2.33
Margin.Of.Error <- z.98 * sqrt((.17)*(1-.17)/n)
print(paste0("Upper limit: ", round(.17 + Margin.Of.Error,3)))
## [1] "Upper limit: 0.189"
print(paste0("Lower limit: ", round(.17 - Margin.Of.Error,3)))
## [1] "Lower limit: 0.151"
Step 1. Suppose a sample of 474 tankers is drawn. Of these ships, 156 had spills. Using the data, estimate the proportion of oil tankers that had spills. (Write your answer as a fraction or a decimal number rounded to 3 decimal places)
Spilled <- 156/474
print(round(Spilled,3))
## [1] 0.329
Step 2. Suppose a sample of 474 tankers is drawn. Of these ships, 156 had spills. Using the data, construct the 95% confidence interval for the population proportion of oil tankers that have spills each month. (Round your answers to 3 decimal places)
n = 474
z.95 <- 1.96
Margin.Of.Error <- z.95 * sqrt((.329)*(1-.329)/n)
print(paste0("Upper limit: ", round(.329 + Margin.Of.Error,3)))
## [1] "Upper limit: 0.371"
print(paste0("Lower limit: ", round(.329 - Margin.Of.Error,3)))
## [1] "Lower limit: 0.287"
F x to the power of (x) =1 - e to the power of (-a * x) , a greater than 0, x greater than 0
What is the probability density function? What is the expected value? What is the variance? Determine P(X<.5 | alpha =1).
The probability density function (PDF) P(x) of a continuous distribution is defined as the derivative of the (cumulative) distribution function. Therefore, the PDF function is: F’(x) = a * e^(-ax) .
?????Not 100% sure regarding expected value, variance or determinine the third question. I need to do some more reading and learning!
f(y)^y = ( e^(-b) * b^y) / y! .
Derive the mean and standard deviation.
This is the formula for the probability mass function for Poisson distribution. In this case, mean = (lambda or in this case, b) * t (where t is in time). Standard deviation is equal to sqrt(mean).