Question

In: Statistics and Probability

Consider a bivariate normal distribution with ?1 = 10, ?2 = 15, ?11 = 2, ?22...

Consider a bivariate normal distribution with ?1 = 10, ?2 = 15, ?11 = 2, ?22 = 3, ?12 = −0.75. Write out the bivariate normal density, ? (?, ?).

Round your answers to 3 significant digits

I need R code for this question, Thanks

Solutions

Expert Solution

To simulate data from bivariate normal density, the R code is following

library(MASS)
rbvn <- function (n, m1, s1, m2, s2, rho)
{
X1 <- rnorm(n, m1, s1)
X2 <- rnorm(n, m2 + (s2 / s1) * rho * (X1 - m1), sqrt((1 - rho^2)*s2^2))
cbind(X1, X2)
}
n = 50
m1 = 10
s1 = 2
m2 = 15
s2 = 3
rho = -0.75
bvn <- round(rbvn(n, m1, s1, m2, s2, rho), digits = 3)

bvn

and the output is

X1 X2
[1,] 13.781 12.786
[2,] 10.012 15.373
[3,] 13.067 9.535
[4,] 9.875 16.063
[5,] 13.196 11.386
[6,] 11.630 12.308
[7,] 13.736 6.758
[8,] 10.521 12.999
[9,] 10.078 17.603
[10,] 11.149 12.900
[11,] 6.344 16.213
[12,] 10.657 12.273
[13,] 8.568 14.822
[14,] 8.436 16.769
[15,] 10.426 14.135
[16,] 9.249 17.114
[17,] 5.186 18.973
[18,] 10.527 13.603
[19,] 12.657 15.942
[20,] 10.712 12.973
[21,] 10.115 13.875
[22,] 8.989 16.745
[23,] 11.551 15.501
[24,] 8.066 14.914
[25,] 5.203 18.282
[26,] 10.334 11.601
[27,] 13.873 13.162
[28,] 9.971 13.897
[29,] 11.700 12.928
[30,] 8.699 13.896
[31,] 9.889 16.742
[32,] 10.398 14.120
[33,] 9.332 17.512
[34,] 13.133 10.401
[35,] 8.197 15.812
[36,] 8.624 13.157
[37,] 10.818 16.472
[38,] 6.556 20.276
[39,] 11.271 14.877
[40,] 11.067 11.225
[41,] 5.481 20.812
[42,] 10.700 13.858
[43,] 11.519 14.185
[44,] 11.738 13.794
[45,] 8.811 17.015
[46,] 11.944 10.013
[47,] 10.978 13.646
[48,] 10.178 14.629
[49,] 11.709 15.685
[50,] 12.784 10.509


Related Solutions

11. In SPC, the distribution of “sample means” 1) Cannot be approximated by normal distribution. 2)...
11. In SPC, the distribution of “sample means” 1) Cannot be approximated by normal distribution. 2) Will have greater variability than the process distribution. 3) Will have a mean greater than the process distribution as a function of the sample size. 4) Is exactly like the original distribution under all circumstances. 5) None of the above is true. 15. Which of the following statements is true? Training of Service Personnel is a criterion for evaluating the explicit servicesfeature of the...
Consider the bivariate data: x : 10 , 12 , 14 , 15 , 16 y...
Consider the bivariate data: x : 10 , 12 , 14 , 15 , 16 y : 8 , 7 , 5 , 4 , 1 Formulate the linear regression formula and estimate the value of y when x=5
3 6 4 8 1 10 2 9 11 12 15 22 3 6 7 5...
3 6 4 8 1 10 2 9 11 12 15 22 3 6 7 5 8 1 12 14 Each column represents a different treatment given to sick rats. Each cell is a different rat. Use statistical analysis and use post hoc testing using contrasts to find the best treatment. Treatment 1: vitamins Treatment 2: prescription pills Treatment 3: brain surgery Treatment 4: shock therapy Treatment 5: dietary changes
Given a normal distribution with µ = 10 and σ = 2, find (a) the normal...
Given a normal distribution with µ = 10 and σ = 2, find (a) the normal curve area to the right of x = 6; (b) the normal curve area between x = 6 and x = 14; (c) the two values of x that contain the middle 75% of the normal curve area. please show all work if possible. Thank you
Assume that the population of all sister-brother heights has a bivariate normal distribution and that the...
Assume that the population of all sister-brother heights has a bivariate normal distribution and that the data below were sampled from this distribution. Sister height (x) 69 64 65 63 65 62 65 64 66 59 62 Brother height (y) 71 68 66 67 70 71 70 73 72 65 66 Heights of n=11 pairs of siblings (a) Consider the population of all sister-brother heights. Estimate the proportion of all brothers who are at least 5′ 10′′. (b) Suppose that...
The cholesterol level in children aged 10-15 is assumed to follow a normal distribution with a...
The cholesterol level in children aged 10-15 is assumed to follow a normal distribution with a mean of 175 and a standard deviation of 20. What is the probability of selecting a child at 10-15 years with cholesterol level higher than 190? What is the probability of selecting a child at 10-15 years with cholesterol level between 165 and 190? What is the interval of cholesterol level of a child 10-15 years higher than 75% and lower than top 10%...
the height in children aged 10-15 is assumed to follow a normal distribution with a mean...
the height in children aged 10-15 is assumed to follow a normal distribution with a mean of 165 with a standard deviation of 15. c)what proportion of children 10-15 years of age have height less than 145? d)what proportion of children 10-15 years of age have height between 125 and 210? e)how tall does a child 10-15 years of age have to be shorter than 95% of children? f)how tall does a child 10-15 years of age have to be...
Consider the following data. 15,−4,−10,8,14,−10,−2,−11 Step 1 of 3: Determine the mean of the given data...
Consider the following data. 15,−4,−10,8,14,−10,−2,−11 Step 1 of 3: Determine the mean of the given data Step 2 of 3: Determine the median of the given data. Step 3 of 3: Determine if the data set is unimodal, bimodal, multimodal, or has no mode. Identify the mode(s), if any exist. Separate multiple modes with commas, if necessary.
Consider a normal distribution with a mean of 50 and standard deviation of 10. Which of...
Consider a normal distribution with a mean of 50 and standard deviation of 10. Which of the following is FALSE? Question 4 options: P(x<=50) = .50 P(x>=40) = 1-P(x<40) P(x<=20)+P(x<=20) = P(x<=40) P(x<=30) = P(x>=70)
22 17 19 10 30 10.5 31 11 32 15 45 6 48 11 49 5.2...
22 17 19 10 30 10.5 31 11 32 15 45 6 48 11 49 5.2 68 3 65 4.2 a) Create a scatterplot of this data and comment on the relationship between the variables b) Calculate the correlation coefficient between these two variables c) Does a linear relationship exist? d) Calculate the least squares regression equation e) Using your equation, predict how long we would expect a 43 year old new hire to remain with the company
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT