Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Draw ellipse for multivariate data
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
eren eren

Posts: 2
Registered: 12/12/12
Draw ellipse for multivariate data
Posted: Dec 12, 2012 4:06 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

i want to draw ellipse for multivariate data.
here is my wish;
i have some random numbers x which is

mu=zeros(1,p) % p is dimension
var=eye(p) % p is dimension
x=mvnrnd(mu,var,n)

and i estimate the location and shape parameter of this data with MCD method. method is not important for you because i don't have any problem. And then

i want draw an ellipsoid with center estimated location parameter and its' border is chi-squre with p degrees of freedom and alfa=0.05. in theory inequality is;

1-) (x-mu)'*inv(var)*(x-mu)<= chi2inv(p,alfa) x element of R1
2-) chi2inv(p,alfa)<(x-mu)'*inv(var)*(x-mu)<= chi2inv(p,sigma) x element of R2
3-) (x-mu)'*inv(var)*(x-mu)> chi2inv(p,sigma) x element of R3

and i want to draw R1,R2 and R3 ellipses. These are three nested ellipses.

How can i do this?







Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.