Question

Roughly sketch the shapes of the following Gaussians N (μ,2). For each, you only need to show a representative contour line which is qualitatively accurate (has approximately the right orientation, for instance). 1 0.75 b) μ-C) and Σ =(-0.75 )

0 0
Add a comment Improve this question Transcribed image text
Answer #1

library(MASS)

## a)
M=c(0,0)
M
S=matrix(c(9,0,0,1), nrow=2)
S

bivn=mvrnorm(n = 1000, mu=M, Sigma=S)


# now we do a kernel density estimate
bivn.kde <- kde2d(bivn[,1], bivn[,2], n = 50)

# now plot your results
contour(bivn.kde)

## b)
M=c(0,0)
M
S.2=matrix(c(1,-0.75,-0.75,1), nrow=2)
S.2

bivn.2=mvrnorm(n = 1000, mu=M, Sigma=S.2)


# now we do a kernel density estimate
bivn.kde.2 <- kde2d(bivn.2[,1], bivn.2[,2], n = 50)

# now plot your results
contour(bivn.kde.2)

Add a comment
Know the answer?
Add Answer to:
Roughly sketch the shapes of the following Gaussians N (μ,2). For each, you only need to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT