An insight from Ole Peters that can help kids see some pitfalls in summary statistics

Yesterday we studied problem #7 from Mosteller’s 50 Challenging Problems in Probability. That project is here:

Walking through problem 7 from Mosteller’s 50 Challenging Problems in Probability

The problem is about a game of roulette and has the surprising result that you have a better than 50% chance of being ahead after 36 bets. Last night I realized that the project might have accidentally left the kids with the impression that the game had a positive expected value – whoops!

So, today I wanted to be sure that they did not have this impression. In thinking about how to talk through this topic last night, I realized that some of the ideas that Ole Peters has shared recently are somewhat similar, so I decided to share those ideas with the kids today, too.

We started by reviewing the results of yesterday’s project:

In the initial conversation the boys thought that we should look at how much you won when you were ahead and how much you lost when you were behind. Off camera we modified our program from yesterday to address these questions.

Here we talk about the program and then see the results.

Now I introduced the boys to Ole Peters’ coin flipping game from the talk below. We watched the 5 min segment from roughly 4:00 to 9:00 where Peters explains the game and shows a pretty surprising result:

I’d originally intended to play around with a computer program to simulate Peters’ game, but we were running a bit long so I decided to just talk through it.

The boys were a little surprised by the results, but I think they were able to understand why the outcome for the individuals was different from the outcome for the group.

I really enjoyed this project with the kids today. Hopefully the two simple, but somewhat surprising, ideas from today stick with them:

(i) Having a high chance of winning doesn’t mean a bet is a good bet, and

(ii) Even if the result of a game is positive for a large group, it can still have a negative outcome for almost everyone in that group.

Walking through problem #7 from Mosteller’s 50 Challenging Problems in Probability

We’ve been going through Mosteller’s 50 Challenging problems in Probability this school year. Today we looked at problem #7.

The problem is about gambling on a roulette wheel. Specifically a wheel with 38 spaces for which you get 35 times your money (plus your bet) back if you guess the number correctly.

Here’s the problem and some initial thought from the boys:

At the end of the last video the boys had a plan for how to solve the problem. That plan and the solution to the problem are here:

To end the project I had the boys spend some time writing a computer program to simulate the game. Writing this code was a nice project for them and running it gave us a nice chance to talk about the problem from a different angle:

This was a fun project, but I think I need to add a second section to it tomorrow to clarify that just because you have a decent chance of being ahead, doesn’t mean the game has a positive expected value.

Talking through problem #6 from Mosteller’s 50 Challenging Problems in Probability

We are up to problem #6 from Mosteller’s 50 Challenging Problems in Probability. This one asks about the expected loss in a dice game.

The game is played as follows:

(1) You choose 1 number from 1,2,3,4,5,6.
(2) Three six-sided dice get rolled.
(3) If you match 0 numbers you lose the bet,
(4) If you match 1,2, or 3 numbers you get back your original bet plus your bet times the number of matches.

Here’s what the boys thought about the problem:

We actually made some pretty good progress solving the problem in the last video – here we finished solving it:

Finally, we wrote as short program off screen to explore the problem. I thought I’d corrected the lighting problem, but obviously not, unfortunately. Still, hopefully the computer screen shows up well enough to see.

It is fun to see the boys learning to write short programs for these kinds of problems:

Problem #5 from Mosteller’s 50 Challenging Problems in Probability

Today we tackled our 5th problem from Mosteller’s 50 Challenging problems in probability. The proble involves geometric probability and asks about tossing a coin onto a grid.

Here’s how I introduced the problem to the kids. My younger son identified the task that we needed to do pretty quickly -> find a region in a single square that will help us describe when we win or lose the game.

Now that we had an idea of the geometric problem that we needed to solve, we tried to solve that problem. Although the boys were able to describe the winning region, it was very hard for them to move beyond that description:

We kept trying to describe the shape and focus on the important properties of that shape. In this video my older son was drawing a shape that I thought would get him to the main idea – but I was not interpreting his drawing the right way.

At the end of the last video the boys thought that focusing on the center of the circle would be a good way to go. Here they drew a picture of how the center moved and then tried to describe some properties of that square:

In the last video the boys came to the conclusion that if the center of the coin landed in a particular square we would win the game and if it landed outside of that square we would lose the game.

With that information, we found our probability of winning and then calculated if this is a game we should play.

[sorry that I forgot to zoom out until near the end of this video]

A neat unsolved problem in number theory that kids can explore

Yesterday I saw a really neat thread on the Collatz conjecture from Alex Kontorovich

In that thread is a blog post by Alex’s friend Igor Park and Park’s blog post as a link to a neat set of lecture notes by Barry Mazur. AND, in Mazur’s notes is this “new to me” unsolved problem in number theory:


Instead of continuing on our journey through Mosteller’s 50 Challenging Problems in Probability, I decided to explore this problem with the boys today.

Here’s the introduction to the problem and a bit of playing around with a few of the small cases:

In the last video the boys thought that the squares would all have to be odd and the primes would have to be odd. Here we explored both of those conjectures. That exploration led to a discussion of why odd numbers always have squares that are congruent to 1 mod 8:

Now we continued the discussion from last video and investigated the primes that could appear in this problem. We started by showing that 2 could never appear and then eventually found that only primes of the form 4k + 1 could appear:

Next we moved to the computer to explore more cases of the conjecture. This was mainly an exercise into writing a simple program in Mathematica, but it led to an interesting discussion as well as an idea for further exploration:

