I have a grant report which I'm procrastinating on... So, I wrote a short MATLAB program which simulates the following:
1,000,000 damsels, of which 10% are tainted
250,000 tangs, of which 40% are tainted
150,000 angels, of which 20% are tainted
The program then mixes all the fish up (all 1,400,000 of them), and randomly samples about 384 fish (not exactly 384, because I'm too lazy to write the code to make it do that). It then calculates the % which were tainted (doesn't care if it's a tang, damsel, or angel that it tested), and also calculates the actual percentage tainted of the 1,400,000 total fish.
Each time you run this, you will get slightly different numbers, because it uses a random number generator (like tossing a dice) in the computer.
A typical result is:
380 fish sampled; 65 tainted; 17.1% bad
Actual bad percentage was 16.4%
Kalk, I will offer to do the following for you (within reason):
Tell me:
(1) How many damsels, and what % are bad
(2) How many tangs, and what % are bad
(3) How many angels, and what % are bad
I will run the simulation once, and report the results (just total fish which tested bad and total fish tested, versus the actual number).
My computer greatly appreciates it if you can keep the total number of fish in the one million (may be able to do a few million) range. (I don't have Gigs of RAM...)
Regards,
1,000,000 damsels, of which 10% are tainted
250,000 tangs, of which 40% are tainted
150,000 angels, of which 20% are tainted
The program then mixes all the fish up (all 1,400,000 of them), and randomly samples about 384 fish (not exactly 384, because I'm too lazy to write the code to make it do that). It then calculates the % which were tainted (doesn't care if it's a tang, damsel, or angel that it tested), and also calculates the actual percentage tainted of the 1,400,000 total fish.
Each time you run this, you will get slightly different numbers, because it uses a random number generator (like tossing a dice) in the computer.
A typical result is:
380 fish sampled; 65 tainted; 17.1% bad
Actual bad percentage was 16.4%
Kalk, I will offer to do the following for you (within reason):
Tell me:
(1) How many damsels, and what % are bad
(2) How many tangs, and what % are bad
(3) How many angels, and what % are bad
I will run the simulation once, and report the results (just total fish which tested bad and total fish tested, versus the actual number).
My computer greatly appreciates it if you can keep the total number of fish in the one million (may be able to do a few million) range. (I don't have Gigs of RAM...)
Regards,