(I realise this is hardly a study issue, but it's a mathematical problem nonetheless and I couldn't find a more suitable sub-forum.)
I challenged a friend to this question - as an example of the sometimes strange questions exam boards offer. I would love some help as to what answers you guys think is correct.
"Keith has 10000 apples. The probability that he picks a blue one by random selection is 0.6. All the rest of the apples are green. What is the probability he picks exactly 500 blue and 500 green apples?"
I have an issue with his answer, 0.00000000000000000000000281477, because I don't think that you can discernibly get from the original 10000 to the selected 1000 (as it is not defined by the question) - or if it is, then the way of getting it would be to de-increment the probability each time, e.g. 0.6 > 5999/9999 > 5998/9998 > etc, which is a very painstaking method.
He used the method of using technology and coding a solution to this problem:
================================================
#include <iostream>
#include <cstdlib>
#include <cstdio>
using namespace std;
int main()
{
long double numerator1 = 6000;
long double numerator2 = 4000;
long double denominator1 = 10000;
long double denominator2 = 10000;
long double probability = 1;
for (;denominator1 > 9499; denominator1 --, denominator2 --, numerator1 --, numerator2 --)
{
probability *= (numerator1/denominator1);
probability *= (numerator2/denominator2);
cout << probability;
cout << endl;
}
probability *= (2.70288e+299);
cout << "Probability =";
cout << probability;
system("PAUSE");
return 0;
}
================================================
So, what do you think?