Probability of a matching score of r from n

Input
Score ("r" number matched correctly):
n i.e. the total number of things that could have been matched:
Decimal places you want for the answers:
Notes
This program runs within R (www.r-project.org). R is a brilliant open source (i.e. free) statistics package derived from S and related to the equally excellent but not cheap commercial product S+ (www.insightful.com).

Brilliant though R is, it's a huge package and to run this, my webserver software has to launch R and both run on some fairly old hardware on the end of an ADSL link so it will take a minute or two come back to you with the answer.

Please also note that I accept no responsibility for this script's results. I have enormous faith in R and programming this was trivial but if anything major depends on this, then you need to pay for good statistical support locally.

If you do find an error or problems here tell me!
All access is logged for IP address, time/date and parameters entered so I can track any abuse of the server.

Action!
Licensing and copying
You can download script that runs this

You will need to understand a bit about R and have David Firth's CGIwithR package to make the script or a derivative of it work on your own server.

Like almost everything on this website this work is licensed under a Creative Commons License.

Creative Commons License