How to draw the scatter plot for mean and Standard deviation of an ... (2024)

21 views (last 30 days)

Show older comments

Nithya SIvasamy on 16 Jun 2016

  • Link

    Direct link to this question

    https://jmaab.mathworks.com/matlabcentral/answers/290249-how-to-draw-the-scatter-plot-for-mean-and-standard-deviation-of-an-image

  • Link

    Direct link to this question

    https://jmaab.mathworks.com/matlabcentral/answers/290249-how-to-draw-the-scatter-plot-for-mean-and-standard-deviation-of-an-image

Answered: Image Analyst on 2 Aug 2024 at 18:53

The image is divided into 12 .The mean and standard deviation of all 12 images is identified.I want to draw the scatter plot for mean and standard deviation.Can anyone say the matlab code for this Can I Use single scatter plot for representing mean and SD

0 Comments

Show -2 older commentsHide -2 older comments

Sign in to comment.

Answers (2)

Jaswanth on 2 Aug 2024 at 15:34

  • Link

    Direct link to this answer

    https://jmaab.mathworks.com/matlabcentral/answers/290249-how-to-draw-the-scatter-plot-for-mean-and-standard-deviation-of-an-image#answer_1494031

  • Link

    Direct link to this answer

    https://jmaab.mathworks.com/matlabcentral/answers/290249-how-to-draw-the-scatter-plot-for-mean-and-standard-deviation-of-an-image#answer_1494031

Open in MATLAB Online

Hi,

You can use scatter function of MATLAB to create a scatter plot to represent the mean and standard deviation of the 12 images.

Please refer to the following example code to create a scatter plot:

% Sample data for means and standard deviations of 12 images

means = [1.2, 2.3, 3.1, 4.5, 5.6, 6.7, 7.8, 8.9, 9.0, 2.1, 3.4, 4.8];

std_devs = [0.5, 0.6, 0.4, 0.7, 0.8, 0.5, 0.6, 0.7, 0.9, 0.3, 0.4, 0.6];

% Create a scatter plot

scatter(means, std_devs, 'filled');

% Add labels and title

xlabel('Mean');

ylabel('Standard Deviation');

title('Scatter Plot of Mean vs. Standard Deviation');

% Optionally, add grid for better readability

grid on;

% Display the plot

hold off;

How to draw the scatter plot for mean and Standard deviation of an ... (3)

Replace the sample data with your actual mean and standard deviation values. This will create a scatter plot where each point corresponds to the mean and standard deviation of one of the 12 images.

Kindly refer to following MathWorks documentation to know more about the scatter function discussed above:

I hope the solution provided above is helpful.

0 Comments

Show -2 older commentsHide -2 older comments

Sign in to comment.

Image Analyst on 2 Aug 2024 at 18:53

  • Link

    Direct link to this answer

    https://jmaab.mathworks.com/matlabcentral/answers/290249-how-to-draw-the-scatter-plot-for-mean-and-standard-deviation-of-an-image#answer_1494116

  • Link

    Direct link to this answer

    https://jmaab.mathworks.com/matlabcentral/answers/290249-how-to-draw-the-scatter-plot-for-mean-and-standard-deviation-of-an-image#answer_1494116

If you're doing this to quantify the spatial uniformity of an image, once you have the mean and standard deviation of the 12 tiles in your image, compute the

  1. mean of the 12 means
  2. standard deviation of the 12 means
  3. mean of the 12 standard deviations
  4. standard deviation of the 12 standard deviations

For a thought example let's say you had a splotchy image with light and dark regions, and let's say you created another image where you just sorted those pixels in increaing intensity, so that image looked like a smooth ramp. The mean and standard deviation of the two images would be the same but they'd look totally different : one is splotchy while the other is smooth. However the mean of the tile standard deviations would be different: low for the smooth image it would be low (since it does not change much from tile to tile) whereas for the splotchy image it would be high since the standard deviation varies a lot from tile to tile.

Now let's say you took the same pixels and totally scrambled/randomized the image so that it looks basically like white noise. Again the overall mean and standard deviation would not change. But because each tile looks really similar (even though it's noise) the mean and standard deviation don't change much from tile to tile so the standard deviation of the means and standard deviation of the standard deviations would be close to zero, but for the splotchy images, those numbers would not be close to zero.

So those 4 numbers are one way of quantifying the uniformity/texture/splotchiness of different images.

0 Comments

Show -2 older commentsHide -2 older comments

Sign in to comment.

Sign in to answer this question.

See Also

Categories

MATLABGraphics2-D and 3-D PlotsData Distribution PlotsScatter Plots

Find more on Scatter Plots in Help Center and File Exchange

Tags

  • scatter plot
  • uniformity quantification

Products

  • Image Processing Toolbox

Community Treasure Hunt

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

Start Hunting!

An Error Occurred

Unable to complete the action because of changes made to the page. Reload the page to see its updated state.


How to draw the scatter plot for mean and Standard deviation of an ... (5)

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a web site from the following list

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom(English)

