Algorithm to plot sample distribution


#1

I have this exercise but i got stuck

j=1


#2

Cross listed at StackOverflow:

http://stackoverflow.com/questions/42448156/algorithm-with-julia-to-plot-sample-distribution

You are clearly doing homework exercises given this thread and the other you have posted. These forums are not your personal homework help. I do not feel comfortable posting code for these answers because I do not know the course policies. If you post the syllabus and it says “you can get homework answers from StackOverflow or other websites”, then sure I’ll answer it. But it would be best for you as a student to actually learn how to read documentation, interpret it, and generate code from it.

The documentation for Distributions.jl is found here:

http://distributionsjl.readthedocs.io/en/latest/

The documentation for using Julia is found here:

http://docs.julialang.org/en/stable/

These two sources answer your question in unending detail, and are likely what you’re supposed to be using (though you can use Julia’s randn for this without ever using Distributions.jl, but I assume given how the homework problem is written that you will want to generalize to other distributions later).


#3

And of course there’s also https://juliaplots.github.io/ and https://github.com/JuliaPlots/StatPlots.jl.

I second Chris’s point… we’re not here to complete homework assignments for you, but there are people ready to help with focused, specific questions. It’s very important to show that you’ve exhausted every avenue before posting, as it’s unfair to ask others to spend their time on your problem when you haven’t spent any time on it.


#4

This topic was automatically closed after 24 hours. New replies are no longer allowed.