Be careful when using coin flips and gambling in examples to avoid offending students with moral objections to gambling.

  • Coin flipping is a common example in computer science curriculum, especially when programming probability.
  • It’s easy to overlook how this topic can offend students with religious or moral objections to gambling.
  • Similar problem-solving techniques can be highlighted by rephrasing the problem. Instead of asking how many times do you need, on average, to flip a coin to get both a head and a tail, ask how many children should a couple expect to have if they want at least one girl and at least one boy.

More about this tip

External Source

Interview with Henry Walker