Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Sample Probabilities

by blokhead (Monsignor)
on Dec 07, 2006 at 18:15 UTC ( [id://588420]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (41/92)*(35/91)*(34/90)
    
  2. or download this
    (#red * (#red-1) * ... (#red-x1+1))
      * (#green * (#green-1) * ... (#green-x2+1) * ...
    
      / ( total * (total-1) * (total-2) * ... )
    
  3. or download this
    (x1+x2+x3+ ...)! / (x1! * x2! * x3! * ... )
    
  4. or download this
    use List::Util 'sum';
    
    ...
                [8,8,3,1,5,0,0] );
    
    ## output: 0.000397344651946416
    
  5. or download this
    (41/92)*(35/92)*(35/92)
    
  6. or download this
    (#red/total)^x1 * (#green/total)^x2 * ...
    
  7. or download this
    (x1+x2+x3+ ...)! / (x1! * x2! * x3! * ... )
    
  8. or download this
    use List::Util 'sum';
    
    ...
                [8,8,3,1,5,0,0] );
    
    ## output: 0.000397344401565931
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-18 00:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found