Thread Tools
Old July 18, 2002, 15:11   #31
Jon Shafer
PtWDG RoleplayPtWDG Gathering StormPtWDG Neu DemogypticaInterSite Democracy Game: Apolyton TeamPtWDG LegolandPtWDG Vox ControliPtWDG Glory of WarPtWDG2 SunshineApolyton UniversityC3CDG Desolation RowApolytoners Hall of FameCivilization IV CreatorsC4DG SarantiumApolyCon 06 ParticipantsPtWDG Lux Invicta
Firaxis Games Programmer/Designer
 
Local Time: 00:32
Local Date: November 1, 2010
Join Date: Apr 2002
Location: Maryland
Posts: 9,567
Vondrack, you have too much time.

JD, I'm hoping that if I whine enough to the whiners, they'll eventually quit whining. Of course the risk I run is making them whine more about life, so the whiners may end up worse than before.
Jon Shafer is offline  
Old July 18, 2002, 15:17   #32
N. Machiavelli
Prince
 
N. Machiavelli's Avatar
 
Local Time: 05:32
Local Date: November 1, 2010
Join Date: Nov 2001
Location: THE Prince
Posts: 359
As a former 'whiner', the best thing you can do is hope that they eventually grow out of it. Whining back to them just gives them fuel for the fire
N. Machiavelli is offline  
Old July 18, 2002, 15:26   #33
Excelsior84
Settler
 
Local Time: 22:32
Local Date: October 31, 2010
Join Date: Jun 2002
Location: Alabama
Posts: 22
Quote:
Originally posted by vondrack
Of course, this is theory, as every single type of terrain gives the defender at least a small defense bonus, as others correctly pointed out.

