3.4 (a) Write down the short-hand for these two normal distributions. Answer:

Men: Mean u = 4313 s SD = 583 s x = 4948 s

Women: Mean = 5261 s SD = 807 s x = 5513 s

What are the Z-scores for Leo’s and Mary’s finishing times? What do these Z-scores tell you?

Z-scores for Leo = Z=(x-??) / ????

x <-4948
mean <-4313
sd <-583
z <-(x-mean)/sd
z
## [1] 1.089194

Z-scores for Mary = Z=(x-??) / ?? Z = (5513-5261) / 807 Z= 0.312

x <-5513
mean <-5261
sd <-807
z <-(x-mean)/sd
z
## [1] 0.3122677

The Z score of an observation is the number of standard deviations it falls above or below the mean.

For Leo, its Z score is 1.089, the number of standard deviation is above the mean.

For Mary, its Z score is 0.312, the number of standard deviation is below the mean.

  1. Did Leo or Mary rank better in their respective groups? Explain your reasoning.

Answer: Mary get lower Zscore-0.312 than Leo Zscore 1.089, that mean mary get faster time than their respective groups.

  1. What percent of the triathletes did Leo finish faster than in his group?
FastLeo <- 1-pnorm(1.089)
FastLeo
## [1] 0.1380769
  1. What percent of the triathletes did Mary finish faster than in her group?
FastMary <- 1-pnorm(0.312)
FastMary
## [1] 0.3775203
  1. If the distributions of finishing times are not nearly normal, would your answers to parts change? Explain your reasoning.

Answer: The part b and c would not be changed, because the ranking will not be changed and Zscore still reflect above or below mean. But the part d & e will be changed, “Pnorm” only used for normal distribution.

3.18

height <- c(54,55,56,56,57,58,58,59,60,60,60,61,61,62,62,63,63,63,64,65,65,67,67,69,73)
summary(height)
##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
##   54.00   58.00   61.00   61.52   64.00   73.00

mean = 61.52

  1. 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.
#to prove 68% rule
mean<-61.52
sd<-4.58
ub<-61.52+4.58
lb<-61.52-4.58
area <- pnorm(ub, mean, sd) - pnorm(lb, mean, sd)
area
## [1] 0.6826895
#to prove 95% rule
mean<-61.52
sd<-4.58
ub1<-61.52+(4.58*2)
lb1<-61.52-(4.58*2)
area1 <- pnorm(ub1, mean, sd) - pnorm(lb1, mean, sd)
area1
## [1] 0.9544997
#to prove 99.7% rule
mean<-61.52
sd<-4.58
ub2<-61.52+(4.58*3)
lb2<-61.52-(4.58*3)
area2 <- pnorm(ub2, mean, sd) - pnorm(lb2, mean, sd)
area2
## [1] 0.9973002
  1. Do these data appear to follow a normal distribution? Explain your reasoning using the graphs provided below.
hist(height)

qqnorm(height)

The distriubtion as histogram is similar to normal, and theoretical qualtiles are also keeping the trend of lines.

3.22 Defective rate. A machine that produces a special type of transistor (a component of computers) has a 2% defective rate. The production is considered a random process where each transistor is independent of the others.

  1. What is the probability that the 10th transistor produced is the first with a defect?
Dr<-0.02
pgeom((10-1), Dr, lower.tail = TRUE, log.p= FALSE)
## [1] 0.1829272
  1. What is the probability that the machine produces no defective transistors in a batch of 100?
Dr<-0.02
pgeom(100, Dr, lower.tail = TRUE)
## [1] 0.8700328
  1. On average, how many transistors would you expect to be produced before the first with a defect? What is the standard deviation? Expected Value:
Dr<-0.02
Expect<- 1/Dr
Expect
## [1] 50

Standard Deviation

Dr<-0.02
SD<- sqrt((1-Dr)/Dr^2)
SD
## [1] 49.49747
  1. Another machine that also produces transistors has a 5% defective rate where each transistor is produced independent of the others. On average how many transistors would you expect to be produced with this machine before the first with a defect? What is the standard deviation?

Expected Value:

Dr1<-0.05
Expect1<- 1/Dr1
Expect1
## [1] 20

Standard Deviation

Dr1<-0.05
SD<- sqrt((1-Dr1)/Dr1^2)
SD
## [1] 19.49359
  1. Based on your answers to parts (c) and (d), how does increasing the probability of an event affect the mean and standard deviation of the wait time until success?

Answer: The probability of defective rate is increasing, the expected value was decreasing, it means faster to get defect. And the normal distribution would become narrow due to decrease in standard deviation.

3.38 Male children. While it is often assumed that the probabilities of having a boy or a girl are the same, the actual probability of having a boy is slightly higher at 0.51. Suppose a couple plans to have 3 kids.

Answer: a. Use the binomial model to calculate the probability that two of them will be boys.

P1<- (((1-0.51)*(0.51^2))*choose(3,2))
P1
## [1] 0.382347
  1. Write out all possible orderings of 3 children, 2 of whom are boys. Use these scenarios to calculate the same probability from part (a) but using the addition rule for disjoint outcomes. Confirm that your answers from parts (a) and (b) match.
B<-0.51
G<-(1-0.51)
P2<- sum((B*B*G),(B*G*B),(G*B*B))
P2
## [1] 0.382347

The answer is the same as part a.

If we wanted to calculate the probability that a couple who plans to have 8 kids will have 3 boys, briefly describe why the approach from part (b) would be more tedious than the approach from part (a).

Answer:

Because the combination have 56 groups that can be calculated, part(b) would be more tedious.

3.42

Serving in volleyball. A not-so-skilled volleyball player has a 15% chance of making the serve, which involves hitting the ball so it passes over the net on a trajectory such that it will land in the opposing team’s court. Suppose that her serves are independent of each other.

Answer:

  1. What is the probability that on the 10th try she will make her 3rd successful serve?
P3<- ((((1-0.15)^7)*(0.15^3))*choose(9,2))
P3
## [1] 0.03895012
  1. Suppose she has made two successful serves in nine attempts. What is the probability that her 10th serve will be successful?

Answer: For only consideration of 10th service, the probability is 0.15.

  1. Even though parts (a) and (b) discuss the same scenario, the probabilities you calculated should be diferent. Can you explain the reason for this discrepancy?

Answer:

Part a, it is calculated by negative binonmial distribution to count 3rd successful in 10th try.

Part b, it can be only calculated the 10th probability.