How Guessing Football Works

Guessing Football

A quick post to explain a bit about how guessingfootball.com works.

The site was built for myself as a fun project to see how accurate I could get a machine to pick football games.
This after years of failing to successfully do so myself.

It was conceived many years ago and half-built in different forms on different technologies but abandoned each time before completion.

This year, in time for the NFL season, I managed to build it out using Python and Django, taking advantage of HTML5’s localstorage to store user picks.

This is how it predicts games:

  1. Grab a random score from a list of all the scores in the last two years with the frequency it occurs. 21, 17, 10 etc. are very common so they get picked more often. Do the same for the opponent.
  2. Are they the same? If so, throw one of the scores away and get a new one. Ties happen but are rare.
  3. Look at the scores and check their variance to the team’s computed mean. Basically, if the score fits within an acceptable range, keep it, if not throw it away and pick another. The computed mean is a weighted average of points-for and points-against. Meaning a teams recent scores influence the process more than a score a long time ago.
  4. Finally, a check is performed to see that the probability of these scores happening isn’t too far fetched. 5-2 for instance.
  5. Once the week is complete, look back and reflect. See where the biggest mistakes happened and lightly factor that into the next round of picks. All final scores are then added into the pool and the oldest week removed. Repeat.

That’s it. No rumour mill. No injuries or QB controversies. I know what you’re thinking… “Surely I could do better”. Well I say give it a try! (and don’t call me Shirley.)

Published
Categorized as Websites

Solar Charging Hydration Pack

Solar hydration pack

Successfully tested the 6V 3.4W solar panel I added my Dakine Hydration Pack. It kept me quenched and full of juice. I took a motorbike ride up Duffey Lake Road and hiked Joffrey Lakes. One the most beautiful places on earth if you ask me.

Joffre Glacier Solar Pack

With the motorbike pointed North (panel on my back south facing) I was able to charge up my old iPhone’s battery and keep it running all day as well as top up a GoPro for a long timelapse by the lake.

Solar components

Using Adafruit kits and the tutorial provided, I had the two kits soldered and secured in an enclosure in about an hour. I’m using a nice clam-shell box from a Swiss army knife to hold everything and as a bonus, The 2700mAh 3.7v LiPo snuggly press-fits into the soft lining.

Next steps are to move over the Flora and GPS from my winter glove project.

Solar panel on hydration pack

Go forth! Let there be light!

Published
Categorized as Websites

Google trends for Arduino

Google trends is neat. Showing interest level of topics by date. Things are looking up for Arduino. Be sure to check out the Regional Interest section “change over time” link near the bottom. Works as a visual outbreak map of the term you are searching.

It’s another gauge to measure interest or perhaps marketing performance.

While it’s hardly scientific, not knowing the full detail, a simple graph can tell a story.

Published
Categorized as Websites