1. A card is drawn from a standard deck of 52 playing cards. What is the probability that the card will be a heart and not a face card? Write your answer as a fraction or a decimal number rounded to four decimal places.
13/52 cards are Hears 1/4th of the deck. 3 of these cards are Face cards (Q/K/J) so 10 of the 13 Hearts. This makes the odds 10/52 since we are selecting from the entire deck.
[1] 0.1923
2. A standard pair of six-sided dice is rolled. What is the probability of rolling a sum less than 6? Write your answer as a fraction or a decimal number rounded to four decimal places.
There are 10 rolls that equal less than 6 {1,1}{1,2}{1,3}{1,4}{2,1}{2,2}{2,3}{3,1}{3,2}{4,1}
[1] 0.2778
3. A pizza delivery company classifies its customers by gender and location of residence. The research department has gathered data from a random sample of 2001 customers. The data is summarized in the table below. What is the probability that a customer is male? Write your answer as a fraction or a decimal number rounded to four decimal places.
Male <- c(233, 159, 102, 220, 250)
Female <- c(208, 138, 280, 265, 146)
class <- c("Apartment", "Dorm", "With Parent(s)", "Sorority/Fraternity House", "Other")
df <- data.frame(class, Male, Female)
names(df) <- c("Class", "Males", "Females")
df
Class Males Females
1 Apartment 233 208
2 Dorm 159 138
3 With Parent(s) 102 280
4 Sorority/Fraternity House 220 265
5 Other 250 146
round(sum(df$Males)/(sum(df$Females)),4)
[1] 0.9296
4. Three cards are drawn with replacement from a standard deck. What is the probability that the first card will be a club, the second card will be a black card, and the third card will be a face card? Write your answer as a fraction or a decimal number rounded to four decimal places.
1 of 4 cards is a Club, 1/2 is Black and 3/13 are Face (Q/K/J). We must multiply these together.
Club <- 13/52
Black <- 26/52
Face <- 12/52
round(Club*Black*Face, 4)
[1] 0.0288
5. Two cards are drawn without replacement from a standard deck of 52 playing cards. What is the probability of choosing a spade for the second card drawn, if the first card, drawn without replacement, was a heart? Write your answer as a fraction or a decimal number rounded to four decimal places.
1/4 is a Heart, we aren’t replacing and since the first must be a heart the probablitly of a spade is slightly higher at 13/52
Heart <- 13/52
Spade <-13/51
HeartandSpade <- Heart*Spade
round(HeartandSpade,4)
[1] 0.0637
6. Two cards are drawn without replacement from a standard deck of 52 playing cards. What is the probability of choosing a heart and then, without replacement, a red card? Write your answer as a fraction or a decimal number rounded to four decimal places.
Heart is 1/4. Since we aren’t replacing the red is slighthly less than half because a heart is a red card so one is now already taken.
Heart <- 13/52
Red <-25/51
HeartandRed <- Heart*Red
round(HeartandRed,4)
[1] 0.1225
7. There are 85 students in a basic math class. The instructor must choose two students at random. What is the probability that a junior female and then a freshmen male are chosen at random? Write your answer as a fraction or a decimal number rounded to four decimal places.
Male <- c(12, 19, 12, 7)
Female <- c(12, 15, 4, 4)
Grade <- c("Freshmen", "Sophomores", "Juniors", "Seniors")
df <- data.frame(Grade, Male, Female)
names(df) <- c("Level","Males", "Females")
df
Level Males Females
1 Freshmen 12 12
2 Sophomores 19 15
3 Juniors 12 4
4 Seniors 7 4
JuniorFemale <- 4/85
FreshmanMale <- 12/84
Both <- round(JuniorFemale*FreshmanMale,4)
Both
[1] 0.0067
8. Out of 300 applicants for a job, 141 are male and 52 are male and have a graduate degree.
Step 1. What is the probability that a randomly chosen applicant has a graduate degree, given that they are male? Enter your answer as a fraction or a decimal rounded to four decimal places.
Male <- 141/300
MaleandGrad <- 52/300
round(MaleandGrad/Male,4)
[1] 0.3688
Step 2. If 102 of the applicants have graduate degrees, what is the probability that a randomly chosen applicant is male, given that the applicant has a graduate degree? Enter your answer as a fraction or a decimal rounded to four decimal places.
Grad <- 102/300
round(MaleandGrad/Grad,4)
[1] 0.5098
9. A value meal package at Ron’s Subs consists of a drink, a sandwich, and a bag of chips. There are 6 types of drinks to choose from, 5 types of sandwiches, and 3 types of chips. How many different value meal packages are possible?
6*5*3
[1] 90
10. A doctor visits her patients during morning rounds. In how many ways can the doctor visit 5 patients during the morning rounds?
factorial(5)
[1] 120
11. A coordinator will select 5 songs from a list of 8 songs to compose an event’s musical entertainment lineup. How many different lineups are possible?
permutation = function(n, r) {factorial(n) / factorial(n-r)}
permutation(8, 5)
[1] 6720
12. A person rolls a standard six-sided die 9 times. In how many ways can he get 3 fours, 5 sixes and 1 two?
factorial(9) / (factorial(3) * factorial(5) * factorial(1))
[1] 504
14. 3 cards are drawn from a standard deck of 52 playing cards. How many different 3-card hands are possible if the drawing is done without replacement?
combination(52, 3)
[1] 22100
15. You are ordering a new home theater system that consists of a TV, surround sound system, and DVD player. You can choose from 12 different TVs, 9 types of surround sound systems, and 5 types of DVD players. How many different home theater systems can you build?
12*9*5
[1] 540
16. You need to have a password with 5 letters followed by 3 odd digits between 0 - 9 inclusively. If the characters and digits cannot be used more than once, how many choices do you have for your password?
26 letters, 10 numbers
permutation(26, 5) * permutation(10, 3)
[1] 5683392000
17. Evaluate the following expression. 9 P 4
permutation(9, 4)
[1] 3024
18. Evaluate the following expression. 11 C 8
combination(11, 8)
[1] 165
19. Evaluate the following expression. (12 P 8)/( 12 C 4)
permutation(12, 8) / combination(12, 4)
[1] 40320
20. The newly elected president needs to decide the remaining 7 spots available in the cabinet he/she is appointing. If there are 13 eligible candidates for these positions (where rank matters), how many different ways can the members of the cabinet be appointed?
permutation(13, 7)
[1] 8648640
21. In how many ways can the letters in the word ‘Population’ be arranged?
factorial(10) / (factorial(2) * factorial(2))
[1] 907200
22. Consider the following data.
x <- c(5, 6, 7, 8, 9)
px <- c(0.1, 0.2, 0.3, 0.2, 0.2)
df <- data.frame(x, px)
df
x px
1 5 0.1
2 6 0.2
3 7 0.3
4 8 0.2
5 9 0.2
class(df)
[1] "data.frame"
str(df)
'data.frame': 5 obs. of 2 variables:
$ x : num 5 6 7 8 9
$ px: num 0.1 0.2 0.3 0.2 0.2
Step 1. Find the expected value E( X ). Round your answer to one decimal place.
EX <- sum(df$x*df$px)
EX
[1] 7.2
Step 2. Find the variance. Round your answer to one decimal place.
Var <- sum((df$x-EX)^2*df$px)
Var
[1] 1.56
Step 3. Find the standard deviation. Round your answer to one decimal place.
sd <- sqrt(Var)
sd
[1] 1.249
Step 4. Find the value of PX= 9. Round your answer to one decimal place.
with(df, sum(px[x=9]))
[1] 0.2
Step 5. Find the value of PX<=7. Round your answer to one decimal place.
with(df, sum(px[x<=7]))
[1] 0.6
23. Suppose a basketball player has made 188 out of 376 free throws. If the player makes the next 3 free throws, I will pay you $23. Otherwise you pay me $4.
Step 1. Find the expected value of the proposition. Round your answer to two decimal places.
FreeThrow <- 188/376
ExpVal <- round(23*(FreeThrow^3)-4*(1-FreeThrow^3),2)
ExpVal
[1] -0.62
Step 2. If you played this game 994 times how much would you expect to win or lose? (Losses must be entered as negative.)
ExpVal*994
[1] -616.28
24. Flip a coin 11 times. If you get 8 tails or less, I will pay you $1. Otherwise you pay me $7.
Step 1. Find the expected value of the proposition. Round your answer to two decimal places.
Win <- pbinom(8, size=11, prob=.5)
ExpVal <- round(1*Win-7*(1-Win),2)
ExpVal
[1] 0.74
Step 2. If you played this game 615 times how much would you expect to win or lose? (Losses must be entered as negative.)
ExpVal*615
[1] 455.1
25. If you draw two clubs on two consecutive draws from a standard deck of cards you win $583. Otherwise you pay me $35. (Cards drawn without replacement.)
Step 1. Find the expected value of the proposition. Round your answer to two decimal places.
Win <- 13/52*12/51
ExpVal <- round(Win*583-(1-Win)*35,2)
ExpVal
[1] 1.35
Step 2. If you played this game 632 times how much would you expect to win or lose? (Losses must be entered as negative.)
ExpVal*632
[1] 853.2
26. A quality control inspector has drawn a sample of 10 light bulbs from a recent production lot. If the number of defective bulbs is 2 or less, the lot passes inspection. Suppose 30% of the bulbs in the lot are defective. What is the probability that the lot will pass inspection? (Round your answer to 3 decimal places)
prob more than 2 bulbs pass
round(pbinom(2, 10, .3), 3)
[1] 0.383
27. A quality control inspector has drawn a sample of 5 light bulbs from a recent production lot. Suppose that 30% of the bulbs in the lot are defective. What is the expected value of the number of defective bulbs in the sample? Do not round your answer.
5*.3
[1] 1.5
28. The auto parts department of an automotive dealership sends out a mean of 5.5 special orders daily. What is the probability that, for any day, the number of special orders sent out will be more than 5? (Round your answer to 4 decimal places)
round(ppois(5, 5.5, lower=FALSE), 4)
[1] 0.4711
29. At the Fidelity Credit Union, a mean of 5.7 customers arrive hourly at the drive-through window. What is the probability that, in any hour, more than 4 customers will arrive? (Round your answer to 4 decimal places)
round(ppois(4, 5.7, lower=FALSE), 4)
[1] 0.6728
30. The computer that controls a bank’s automatic teller machine crashes a mean of 0.4 times per day. What is the probability that, in any 7-day week, the computer will crash no more than 1 time?
(Round your answer to 4 decimal places)
Crash <- 0.4 * 7
round(ppois(1, Crash), 4)
[1] 0.2311
31. A town recently dismissed 8 employees in order to meet their new budget reductions. The town had 6 employees over 50 years of age and 19 under 50. If the dismissed employees were selected at random, what is the probability that more than 1 employee was over 50? Write your answer as a fraction or a decimal number rounded to three decimal places.
round(phyper(1, m=6, n=19, 8, lower.tail=FALSE), 3)
[1] 0.651
32. Unknown to a medical researcher, 10 out of 25 patients have a heart problem that will result in death if they receive the test drug. Eight patients are randomly selected to receive the drug and the rest receive a placebo. What is the probability that less than 7 patients will die? Write your answer as a fraction or a decimal number rounded to three decimal places.
round(phyper(6, m=10, n=15, 8), 3)
[1] 0.998
33. The weights of steers in a herd are distributed normally. The variance is 40,000 and the mean steer weight is 1300 lbs. Find the probability that the weight of a randomly selected steer is greater than 979 lbs. (Round your answer to 4 decimal places)
round(pnorm(979, mean=1300, sd=sqrt(40000),lower.tail=FALSE, log.p = FALSE),4)
[1] 0.9458
34. SVGA monitors manufactured by TSI Electronics have life spans that have a normal distribution with a variance of 1,960,000 and a mean life span of 11,000 hours. If a SVGA monitor is selected at random, find the probability that the life span of the monitor will be more than 8340 hours. (Round your answer to 4 decimal places)
round(pnorm(8340, mean=11000, sd=sqrt(1960000),lower.tail=FALSE, log.p = FALSE),4)
[1] 0.9713
35. Suppose the mean income of firms in the industry for a year is 80 million dollars with a standard deviation of 3 million dollars. If incomes for the industry are distributed normally, what is the probability that a randomly selected firm will earn between 83 and 85 million dollars? (Round your answer to 4 decimal places)
Up<-pnorm(85000000, mean=80000000, sd=3000000,lower.tail=FALSE, log.p = FALSE)
Low<-pnorm(83000000, mean=80000000, sd=3000000,lower.tail=TRUE, log.p = FALSE)
round(1-Up-Low,4)
[1] 0.1109
36. Suppose GRE Verbal scores are normally distributed with a mean of 456 and a standard deviation of 123. A university plans to offer tutoring jobs to students whose scores are in the top 14%. What is the minimum score required for the job offer? Round your answer to the nearest whole number, if necessary.
round(qnorm(0.86, mean=456, sd=123),0)
[1] 589
37. The lengths of nails produced in a factory are normally distributed with a mean of 6.13 centimeters and a standard deviation of 0.06 centimeters. Find the two lengths that separate the top 7% and the bottom 7%. These lengths could serve as limits used to identify which nails should be rejected. Round your answer to the nearest hundredth, if necessary.
Lower <- round(qnorm(0.07, mean=6.13, sd=0.06),2)
Lower
[1] 6.04
Upper <- round(qnorm(0.93, mean=6.13, sd=0.06),2)
Upper
[1] 6.22
38. An English professor assigns letter grades on a test according to the following scheme.
A Top .13 of scores B Scores below the top .13 and above the bottom .55 C Scores below the top .45 and above the bottom .20 D Scores below the top .80 and above the bottom .09 F Bottom .09 of scores Scores on the test are normally distributed with a mean of 78.8 and a standard deviation of 9.8. Find the numerical limits for a C grade. Round your answers to the nearest whole number, if necessary.
Lower <- round(qnorm(0.20, mean=78.8, sd=9.8),0)
Lower
[1] 71
Upper <- round(qnorm(0.55, mean=78.8, sd=9.8),0)
Upper
[1] 80
39. Suppose ACT Composite scores are normally distributed with a mean of 21.2 and a standard deviation of 5.4. A university plans to admit students whose scores are in the top 45%. What is the minimum score required for admission? Round your answer to the nearest tenth, if necessary.
round(qnorm(0.55, mean=21.2, sd=5.4),1)
[1] 21.9
40. Consider the probability that less than 11 out of 151 students will not graduate on time. Assume the probability that a given student will not graduate on time is 9%. Approximate the probability using the normal distribution. (Round your answer to 4 decimal places.)
round(pbinom(10, 151, 0.09),4)
[1] 0.192
41. The mean lifetime of a tire is 48 months with a standard deviation of 7. If 147 tires are sampled, what is the probability that the mean of the sample would be greater than 48.83 months? (Round your answer to 4 decimal places)
round(pnorm(48.83, mean=48, sd=(7/sqrt(147)), lower.tail = FALSE),4)
[1] 0.0753
42. The quality control manager at a computer manufacturing company believes that the mean life of a computer is 91 months, with a standard deviation of 10. If he is correct, what is the probability that the mean of a sample of 68 computers would be greater than 93.54 months? (Round your answer to 4 decimal places)
round(pnorm(93.54, mean=91, sd=(10/sqrt(68)), lower.tail = FALSE),4)
[1] 0.0181
43. A director of reservations believes that 7% of the ticketed passengers are no-shows. If the director is right, what is the probability that the proportion of no-shows in a sample of 540 ticketed passengers would differ from the population proportion by less than 3%? (Round your answer to 4 decimal places)
Total <- 540
NoShow <- 0.07
SD <- sqrt((NoShow)*(1-NoShow)/Total)
round(pnorm(0.1, mean=0.07, sd=SD)-(pnorm(0.04, mean=0.07, sd=SD)),4)
[1] 0.9937
44. A bottle maker believes that 23% of his bottles are defective. If the bottle maker is accurate, what is the probability that the proportion of defective bottles in a sample of 602 bottles would differ from the population proportion by greater than 4%? (Round your answer to 4 decimal places)
Total <- 602
Defective <- 0.23
SD <- sqrt((Defective)*(1- Defective)/Total)
round(pnorm(0.27, mean=0.23, sd=SD)-(pnorm(0.19, mean=0.23, sd=SD)),4)
[1] 0.9803
45. A research company desires to know the mean consumption of beef per week among males over age 48. Suppose a sample of size 208 is drawn with x=3.9. Assume sd=0.8 . Construct the 80% confidence interval for the mean number of lb. of beef per week among males over 48. (Round your answers to 1 decimal place)
t <- qt(((1-0.8)/2), 207)
Error <- 0.8/sqrt(208)
Lower <- round((3.9+Error*t),1)
Upper <- round((3.9- Error*t),1)
Lower
[1] 3.8
Upper
[1] 4
46. An economist wants to estimate the mean per capita income (in thousands of dollars) in a major city in California. Suppose a sample of size 7472 is drawn with x=16.6. Assume sd=11 Construct the 98% confidence interval for the mean per capita income. (Round your answers to 1 decimal place)
t <- qt(((1-0.98)/2), 7472)
Error <- 11/sqrt(7472)
Lower <- round((16.6+ Error*t),1)
Upper <- round((16.6- Error*t),1)
Lower
[1] 16.3
Upper
[1] 16.9
47. Find the value of t such that 0.05 of the area under the curve is to the left of t. Assume the degrees of freedom equals 26.
The one with just the -t=? the top right. Unsure how to past photo here.
t<-qt(0.05,df=26)
t
[1] -1.705618
48. The following measurements ( in picocuries per liter ) were recorded by a set of helium gas detectors installed in a laboratory facility: 383.6, 347.1, 371.9, 347.6, 325.8, 337
Using these measurements, construct a 90% confidence interval for the mean level of helium gas present in the facility. Assume the population is normally distributed.
Step 1. Calculate the sample mean for the given sample data. (Round answer to 2 decimal places)
Helium <- c(383.6, 347.1, 371.9, 347.6, 325.8, 337)
HeliumMean <- round(mean (Helium),2)
HeliumMean
[1] 352.17
Step 2. Calculate the sample standard deviation for the given sample data. (Round answer to 2 decimal places)
SD <- sd(Helium)
SD
[1] 21.67585
Step 3. Find the critical value that should be used in constructing the confidence interval. (Round answer to 3 decimal places)
t <- qt(((1-0.9)/2), 5)
round(t,3)
[1] -2.015
Step 4. Construct the 90% confidence interval. (Round answer to 2 decimal places)
Lower <- round((HeliumMean+SD*t/sqrt(6)),2)
Upper <- round((HeliumMean-SD*t/sqrt(6)),2)
Lower
[1] 334.34
Upper
[1] 370
49. A random sample of 16 fields of spring wheat has a mean yield of 46.4 bushels per acre and standard deviation of 2.45 bushels per acre. Determine the 80% confidence interval for the true mean yield. Assume the population is normally distributed.
Step 1. Find the critical value that should be used in constructing the confidence interval. (Round answer to 3 decimal places)
t <- qt(((1-0.8)/2), 15)
round(t,3)
[1] -1.341
Step 2. Construct the 80% confidence interval. (Round answer to 1 decimal place)
Lower <- round((46.4+2.45*t/sqrt(16)),1)
Upper <- round((46.4-2.45*t/sqrt(16)),1)
Lower
[1] 45.6
Upper
[1] 47.2
50. A toy manufacturer wants to know how many new toys children buy each year. She thinks the mean is 8 toys per year. Assume a previous study found the standard deviation to be 1.9. How large of a sample would be required in order to estimate the mean number of toys bought per child at the 99% confidence level with an error of at most 0.13 toys? (Round your answer up to the next integer)
Z <- qnorm(1-(1-0.99)/2)
Total <- (Z*1.9/0.13)^2
round(Total,0)
[1] 1417
51. A research scientist wants to know how many times per hour a certain strand of bacteria reproduces. He believes that the mean is 12.6. Assume the variance is known to be 3.61. How large of a sample would be required in order to estimate the mean number of reproductions per hour at the 95% confidence level with an error of at most 0.19 reproductions? (Round your answer up to the next integer)
Reproductions <- qnorm(1-(1-0.95)/2)
Total <- (Reproductions*sqrt(3.61)/0.19)^2
round(Total,0)
[1] 384
52. The state education commission wants to estimate the fraction of tenth grade students that have reading skills at or below the eighth grade level.
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)
AtOrBelow <- (2089-1734)/2089
round(AtOrBelow,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)
SD <- sqrt ((AtOrBelow)*(1-AtOrBelow)/2089)
Lower <- round(qnorm((1-(1-0.98)/2),AtOrBelow,SD, lower.tail = FALSE),3)
Upper <- round(qnorm((1-(1-0.98)/2),AtOrBelow,SD),3)
Lower
[1] 0.151
Upper
[1] 0.189
53. An environmentalist wants to find out the fraction of oil tankers that have spills each month.
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)
Spills<-156/474
round(Spills,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)
SD <- sqrt ((Spills)*(1-Spills)/474)
Lower <- round(qnorm((1-(1-0.95)/2),Spills,SD, lower.tail = FALSE),3)
Upper <- round(qnorm((1-(1-0.95)/2),Spills,SD),3)
Lower
[1] 0.287
Upper
[1] 0.371