Averaging down is a strategy where investors buy additional shares of a stock after its price has declined, thereby reducing the average cost per share of their position. The idea is that if a stock drops due to short-term market volatility or temporary setbacks,...
The Traveling Salesman Problem
The Traveling Salesman Problem (TSP) is a classic puzzle in optimization that’s as fascinating as it is challenging. Imagine you’re planning a road trip where you need to visit a bunch of cities, but you want to do it in the shortest possible way without repeating any...
Stock Strategy: Averaging Down
So, I wish I were a more saavy investor. But I tend to geek on the maths and the gambling nature of it all. I have a couple of stocks that have done very poorly. One is NEPT, Neptune Wellness, that had a reverse 12:1 split. Meaning for every 12 shares I had, I now...
Mega Millions Results
So in a previous post, I used ChatGPT to write a lottery number simulator/chooser. It is set to a low number of iterations now, but when I ran it through to actually choose the numbers I was going to play, I let it iterate 30 million times per choice. So the number...
Creating a Lottery Number Generator with ChatGPT: A Step-by-Step Guide for the Mega Millions Lottery
I have been messing around with ChatGPT a lot in the last 2 months. I thought it would be interesting to use it to program a random number generator, that also kept track of frequencies of certain numbers over many iterations. Every bit of this code and the css was...





