Hi.

I am a new user in programming and in statistics so I want to learn all the things that I can. I try to code a PDF of F Distribution which formula have taken from Wikipedia (https://es.wikipedia.org/wiki/Distribución_F). The code is the next one:

d1=10.0

d2=2.0

x=1

blocks=10

#función beta

β=factorial(Int(d1/2)-1)*factorial(Int(d2/2)-1)/factorial(Int(d1/2))+(Int(d1/2)-1)
println(β)
num=(d1*x)^d1*(d2^d2)

den=(d1

*x+d2)^d1+d2*

pdf=sqrt(num/den)/βx #PDF distribucion F

pdf=sqrt(num/den)/β

I do not know if I am right or even if my code is right, so feel free to give any advice since I am learning by my way and I want to improve my programming skills.

Also, my objective is to make an histogram and plot this. I know that there is Distributions Package in Julia, but I wanted to practice by using the formula given by wikipedia. How do you would histogram and plot this program?

Any answer would be appreciated.