# F Distribution, Beta function

**URL:** <https://discourse.julialang.org/t/f-distribution-beta-function/28630>\
**Category:** Statistics\
**Created:** [September 11, 2019, 1:29am UTC](https://discourse.julialang.org/t/f-distribution-beta-function/28630 "2019-09-11T01:29:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Halor](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@Halor](https://discourse.julialang.org/u/Halor)\
**Post date:** [September 11, 2019, 1:29am UTC](https://discourse.julialang.org/t/f-distribution-beta-function/28630/1 "2019-09-11T01:29:47Z")

</div>

Hi.

I am new in this programming world so I need help for coding a F Distribution, due to I do not have idea to do this. I am having trouble even programming beta function. I just need some ideas so I would be able to do by myself. I hope you guys can help me, I would be very grateful.

Degrees of freedom adre: d1=10 and d2=2

Thanks!

---

<div class="post-metadata">

**Author:** ![JackDevine](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jackdevine/32/1048_2.png) [@JackDevine](https://discourse.julialang.org/u/JackDevine)\
**Post date:** [September 11, 2019, 1:45am UTC](https://discourse.julialang.org/t/f-distribution-beta-function/28630/2 "2019-09-11T01:45:27Z")

</div>

Welcome to the world of programming and Julia!

Have you tried [Distributions.jl](https://github.com/JuliaStats/Distributions.jl)?

---

<div class="post-metadata">

**Author:** ![Halor](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@Halor](https://discourse.julialang.org/u/Halor)\
**Post date:** [September 11, 2019, 1:52am UTC](https://discourse.julialang.org/t/f-distribution-beta-function/28630/3 "2019-09-11T01:52:31Z")

</div>

Thank you for answering.

I already installed it, but I do not know what to do. I just need a starting point.

---

<div class="post-metadata">

**Author:** ![JackDevine](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jackdevine/32/1048_2.png) [@JackDevine](https://discourse.julialang.org/u/JackDevine)\
**Post date:** [September 11, 2019, 2:13am UTC](https://discourse.julialang.org/t/f-distribution-beta-function/28630/4 "2019-09-11T02:13:29Z")

</div>

Try this (assuming that you also have Plots.jl installed)

```julia
using Distributions
using Plots
d = FDist(10.0,2.0)

xx = range(-1.0,stop=20.0,length=1000)
p1 = plot(xx,pdf.(d,xx))
p2 = plot(xx,cdf.(d,xx))
plot(p1,p2,legend=false)

```

![FDist](https://global.discourse-cdn.com/julialang/original/3X/d/0/d009fdbd6323a7076382abdf9ccaab085318e113.png)

Playing around with the distribution parameters will change the figure.

It is hard to help you without something more specific. I would recommend thinking of some problem/project and then going about solving it. You seem to know about probability distributions, so that could be a start. Other than that, you should check out some of the learning resources on the Julia website so that you get to understand a little about programming. Try to read through as much documentation as possible and just have fun with it!

Good luck!

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [September 11, 2019, 2:14am UTC](https://discourse.julialang.org/t/f-distribution-beta-function/28630/5 "2019-09-11T02:14:12Z")

</div>

[https://juliastats.github.io/Distributions.jl/latest/univariate/#Distributions.FDist](https://juliastats.github.io/Distributions.jl/latest/univariate/#Distributions.FDist)  
[https://juliastats.github.io/Distributions.jl/latest/univariate/#Distributions.Beta](https://juliastats.github.io/Distributions.jl/latest/univariate/#Distributions.Beta)

---

<div class="post-metadata">

**Author:** ![Halor](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@Halor](https://discourse.julialang.org/u/Halor)\
**Post date:** [September 11, 2019, 2:50am UTC](https://discourse.julialang.org/t/f-distribution-beta-function/28630/6 "2019-09-11T02:50:35Z")

</div>

Thank you for your advice! Right now I am learning about probability distributions using Julia. It is hard to me because I have never programmed before, neither study statistics until now. I will read as much as possible.

In other things, I got an error running your program; Julia says this: “LoadError: MethodError: objects of type Float64 are not callable”. What does this means?

---

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [September 11, 2019, 3:05am UTC](https://discourse.julialang.org/t/f-distribution-beta-function/28630/7 "2019-09-11T03:05:34Z")

</div>

It means you have typed something like `1(4)` which Julia parses as a function call.

---

<div class="post-metadata">

**Author:** ![Halor](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@Halor](https://discourse.julialang.org/u/Halor)\
**Post date:** [September 12, 2019, 2:26am UTC](https://discourse.julialang.org/t/f-distribution-beta-function/28630/9 "2019-09-12T02:26:43Z")

</div>

Thanks! It was something like that.