Finally, we modified our program to explore the number of different solutions to the problem for each number. The modification to the program was actually really easy and the histogram was fascinating to see:

It is really fun to be able to explore an unsolved problem with kids. I especially love unsolved problems that allow kids to get in some secret arithmetic practice will getting a bit of exposure to some advanced ideas in math. Seeing this problem yesterday and getting to explore it today with the boys was a real treat!

Stumbling through problem #4 in Mosteller’s 50 Challenging Problems in Probability

Sometimes I think a project is going to go really smoothly and I’m just plain wrong. Today was one of those days, unfortunately, as I completely misjudged how difficult this problem would be for my younger son.

He and I ended up spending another 20 min on the problem after the project was over and that time was much more productive. I’m kicking myself a little – and wish that I’d approached the problem differently – but you can’t win them all 🙂

With that disclaimer out of the way, problem #4 from Mosteller’s probability book is a classic:

How many rolls, on average, does it take to roll a 6 on a fair, 6-sided die?

Here’s the introduction to the problem and the initial thoughts from both kids:

Next I had the boys roll dice off camera and record how long it tool to roll a 6. Here are the results of those experiments:

Now we moved from experiments to diving into the math – this is where I probably should have realized that my younger son was struggling a bit to see the math, but I failed to see his struggle:

And then we get lost, unfortunately. I turn the camera off around 6 min and we spent 10 more min talk about the problem off camera. I share this video only so that I can go back and learn from it later and see what I could have done better. Not everything goes well all the time . . . .

While we spoke off camera my older son found a very clever way to solve the problem. Here he explains that solution and my younger son was able to chime in on one little mistake at the end. It was a nice silver lining to a project that went off the rails a little bit:

Sharing problem #3 from Mosteller’s 50 Challenging Problems in Probability with kids

We are working through Mosteller’s 50 Challenging Problems in Probability this fall. Today we tackled problem #3 which is an problem that is definitely accessible to kids and has a fun and surprising result.

The problem can be summarized like this:

You have two people who each have probability p of making a correct decision and a third person who just flips a coin. If this group of three reaches a decision by majority rule, what is the probability that they make the correct decision?

I started the project today by sharing this problem with the boys and asking them what they thought:

They had a pretty good idea about how to approach the problem, so for the 2nd part of the project we dove in to the calculation and found the surprising result:

To wrap up, we wrote a short computer program to simulate the problem and see if the results of that program matched what we’d found in the second part:

I really like this problem – easy for kids to understand, not too difficult to compute the answer, the computation allows a few different approaches and lessons about probability, and the result has a nice surprise! Fun project 🙂

Having the boys talk through Problem #2 from Mosteller’s 50 Challenging Problems in Probability

This fall we are going through Frederick Mosteller’s 50 Challenging Problems in Probability. Our first project was last week, today we tackled problem #2. The problem goes like this:

You are challenged to win two games in a row in a series of three games against opponent A and B. B is a better player than A. You can choose to play the the three games in order ABA or BAB – which order gives you a better chance of winning two games in a row?

Here’s the problem and some initial thoughts from the boys – they found the problem to be pretty challenging:

Next we chose some specific probabilities of winning the games against player A and against player B and calculated the exact probability of winning two games in a row in each case:

Having worked through a specific calculation, next we solved the problem in general:

Finally, we went to Mathematica to run some simulations and see if our results matched with theory (and also to introduce the boys to some basic logical operations in programming):

A linear algebra follow up to our probability project

My older son is learning linear algebra right in Strang’s Linear Algebra book. Over the weekend we did a fun project on problem number #1 in Frederick Mosteller’s probability challenge book and I wanted to show him a neat follow up involving linear algebra today.

The original project is here:

Going through problem #1 from Frederick Mosteller’s probability challenge book with kids

Today what I wanted to show my son is how you solve the recurrence relation for the terms we found in the original project. It is a fun linear algebra example.

We started by reminding ourselves what the terms were and then looking at the recurrence relation we found on the Internet Sequence Database:

By the end of the last video we had a cubic equation written down and in this video my son worked to find the roots of that cubic:

Now we looked at linear combinations of the powers of the roots that we found in the last video to see if we could find the general solution. The general solution involved a matrix equation:

We did not solve the matrix equation by hand, but rather went to Mathematica to save time.

Once we solved the equation we saw that we could find any term in the sequence that we wanted!

Following up yesterday’s probability problem with one of my favorite ideas involving high school algebra

Yesterday we did a neat project on problem #1 from Frederick Mosteller’s probability challenge book:

Going through problem #1 from Frederick Mosteller’s probability challenge book with kids

Today my older son is off mountain biking so the follow up project is with my younger son who is in 8th grade. I thought it would be fun to look at additional solutions to yesterday’s puzzle and show him how we could write down a formula for those solutions.

We started by look at some of the small solutions to yesterday’s problem and looking for patters. My son noticed a connection to \sqrt{2} that made me really happy!

Next I showed him the Internet Sequence Database. I wanted to show him that sometimes when you are looking at a sequence of integers, it is something that other people have studied before:

Now we returned to the whiteboard to study the sequence more carefully. Our starting point was the recurrence relation that we learned about in the last video:

Finally, and this is one of my favorite high school algebra examples, we took a first step at solving the recurrence relation. This step is a nice application of factoring and using the quadratic formula: