File:Deviation from Mean of a Random Distribution.jpg
Deviation_from_Mean_of_a_Random_Distribution.jpg (560 × 420 pixels, file size: 39 KB, MIME type: image/jpeg)
Captions
Summary[edit]
DescriptionDeviation from Mean of a Random Distribution.jpg |
English: See below for Matlab code.
% Generate some random data x = 1:25; y = 20*rand(1,25)+10; % Calculate the mean and standard deviation of y y_mean = mean (y); y_std = std (y); % Plot y versus x with a line plot(x,y,'b', 'LineWidth', 2); hold on % Plot the mean of y as a dashed line plot plot(x,y_mean*ones(size(x)), 'k--'); % plot(x,median(y)*ones(size(x)),'r--') % Plot the error bars for y using one standard deviation % errorbar(x,y,y_std*ones (size (y)), 'b', 'LineStyle', 'none'); % Plot the shaded area for y using one standard deviation y_upper = y_mean + y_std; y_lower = y_mean - y_std; x_fill = [x, fliplr(x)]; y_fill = [y_upper, fliplr(y_lower)]; fill([min(x_fill), max(x_fill), max(x_fill), min(x_fill)],[y_fill(2), y_fill(2), y_fill(1), y_fill(1)], 'r', 'FaceAlpha', 0.2, 'EdgeColor', 'none'); % fill (x_fill, y_fill, 'b', 'FaceAlpha', 0.2, 'EdgeColor', 'none'); % Add some labels and legends xlabel ('Data Observation'); ylabel ('Y'); grid on; title('Deviation from Mean in Random Distribution') legend ('Data', 'Mean', 'Standard Deviation', 'Location', 'best'); ylim([10 40]); hold off |
Date | |
Source | Own work |
Author | Grw66 |
Licensing[edit]
This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 22:21, 19 November 2023 | 560 × 420 (39 KB) | Grw66 (talk | contribs) | Uploaded own work with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
JPEG file comment |
|
---|