# Author: Ika
# Date: 08/16/2014
# The support interval is [0,1]
# Note that Inkscape is needed to address the display problem of the Greek letters.
set term svg size 800,600 enhanced font 'Arial, 22'
set output 'beta_rect_pdf.svg'
set samples 500
set xrange [0:1.0]
set yrange [0.5:1.5]
set xtics 0.1
set ytics 0.1
set xzeroaxis lt -1 lc rgb "black" lw 1
set yzeroaxis lt -1 lc rgb "black" lw 1
# Draw the Beta rectangular distribution's pdf
set key center bottom
f(x,theta, a, b) = theta*gamma(a+b)/gamma(a)/gamma(b)*(x**(a-1))*((1-x)**(b-1))+1-theta
plot f(x, 0.1,1,1) t "t=0.2, a=1, b=1" lc rgb "red" lw 5,\
f(x, 0.4,2,1) t "t=0.4, a=2, b=1" lc rgb "black" lw 5,\
f(x, 0.4,1,2) t "t=0.4, a=1, b=2" lc rgb "blue" lw 5,\
f(x, 0.5,2,2) t "t=0.5, a=2, b=2" lc rgb "green" lw 5
set term x11
set output
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
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.