File:Binomial confidence band uk.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 540 × 360 pixels. Other resolutions: 320 × 213 pixels | 640 × 427 pixels | 1,024 × 683 pixels | 1,280 × 853 pixels | 2,560 × 1,707 pixels.
Original file (SVG file, nominally 540 × 360 pixels, file size: 42 KB)
File information
Structured data
Captions
Summary
[edit]DescriptionBinomial confidence band uk.svg |
English: Illustration of confidence bands using simulated data, labelled in Ukrainian
Українська: Ілюстрація довірчих смуг із застосуванням імітованих даних |
Date | |
Source | |
Author |
|
Other versions |
[edit]
|
SVG development InfoField | This plot was created with Matplotlib. |
Source code InfoField | Python codeimport numpy as np
import matplotlib.pyplot as plt
import scipy.special as sp
X = np.arange(18, 81, 2)
P = 1/(1+np.exp(1-0.2*np.sqrt(X-18)))
Y,S,n = [],[],500
for i,x in enumerate(X):
y = 1*(np.random.uniform(size=n)<P[i])
p = y.mean()
Y.append(p)
S.append(np.sqrt(p*(1-p)/n))
Y = np.array(Y)
S = np.array(S)
## Множник для одночасно 95 %-вої довірчої смуги із застосуванням методу Бонферроні.
f = -sp.ndtri(0.025/len(P))
plt.clf()
plt.plot(X, Y, '-', color='black', label = 'Оцінка')
plt.plot(X, Y+2*S, '-', color='royalblue', label = 'Поточково 95 %-ва ДС')
plt.plot(X, Y-2*S, '-', color='royalblue')
plt.plot(X, Y+f*S, '-', color='orangered', label = 'Одночасно 95 %-ва ДС')
plt.plot(X, Y-f*S, '-', color='orangered')
plt.plot(X, P, '-', color='green', label = "Істинні частки")
plt.ylim(0,1)
plt.xlim(18,80)
plt.legend(frameon=False)
plt.xlabel("Вік")
plt.ylabel("Частка тих, хто підтримує кандидата А")
plt.savefig("binomial_confidence_band_uk.png")
plt.savefig("binomial_confidence_band_uk.svg")
|
Licensing
[edit]This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
- 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 | 12:38, 8 March 2021 | 540 × 360 (42 KB) | Olexa Riznyk (talk | contribs) | Uploaded a work by * File:Binomial confidence band.svg: {{ut|Skbkekas}} * derivative work: {{Ut|Olexa Riznyk}} from * File:Binomial confidence band.svg 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 uk.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 |