Statistical Methods for Data Science
Homework 3
Textbook:
Read all of Chapter 8 of the textbook.
Solve the following exercises from the textbook:
8.1 (b, c), 8.2, 8.5, 8.6, 8.7, 8.8
Additional exerc

#
# R code for HW 4 Exercises from Chapter 9
#
#
#
# Exercise 9.4 (MOME) #
#
# Input the data
data <- c(0.4, 0.7, 0.9)
# Function to numerically compute mean the function
exp.mean <- function(theta) cfw_
fun <- function(x) cfw_
x * theta * x^(theta - 1)

#
# R code for Ex 5.7 (c, d, e) - oil change problem
#
#
#
#
#
#
#
#
#
A function to simulate one draw of X = service time (in hours) defined in Ex 5.6
Arguments:
prob = probability that the service is performed by mechanic 2
lambda1 = service rate of mec

szﬁsﬁcs Dsum S‘de
HW 4* l
2.145061). TLQ W nmwr of P“qu fRSSWaC {3
H7443) : uxasxwxasxaaxa: ; ;/é§’%g,600
beamsa We m M W3 in ﬁve aAfka/loezb, diet, SMWM
be all oUﬂMW/f in M FS§W2W%€9’df/r (9f
okmaobers 7g imfewafcwt. TM Fasswmérg Wad (Wm/{ole
omme) if H