Posts for Tag: animation

Shall We Play A (Market Timing) Game?

Posted In: Financial Independence | Money


The Market Timing Game simulation is premised on the idea that buying-and-holding index investing and index funds are a no-brainer investment strategy and market timing (i.e. trying to predict market direction and trading accordingly) is a less than optimal strategy. The saying goes “Time in the market not timing the market”. In this simulation, you are given a 3-year market period from sometime in history (data starts January 1, 1950 and goes through the most recent market price, as prices are updated daily) or you can run in Monte Carlo mode (which picks randomly from daily returns in this period) and you start fully invested in the market and can trade out of (and into) the market if you feel like the market will fall (or rise). The goal is to see if you can beat the market index returns.
(more…)

Interactive Dot Illusion (Individual Linear Motion Yields Circular Motion)

Posted In: Fun

This post doesn’t really involve data, but I was just messing around with animation and the canvas in Javascript and decided to make this. It’s a fun little interactive web animation that makes aggregate circular motion from a bunch of dots moving in straight lines. There are no real instructions except to mess with the controls and see what it does to the animation (i.e. change the number of dots, the speed slider, the dot colors, and show the dot paths).
(more…)

How Fast Are California Reservoirs Filling Up?

Posted In: Water

Update: I added a date slider to let you scrub through dates as well as the ability to pause the animation.

In my California water levels visualization, I presented a “bar graph” showing the amount of water currently in California’s reservoirs.  However, I thought it’d be interesting to see how this has changed over the course of the last few months, since the state has gotten alot of rain and snow recently.  

This visualizations “animates” the graph for recent history (going back to October 1, 2015) showing how the recent rains (or lack thereof) has been caused the levels of the reservoirs in California to rise (and fall).  

The historical average represents a daily average reservoir level. It changes for each day of the water year to represent seasonality of precipitation and runoff.

Click the “animate” button below the figure and you can use the slider to change the speed of animation as it cycles through the days. I added a Date slider which lets you scrub through all the dates and animate from different points.  (more…)