Go Premium for a chance to win a PS4. Enter to Win

x
Solved

# plot distributions

Posted on 2014-11-17
Medium Priority
148 Views
Hi,

I am generation two random number series. Normal and t distribution.
I use the following to generate random numbers
rnorm(20,0,1)
rt(20,5)
I now want to plot the distributions on the same graph to compare the tails of the two distributions. What code should I use for this.

Thanks
0
Question by:camper12

LVL 27

Expert Comment

ID: 40449521
if you have excel 2010 then this is the function you can use =T.DIST.2T
0

LVL 27

Accepted Solution

d-glitch earned 2000 total points
ID: 40450058
Generate your two lists of random numbers.
Then sort them from min to max.
Then plot the two sorted lists.
This will give you an approximation of the cumulative probability function for each of the distributions.
The behavior of the tails should be clear.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As computers become more powerful, jobs will be replaced with artificial intelligence, leaving no place in the future for humans in the workforce. In the oncoming technological revolution, the staggering change to human mind labor will prove the ski…
Aerodynamic noise is the cause of the majority of the noise produced by helicopters. The inordinate amount of noise helicopters produce is a major problem in the both a military and civilian setting. To remedy this problem the use of an aerogel coat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Screencast - Getting to Know the Pipeline
###### Suggested Courses
Course of the Month7 days, 18 hours left to enroll