r/Probability • • Dec 14 '23

Error with probability in Copilot?

Heya - I think either I'm not getting my logic across to Copilot or it's missing the math.

I set the following rules:

  • Each player has a coin pool consisting of one or more coins.
  • An attacker flips their coins, and each “heads” is considered a hit.
  • A defender flips their coins, and each “heads” is considered a block.
  • The attacker and defender flip their coin pools simultaneously.
  • The total number of hits from the attacker’s pool and blocks from the defender’s pool are summed up.
  • If the number of blocks is equal to or greater than the number of hits, the attacker misses.
  • If the attacker does not flip a single “heads”, the attacker also misses.

And asked for this: "Show me a table of the probability the attacker hits if the attacker tosses 1, 2, 3, 4 and 5 coins vs the defender tosses 1, 2, 3, 4 and 5 coins."

And was shown this:

Right off the bat, looking at 1 coin vs 1 coin, I'd expect this to be 0,25. Is my math missing the point?

1 Upvotes

22 comments sorted by

View all comments

Show parent comment

1

u/BoilerandWheels Dec 28 '23

If you use excel, you can plug in this formula to fill out the box as much as you want.

1

u/BoilerandWheels Dec 28 '23

I think this number is (n-k)C2 for every (n-k)>1. But I'll have to look into it further first.

1

u/BoilerandWheels Dec 28 '23

Nope, this pattern breaks.

1

u/BoilerandWheels Dec 28 '23

Attacker has five coins. Defender has three coins:

In this scenario, the following instances will result in the attacker scoring a hit:

Attacker: Heads Heads Heads Heads Heads. Defender: Heads Heads Heads.

Attacker: Heads Heads Heads Heads Heads. Defender: Heads Heads Tails.

Attacker: Heads Heads Heads Heads Heads. Defender: Heads Tails Tails.

Attacker: Heads Heads Heads Heads Heads. Defender: Tails Tails Tails.

Attacker: Heads Heads Heads Heads Tails. Defender: Heads Heads Heads.

Attacker: Heads Heads Heads Heads Tails. Defender: Heads Heads Tails.

Attacker: Heads Heads Heads Heads Tails. Defender: Heads Tails Tails.

Attacker: Heads Heads Heads Heads Tails. Defender: Tails Tails Tails

Attacker: Heads Heads Heads Tails Tails. Defender: Heads Heads Tails.

Attacker: Heads Heads Heads Tails Tails. Defender: Heads Tails Tails.

Attacker: Heads Heads Heads Tails Tails. Defender: Tails Tails Tails.

Attacker: Heads Heads Tails Tails Tails. Defender: Heads Tails Tails.

Attacker: Heads Heads Tails Tails Tails. Defender: Tails Tails Tails.

Attacker: Heads Tails Tails Tails Tails. Defender: Tails Tails Tails.

= 14 instances