Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Working with bell shaped curves

by jbullock35 (Hermit)
on May 21, 2007 at 00:13 UTC ( #616487=note: print w/ replies, xml ) Need Help??


in reply to Working with bell shaped curves

It sounds as though you want to take random draws from a Normal distribution. I suspect that it's best to do this by calling R from Perl; that's how I did it. I don't have the code onhand, but I found almost all that I needed to know in the link from the previous sentence. (Also see this comment and Perl & Math: A Quick Reference. The relevant command in R is rnorm().)

As your needs grow -- e.g., if you start needing to take draws from different distributions, many of which are not written up in Perl modules -- it will help you more to be calling R from Perl.

Note that the probability of a draw from a continuous (e.g., Normal) distribution assuming any particular value is approximately zero.


Comment on Re: Working with bell shaped curves

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://616487]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (15)
As of 2014-12-26 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (172 votes), past polls