Skeda:Student t cdf.svg

Page contents not supported in other languages.
Nga Wikipedia, enciklopedia e lirë

Dokument origjinal(skedë SVG, fillimisht 360 × 288 pixel, madhësia e skedës: 35 KB)

Kjo skedë është prej Wikimedia Commons dhe mund të përdoret nga projekte të tjera. Përshkrimi në këtë skedë në këtë faqe nuk është treguar më poshtë. Shko tek faqja përshkruese në Commons Shko tek faqja përshkruese në Commons

Përmbledhje

Përshkrimi
English: Plot of the cumulative distribution functions of several members of the Student t-family of probability distributions.
Data
Burimi Punë e juaja
Autori Skbkekas
SVG genesis
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Kodi burimor
InfoField

Python code

import numpy as np
import matplotlib.pyplot as plt
import scipy.special as sp
import scipy.integrate as integral
 
col = ['orange', 'purple', 'deepskyblue']
 
X = np.arange(-5, 5, 0.005)
 
plt.clf()
plt.figure(figsize=(4,3.2))
plt.axes([0.17,0.13,0.79,0.8])
plt.hold(True)
 
A = []

def PDF(x,nu):
	Y = -(nu+1)*np.log(1+x**2/nu)/2
	Y += sp.gammaln((nu+1)/2.0)
	Y -= sp.gammaln(nu/2.0)
	Y -= 0.5*np.log(nu*np.pi)
	Y = np.exp(Y)
	return Y

for k,nu in enumerate([1,2,5]):
	Y=[]
	for x in X:
		Y.append(integral.quad(lambda t: PDF(t,nu),-1000,x))
	a = plt.plot(X, Y, '-', color=col[k], lw=1.5)
	A.append(a)

# Degenerate into Normal distribution
from scipy.stats import norm
Y = norm.cdf(X)
a = plt.plot(X, Y, '-', color='black', lw=1.5)
A.append(a)
 
plt.xlabel("x")
plt.ylabel(u"P(X\N{Less-THAN OR EQUAL TO}x)")

bx = plt.legend(A, (r"$\nu=1$", r"$\nu=2$", r"$\nu=5$", r"$\nu=+\infty$"),\
                numpoints=1, handlelen=0.05, handletextpad=0.4,\
                loc="lower right")
bx.draw_frame(False)
plt.xlim(-5,5)
 
plt.savefig("student_t_cdf.pdf")
plt.savefig("student_t_cdf.eps")
plt.savefig("student_t_cdf.svg")

Licencim

Unë, krijuesi i kësaj pune, e publikoj këtu në bazë të licensës në vijim:
w:sq:Creative Commons
atribuim
Kjo skedë është dhënë për përdorim sipas licensës Creative Commons Attribution 3.0 Unported.
Je i lirë të:
  • ta shpërndani – ta kopjoni, rishpërndani dhe përcillni punën
  • t’i bëni “remix” – të përshtatni punën
Sipas kushteve të mëposhtme:
  • atribuim – Duhet t’i jepni meritat e duhura, të siguroni një lidhje për tek licenca dhe të tregoni nëse janë bërë ndryshime. Këtë mund ta bëni në ndonjë mënyrë të arsyeshme, por jo në ndonjë mënyrë që sugjeron se licencuesi ju del zot juve apo përdorimit tuaj.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

përshkruan

22 shkurt 2010

Historiku skedës

Shtypni mbi një datë/kohë për ta parë skedën siç ishte atëherë.

Data/KohaMiniaturëPërmasatPërdoruesiKoment
e tanishme4 prill 2014 01:37Miniaturë për versionin duke filluar nga 4 prill 2014 01:37360 × 288 (35 KB)Hydroxfixed colours (hand-edited SVG)
21 korrik 2013 09:58Miniaturë për versionin duke filluar nga 21 korrik 2013 09:58360 × 288 (35 KB)IkamusumeFanAdjust the axis for better display.
21 korrik 2013 09:51Miniaturë për versionin duke filluar nga 21 korrik 2013 09:51360 × 288 (35 KB)IkamusumeFan1. Using \nu instead of df, which appears in Scipy's documentation; 2. Since for some operating systems and Python versions, Scipy's stdtr function has visible errors around t=+1 and -1, we adjust the computation of CDF according to the integral defini...
4 mars 2010 17:42Miniaturë për versionin duke filluar nga 4 mars 2010 17:42360 × 288 (28 KB)SkbkekasChanged df's to give better spacing, used thinner lines.
23 shkurt 2010 06:11Miniaturë për versionin duke filluar nga 23 shkurt 2010 06:11360 × 288 (27 KB)Skbkekas{{Information |Description={{en|1=Plot of the cumulative distribution functions of several members of the Student t-family of probability distributions.}} |Source={{own}} |Author=Skbkekas |Date=2010-02-22 |Permission= |other_versions= }}

Këto faqe lidhen tek kjo skedë:

Përdorimi global i skedës

Kjo skedë përdoret nga Wiki të tjera në vijim:

Metadata