In: Statistics and Probability
Give a method to simulate BN(4,5,16,25,0.67) using cholesky factorization .Using R simulate this BN when n1= 50 and n2= 50 and draw scatter diagram of (x1 ,x2) Estimate m1,m2 and sample corr(X1,X2) .Give regression line of X2 and X1 and also draw this line using method of least squares using R. Comment on your results.