Question 4(4 point)
4.1) Which of the following produces a probability histogram?
4.2) Which of the following R code generates 1000 random variates from an Exponential distribution with mean 1/3?
4.3) Which of the following R code generates 1000 random variates from a Normal distribution with mean 10 and variance 4?
4.4) Which of the following R code generates 1000 random variates from an Exponential distribution with mean 1/3?
4.1) Which of the following produces a probability histogram?
A probability histogram is a graph that shows the probability of each outcome on axis.
C. hist(rexp(1000,3))
4.2) Which of the following R code generates 1000 random variates from an Exponential distribution with mean 1/3?
In R “rate” is what we call Lambda.
Lambda = .2 So, mean = sd = 1/.2
hence here mean = sd = 1/3 so, Lambda = 3
C. rexp(1000, rate=3)
4.3) Which of the following R code generates 1000 random variates from a Normal distribution with mean 10 and variance 4?
rnorm(n, mean = 0, sd = 1)
Here, variance is 4 hence standard deviation is 2.
D. rnorm(1000, 10, 2)
4.4) Which of the following R code generates 1000 random variates from an Exponential distribution with mean 1/3?
For exponential distribution we use rexp.
E. None of these
Get Answers For Free
Most questions answered within 1 hours.