Surely, you’ve seen a myriad of optical illusions on the internet. Some are funny, inexplicable, confusing, and there are some you may not have fallen for. I present one of my favorite ones here. Take a look at this image: Most likely, you’ll see different colors of sphere in the above image. Ranging from yellowish, […]
Category: Education
Need a baby name? Or just love data?
In either case, read on. I collected a dataset of poplular baby names from OpenData government site of City of New York ranging from 2011 through 2016…exactly 19,418 records. Original dataset view: What I want to do is find out: a) Most popular names b) Less popular names (or rare names used) c) Slice it […]
Solving Real-world crimes with Bayes Theorem
Today, I present a real-life problem that actually goes back many years in terms of the type of problem and method to tackle such. Here’s the scenario: There was a robbery and the software has identified the perpetrator to be black. The case goes to jury and they must decide with the help of the […]
Anatomy of a goal (part 2)
This is a continuation of the original soccer goal tracking chart and animation posted @: https://flyingsalmon.net/blog/?p=869 It’s recommended that you read that blog first for context. In this blog, I added actual players involved in that goal (denoted by their jersey and individual numbers). The players data are added as an addition series (much like […]
Behind every goal, there’s science. Anatomy of a goal (part1)
With the World Cup, Copa America underway, obviously I try to catch some games and follow the scores on matches I missed. The other day I noticed a chart on BBC site that showed charts with points plotted on a field where the ball had traveled on a particular game. This got me thinking, how […]
Wading through Billions of $$$!
Welcome to this post. Today, I want to share my process of retrieving some Mega Million Lottery winning data, curating them, and analyzing them to tell a story. The results may or may not make us super-rich 🙂 but I certainly had fun throughout the process. Disclaimer: I used Excel, but this is not a […]
Burger-Economy Charting! (Excel)
Welcome back! Just saw the latest released data on Big Mac prices world-wide, and the articles showing some simple histograms—and some of them even slapped on a cheesey (pun intended) burger animation to make their hohum horizontal bar charts appear to be more eye-catching. Well, today I’ll show you how to use the same data […]
Let’s Roll! — 2 dice…and find the probability and chart it (Python)
What numbers will you get if you roll 2 dice? How about we find out by writing a program? Can we then chart the results over as many rolls as we want? And then interactively play with the chart? Asking a lot! But yes, I will do ALL of the above here. Better yet, why […]
Draw A Beautiful Gradient Scatter Plot (Python)
In this demo, I’ll draw a beautiful, elegant, gradient-colored (themed) scatter plot using some data for x and y axis. The neat thing I want to demo here is not so much the data themselves, but how to apply a “colormap” to the graph using Python’s matplotlib library. Specifically, its pyplot module. What’s Desired: The […]
“Rabid Racoon” tracking (Python, using our own class)- Part 2
This is part 2 of the original series on Rabid Racoon. Please read Part 1 first to follow along. So, this time we’ll use a real-time graphing method using Python’s Turtle library instead of scatter plot as we did in Part 1. The beautiful part is, since we already created our custom Class in Part […]