10. For the iris data set: (a) Compute the median for each of the first four columns. (b) Compute the standard deviation
Posted: Sun Oct 03, 2021 12:37 pm
10. For the iris data set: (a) Compute the median for each of the first four columns. (b) Compute the standard deviation for each of the first four columns. (0) Compute the covariance matrix for the first four columns 11. Write R code to compute the following: (a) The 75th percentile of a GAMMA(2,3) distribution, where 2 is the shape parameter and 3 is the shape parameter (b) The probability that a standard normal random variable is greater than 2.7. (c) The probability that a Binomial(n = 20, p=0.3) random variable is equal to 3. 12. Consider the discrete distribution or a random variable X with probabilities given in the table below: 0 0.4 1 2 0.4 0.05 3 0.05 P(X=2) 4 0.05 5 0.05 Write R code that will simulate a sample of size 100 from this distribution and then use the table function to create a frequency table for the data.