Sunday, October 4, 2020

More Heads or Tails?

Over the course of 100 or 1,000 or 10,000 flips, will there be more heads or more tails? And once one side of the coin takes the lead, do they relinquish it at some point?

I explored this with a simulation using Texas Instruments' Nspire CX CAS with Python.

Heads in a row?

 How many coin flips does it take to get N heads in a row? Here is a simulation in Texas Instruments' Nspire CX CAS with Python

Messing with Python on the TI Nspire CX CAS

A reverse raffle is where you purchase a raffle ticket, and all the tickets are placed in a large bucket, and the last ticket pulled out is the winner.

I used to do a variation of a reverse raffle for grading purposes. I would number my groups, say, 1 through 8, and then randomly choose numbers on the Nspire until only one number was left. My twist was that if a number was chosen, if it is still in play, you remove it. If the number has been removed, put the number back in play.

I wrote a nice python script to do this in Trinket.io


Now that @TICalculators has introduced a sweet Python implementation on the Nspire, I created the script there:

My Google Data Analytics Capstone Project

What do you hope to take away from this capstone project? I am hoping to show that I can do it, and maybe demonstrate a practical understand...