image
Physics Forums Logo
image
image
* Register * Upgrade Blogs Library Staff Rules Mark Forums Read
image
image   image
image

Go Back   Physics Forums > Physics > General Physics


Reply

image how to fit min. area ellipse around data point Share It Thread Tools Search this Thread image
Old Nov6-09, 05:44 AM                  #1
Amrita

Amrita is Offline:
Posts: 2
how to fit min. area ellipse around data point

Hi,

I am having some 2d and 3d data files (from some nmr experiment, as a matter of fact) and the data plot for that is such that most of the points are coming together now I want to draw ellipse around 2d data point and ellipsoid around 3d data point with the condition that 90% (or any confidence interval) of data will fall inside it. Moreover, these ellipse / ellipsoid should have the minimum area/volume. How to do that can anyone advice me?
I have been trying it in Matlab. But if any other software does this efficiently, kindly inform in details.
  Reply With Quote
Old Nov8-09, 09:13 PM                  #2
DrGreg

DrGreg is Offline:
Posts: 777
Recognitions:
Science Advisor Science Advisor
Re: how to fit min. area ellipse around data point

Originally Posted by Amrita View Post
Hi,

I am having some 2d and 3d data files (from some nmr experiment, as a matter of fact) and the data plot for that is such that most of the points are coming together now I want to draw ellipse around 2d data point and ellipsoid around 3d data point with the condition that 90% (or any confidence interval) of data will fall inside it. Moreover, these ellipse / ellipsoid should have the minimum area/volume. How to do that can anyone advice me?
I have been trying it in Matlab. But if any other software does this efficiently, kindly inform in details.
If x1, x2, x3 ... are the column vectors for your points, form the 2×2 or 3×3 covariance matrix
LaTeX Code: \\textbf{R} = \\frac{1}{N}\\sum_{n=1}^N \\textbf{x}_n \\textbf{x}_n^T
The ellipse / ellipsoid you want will have an equation of the form
LaTeX Code: \\textbf{x}^T\\textbf{Rx} = r^2
for some suitable value of r. For arbitrary data you can just calculate the value of rn for each data point x = xn and take the 90th percentile (or whatever).

You should be able to all this in MATLAB.
  Reply With Quote
Old Nov9-09, 07:33 AM                  #3
DrGreg

DrGreg is Offline:
Posts: 777
Recognitions:
Science Advisor Science Advisor
Re: how to fit min. area ellipse around data point

Correction

My response above is based on the assumption that your data has zero mean. If the mean of your data is not negligible (i.e. if you want an ellipse that isn't centred on the origin) you'll need to subtract the mean first before you do anything else.
  Reply With Quote
image image
Reply
Thread Tools


Similar Threads for: how to fit min. area ellipse around data point
Thread Thread Starter Forum Replies Last Post
Area of ellipse integral. tabukihna Calculus & Beyond 13 Oct13-09 11:37 PM
Stuck on Area of Ellipse Proof EstimatedEyes Calculus & Beyond 13 Mar18-09 03:21 PM
Derivation: Area of Ellipse Knissp Calculus & Beyond 2 Jul16-08 12:48 PM
surface area of revolution for an ellipse erjkism Calculus & Beyond 1 Mar11-08 12:10 AM
Q relating area and ellipse! Please help! telko Introductory Physics 3 Feb14-06 06:10 AM

Powered by vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. © 2009 Physics Forums
Sciam | physorgPhysorg.com Science News Partner
image
image   image