Question: On R studio 1.Modify For the random number generator below (a) Compute Z i and U i for enough values of i to cover an
On R studio
1.Modify For the random number generator below
(a) Compute Zi and Ui for enough values of i to cover an entire cycle
(b) Plot a scatter diagram of the Zi values 1 apart
(c) Compute the mean value of Ui across 1 cycle
Zi = (11Zi-1)(mod 31),Ui =Zi /31 with Z0 = 7
2.Using the inverse transform method develop an algorithm for the random variable with distribution function F(x) below. Use the first three Ui valuesfrom part (a) ofproblem 1to create 3 values from therandom variable below.
F(x) = (x2)/90 < x < 3
3.Consider the following data pertaining to the amount of battery charge in a smart watch versus the number of file transfers to/from the watch.
Number of file transfersCharge remaining (hours)
28.2
46.20
65.68
84.72
104.04
123.72
153.04
(a)Determine the linear regression model for the charge as a function of the number of file transfers
(b)Calculate the coefficient of determination r2
(c)Plot the regression line and the data set and the 90% confidence interval on the regression
(d)Plotthe residuals and discuss.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
