Did you know the world’s oldest living cat is now 31 years old? My first thought was: “that’s old alright! But how does it translate to human age? Must be really old.” Turns out, yes it is. Although it’s not that straight forward as many of us learned in the past, but not too difficult […]
Category: STEM
Risks & Odds: Matter of Life or Death (Analytics)
Risks & Odds ratios are heavily used in medical fields mainly to track survivability of patients or effectiveness of some treatment on patients. You’re not a surgeon, nor a doctor. But you’re in charge to deliver information that’ll be used to determine the future of all patients! (e.g. Whether to administer a particular treatment, to […]
Analysis of Wine Data (analytics)
You’re given a massive list of data about wines around the world, their prices (a huge range from $4 to $3300 per bottle!), expert tasters’ scores, who scored them, how many scored them, name of the wine, description of the win, their origins including country, province, region, subregion, their variety or category, just to name […]
The Dictionary Challenge-Part 2
This is a continuation of the Dictionary Challenge previously completed. To follow along, you should read that post here. So, we have already downloaded a free Webster dictionary but completely unformatted and unstructured. So, we created a new file in a more structured way that our program can process. The code is in the previous […]
The Dictionary Challenge-Part 1
Ok, today I’m inflicting a self-imposed challenge…here it is: Get an English dictionary. Then find how many words start with vowels. How many words are there starting with “odd” letters, which I’ll set as: Z, Q, J. Then find the longest word in that dictionary. (Say, we’re going to make a word guessing game) All […]
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 […]
“Rabid Racoon” tracking (Python, using our own class)- Part 1
Just like most high-level programming languages, Python also supports the idea of classes. Once the class(es) is/are created they can be inside the main python file or separated (in most usage scenarios), along with it methods. For Python-specific syntax, please refer to its documentation online or offline (python.org is a good start), but you should […]