3.2) Area under the curve, Part II Mean=0 and SD=1 a) Z>-1.13
x<-pnorm(-1.13, mean=0, sd=1)
y<-1-x
y
## [1] 0.8707619
mean=0
sd=1
x<-seq(-3.5,3.5,length=100)*sd + mean
y<-dnorm(x,mean,sd)
plot(x, y, type="l")
polygon(c( x[x>=-1.13], -1.13 ), c(y[x>=-1.13],0 ), col="red")
x<-pnorm(0.18, mean=0, sd=1)
x
## [1] 0.5714237
mean=0
sd=1
x<-seq(-3.5,3.5,length=100)*sd + mean
y<-dnorm(x,mean,sd)
plot(x, y, type="l")
polygon(c( x[x<=0.18], 0.18 ), c(y[x<=0.18],0 ), col="red")
x<-pnorm(8, mean=0, sd=1)
y<-1-x
y
## [1] 6.661338e-16
mean=0
sd=1
x<-seq(-3.5,3.5,length=100)*sd + mean
y<-dnorm(x,mean,sd)
plot(x, y, type="l")
x<-pnorm(0.5, mean=0, sd=1)
y<-pnorm(-0.5, mean=0, sd=1)
z<-x-y
z
## [1] 0.3829249
cord.x <- c(-0.5,seq(-0.5,0.5,0.01),0.5)
cord.y <- c(0,dnorm(seq(-0.5,0.5,0.01)),0)
curve(dnorm(x,0,1),xlim=c(-3,3),main='Standard Normal')
polygon(cord.x,cord.y,col='red')
3.4) Triathalon Times, Part I (a) Write down the short-hand for these two normal distributions. X is the finishing time for males. X~N(mean=4314, sd=583)
Y is the finishing time for females Y~N(mean=5261, sd=807)
#Leo
Z<-(4948-4313)/583
Z
## [1] 1.089194
#Mary
Z<-(5513-5261)/807
Z
## [1] 0.3122677
Did Leo or Mary rank better in their respective groups? Explain your reasoning. Leo ranks better than Mary since he has a greater Z score.
What percent of the triathletes did Leo finish faster than in his group?
x<-pnorm(1.0892, mean=0, sd=1)*100
x
## [1] 86.19672
x<-pnorm(0.3123, mean=0, sd=1)*100
x
## [1] 62.25937
3.18) Heights of College Students (a) The mean height is 61.52 inches with a standard deviation of 4.58 inches. Use this information to determine if the heights approximately follow the 68-95-99.7% Rule. (61.62-4.58, 61.52+4.58)=(56.94, 66.1) At 68% (61.52-24.58, 61.52+24.58)=(52.36, 70.68) At 95% (61.52-33.58, 61.52+34.58)=(47.78, 75.26) We can conclude that the data follows the 68-95-99 rule
3.22) Defective Rate (a) What is the probability that the 10th transistor produced is the first with a defect?
P=(1-.30)^9 *(.30)
P
## [1] 0.01210608
P2=(1-0.02)^100
P2
## [1] 0.1326196
ub=1/(0.02)
ub
## [1] 50
sdb<-sqrt((1-0.02)/(0.02)^2)
sdb
## [1] 49.49747
We expect 50 transistors and have a SD of 49.49747
ud<-1/(0.05)
ud
## [1] 20
sdd<-sqrt((1-0.05)/(0.05)^2)
sdd
## [1] 19.49359
3.38) Male Children (a) Use the binomial model to calculate the probability that two of them will be boys.
probabilityOfBoy <- 0.51
k <- 2
n <- 3
factorialOfn <- factorial(n)
factorialOfk <- factorial(k)
factorialOfnminusk <- factorial(n-k)
probabilityOf2boysOf3 <- ( factorialOfn / (factorialOfk * factorialOfnminusk) ) * probabilityOfBoy^k * (1-probabilityOfBoy)^(n-k)
probabilityOf2boysOf3
## [1] 0.382347
probabilityOf2boysOf3_B <- ((1-probabilityOfBoy) * probabilityOfBoy * probabilityOfBoy) * 3
probabilityOf2boysOf3_B
## [1] 0.382347
3.42) Serving in Volley Ball other. (a) What is the probability that on the 10th try she will make her 3rd success
n <- 10
k <- 3
p <- 0.15
tenth <- factorial(n - 1) / (factorial(k-1) * (factorial(n - k))) * p^k * (1-p)^(n-k)
tenth
## [1] 0.03895012
Suppose she has made two successful serves in nine attempts. What is the probability that her 10th serve will be successful? She has a 0.15 probability of successful serve
Even though parts (a) and (b) discuss the same scenario, the probabilities you calculated should be different. Can you explain the reason for this discrepancy? The probabilities are different because we are not given information regarding successes as we are in part b.