File:T distribution 2df enhanced.svg
维基共享资源,媒体文件资料库
跳转到导航
跳转到搜索
此SVG文件的PNG预览的大小:360 × 360像素。 其他分辨率:240 × 240像素 | 480 × 480像素 | 768 × 768像素 | 1,024 × 1,024像素 | 2,048 × 2,048像素。
原始文件 (SVG文件,尺寸为360 × 360像素,文件大小:29 KB)
文件信息
结构化数据
说明
摘要[编辑]
描述T distribution 2df enhanced.svg |
English: Student's t-distribution with 2 degrees of freedom. Enhanced imaging. |
日期 | |
来源 |
自己的作品 |
作者 | IkamusumeFan |
SVG开发 InfoField | 本矢量图使用Matplotlib创作。 |
源代码 InfoField | Python codeimport numpy as np
import matplotlib.pyplot as plt
import scipy.special as sp
X = np.arange(-4, 4, 0.01) # range of the graph
plt.clf()
plt.figure(figsize=(4,4))
plt.axes([0.17,0.13,0.79,0.8])
plt.hold(True)
Q = [] # No curves at first.
# Draw the curve of Normal distribution
mu = 0 # mean = 0
sigma = 1 # variance = 1
A = 1/(sigma*np.sqrt(2*np.pi))
B = np.exp(-(X-mu)*(X-mu)/(2*sigma*sigma));
Y = A*B
a = plt.plot(X, Y, '-', color='blue', lw=2)
Q.append(a)
# Draw the curve of Student's t-distribution
mu = 0 # mean = 0
nu = 2 # freedom degree = 2
A = np.exp(sp.gammaln((nu+1)/2.0));
B = np.exp(sp.gammaln(nu/2.0))*np.sqrt(nu*np.pi);
C = (1+X*X/nu)**(-(nu+1)/2.0);
Y = A*C/B;
a = plt.plot(X, Y, '-', color='red', lw=2)
Q.append(a)
# Draw the previous Student's t-distributions
for previous_nu in range(1,nu):
mu = 0 # mean = 0
A = np.exp(sp.gammaln((previous_nu+1)/2.0));
B = np.exp(sp.gammaln(previous_nu/2.0))*np.sqrt(previous_nu*np.pi);
C = (1+X*X/previous_nu)**(-(previous_nu+1)/2.0);
Y = A*C/B;
a = plt.plot(X, Y, '-', color='green', lw=1)
Q.append(a)
# Remaining steps to finish drawing the graph.
plt.xlabel("x")
plt.ylabel("P(x)")
plt.xlim(-4,4)
# Saving the output.
plt.savefig("T_distribution_1df.pdf")
plt.savefig("T_distribution_1df.eps")
plt.savefig("T_distribution_1df.svg")
|
许可协议[编辑]
我,本作品著作权人,特此采用以下许可协议发表本作品:
本文件采用知识共享署名-相同方式共享 3.0 未本地化版本许可协议授权。
- 您可以自由地:
- 共享 – 复制、发行并传播本作品
- 修改 – 改编作品
- 惟须遵守下列条件:
- 署名 – 您必须对作品进行署名,提供授权条款的链接,并说明是否对原始内容进行了更改。您可以用任何合理的方式来署名,但不得以任何方式表明许可人认可您或您的使用。
- 相同方式共享 – 如果您再混合、转换或者基于本作品进行创作,您必须以与原先许可协议相同或相兼容的许可协议分发您贡献的作品。
文件历史
点击某个日期/时间查看对应时刻的文件。
日期/时间 | 缩略图 | 大小 | 用户 | 备注 | |
---|---|---|---|---|---|
当前 | 2013年7月21日 (日) 04:36 | 360 × 360(29 KB) | IkamusumeFan(留言 | 贡献) | The previous edition is incorrect on the degrees of freedom. | |
2013年7月21日 (日) 03:51 | 360 × 360(29 KB) | IkamusumeFan(留言 | 贡献) | User created page with UploadWizard |
您不可以覆盖此文件。
文件用途
没有页面使用本文件。
全域文件用途
以下其他wiki使用此文件:
- ca.wikipedia.org上的用途
- el.wikipedia.org上的用途
- en.wikipedia.org上的用途
- ru.wikipedia.org上的用途
- sr.wikipedia.org上的用途
- zh.wikipedia.org上的用途
元数据
此文件中包含有额外的信息。这些信息可能是由数码相机或扫描仪在创建或数字化过程中所添加。
如果文件已从其原始状态修改,某些细节可能无法完全反映修改后的文件。
宽度 | 288pt |
---|---|
高度 | 288pt |