Solved

plot distributions

Posted on 2014-11-17
4
129 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 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Change size 15 53
SSD mSata 250GB 37 72
youtube blocking politics 4 55
Online interactive Microsoft Training 4 41
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

856 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