Here's my take on it, but I haven't had time to verify it
Let's start with the probability of exactly 2 people out of the 30 have a birthday in January
(30*29 / 2)*(1/12)^2*(11/12)^28
http://faculty.vassar.edu/lowry/binomialX.html
This page will give you help with a binomial probability
(and in my calculations, the 30*29 / 2 is the combination of 2 out of 30)
That's about equal to .2642695
That link will verify it for you (probability of exactly 2 out of 30) which is the probability of 2 of them having a birthday in January.
oh crud. the probability in each month isn't 1/12.
Oh well, I'll start over, but instead of 1/12, I'll have to use 31/365 for January.
Hmmm... or do I need to use 365.25
In which case, February would be 28.25/365.25
___________________________________________________
Okay, better explanation anyway:
You have 365 tiles, labeled with the day of the year (1 through 365)
Pull out a tile. What are the odds that it falls in January?
31/365.
Return that tile to the pile. Now pull out another numbered tile.
What are the odds that this tile is a day that is in Feb? 28/365
So, what were the odds of pulling out a January and then a Feb?
31/365 * 28/365.
BUT, you could have also pulled out a Jan and Feb by pulling them in this order:
Feb then Jan.
So, if the order mattered, it would be 31*28 / 365^2
But, if the order you select the months doesn't matter, it would be 2 * 31*28/ 365^2
Now, suppose we do it for J, F, and M (one each)
The probability in that order is
31/365 * 28/365 * 31/365
However, if the order doesn't matter, there are
3*2*1 or 3! ways to rearrange 3 months. So, the probability would be 6 times greater.
Now, for your probability, if you had to choose, in order J, J, F, F, M, M, A, A, M, M, Ju, Ju, Jy, Jy, Jy, A, A, A, S, S, S, O, O, O, N, N, N, D, D, D
(ugh), the probability would be:
31/365 * 31/365 * 28/365 * 28/365 *31/365 *31/365 * 30/365 * 30/365....
(oh, heck with writing it out that way!)
the denominator is obviously going to be 365^30
Since Jan, Mar, May, July, Aug, Oct, and Dec have 31, and you want a total of 18 birthdays in those months
and April, June, Sept, and Nov have 30, with 2+2 + 3 + 3 birthdays
And Feb has 28 days,
you ultimately wind up with:
28^2*31^18*30^10 out of 365^30 for the probability of pulling out days for those months... In that exact order (j,j,f,f,m,m,...)
However, there are 30! ways to rearrange the tiles you pulled out, so multiply that probability by 30!
And, crud. It's over 1. What'd I do wrong??
(I'm hitting reply so I can review my work in a larger window)
Darn darn darn darn... I'm missing where my logical explanation broke down.
I considered for a moment that multiplying by 30! was too much, (because Feb Feb isn't different from Feb Feb) However, I reconsidered an endless supply of tiles, in 1 second increments, and I keep the tiles as I pull them. Then, with minimal chance of duplicate tiles, there would be 30factorial ways to rearrange them. (and I could go to an even larger supply of tiles with microsecond increments...) 30! seems to be correct.
My individual probabilities for if the order mattered seem to be correct.
What on earth did I do wrong?! Forget about helping the OP, someone help ME please