Asia Pacific

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
  • 日本Japanese (日本語)
  • 한국Korean (한국어)

Contact your local office

How to draw the scatter plot for mean and Standard deviation of an ... (2024)

FAQs

What is the mean and standard deviation plot? ›

A mean plot shows the mean and standard deviation of the data. A line or dot represents the mean. A standard error or confidence interval measures uncertainty in the mean and is represented as either an error bar or diamond. An optional error bar or band represents the standard deviation.

How do you find the mean and standard deviation of a box plot? ›

While you cannot directly calculate the mean and standard deviation from a box plot, you can make some general observations about the data distribution. You can get approximate values for the mean and sd, but not their precise values without the raw data (which you can sometimes infer).

What is the standard deviation line plot? ›

Standard deviation plots are typically used in conjunction with mean plots. The mean plot would be used to check for shifts in location while the standard deviation plot would be used to check for shifts in scale. there is a shift in variation; greatest variation is during the summer months.

How to make a scatter plot step by step? ›

To construct a scatter diagram:
  1. Identify the independent and dependent variables.
  2. Assign the independent variable to the horizontal or x -axis. Assign the dependent variable to the vertical or y -axis.
  3. Plot the points on an (x,y) -grid.
  4. Label the axes, including both the variable names and units.
  5. Include a chart title.

What are good scatter plot examples? ›

A simple scatter plot can be used to see the difference in outdoor temperatures compared to ice cream sales. The two variables would be outside temperature and ice cream sales. This data could be collected and organized into a table. Once the data is organized into a table, it can be turned into ordered pairs.

How do you make a scatter plot look good? ›

Making an excellent scatter plot

Strive for clarity: Each point on a scatter plot represents one data point. You'll want to make sure that these points are big enough to see, but not so big they obscure each other. Unless you have a very good reason to add color, it is probably best to keep a scatter plot grayscale.

How do you present mean and standard deviation? ›

Also, with the exception of some p values, most statistics should be rounded to two decimal places. Mean and Standard Deviation are most clearly presented in parentheses: The sample as a whole was relatively young (M = 19.22, SD = 3.45). The average age of students was 19.22 years (SD = 3.45).

What are the signs for mean and standard deviation? ›

μ mu, pronounced “mew” = mean of a population. ν nu: see df, above. ρ rho, pronounced “roe” = linear correlation coefficient of a population. σ “sigma” = standard deviation of a population.

What does the difference between mean and standard deviation mean? ›

Standard deviation (SD) is a widely used measurement of variability used in statistics. It shows how much variation there is from the average (mean). A low SD indicates that the data points tend to be close to the mean, whereas a high SD indicates that the data are spread out over a large range of values.

What is the mean and standard deviation of at distribution? ›

Tail heaviness is determined by a parameter of the t-distribution called degrees of freedom, with smaller values giving heavier tails, and with higher values making the t-distribution resemble a standard normal distribution with a mean of 0 and a standard deviation of 1.

What is the formula for standard deviation and mean deviation? ›

In this method, we first compute the mean of the data values (¯x x ¯ ) and then compute the deviations of each data value from the mean. Then we use the following standard deviation formula by actual mean method: σ = √(∑(x−¯x) ( x − x ¯ ) 2 /n), where n = total number of observations.

What is the standard deviation of scattering? ›

The standard deviation (SD) measures the extent of scattering in a set of values, typically compared to the mean value of the set. The calculation of the SD depends on whether the dataset is a sample or the entire population.

How to find standard deviation? ›

  1. Step 1: Find the mean.
  2. Step 2: Subtract the mean from each score.
  3. Step 3: Square each deviation.
  4. Step 4: Add the squared deviations.
  5. Step 5: Divide the sum by one less than the number of data points.
  6. Step 6: Take the square root of the result from Step 5.

What is the formula for the standard deviation of a signal? ›

In equation form, the standard deviation is calculated: In the alternative notation: sigma = sqrt((x0 -μ)2 + (x1 -μ)2 + ... + (xN-1 -μ)2 / (N-1)). Notice that the average is carried out by dividing by N - 1 instead of N.

How do you find the standard deviation of a normal graph? ›

You can calculate it by subtracting each data point from the mean value and then finding the squared mean of the differenced values; this is called Variance. The square root of the variance gives you the standard deviation.

Top Articles
Latest Posts
Article information

Author: Lilliana Bartoletti

Last Updated:

Views: 6353

Rating: 4.2 / 5 (73 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Lilliana Bartoletti

Birthday: 1999-11-18

Address: 58866 Tricia Spurs, North Melvinberg, HI 91346-3774

Phone: +50616620367928

Job: Real-Estate Liaison

Hobby: Graffiti, Astronomy, Handball, Magic, Origami, Fashion, Foreign language learning

Introduction: My name is Lilliana Bartoletti, I am a adventurous, pleasant, shiny, beautiful, handsome, zealous, tasty person who loves writing and wants to share my knowledge and understanding with you.