File:BernoulliTrialsCs.svg
Original file (SVG file, nominally 540 × 360 pixels, file size: 82 KB)
Captions
Summary
editDescriptionBernoulliTrialsCs.svg |
Čeština: Bernoulliho pokusy s pravděpodobností úspěchu p=0,5 a jejich průměrná úspěšnost v závislosti na opakování
English: Bernoulli trials with p = 0.5 and their average success depending on the # of trials |
Date | |
Source | Own work |
Author | Jan Spousta |
- Zdrojový kód / source code, Python 3:
import numpy as np import matplotlib.pyplot as plt import seaborn as sns np.random.seed(0)
x = np.arange(1, 1001, 1) samples = np.random.randint(0, 2, len(x)) averages = np.cumsum(samples)/x
samples = np.random.randint(0, 2, len(x)) averages1 = np.cumsum(samples)/x
samples = np.random.randint(0, 2, len(x)) averages2 = np.cumsum(samples)/x
- plt.plot((0, 1000), (0.5, 0.5), label='Teoretická střední hodnota')
plt.plot(x, averages, label='1. řada pokusů') plt.plot(x, averages1, label='2. řada pokusů') plt.plot(x, averages2, label='3. řada pokusů')
plt.title('Bernoulliho pokusy, p = 0,5: podíl úspěchů v závislosti na počtu opakování') plt.xlabel('Počet pokusů') plt.ylabel('Podíl úspěchů') plt.ylim((0, 1)) plt.legend() plt.savefig('BernoulliTrialsCs.svg')
Licensing
edit- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 08:09, 19 April 2018 | 540 × 360 (82 KB) | Jan Spousta (talk | contribs) | User created page 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 cs.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.
Width | 432pt |
---|---|
Height | 288pt |