Solved

plot distributions

Posted on 2014-11-17
4
115 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
4 Comments
 
LVL 25

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Surprisingly, there is a lot to Gym battles, and I thought it would be helpful to share knowledge about all the ins and outs of this feature!
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now