MATLAB: Marginal Distribution Plot

Click For Summary

Discussion Overview

The discussion focuses on creating a marginal distribution plot in MATLAB using X-Y scatter plot data. Participants explore methods to derive distribution parameters, such as mean and standard deviation, for both axes, and seek guidance on visual representation techniques.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant seeks to create a marginal distribution plot and expresses the need for mean and standard deviation values for both X and Y axes, rather than just one.
  • Another participant suggests using MATLAB's histogram function to visualize the distributions of X and Y, although they express uncertainty about creating a vertically-oriented histogram.
  • A third participant provides a link to a resource that may help with creating a rotating histogram in MATLAB.
  • The original poster acknowledges the suggestion and indicates they may be able to draw a vertical histogram and add a probability distribution line to establish the necessary values.

Areas of Agreement / Disagreement

Participants do not appear to reach a consensus on the best method for creating the marginal distribution plot, and multiple approaches are discussed without resolution.

Contextual Notes

Participants express varying levels of familiarity with MATLAB's capabilities, and there are indications of missing assumptions regarding the specific requirements for the marginal distribution plot.

chendry2001
Messages
7
Reaction score
0
Hi

I am trying to find a way to create a marginal distribution plot in matlab. I have lots of X-Y values on a scatter plot and need to find the approximate distribution. I have the Statistics Toolbox which is probably needed.

I used POLYTOOL which gives me a mean and standard deviation value for the data on the Y axis, based on a single value for X. Ideally I would want a mean and standard deviation for both though, or at least something that describes the thing as a whole.

This is kind of what I'm looking for:

http://www.ehponline.org/members/2000/suppl-5/883-893bernillon/fig3.gif

http://www.unt.edu/benchmarks/archives/2003/february03/rss_003.gif

Any help much appreciated! Thanks
 
Last edited by a moderator:
Physics news on Phys.org
thanks. it was more about finding the parameters of the distribution than the 2 plots on the side of the graph. But i can prob draw a vertical histogram now and add a probability distribution line and establish the values from that. Should work

Thanks for your help!
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K