Solved

plot distributions

Posted on 2014-11-17
4
130 Views
Last Modified: 2014-12-06
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
Comment
Question by:camper12
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 26

Expert Comment

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

Accepted Solution

by:
d-glitch earned 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Finding a job can be stressful - searches, resume tweaks, and networking events can be super boring. Luckily we're here to help you land your dream job!
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Articles on a wide range of technology and professional topics are available on Experts Exchange. These resources are written by members, for members, and can be written about any topic you feel passionate about. Learn how to best write an article t…
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…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question