haruntaiwan said:
Wow, high school must have changed since I was there.
The problem in my mind is that I come back to coin flipping...if you flipped a coin 4 times with heads, then what's the chance of a heads on the last flip? Uhhhh, 50%.
So if I have five battles, where 4 are given as being won, how can that affect the last battle at 90% odds? Or are you assuming we don't know the odds for each battle and thus are calculating them based on the evidence we see from the results of the first four alone...this is why people are misunderstanding your question, I think.
Let me be clear. This is how I could re-word the original question:
- Let's say there are exactly 5 battles.
- For each battle there are exactly two possible outcomes: win or loss (W or L)
- The outcome W has probability 0.9. Hence L has probability 0.1.
- You do not know the results of the battles. ie. blind as ParadigmShifter mentions.
- For some reason or other, you are shown exactly 4 of the battle results.
- We also assume all of these 4 battles had the outcome W. Note this does not mean the first 4 necessarily!
- Then the question is what is the probability that all 5 results are W. Equivalently, the question is what is the probability that the remaining result (that you haven't yet seen) is a W.
harauntaiwan said:
p.s. I don't know what you do for a living, but rest assured that in non-tech fields, your math skills will deteriorate very quickly - I was very good at math (and statistics), but find myself swimming against it now - mainly because you lose it without enough practice. So maybe drop down the condescension a notch, eh?
haruntaiwan, I did say I have no intention to offend. I apologise if you are offended by what I say, but I try to be as frank as possible. Otherwise I'd ramble on for pages and pages, carefully wording things just so no one takes it personally. I'm not sure Napalm would have wanted me to sugar coat everything. And I said in an earlier post I'm a maths student - At the moment that's my living.
The statement for example about doing binomials in high school. I was under the impression it's probably one of the simplest cases to analyse in probability. Any basic course on probability would cover it. I don't want to have a go at anyone who hasn't studied it before - that would be unfair.
Please be understanding that mathematicians do need to be pedantic about their maths. Would you challenge a physicist over the correctness of the special theory of relativity? Would you challenge a chemist over the validity of the formula for water - H20? Perhaps you would like to challenge them, but in either case, both scientists have the right to defend their understandings as being correct - I would expect them to.
And to any physicists, yes I know you can't say relativity is "correct" but you know what I mean
sno666 said:
I do believe that I remember from University, it was a long time ago, that there is a difference between chance and probability. If you toss a coin one time the chance and probability for heads are the same, i.e 0,5. If you toss the coin again and the result from the first was heads the CHANCE for an additional head is 0,5 but the PROBABILITY is just 0,5*0,5 = 0,25.
I wasn't aware of any real distinction between chance and probability, except that probability is defined more precisely I think. I assumed chance and probability (and odds too) were sort of synonymous. I don't think I agree with the way you say they're different though. I would say the chance and probability of 2 heads in a row is 0.25. Look up the gambler's fallacy. It applies here. If you toss one coin and it's heads, then the probability of getting a head on the next toss is still 0.5. I know you know this, but I'm not sure what you're trying to get at in your post.
Napalm102 said:
This is a correct calculation for 4 or more wins out of 5, but then you go ahead and stick it into the equation that assumes that event A is not subset of the set of event B, which is false because WWWWW scenario is already included in the event B.
Vale covered this. (thanks!) A is a subset of B. A = {(wwwww)} is a subset of {(wwwww),(wwwwl),(wwwlw),(wwlww),(wlwww),(lwwww)} = B
zooropa86 said:
this is like calculating the odds of picking 5 red marbles, in 5 tries, from a bag that only contains one other non-red marble. right?
Not quite. It's like picking 5 red marbles out of a bag which contains 9 red marbles and 1 blue marble,
with replacements. You also need to assume a result is discarded if you do not pick at least 4 red marbles.
zooropa86 said:
i understand the math. but why is it like that? what is the reason for the formula being that way?
When we calculate a probability, we find the probability of getting a favourable outcome, and divide by the sum of the probabilities of all possible outcomes. For example, the probability of getting 2 heads in a row from 2 coin tosses is (0.25)/(0.25+0.25+0.25+0.25) = 0.25. There are four possible outcomes (HH, HT, TT, TH), each with probability 0.25. Explicitly this is P({HH}) / ( P({HH})+P({HT})+P({TH})+P({TT}) )
The confusion comes about because more often than not we are taking the probability of all possible outcomes to be 1, and we may mistakenly assume this. (technically it is true that the probability of all possible outcomes is 1, but for calculation’s sake it's not convenient) If I said, what is the probability of getting 2 heads in a row from 2 coin tosses, given that the first toss is a head, you'd calculate: (0.25)/(0.25 + 0.25)=0.5. Note now the two possible outcomes are HT and HH ie. we don't include TT and TH. If I said, what is the probability of getting 2 heads in a row given
exactly one of the tosses returns a tail, you'd calculate (0.25)/(0.25+0.25)=0.5. Here the possible outcomes are HT and TH, each with probability 0.25. Now this is actually incorrect as you'd probably already realised. The reason this is incorrect is that getting HH is not possible from the outcomes HT and TH. Hence we need to take the intersection on the top, of the set {HT,TH} and {HH}. This intersection is of course empty, and so it's probability is 0. So in fact the correct calculation here would be 0/(0.25+0.25). This is a long winded way of saying it is impossible to get two heads from two coin tosses if one of them is a tail. The result is obvious, but the explicit calculation to get it is not.
An alternative way to understand the method is by means of normalization. We always expect the sum of the probabilities of all possible events to be 1. So if we discard some possible outcomes, then we must "renormalize" the probabilities of the remaining possible outcomes, by means of scaling, so that the sum becomes 1 again. This is the way I like to think of it.
Hopefully this coin tossing scenario has helped a bit. Anyway, I better stop ranting about this stuff because it has departed from the OP discussion a lot (not that there's a lot to go on from the OP).
So Vale, being the resident mathematician, do you happen to know how Civ4 calculates battle probabilities. I haven't even tried to begin to conjure up how the calculator would work, but your background on Bayesian versus frequentist etc. sounds like it might be handy
EDIT Oh, and I forgot to mention that conditional probability is something mathematician's have
defined. It's defined the way it is so that it correlates with our intuitions, as is usually the case with mathematical definitions. This makes it a little bit harder to explain why it's true, because it's kind of true by definition. This is called arguing from the definition. It's like saying 1 + 1 = 2
because it is defined that way - not because of some absolute truth associated with it - though even mathematicians will tend to argue over this one, usually with philosophers

.

just noticed 1+1=2 is in Vale's avatar!
...also, minor correction (in red)