This is exactly what The Civilization Calculator says (see http://www.columbia.edu/~sdc2002/civulator.html).
Yes, the approximation of 1 in 8 was with the 10% defense bonus for flat terrain.

Quote:
Originally posted by vondrack
I tried to show how the calculation is done (it could be expressed in a more elegant way using combinatorics, but that would be difficult to understand for those that do not do much math), but if it is not as self-explanatory as it seems to me, just tell me and I will explain the formulas in more detail. You can figure out any combat result probability in this way.
Explain away, please. I think I figured out calculate it a while back from an old stat book, but I've now forgotten how it was determined, and further, where the stat book is.
Excelsior84 is offline  
Old July 18, 2002, 15:29   #34
Jon Shafer
PtWDG RoleplayPtWDG Gathering StormPtWDG Neu DemogypticaInterSite Democracy Game: Apolyton TeamPtWDG LegolandPtWDG Vox ControliPtWDG Glory of WarPtWDG2 SunshineApolyton UniversityC3CDG Desolation RowApolytoners Hall of FameCivilization IV CreatorsC4DG SarantiumApolyCon 06 ParticipantsPtWDG Lux Invicta
Firaxis Games Programmer/Designer
 
Local Time: 00:32
Local Date: November 1, 2010
Join Date: Apr 2002
Location: Maryland
Posts: 9,567
Quote:
Originally posted by vondrack
The probability of a regular archer succesfully fending off a regular swordsman:

1/64 + 9/4 * 1/64 + 54/16 * 1/64 = 1/64 * (1+9/4+54/16) = 106/16 * 1/64 = 0,1035 (10,3%)
Well, at least I was close. 10.3%, 1/12, same difference. It was just a rough estimate anyways. I don't have time to go out and do all that math. My mind is mush as it is right now anyways.
Jon Shafer is offline  
Old July 18, 2002, 15:46   #35
Excelsior84
Settler
 
Local Time: 22:32
Local Date: October 31, 2010
Join Date: Jun 2002
Location: Alabama
Posts: 22
So the Civ3 Demo game President is indulging in a little "fuzzy math?"
Excelsior84 is offline  
Old July 18, 2002, 16:24   #36
vondrack
lifer
InterSite Democracy Game: Apolyton TeamCivilization III PBEMCivilization IV PBEMPtWDG Legoland
Emperor
 
vondrack's Avatar
 
Local Time: 05:32
Local Date: November 1, 2010
Join Date: Jan 2002
Location: Praha, Czech Republic
Posts: 5,581
Quote:
Originally posted by Excelsior84
Explain away, please. I think I figured out calculate it a while back from an old stat book, but I've now forgotten how it was determined, and further, where the stat book is.
Well, it is like this:

A regular swordsman (attack 3) attacks a regular archer (defense 1). The probability that the archer wins one combat round, is 1:3. or 1 out of 4 (1/4). OTOH, the probability of the archer losing one combat round is 3:1, or 3 out of 4 (3/4).

Now, the archer has to win three different rounds, while letting the swordsman win no more than two. The formulas describe exactly that:

Should the archer win without a scratch, he has to win three consecutive rounds, not losing a single one (you multiply the elementary probabilities, that is the only thing I do not know how to explain - but I believe there is no need to, in your post above, you seem to understand that).

prob_no_scratch = 1/4 * 1/4 * 1/4 = (1/4)^3 = 1/64

However, the archer is allowed to lose one round, which means you can insert one lost round (probability 3/4) anywhere, but at the end (archer must win the last round to win the whole combat). There are three different ways of archer winning with losing one round, as he can lose in the first, second, or third round:

3/4 * 1/4 * 1/4 * 1/4 (prob of winning, but losing the 1st round)
1/4 * 3/4 * 1/4 * 1/4 (prob of winning, but losing the 2nd round)
1/4 * 1/4 * 3/4 * 1/4 (prob of winning, but losing the 3rd round)

The total probability of winning, but losing one round is a sum of the above three probabilities, that is:

prob_2hp_left = 3 * 3/4 * (1/4)^3 = 9/4 * 1/64.

You apply the same logic for the case when archers barely survives, losing two hitpooints:

1/4 * 1/4 * 3/4 * 3/4 * 1/4 (wins rounds 1,2,5, loses 3&4)
1/4 * 3/4 * 1/4 * 3/4 * 1/4 (wins rounds 1,3,5, loses 2&4)
3/4 * 1/4 * 1/4 * 3/4 * 1/4 (wins rounds 2,3,5, loses 1&4)
1/4 * 3/4 * 3/4 * 1/4 * 1/4 (wins rounds 1,4,5, loses 2&3)
3/4 * 1/4 * 3/4 * 1/4 * 1/4 (wins rounds 2,4,5, loses 1&3)
3/4 * 3/4 * 1/4 * 1/4 * 1/4 (wins rounds 3,4,5, loses 1&2)

Again, sum these partial possibilities up to get the total possibility that the archer will win the combat with just 1hp left:

prob_1hp_left = 6 * (3/4 * 3/4) * (1/4)^3 = 54/16 * 1/64

As there is no other way that would make the archer win over the swordsman, but winning with taking no, 1hp, or 2hp damage (taking an hp of damage twice at most, in any one, but the last round), summing up all the partial probabilities gives us the total probability of the archer killing the attacking swordsman:

1/64 + 9/4 * 1/64 + 54/16 * 1/64 =
1/64 * (1 + 9/4 + 54/16) =
1/64 * (16/16 + 36/16 + 54/16) = 1/64 * 106/16 = 10,35%

The trick is that you have to figure out all the possible combinations of lost and won rounds. This can be done in quite an elegant way using combinatorics, but I have to admit that I would have to look for a book, too...

The above mentioned method is pretty much using the elementary math and common sense (while doing exactly what the fancy combinatoric formulas do, just expressing it in a primitive way. Hence, I am able to think it up every time without the book...

Quote:
Originally posted by Trip
Vondrack, you have too much time.


After reading Excelsior's post, I thought... oh, my, it so easy... but then, I realized I was not able to put the formula together off the cuff... which sorta pissed me off, as I used to be good at math... I took a piece of paper and the remains of my brains, knowing I must be able to figure it out... and I was, which soothed me a bit... well, the rest was just that I wanted to show the world how smart I am...

Last edited by vondrack; July 18, 2002 at 16:32.
vondrack is offline  
Old July 18, 2002, 16:38   #37
Oerdin
Deity
 
Oerdin's Avatar
 
Local Time: 21:32
Local Date: October 31, 2010
Join Date: Sep 2001
Location: In a bamboo forest hiding from Dale.
Posts: 17,436
Quote:
Originally posted by JoeDaddy715
it's funny, trip always whines about people whining.... Isn't that whining too???
Whining about whining is the worst sort of whining...
__________________
Christianity is the belief in a cosmic Jewish zombie who can give us eternal life if we symbolically eat his flesh and blood and telepathically tell him that we accept him as our lord and master so he can remove an evil force present in all humanity because a woman was convinced by a talking snake to eat from an apple tree.
Oerdin is offline  
Old July 18, 2002, 16:44   #38
vondrack
lifer
InterSite Democracy Game: Apolyton TeamCivilization III PBEMCivilization IV PBEMPtWDG Legoland
Emperor
 
vondrack's Avatar
 
Local Time: 05:32
Local Date: November 1, 2010
Join Date: Jan 2002
Location: Praha, Czech Republic
Posts: 5,581
Quote:
Originally posted by Dom Pedro II
Excelsior, i was in fact wondering if increasing the hitpoints would perhaps balance out the system a bit more. Thank you very much. I'll try it.
They will not balance it, they will change it so that the units with higher attack values will win more often over units with lower defense values... effectively decreasing randomness (means it will not be balanced any better, but it will better suit your taste).

Adding hitpoints does increase the probability that the unit with the higher combat-effective value will win. A veteran swordsman is more likely to kill a veteran archer than a regular swordsman is to kill a regular archer. And an elite swordsmen has even greater chance of defeating an elite archer. By increasing hitpoints to, say, 50, the unit with the higher combat-effective value will (for all practical purposes) ALWAYS win.
vondrack is offline  
Old July 18, 2002, 16:52   #39
Destroyer
Prince
 
Destroyer's Avatar
 
Local Time: 04:32
Local Date: November 1, 2010
Join Date: May 2002
Location: Hobbits Armpit
Posts: 311
I thought the original post made some excellent points. While I love civ3, it should not have had civ2s better features stripped out.

Scenario building is the thing which has etched civ2 into legend.
__________________
The strength and ferocity of a rhinoceros... The speed and agility of a jungle cat... the intelligence of a garden snail.
Destroyer is offline  
Old July 18, 2002, 17:27   #40
Excelsior84
Settler
 
Local Time: 22:32
Local Date: October 31, 2010
Join Date: Jun 2002
Location: Alabama
Posts: 22
Sorry you had to write all that out! I didn't mean for you to explain the *logic,* that was simple, I just wanted the elegant formula. I once *had* such a formula, but I've forgotten it now... Hrm...

*hunts for that book*
Excelsior84 is offline  
Old July 18, 2002, 17:31   #41
Excelsior84
Settler
 
Local Time: 22:32
Local Date: October 31, 2010
Join Date: Jun 2002
Location: Alabama
Posts: 22
Quote:
Originally posted by vondrack
Adding hitpoints does increase the probability that the unit with the higher combat-effective value will win. A veteran swordsman is more likely to kill a veteran archer than a regular swordsman is to kill a regular archer. And an elite swordsmen has even greater chance of defeating an elite archer. By increasing hitpoints to, say, 50, the unit with the higher combat-effective value will (for all practical purposes) ALWAYS win.
Yup, exactly right. It's just that the really low numbers like 3 make it far random than is human nature to accept. I *like* the more powerful unit to win more often than it does, others don't. Civ2 was far less random than Civ3 with regards to combat outcomes because the *minimum* HP of a unit in Civ2 was 10.
Excelsior84 is offline  
Old July 18, 2002, 17:42   #42
vondrack
lifer
InterSite Democracy Game: Apolyton TeamCivilization III PBEMCivilization IV PBEMPtWDG Legoland
Emperor
 
vondrack's Avatar
 
Local Time: 05:32
Local Date: November 1, 2010
Join Date: Jan 2002
Location: Praha, Czech Republic
Posts: 5,581
Quote:
Originally posted by Excelsior84
Sorry you had to write all that out! I didn't mean for you to explain the *logic,* that was simple, I just wanted the elegant formula. I once *had* such a formula, but I've forgotten it now... Hrm...

*hunts for that book*
Oops...
Sorry to offend your intelligence...

The formula actually just looks elegant, but when you want to calculate its value, you will end up with something very similar to what I posted... because the fancy combinatoric notation has to be rewritten into simple multiply/add operations... But I guess I will also have a look for the book... just to remind myself of the times when all that was everyday food for me...
vondrack is offline  
Old July 18, 2002, 18:30   #43
Excelsior84
Settler
 
Local Time: 22:32
Local Date: October 31, 2010
Join Date: Jun 2002
Location: Alabama
Posts: 22
Yes! I got it!

The probability is (sorry for the formatting, as it looks hideous):

((5!)/((3!)((5-3)!)) * ((.25)^3)((.75)^2)) + ((5!)/((4!)((5-4)!)) * ((.25)^4)((.75)^2)) + ((5!)/((5!)((5-5)!)) * ((.25)^5)((.75)^1)) = 90/1024 + 15/1024 + 1/1024 = 106/1024 = 0.103515625...

Or, in words, the combination of 5 taken 3 at a time times success probability of .25 to the 3rd power times the failure rate of .75 squared plus 5 taken 4 at a time times success probability of .25 to the 4th power times the failure rate of .75 plus 5 taken 5 at a time times success probability of .25 to the 5th power times the failure rate of .75 to the 0th power (1).
Excelsior84 is offline  
Old July 18, 2002, 18:50   #44
notyoueither
Civilization III MultiplayerCivilization III PBEMInterSite Democracy Game: Apolyton TeamC3C IDG: Apolyton TeamApolytoners Hall of FameCiv4 InterSite DG: Apolyton TeamPolyCast TeamPtWDG Gathering StormC4DG Gathering Storm
Deity
 
notyoueither's Avatar
 
Local Time: 22:32
Local Date: October 31, 2010
Join Date: Aug 2001
Location: of naught
Posts: 21,300
Quote:
Originally posted by Oerdin


Whining about whining is the worst sort of whining...
No, it's not... Not when this board was 75% (possible exaggeration) whining about Civ3 and flaming Firaxis. It got to the point that Civ3 General was as good as VC country for anyone actually interested in playing the game.

BTW, I don't think DP is really whining. More like lamenting for what is not, and what is unlikely to be.
__________________
(\__/)
(='.'=)
(")_(") This is Bunny. Copy and paste bunny into your signature to help him gain world domination.
notyoueither is offline  
Old July 18, 2002, 18:55   #45
Coracle
Prince
 
Coracle's Avatar
 
Local Time: 23:32
Local Date: October 31, 2010
Join Date: Feb 2002
Posts: 915
Quote:
Originally posted by CyberShy
Dom Pedro, it's a game.
It's more than that. It's a buggy disappointment. A BIG one.
Coracle is offline  
Old July 18, 2002, 18:57   #46
Coracle
Prince
 
Coracle's Avatar
 
Local Time: 23:32
Local Date: October 31, 2010
Join Date: Feb 2002
Posts: 915
Quote:
Originally posted by Destroyer
I thought the original post made some excellent points. While I love civ3, it should not have had civ2s better features stripped out.

Scenario building is the thing which has etched civ2 into legend.
And kept it going for over five years.

It was nothing less than a ripoff that Civ 3 was marketed without that vital aspect of Civ 2.
Coracle is offline  
Old July 18, 2002, 19:06   #47
Theseus
PtWDG Gathering StormApolyton UniversityApolytoners Hall of FameBtS Tri-LeagueC4DG Gathering StormApolyCon 06 Participants
Emperor
 
Theseus's Avatar
 
Local Time: 00:32
Local Date: November 1, 2010
Join Date: Apr 2002
Location: The warmonger formerly known as rpodos. Gathering Storm!
Posts: 8,907
Quote:
Originally posted by N. Machiavelli
Only one small problem with their 'Civulator'. It doesn't take into account building and individual citizen bonuses when calculating the defense value of a unit in a city. The number of citizens and buildings are calculated when coming up with the defense bonus. I do not have the editor here at work, but it's something like +1% per citizen and +4% per building or something like that. These bonuses account for alot of 'odd' results when attacking a city, like a modern armour losing against a fortified pikeman in a city.
For the odds guys:

Is what Nic saying correct? Are there others defense factors when in cities that are not included by the Civulator?

I'll tell you what's wrong with that thing... it won't do calculations for ARMIES!!! Want a real mind-bender? Try doing the combinatorial odds for a mixed-unit Army, on either defense or offense, against multiple units...
__________________
The greatest delight for man is to inflict defeat on his enemies, to drive them before him, to see those dear to them with their faces bathed in tears, to bestride their horses, to crush in his arms their daughters and wives.

Duas uncias in puncta mortalis est.
Theseus is offline  
Old July 18, 2002, 19:31   #48
Excelsior84
Settler
 
Local Time: 22:32
Local Date: October 31, 2010
Join Date: Jun 2002
Location: Alabama
Posts: 22
Quote:
Originally posted by Theseus
Is what Nic saying correct? Are there others defense factors when in cities that are not included by the Civulator?
I don't *know* that this is not the case, but I've never heard of it. I think he may be mis-interpreting the "citizen" and "building" fields under "Defensive Bonuses" (under "General Settings") as being a per-citizen/building bonus to unit defense. According to the help, however, this value is used to determine population and building resistance to bombardment. i.e., 4 defensive bonus means a bombardment with 4 damage has a 50% chance of killing a citizen.
Excelsior84 is offline  
Old July 18, 2002, 19:31   #49
vondrack
lifer
InterSite Democracy Game: Apolyton TeamCivilization III PBEMCivilization IV PBEMPtWDG Legoland
Emperor
 
vondrack's Avatar
 
Local Time: 05:32
Local Date: November 1, 2010
Join Date: Jan 2002
Location: Praha, Czech Republic
Posts: 5,581
Quote:
Originally posted by Excelsior84
Yes! I got it!

The probability is (sorry for the formatting, as it looks hideous):

((5!)/((3!)((5-3)!)) * ((.25)^3)((.75)^2)) + ((5!)/((4!)((5-4)!)) * ((.25)^4)((.75)^2)) + ((5!)/((5!)((5-5)!)) * ((.25)^5)((.75)^1)) = 90/1024 + 15/1024 + 1/1024 = 106/1024 = 0.103515625...

Or, in words, the combination of 5 taken 3 at a time times success probability of .25 to the 3rd power times the failure rate of .75 squared plus 5 taken 4 at a time times success probability of .25 to the 4th power times the failure rate of .75 plus 5 taken 5 at a time times success probability of .25 to the 5th power times the failure rate of .75 to the 0th power (1).
Ex, the formula is not correct - you forgot that the combination involving the last round won by the swordsman must be taken out. However, your formula helped me to recall that little bit of math I needed. It is like this:
Attached Thumbnails:
Click image for larger version

Name:	probability_equation.gif
Views:	114
Size:	1.1 KB
ID:	19914  
vondrack is offline  
Old July 18, 2002, 19:50   #50
Excelsior84
Settler
 
Local Time: 22:32
Local Date: October 31, 2010
Join Date: Jun 2002
Location: Alabama
Posts: 22
Urm...no, I think that formula isn't right. Mine, at least gives the right answer. Hold on, I'll write mine up where it can actually be read.
Excelsior84 is offline  
Old July 18, 2002, 19:59   #51
F18fett
Settler
 
Local Time: 23:32
Local Date: October 31, 2010
Join Date: Nov 2001
Location: USA
Posts: 18
I miss the days when an army of tanks could wipe out a stupid civ that didn't know to build defense units better than musketeers.
F18fett is offline  
Old July 18, 2002, 20:02   #52
Excelsior84
Settler
 
Local Time: 22:32
Local Date: October 31, 2010
Join Date: Jun 2002
Location: Alabama
Posts: 22
This is it:
Attached Thumbnails:
Click image for larger version

Name:	equation.jpg
Views:	145
Size:	9.4 KB
ID:	19918  
Excelsior84 is offline  
Old July 18, 2002, 20:41   #53
vondrack
lifer
InterSite Democracy Game: Apolyton TeamCivilization III PBEMCivilization IV PBEMPtWDG Legoland
Emperor
 
vondrack's Avatar
 
Local Time: 05:32
Local Date: November 1, 2010
Join Date: Jan 2002
Location: Praha, Czech Republic
Posts: 5,581
Quote:
Originally posted by Excelsior84
Urm...no, I think that formula isn't right. Mine, at least gives the right answer. Hold on, I'll write mine up where it can actually be read.
Well, it is interesting... your formula actually does produce the right result, although I have no idea what the numbers in it represent... especially having (1/4)^5 puzzles me - what does that stand for? It would be the probability of the archer winning five consecutive rounds...?! Even the 5!/(5!(5-5)!) would correspond to that... but then, there is no such situation possible...

BTW - try enumerating my formula. You will get the same result! Math is fun, isn't it?

Wait... I am looking into your formula and... I begin to understand it. Your formula expresses the probability that the archer will win at least three out of five consecutive rounds. But that is something a bit different from what we are trying to express... the combat will end after his third victorious round, so considering five victorious rounds is incorrect. I find it interesting that the result is exactly the same, even if the formula expresses something different... is that a coincidence?

So, I still insist on that my formula is correct, even though yours gives the same result...
vondrack is offline  
Old July 18, 2002, 20:42   #54
vondrack
lifer
InterSite Democracy Game: Apolyton TeamCivilization III PBEMCivilization IV PBEMPtWDG Legoland
Emperor
 
vondrack's Avatar
 
Local Time: 05:32
Local Date: November 1, 2010
Join Date: Jan 2002
Location: Praha, Czech Republic
Posts: 5,581
I must say that I enjoy this math discussion much more than my Hitler discussion yesterday...
vondrack is offline  
Old July 18, 2002, 20:50   #55
The_Aussie_Lurker
BtS Tri-League
King
 
Local Time: 04:32
Local Date: November 1, 2010
Join Date: May 2001
Location: Adelaide, South Australia, Australia
Posts: 1,451
For my part, I'd say that Dom Pedro is NOT a whiner, because he makes realistic, constructive criticisms!! Coracle, on the other hand, is a Whiner-not only because his criticisms are NOT constructive, but because they are REPETATIVE!!! If he hates this game so much, he should just go back, play Civ2 and leave the rest of us ALONE!!
I'd agree with DP that the editor patch, though excellent overall, does leave some vital elements out. For me the absence of events scripting, pooled editor flags for units and buildings and the ongoing presence of Hardcoded values for things like movement on enemy roads/Railroads and points for Cultural Victory are major issues, but ones which I hope Firaxis will deal with in time (and I believe they will, as well)!!
I also hope that, one day, they will re-examine the issues of trade routes (perhaps making them visible, like those in CtP!) and resource disappearance ratios! It seems to me that it would fairly easy to code for a "Disappearance Ratio/city" value, based on the resources "Rarity" and "Deposit Size", so that the chance of your resource actually disappearing would be connected to the size of your empire. I also feel that all units which require a resource as fuel (such as coal or oil) should start to suffer 1hp damage every turn they are cut off from that resource (eg. as in an embargo). I do feel, though, that just the presence of strategic resources in the game, and their importance in building units and improvements, shows how the game has evolved from it's Civ1/2 roots! As for bringing back spies and caravans-yech!!! All that did was provide opportunities for tedium, and was the major thing that put me off playing Civ2 on a regular basis! The trade and espionage systems do need to be improved, but I prefer the abstracted method!
Anyway, I'm sure this will simply get me a "Fanboy" label from Coracle but...WHO CARES!!!

Yours,
The_Aussie_Lurker.
The_Aussie_Lurker is offline  
Old July 18, 2002, 21:10   #56
Excelsior84
Settler
 
Local Time: 22:32
Local Date: October 31, 2010
Join Date: Jun 2002
Location: Alabama
Posts: 22
Quote:
Originally posted by vondrack
Wait... I am looking into your formula and... I begin to understand it. Your formula expresses the probability that the archer will win at least three out of five consecutive rounds. But that is something a bit different from what we are trying to express... the combat will end after his third victorious round, so considering five victorious rounds is incorrect. I find it interesting that the result is exactly the same, even if the formula expresses something different... is that a coincidence?

So, I still insist on that my formula is correct, even though yours gives the same result...
That's correct, it is the odds that it will win exactly 3 rounds + the odds that it will win exactly 4 rounds + the odds it will win exactly 5 rounds. The reason we have to include the odds for 4 and 5 rounds, even though the combat stops after 3 rounds, is that you can't simply throw away the cases where it wins all 5 (or 4) rounds. If it wins all 5, it will show up as 3 consecutive wins in combat, same as winning the first three and losing 1 of the next 2, and the same as winning the first 3 rounds, and losing the next two. These cases make up the probability of winning the first three rounds without a scratch.

i.e.,
odds of Vic-Vic-Vic-Fail-Fail = 9/1024
odds of Vic-Vic-Vic-Vic-Fail = 3/1024
odds of Vic-Vic-Vic-Fail-Vic = 3/1024
odds of Vic-Vic-Vic-Vic-Vic = 1/1024
The sum of those probabilities is 16/1024 = 1/64, the same as a simple Vic-Vic-Vic (because that's what it is)

EDIT: And to clarify, this same reasoning can be applied to instances such Vic-Vic-Fail-Vic-Vic, where it wins 4 of 5, yet it stops after the 4th.

Does that make sense?
Excelsior84 is offline  
Old July 18, 2002, 21:37   #57
vondrack
lifer
InterSite Democracy Game: Apolyton TeamCivilization III PBEMCivilization IV PBEMPtWDG Legoland
Emperor
 
vondrack's Avatar
 
Local Time: 05:32
Local Date: November 1, 2010
Join Date: Jan 2002
Location: Praha, Czech Republic
Posts: 5,581
Quote:
Originally posted by Excelsior84
That's correct, it is the odds that it will win exactly 3 rounds + the odds that it will win exactly 4 rounds + the odds it will win exactly 5 rounds. The reason we have to include the odds for 4 and 5 rounds, even though the combat stops after 3 rounds, is that you can't simply throw away the cases where it wins all 5 (or 4) rounds. If it wins all 5, it will show up as 3 consecutive wins in combat, same as winning the first three and losing 1 of the next 2, and the same as winning the first 3 rounds, and losing the next two. These cases make up the probability of winning the first three rounds without a scratch.

i.e.,
odds of Vic-Vic-Vic-Fail-Fail = 9/1024
odds of Vic-Vic-Vic-Vic-Fail = 3/1024
odds of Vic-Vic-Vic-Fail-Vic = 3/1024
odds of Vic-Vic-Vic-Vic-Vic = 1/1024
The sum of those probabilities is 16/1024 = 1/64, the same as a simple Vic-Vic-Vic (because that's what it is)

EDIT: And to clarify, this same reasoning can be applied to instances such Vic-Vic-Fail-Vic-Vic, where it wins 4 of 5, yet it stops after the 4th.

Does that make sense?
Yep, it does. I have realized that, too, only after submitting my last post. The difference between our formulas is that mine is a very close rewrite of the simple formulas I wrote in the very beginning, expressing exactly what happens (=is possible) in Civ3, while yours uses a smart trick of considering even "impossible" cases (which do not affect the result we seek) to get rid of the variable "length" of the combinations. Both are mathematically correct and provable (is there a word like that?), that is right. Just two ways to the same end.
vondrack is offline  
Old July 18, 2002, 21:48   #58
Excelsior84
Settler
 
Local Time: 22:32
Local Date: October 31, 2010
Join Date: Jun 2002
Location: Alabama
Posts: 22
Good, then we agree.
Excelsior84 is offline  
Old July 18, 2002, 23:50   #59
N. Machiavelli
Prince
 
N. Machiavelli's Avatar
 
Local Time: 05:32
Local Date: November 1, 2010
Join Date: Nov 2001
Location: THE Prince
Posts: 359
I'm glad we all agree.
N. Machiavelli is offline  
Old July 19, 2002, 13:04   #60
IthacaMike
Chieftain
 
Local Time: 23:32
Local Date: October 31, 2010
Join Date: Feb 2002
Location: Upstate New York
Posts: 60
Quote:
Originally posted by DrFell


Sorry to be nitpicky, but this is actually wrong... it should be 1/64 (1/4*1/4*1/4) for two regular units. 1 in 64 losses for the swordsman doesn't exactly seem like an unrealistic value for a swordsman attacking an archer. Maybe next time you should bring along more units, no?
No, he is close to right. The swordsman could win the first two rounds and then lose three in a row (3/4*3/4*1/4*1/4*1/4) or the swordsman could lose win one and then lose the next three, or...

I just ran a sim and it looks like the defending archer should win about 1 time in 10 (swordsman won 90.8% of the time in my sim).

Mike
IthacaMike is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 00:32.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team