A simple game to predict people’s “random” selections

Can we really think randomly?
Decision tree

Peter Hoang


June 2, 2024

This was a AI project I did for my Msc study. In this project, the central hypothesis was quite interesting: people’s thoughts may well be predictable, even when they try to “think randomly”. (This hypothesis is related to the interesting topic of human free will.)

This idea was concretized into a simple game of trying to predict users’ choice of 0 or 1, based on their previous selections. Users are advised before the game to try to think in an unpredictable way.

The game offers 2 modes. In the first mode, the program’s predictions at each time step are not immediately shown to the user and the user will know the final prediction accuracy of the program only at the end, after making 50 selections.

In the second competitive mode, program’s predictions are immediately shown to the user and they can make use of this additional information in deciding what to choose next so as to “beat” the program.

The program was built using a combination ML algorithms such as Decision Tree and SVM, all used from the Scikit-learn library.

Below is a video recording how this game works for the 2nd mode (competitive).

The initial plan was that the system would be able to predict users’ selections with a fairly high accuracy (such as 60%) but the current version hasn’t reached that yet. So in that sense, this is still an open project waiting for new algorithm ideas.