File:Beta distribution cdf.svg
维基共享资源,媒体文件资料库
跳转到导航
跳转到搜索
![File:Beta distribution cdf.svg](https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Beta_distribution_cdf.svg/566px-Beta_distribution_cdf.svg.png?20141114185040)
此SVG文件的PNG预览的大小:566 × 425像素。 其他分辨率:320 × 240像素 | 639 × 480像素 | 1,023 × 768像素 | 1,280 × 961像素 | 2,560 × 1,922像素。
原始文件 (SVG文件,尺寸为566 × 425像素,文件大小:80 KB)
文件信息
结构化数据
说明
说明
添加一行文字以描述该文件所表现的内容
摘要
[编辑]描述Beta distribution cdf.svg |
English: Cumulative distribution function for the Beta distribution. |
日期 | |
来源 | 自己的作品 |
作者 | Horas (留言) based on the work of Krishnavedala |
其他版本 | File:Beta_distribution_cdf.png |
Source Codes
[编辑]Using gnuplot |
---|
reset
reset session
out=2
outputpath= "./"
outputfilename="betacummulative"
if(out==1) {
set terminal qt size 1000,750 font ",14"
}
if(out==2) {
set terminal pdfcairo size 16cm,12cm font ",20" linewidth 2
set output outputpath.outputfilename.".pdf"
}
if(out==3) {
set terminal pngcairo size 800,600 font ",14"
set output outputpath.outputfilename.".png"
}
dbeta(x,a,b) = exp((a-1)*log(x)+(b-1)*log(1-x)-lgamma(a)-lgamma(b)+lgamma(a+b))
pbeta(x,a,b) = ibeta(a,b,x)
f(x,y,z) = pbeta(x,y,z)
set samples 500
set xrange [0:1]
set xtics 0.2
set yrange [0:1]
set ytics 0.2
#set xlabel "x"
set ylabel "CDF"
set key at .40,1
set grid xtics ytics mytics lw 1 lc rgb "#888888" dashtype 3 lt 1
set border 3 back lw 2 lc rgb "#222222"
set tics in nomirror scale 0.75
lww=2
set ls 1 lw lww lc rgb "#e41a1c"
set ls 2 lw lww lc rgb "#377eb8"
set ls 3 lw lww lc rgb "#4daf4a"
set ls 4 lw lww lc rgb "#984ea3"
set ls 5 lw lww lc rgb "#ff7f00"
plot \
f(x, 0.5,0.5) w l ls 1 title "{/Symbol a} = {/Symbol b} = 0.5", \
f(x, 5, 1) w l ls 2 title "{/Symbol a} = 5, {/Symbol b} = 1", \
f(x, 1, 3) w l ls 3 title "{/Symbol a} = 1, {/Symbol b} = 3", \
f(x, 2, 2) w l ls 4 title "{/Symbol a} = 2, {/Symbol b} = 2", \
f(x, 2, 5) w l ls 5 title "{/Symbol a} = 2, {/Symbol b} = 5"
if (out>1) {
set output
}
if (out == 1) {
pause -1
}
|
Using python with matplotlib, scipy and numpy toolboxes. |
---|
from matplotlib.pyplot import *
from numpy import linspace
from scipy.stats import beta
x = linspace(0,1,75)
fig = figure()
ax = fig.add_subplot(111)
ax.plot(x,beta.cdf(x,0.5,0.5),label=r"$\alpha=\beta=0.5$")
ax.plot(x,beta.cdf(x,5,1),label=r"$\alpha=5, \beta=1$")
ax.plot(x,beta.cdf(x,1,3),label=r"$\alpha=1, \beta=3$")
ax.plot(x,beta.cdf(x,2,2),label=r"$\alpha=2, \beta=2$")
ax.plot(x,beta.cdf(x,2,5),label=r"$\alpha=2, \beta=5$")
ax.grid(True)
ax.minorticks_on()
ax.legend(loc=9)
setp(ax.get_legend().get_texts(),fontsize='small')
ax.set_ylim(0,2.6)
ax.set_xlabel("x")
ax.set_ylabel("PDF")
fig.savefig("Beta_distribution_cdf.svg",bbox_inches="tight",\
pad_inches=.15)
|
许可协议
[编辑]Public domainPublic domainfalsefalse |
![]() |
此作品不具有版权,属于公有领域,因为其所包含之内容均为公共财产且没有明确的原始作者信息。 |
文件历史
点击某个日期/时间查看对应时刻的文件。
日期/时间 | 缩略图 | 大小 | 用户 | 备注 | |
---|---|---|---|---|---|
当前 | 2014年11月14日 (五) 18:50 | ![]() | 566 × 425(80 KB) | Horas(留言 | 贡献) | {{Information |Description=edited to fit to prob. density function plot. Better readability. |Date=2014-11-14 |Source={{own}} |Author= ~~~ |Permission= |other_versions= }} |
2011年6月4日 (六) 21:56 | ![]() | 640 × 495(65 KB) | Krishnavedala(留言 | 贡献) | corrected the y-axis label and location of legend | |
2011年6月4日 (六) 21:54 | ![]() | 639 × 495(65 KB) | Krishnavedala(留言 | 贡献) | corrected the range of y-axis | |
2011年6月4日 (六) 21:53 | ![]() | 639 × 489(68 KB) | Krishnavedala(留言 | 贡献) | {{Information |Description ={{en|1=Cumulative distribution function for the Beta distribution. Created using python with matplotlib, scipy and numpy toolboxes. <syntaxhighligh |
您不可以覆盖此文件。
文件用途
以下页面使用本文件:
全域文件用途
以下其他wiki使用此文件:
- be.wikipedia.org上的用途
- ca.wikipedia.org上的用途
- de.wikipedia.org上的用途
- en.wikipedia.org上的用途
- en.wikibooks.org上的用途
- fi.wikipedia.org上的用途
- he.wikipedia.org上的用途
- it.wikipedia.org上的用途
- ja.wikipedia.org上的用途
- ko.wikipedia.org上的用途
- pt.wikipedia.org上的用途
- tl.wikipedia.org上的用途
- tr.wikipedia.org上的用途
- uk.wikipedia.org上的用途
- zh.wikipedia.org上的用途
元数据
此文件含有额外信息,这些信息可能是创建或数字化该文件时使用的数码相机或扫描仪所添加的。如果文件已从其原始状态修改,某些详细信息可能无法完全反映修改后的文件。
宽度 | 453pt |
---|---|
高度 | 340pt |