File:Empirical CDF.png
Empirical_CDF.png (400 × 320 pixels, file size: 6 KB, MIME type: image/png)
Captions
Summary edit
DescriptionEmpirical CDF.png |
English: This is a visualization of an empirical distribution function. The grey bars show the samples corresponding to the ECDF and the green line is the theoretical distribution from which the samples have been drawn. |
Date | |
Source | Own work |
Author | Bscan |
Other versions |
|
%This is Matlab code to generate a visualization of the empirical
%distribution function
%This code released under the CC0 "license"
%Generate random samples
NumSamps =20;
%Get standard normally distributed samples
samples = randn(NumSamps,1);
%Get emprical cdf
[f,x] = ecdf(samples);
%Get real cdf
x_cdf = [-5:0.01:5];
y_cdf = normcdf(x_cdf);
%Generate figure;
figure; hold on;
plot(x_cdf,y_cdf,'-','Color',[0.6 0.6 0.6],'LineWidth',2);
stairs(x,f,'b-','LineWidth',2);
%The 1/NumSamps ensures the black bars are scaled to be probabilities
plot([samples samples]',[zeros(NumSamps,1) (1/NumSamps)*ones(NumSamps,1)]','-k','LineWidth',2);
set(gca,'FontSize',12)
grid on; box on;
xlim([-4 4])
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 | 10:57, 28 January 2018 | 400 × 320 (6 KB) | Nagualdesign (talk | contribs) | Tweaks. | |
22:05, 27 January 2018 | 412 × 318 (6 KB) | Nagualdesign (talk | contribs) | Green curve. | ||
20:11, 27 January 2018 | 412 × 318 (6 KB) | Nagualdesign (talk | contribs) | Tail (top). | ||
19:30, 27 January 2018 | 412 × 318 (6 KB) | Nagualdesign (talk | contribs) | Antialiased numbers. | ||
18:56, 27 January 2018 | 412 × 318 (6 KB) | Nagualdesign (talk | contribs) | Antialiasing. | ||
15:04, 25 March 2013 | 412 × 318 (4 KB) | Bscan (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
The following 3 pages use this file:
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org
- Usage on eu.wikipedia.org
- Usage on it.wikipedia.org
- Usage on zh.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.
Software used |
---|