Is there any solution to fit plane onto sampling data?

2 views (last 30 days)
For example I have the variables x, y (or higher dimensional data in general) and a probability distribution p(x,y). I want to approximate p(x,y) as a linear function, a plane in this case, at least somewhere in the domain. However I only have samples from the distribution. In case of big amount of data the easy way is to collect them into bins, and fit a plane onto the estimated density function. But I dont want to compress data, I would like to extract the maximum information and use the points itself. Are there any method to do this?

Answers (1)

Peter Borda
Peter Borda on 9 Jan 2015
I'm not sure if I understand the problem correctly, but if you have a high number of sample point on which you have to fit a plane of any dimensions, you can use this method:
  2 Comments
Mr M.
Mr M. on 9 Jan 2015
NOT, not, and NOT! I don't want to fit to points which belongs to the plane. I do not have (x,y,z) triples, I only have (x,y) samples from the p(x,y) density.
Nikola Stan
Nikola Stan on 1 Sep 2021
having (x,y,p(x,y)) is equivalent to having (x,y,z) triplets

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!