SlideShare a Scribd company logo
1 of 11
1A.
1B. Visuallywe cansee thatthe medianislowerthatthe meanof the Price.The skewnessof the
histogramindicatesthatthe meanislargerthan the median..
1C. By usingR, we can alsofindthe medianandmeanof the Price whichis 771 forthe meanand 750
for the median
1D. The standarddeviationforthe Price is148.1818 andthe range is510 – 1050
#Number1
fridge <- read.table("E:/odesk/LiamReardon/fridge.txt",header=TRUE,quote=""")
View(fridge)
hist(fridge$Price,main="FridgePrice",xlab="Price")
mean(fridge$Price)
median(fridge$Price)
sd(fridge$Price)
range(fridge$Price)
2.A Basedon the Cereal data,the datafollowsthe Skewed-RightDistributionwiththe mode belongs
to 5.
5 | 00000000000000
6 | 0000
7 | 000
8 | 00000000
9 |
10 | 0
11 |
12 |
13 | 000
2.B No,we cannot applythe empirical rule here because the distributionisSkewed.We canonly
applyempirical rule if the dataisnormallydistributed.
2.C 165.7576 for Mean. 190 for Median
R Code
#Number2
cereal <- read.delim("E:/odesk/LiamReardon/cereal.txt")
View(cereal)
stem(cereal$Fiber.grams)
mean(cereal$Calories)
median(cereal$Calories)
3.A. Mean = 3.375
Median= 3.5
Variance = 19.41071
StandardDeviation=4.405759
3.B [1] 6 9 5 2 -1 7 12 11
Mean = 6.375
Median= 6.5
Variance = 19.41071
StandardDeviation=4.405759
Comparedtoobservation(a) ,we got higherMeanand Medianbecause we incrementeach
observationby3 points butthe range betweenthe highestvalue andthe minimumvalue didn’t
change. Measure of dispersionwillbe the same if we addor decrease the whole dataat the same
time.Measure of dispersionincludesVariance andStandardDeviation.Meanwhile Mean,Median
and Mode are measure of Central Tendency.
3.C 13.5 27.0 9.0 -4.5 -18.0 18.0 40.5 36.0
Mean = 15.1875
Median= 15.75
Variance = 393.067
StandardDeviation=19.82592
Comparedto(a) , we got higherresultbecause we multiplyall the observation by4.5.Measure of
tendencyare increasedandMeasure of dispersionare alsoincreasedbecause the range between
each of data are largerdue to the multiply.
R Code
#Number3
num3A <- c(3,6,2,-1,-4,4,9,8)
mean(num3A);median(num3A);var(num3A);sd(num3A) #Number3A
num3B <- 3+num3A #Number3B
mean(num3B);median(num3B);var(num3B);sd(num3B)
num3C <- 4.5*num3A #Number3C
mean(num3C);median(num3C);var(num3C);sd(num3C)
4. a. 12.45657 isthe meanof prize value
B. Yes,the meanexceedsourprice ticket,thiscouldyieldtomore profitif we buymore ticketfrom
Lotto 6/49.
Prize_Values<- c(14284257,441409.1,2430.9,76.20,10,5)
Number_Of_Winners<- c(0,1,150,9067,176083,127346)
Multiply<-Prize_Values*Number_Of_Winners
Mean_Result<- sum(Multiply)/sum(Number_Of_Winners)
5. P(Signal Hill orCape Spear) =P(Signal Hill) +P(Cape Spear) - P(Signal HillandCape Spear)
= 0.55 + 0.44 - 0.36 = 0.63 or 63%
b)
P(onlySignal Hill) =P(Signal Hill)- P(Signal Hilland Cape Spear)
= 0.55 - 0.36 = 0.19 or 19%
c)
P(Signal Hill |Cape Spear) = P(Signal Hill andCape Spear) /P(Cape Spear)
= 0.36 / 0.44 = 0.818 or 81.8%
Rcode
> 0.55+0.44-0.36 #5a
> 0.55-0.36 #5b
> 0.36/0.44 #5c
6.A.
4 | 03478999
5 | 0112345
6 | 1256
7 | 69
8 | 9
B. Median= 51.5
6. The meanwouldbe around50 until – 60 because we foundthatthe Medianis51.5 andstem-leaf
plotlooksskewed.UsingRcode,we couldresultthe meanof 56.04545 . So the meanrating ishigher
than the median.
R Code
num_6 <- c(40,43,44,47,48,49,49,49,61,62,65,66,76,79,50,51,51,52,53,54,89,55) #Number_6A
stem(num_6)
median(num_6)
mean(num_6)
7.a.
7.B
7.B 28 | 0329
30 | 7
32 | 112582345
34 | 13608
36 | 44779288
38 | 04514
40 | 0002
7.C
Mean = 351.8056
Median= 354
7.D Since the graphic isnormallydistributed,we couldapplythe empirical rule or68-95-99.7 rule.
Approximately99.7%of the data fallswithinthree standarddeviationsof the meanwiththe
notation μ±3σ .
R Code
pizza<- read.delim("E:/odesk/LiamReardon/pizza.txt")#Number_7a
View(pizza)
hist(pizza$Fat,main="PizzaFatPerSlice",xlab="Fat")
hist(pizza$Calories,main="PizzaCalories",xlab="Calories")
stem(pizza$Calories) #Number7_B
mean(pizza$Calories);median(pizza$Calories) #Number7_C
8. A. To get the assumptiontrue forfoursuspect,we multiplyforeachevent.
0.98^4 = .9224 or 92.24%
B. The chance of correct is 98% forthe machine.Soto get incorrectresult,we substractthe chance
from100%l
1 - 0.98^4 = .0776 or 7.76%
So,7.76% of the resultwill yieldtoincorrect
R Code
#Number_8
0.98^4 #Number_8A
1- (0.98)^4 #Number_8B
9. a) If we sumall the probabilities,we will getthe resultof 1
0.05 + 0.20+x+0.35+0.10 =1
So,X must be 0.3
(b) P(X> 3) = P(X= 4) = 0.10
(c) Findthe meannumberof cheesecakessold,andthe standarddeviation
mean= (0)(0.05) + (1)(0.20) + ... + (4)(0.10) = 2.25
variance = (0 - 2.25)²(0.05) + (1 - 2.25)²(0.20) + ...+ (4-2.25)²(0.10) = 1.0875
std dev= sqrt(1.0875) = 1.043
0.05+0.20+0.35+0.10 #Number_9A
0.7 + 0.3
list("P(X>3)=P(X=4)=0.1") #Number_9B
x9 <- c(0,1,2,3,4)#Number_9C
px9 <- c(0.05,0.20,0.3,0.35,0.1)
mean(x9*px9)
sd(x9*px9)
10. A.
B. E(x) = 1.27
C. Var(x) = 1.6671
SD(x) = 1.295029
#Number10
xnum_10 <- c(0,1,2,3,4,5,6)#number_10A
pxnum_10 <- c(0.32,0.35,0.18,0.08,0.04,0.02,0.01)
plot(density(pxnum_10))
plot(pxnum_10)
xnum_10*pxnum_10
list(Expected_Number_Interupttion_Per_Day=sum(xnum_10*pxnum_10)) #Number_10B
meanxnum_10<- mean(xnum_10) #Number_10C
varcalc <- sum((xnum_10)^2* (pxnum_10)) - (1.27)^2
sum(varcalc)
sqrt(varcalc)
list(Standard_Deviation_Interupption_Per_Day=sqrt(varcalc))
11.n = 9 ( numberof householdsselected)
p = .73 ( probabilitythata householdownsadigital camera)
x = numberof householdsoutof 9 owninga digital camera
a)
P(x=2) = 0.002006756
b)
P( at most1) = 0.0001931818
c)
P( at least1) = 0.9999924
d) Mean = 6.57
StandardDeviation=1.331878
E)P(X>=350) = 1
P0<-(factorial(9))/((factorial(0)*factorial(9-0)))*(0.73^0) * ((1-0.73)^(9-0))
P1<-(factorial(9))/((factorial(1)*factorial(9-1)))*(0.73^1) * ((1-0.73)^(9-1))
P2<-(factorial(9))/((factorial(2)*factorial(9-2)))*(0.73^2) * ((1-0.73)^(9-2))
P350<-(factorial(450))/((factorial(0)*factorial(450))) *(0.73^0) * ((1-0.73)^(450-0))
m <-(1-0.73)^(450-0)
1-m #Number_11E
9*0.73
stdev_num11<-9*0.73
list("Number11A"=P2, "Number11B"= P0+P1, "Number11C"= 1-P0,"Number11DMean" =
9*0.73,"Number11D StandardDeviation"=sqrt(9*0.73*(1-0.73))) #Number_11A

More Related Content

What's hot

Testing a Claim About a Standard Deviation or Variance
Testing a Claim About a Standard Deviation or VarianceTesting a Claim About a Standard Deviation or Variance
Testing a Claim About a Standard Deviation or VarianceLong Beach City College
 
Week8 Live Lecture for Final Exam
Week8 Live Lecture for Final ExamWeek8 Live Lecture for Final Exam
Week8 Live Lecture for Final ExamBrent Heard
 
Decision Tree and Bayesian Classification
Decision Tree and Bayesian ClassificationDecision Tree and Bayesian Classification
Decision Tree and Bayesian ClassificationKomal Kotak
 
Decision tree for Predictive Modeling
Decision tree for Predictive ModelingDecision tree for Predictive Modeling
Decision tree for Predictive ModelingEdureka!
 
Quantitative Analysis For Management 11th Edition Render Solutions Manual
Quantitative Analysis For Management 11th Edition Render Solutions ManualQuantitative Analysis For Management 11th Edition Render Solutions Manual
Quantitative Analysis For Management 11th Edition Render Solutions ManualShermanne
 
Mb0040 statistics for management spring2015_assignment- SMU_MBA-Solved-Assign...
Mb0040 statistics for management spring2015_assignment- SMU_MBA-Solved-Assign...Mb0040 statistics for management spring2015_assignment- SMU_MBA-Solved-Assign...
Mb0040 statistics for management spring2015_assignment- SMU_MBA-Solved-Assign...pkharb
 
Business Statistics Chapter 6
Business Statistics Chapter 6Business Statistics Chapter 6
Business Statistics Chapter 6Lux PP
 
Quantitative Analysis For Management 11th Edition Render Test Bank
Quantitative Analysis For Management 11th Edition Render Test BankQuantitative Analysis For Management 11th Edition Render Test Bank
Quantitative Analysis For Management 11th Edition Render Test BankRichmondere
 
352735322 rsh-qam11-tif-02-doc
352735322 rsh-qam11-tif-02-doc352735322 rsh-qam11-tif-02-doc
352735322 rsh-qam11-tif-02-docFiras Husseini
 
Week 7 quiz_review_mini_tab_2011
Week 7 quiz_review_mini_tab_2011Week 7 quiz_review_mini_tab_2011
Week 7 quiz_review_mini_tab_2011Brent Heard
 
Math 221 Massive Success / snaptutorial.com
Math 221 Massive Success / snaptutorial.comMath 221 Massive Success / snaptutorial.com
Math 221 Massive Success / snaptutorial.comStephenson164
 

What's hot (20)

Testing a Claim About a Standard Deviation or Variance
Testing a Claim About a Standard Deviation or VarianceTesting a Claim About a Standard Deviation or Variance
Testing a Claim About a Standard Deviation or Variance
 
Week8 Live Lecture for Final Exam
Week8 Live Lecture for Final ExamWeek8 Live Lecture for Final Exam
Week8 Live Lecture for Final Exam
 
Testing a Claim About a Proportion
Testing a Claim About a ProportionTesting a Claim About a Proportion
Testing a Claim About a Proportion
 
Decision Tree and Bayesian Classification
Decision Tree and Bayesian ClassificationDecision Tree and Bayesian Classification
Decision Tree and Bayesian Classification
 
Sfs4e ppt 09
Sfs4e ppt 09Sfs4e ppt 09
Sfs4e ppt 09
 
Decision tree for Predictive Modeling
Decision tree for Predictive ModelingDecision tree for Predictive Modeling
Decision tree for Predictive Modeling
 
Quantitative Analysis For Management 11th Edition Render Solutions Manual
Quantitative Analysis For Management 11th Edition Render Solutions ManualQuantitative Analysis For Management 11th Edition Render Solutions Manual
Quantitative Analysis For Management 11th Edition Render Solutions Manual
 
Mb0040 statistics for management spring2015_assignment- SMU_MBA-Solved-Assign...
Mb0040 statistics for management spring2015_assignment- SMU_MBA-Solved-Assign...Mb0040 statistics for management spring2015_assignment- SMU_MBA-Solved-Assign...
Mb0040 statistics for management spring2015_assignment- SMU_MBA-Solved-Assign...
 
Msb12e ppt ch06
Msb12e ppt ch06Msb12e ppt ch06
Msb12e ppt ch06
 
Business Statistics Chapter 6
Business Statistics Chapter 6Business Statistics Chapter 6
Business Statistics Chapter 6
 
Quantitative Analysis For Management 11th Edition Render Test Bank
Quantitative Analysis For Management 11th Edition Render Test BankQuantitative Analysis For Management 11th Edition Render Test Bank
Quantitative Analysis For Management 11th Edition Render Test Bank
 
Probability module 1
Probability module 1Probability module 1
Probability module 1
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
abcxyz
abcxyzabcxyz
abcxyz
 
Chapter 6
Chapter 6Chapter 6
Chapter 6
 
352735322 rsh-qam11-tif-02-doc
352735322 rsh-qam11-tif-02-doc352735322 rsh-qam11-tif-02-doc
352735322 rsh-qam11-tif-02-doc
 
Week 7 quiz_review_mini_tab_2011
Week 7 quiz_review_mini_tab_2011Week 7 quiz_review_mini_tab_2011
Week 7 quiz_review_mini_tab_2011
 
Math 221 Massive Success / snaptutorial.com
Math 221 Massive Success / snaptutorial.comMath 221 Massive Success / snaptutorial.com
Math 221 Massive Success / snaptutorial.com
 
Les5e ppt 07
Les5e ppt 07Les5e ppt 07
Les5e ppt 07
 
Rsh qam11 ch07 ge
Rsh qam11 ch07 geRsh qam11 ch07 ge
Rsh qam11 ch07 ge
 

Similar to Answer

Moving Beyond Linearity (Article 7 - Practical Exercises)
Moving Beyond Linearity (Article 7 - Practical Exercises)Moving Beyond Linearity (Article 7 - Practical Exercises)
Moving Beyond Linearity (Article 7 - Practical Exercises)Theodore Grammatikopoulos
 
Lecture 5: Interval Estimation
Lecture 5: Interval Estimation Lecture 5: Interval Estimation
Lecture 5: Interval Estimation Marina Santini
 
Variable Selection Methods
Variable Selection MethodsVariable Selection Methods
Variable Selection Methodsjoycemi_la
 
Variable Selection Methods
Variable Selection MethodsVariable Selection Methods
Variable Selection Methodsjoycemi_la
 
InstructionsView CAAE Stormwater video Too Big for Our Ditches.docx
InstructionsView CAAE Stormwater video Too Big for Our Ditches.docxInstructionsView CAAE Stormwater video Too Big for Our Ditches.docx
InstructionsView CAAE Stormwater video Too Big for Our Ditches.docxdirkrplav
 
3.4 Measures of Position
3.4 Measures of Position3.4 Measures of Position
3.4 Measures of Positionmlong24
 
New lengkap karakteristik mancova
New lengkap karakteristik mancovaNew lengkap karakteristik mancova
New lengkap karakteristik mancovaAdiSusilo27
 
ARitificial Intelligence - Project - Data Classification
ARitificial Intelligence - Project - Data ClassificationARitificial Intelligence - Project - Data Classification
ARitificial Intelligence - Project - Data Classificationmayank0318
 
Applied 40S March 24, 2009
Applied 40S March 24, 2009Applied 40S March 24, 2009
Applied 40S March 24, 2009Darren Kuropatwa
 
An overview of statistics management with excel
An overview of statistics management with excelAn overview of statistics management with excel
An overview of statistics management with excelKRISHANACHOUDHARY1
 
lesson 3 presentation of data and frequency distribution
lesson 3 presentation of data and frequency distributionlesson 3 presentation of data and frequency distribution
lesson 3 presentation of data and frequency distributionNerz Baldres
 
Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or VarianceEstimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or VarianceLong Beach City College
 
Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or Variance Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or Variance Long Beach City College
 
Measures of Relative Standing and Boxplots
Measures of Relative Standing and BoxplotsMeasures of Relative Standing and Boxplots
Measures of Relative Standing and BoxplotsLong Beach City College
 

Similar to Answer (20)

Moving Beyond Linearity (Article 7 - Practical Exercises)
Moving Beyond Linearity (Article 7 - Practical Exercises)Moving Beyond Linearity (Article 7 - Practical Exercises)
Moving Beyond Linearity (Article 7 - Practical Exercises)
 
Lecture 5: Interval Estimation
Lecture 5: Interval Estimation Lecture 5: Interval Estimation
Lecture 5: Interval Estimation
 
C Arrays.ppt
C Arrays.pptC Arrays.ppt
C Arrays.ppt
 
Variable Selection Methods
Variable Selection MethodsVariable Selection Methods
Variable Selection Methods
 
Variable Selection Methods
Variable Selection MethodsVariable Selection Methods
Variable Selection Methods
 
InstructionsView CAAE Stormwater video Too Big for Our Ditches.docx
InstructionsView CAAE Stormwater video Too Big for Our Ditches.docxInstructionsView CAAE Stormwater video Too Big for Our Ditches.docx
InstructionsView CAAE Stormwater video Too Big for Our Ditches.docx
 
Assignment in regression1
Assignment in regression1Assignment in regression1
Assignment in regression1
 
3.4 Measures of Position
3.4 Measures of Position3.4 Measures of Position
3.4 Measures of Position
 
New lengkap karakteristik mancova
New lengkap karakteristik mancovaNew lengkap karakteristik mancova
New lengkap karakteristik mancova
 
Makalah ukuran penyebaran
Makalah ukuran penyebaranMakalah ukuran penyebaran
Makalah ukuran penyebaran
 
ARitificial Intelligence - Project - Data Classification
ARitificial Intelligence - Project - Data ClassificationARitificial Intelligence - Project - Data Classification
ARitificial Intelligence - Project - Data Classification
 
Applied 40S March 24, 2009
Applied 40S March 24, 2009Applied 40S March 24, 2009
Applied 40S March 24, 2009
 
chap08_01.ppt
chap08_01.pptchap08_01.ppt
chap08_01.ppt
 
An overview of statistics management with excel
An overview of statistics management with excelAn overview of statistics management with excel
An overview of statistics management with excel
 
Data mining Project
Data mining ProjectData mining Project
Data mining Project
 
Deep Learning
Deep LearningDeep Learning
Deep Learning
 
lesson 3 presentation of data and frequency distribution
lesson 3 presentation of data and frequency distributionlesson 3 presentation of data and frequency distribution
lesson 3 presentation of data and frequency distribution
 
Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or VarianceEstimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or Variance
 
Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or Variance Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or Variance
 
Measures of Relative Standing and Boxplots
Measures of Relative Standing and BoxplotsMeasures of Relative Standing and Boxplots
Measures of Relative Standing and Boxplots
 

More from Yogi Sarumaha

More from Yogi Sarumaha (7)

Assignment_01_F2015 stats
Assignment_01_F2015 statsAssignment_01_F2015 stats
Assignment_01_F2015 stats
 
answer
answeranswer
answer
 
Topic
TopicTopic
Topic
 
PRBE002 final assignment(5)
PRBE002 final assignment(5)PRBE002 final assignment(5)
PRBE002 final assignment(5)
 
Final Case study answer
Final Case study answerFinal Case study answer
Final Case study answer
 
MoreCheating(1)
MoreCheating(1)MoreCheating(1)
MoreCheating(1)
 
leslie
leslieleslie
leslie
 

Answer

  • 1. 1A. 1B. Visuallywe cansee thatthe medianislowerthatthe meanof the Price.The skewnessof the histogramindicatesthatthe meanislargerthan the median.. 1C. By usingR, we can alsofindthe medianandmeanof the Price whichis 771 forthe meanand 750 for the median 1D. The standarddeviationforthe Price is148.1818 andthe range is510 – 1050 #Number1 fridge <- read.table("E:/odesk/LiamReardon/fridge.txt",header=TRUE,quote=""") View(fridge) hist(fridge$Price,main="FridgePrice",xlab="Price") mean(fridge$Price) median(fridge$Price) sd(fridge$Price) range(fridge$Price)
  • 2. 2.A Basedon the Cereal data,the datafollowsthe Skewed-RightDistributionwiththe mode belongs to 5. 5 | 00000000000000 6 | 0000 7 | 000 8 | 00000000 9 | 10 | 0 11 | 12 | 13 | 000 2.B No,we cannot applythe empirical rule here because the distributionisSkewed.We canonly applyempirical rule if the dataisnormallydistributed. 2.C 165.7576 for Mean. 190 for Median R Code #Number2 cereal <- read.delim("E:/odesk/LiamReardon/cereal.txt") View(cereal) stem(cereal$Fiber.grams) mean(cereal$Calories) median(cereal$Calories)
  • 3. 3.A. Mean = 3.375 Median= 3.5 Variance = 19.41071 StandardDeviation=4.405759 3.B [1] 6 9 5 2 -1 7 12 11 Mean = 6.375 Median= 6.5 Variance = 19.41071 StandardDeviation=4.405759 Comparedtoobservation(a) ,we got higherMeanand Medianbecause we incrementeach observationby3 points butthe range betweenthe highestvalue andthe minimumvalue didn’t change. Measure of dispersionwillbe the same if we addor decrease the whole dataat the same time.Measure of dispersionincludesVariance andStandardDeviation.Meanwhile Mean,Median and Mode are measure of Central Tendency. 3.C 13.5 27.0 9.0 -4.5 -18.0 18.0 40.5 36.0 Mean = 15.1875 Median= 15.75 Variance = 393.067 StandardDeviation=19.82592 Comparedto(a) , we got higherresultbecause we multiplyall the observation by4.5.Measure of tendencyare increasedandMeasure of dispersionare alsoincreasedbecause the range between each of data are largerdue to the multiply. R Code #Number3 num3A <- c(3,6,2,-1,-4,4,9,8) mean(num3A);median(num3A);var(num3A);sd(num3A) #Number3A num3B <- 3+num3A #Number3B mean(num3B);median(num3B);var(num3B);sd(num3B) num3C <- 4.5*num3A #Number3C mean(num3C);median(num3C);var(num3C);sd(num3C)
  • 4. 4. a. 12.45657 isthe meanof prize value B. Yes,the meanexceedsourprice ticket,thiscouldyieldtomore profitif we buymore ticketfrom Lotto 6/49. Prize_Values<- c(14284257,441409.1,2430.9,76.20,10,5) Number_Of_Winners<- c(0,1,150,9067,176083,127346) Multiply<-Prize_Values*Number_Of_Winners Mean_Result<- sum(Multiply)/sum(Number_Of_Winners)
  • 5. 5. P(Signal Hill orCape Spear) =P(Signal Hill) +P(Cape Spear) - P(Signal HillandCape Spear) = 0.55 + 0.44 - 0.36 = 0.63 or 63% b) P(onlySignal Hill) =P(Signal Hill)- P(Signal Hilland Cape Spear) = 0.55 - 0.36 = 0.19 or 19% c) P(Signal Hill |Cape Spear) = P(Signal Hill andCape Spear) /P(Cape Spear) = 0.36 / 0.44 = 0.818 or 81.8% Rcode > 0.55+0.44-0.36 #5a > 0.55-0.36 #5b > 0.36/0.44 #5c
  • 6. 6.A. 4 | 03478999 5 | 0112345 6 | 1256 7 | 69 8 | 9 B. Median= 51.5 6. The meanwouldbe around50 until – 60 because we foundthatthe Medianis51.5 andstem-leaf plotlooksskewed.UsingRcode,we couldresultthe meanof 56.04545 . So the meanrating ishigher than the median. R Code num_6 <- c(40,43,44,47,48,49,49,49,61,62,65,66,76,79,50,51,51,52,53,54,89,55) #Number_6A stem(num_6) median(num_6) mean(num_6)
  • 7. 7.a. 7.B 7.B 28 | 0329 30 | 7 32 | 112582345 34 | 13608 36 | 44779288 38 | 04514 40 | 0002 7.C Mean = 351.8056 Median= 354 7.D Since the graphic isnormallydistributed,we couldapplythe empirical rule or68-95-99.7 rule. Approximately99.7%of the data fallswithinthree standarddeviationsof the meanwiththe notation μ±3σ . R Code pizza<- read.delim("E:/odesk/LiamReardon/pizza.txt")#Number_7a View(pizza) hist(pizza$Fat,main="PizzaFatPerSlice",xlab="Fat") hist(pizza$Calories,main="PizzaCalories",xlab="Calories") stem(pizza$Calories) #Number7_B mean(pizza$Calories);median(pizza$Calories) #Number7_C
  • 8. 8. A. To get the assumptiontrue forfoursuspect,we multiplyforeachevent. 0.98^4 = .9224 or 92.24% B. The chance of correct is 98% forthe machine.Soto get incorrectresult,we substractthe chance from100%l 1 - 0.98^4 = .0776 or 7.76% So,7.76% of the resultwill yieldtoincorrect R Code #Number_8 0.98^4 #Number_8A 1- (0.98)^4 #Number_8B
  • 9. 9. a) If we sumall the probabilities,we will getthe resultof 1 0.05 + 0.20+x+0.35+0.10 =1 So,X must be 0.3 (b) P(X> 3) = P(X= 4) = 0.10 (c) Findthe meannumberof cheesecakessold,andthe standarddeviation mean= (0)(0.05) + (1)(0.20) + ... + (4)(0.10) = 2.25 variance = (0 - 2.25)²(0.05) + (1 - 2.25)²(0.20) + ...+ (4-2.25)²(0.10) = 1.0875 std dev= sqrt(1.0875) = 1.043 0.05+0.20+0.35+0.10 #Number_9A 0.7 + 0.3 list("P(X>3)=P(X=4)=0.1") #Number_9B x9 <- c(0,1,2,3,4)#Number_9C px9 <- c(0.05,0.20,0.3,0.35,0.1) mean(x9*px9) sd(x9*px9)
  • 10. 10. A. B. E(x) = 1.27 C. Var(x) = 1.6671 SD(x) = 1.295029 #Number10 xnum_10 <- c(0,1,2,3,4,5,6)#number_10A pxnum_10 <- c(0.32,0.35,0.18,0.08,0.04,0.02,0.01) plot(density(pxnum_10)) plot(pxnum_10) xnum_10*pxnum_10 list(Expected_Number_Interupttion_Per_Day=sum(xnum_10*pxnum_10)) #Number_10B meanxnum_10<- mean(xnum_10) #Number_10C varcalc <- sum((xnum_10)^2* (pxnum_10)) - (1.27)^2 sum(varcalc) sqrt(varcalc) list(Standard_Deviation_Interupption_Per_Day=sqrt(varcalc))
  • 11. 11.n = 9 ( numberof householdsselected) p = .73 ( probabilitythata householdownsadigital camera) x = numberof householdsoutof 9 owninga digital camera a) P(x=2) = 0.002006756 b) P( at most1) = 0.0001931818 c) P( at least1) = 0.9999924 d) Mean = 6.57 StandardDeviation=1.331878 E)P(X>=350) = 1 P0<-(factorial(9))/((factorial(0)*factorial(9-0)))*(0.73^0) * ((1-0.73)^(9-0)) P1<-(factorial(9))/((factorial(1)*factorial(9-1)))*(0.73^1) * ((1-0.73)^(9-1)) P2<-(factorial(9))/((factorial(2)*factorial(9-2)))*(0.73^2) * ((1-0.73)^(9-2)) P350<-(factorial(450))/((factorial(0)*factorial(450))) *(0.73^0) * ((1-0.73)^(450-0)) m <-(1-0.73)^(450-0) 1-m #Number_11E 9*0.73 stdev_num11<-9*0.73 list("Number11A"=P2, "Number11B"= P0+P1, "Number11C"= 1-P0,"Number11DMean" = 9*0.73,"Number11D StandardDeviation"=sqrt(9*0.73*(1-0.73))) #Number_11A