Plot and compare probability distribution (3 Dimension) in matlab

5 views (last 30 days)
Dear Experts,
How to plot and compare probability distribution (3 Dimension) in matlab. Is there any specific function in matlab.
Many thanks in advance for you help
regards
SM

Answers (3)

Daniel Shub
Daniel Shub on 8 Dec 2011
Do you mean your probability distributions depend on 3 dimensions (x,y,z) or two dimensions (x,y) with the probability being the third?
If you probability only depends on x and y, then you could use mesh
doc mesh
If you need an additional dimension, you could look at conditional probabilities, things like P(x,y|z), and use mesh. You could also try and parameterize the distributions. MATLAB can help you do all these things, but you need to know what you want to do.
  2 Comments
Sayanta
Sayanta on 8 Dec 2011
Hi Daniel,
I would like to explain my problem in details:
I want to plot probability distribution from two system A and B. A is observed data of a system. B is the output of an algorithm. Both data are probability distribution of 5 dimension. I want to plot the probability distribution. Is there any matlab function can plot the distribution. I try to use probplot in matlab but doesn't work.
A =
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 0 0
0 0 1 0 0
B =
1.0000 0 0 0 0
0.8667 0.0267 0.0667 0.0267 0.0133
0.8425 0.0422 0.0806 0.0231 0.0116
0.8415 0.0455 0.0792 0.0225 0.0112
0.8426 0.0451 0.0787 0.0224 0.0112
0.8427 0.0449 0.0786 0.0225 0.0112
0.8427 0.0449 0.0786 0.0225 0.0112
0.8427 0.0449 0.0787 0.0225 0.0112
0.8427 0.0449 0.0787 0.0225 0.0112
0.8427 0.0449 0.0787 0.0225 0.0112
0.8427 0.0449 0.0787 0.0225 0.0112
0.8427 0.0449 0.0787 0.0225 0.0112
0.8427 0.0449 0.0787 0.0225 0.0112
0.8427 0.0449 0.0787 0.0225 0.0112
0.8427 0.0449 0.0787 0.0225 0.0112
Daniel Shub
Daniel Shub on 8 Dec 2011
You cannot visualize 5 dimensions. 2 dimensions is trivial, three is easy, 4 is doable (for example with slices or time), 5 is not practical. You need to do some sort of dimension reduction (e.g., PCA)

Sign in to comment.


Sean de Wolski
Sean de Wolski on 8 Dec 2011
figure;
subplot(121);
mesh(A)
subplot(122);
mesh(B)
?

Yesid Goyes
Yesid Goyes on 12 Dec 2011
hello. you must used SLICE
doc slice
I have this problem for seismic data.

Community Treasure Hunt

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

Start Hunting!