School Yourself coming to edX

We're excited to announce that our Algebra and Geometry lessons will be appearing on edX as part of their High School Initiative. You can sign up for the courses here, and you can check out the announcement by edX CEO Anant Agarwal on the edX blog.

Both courses will be available in early 2015. And of course, all the lessons will continue to be available on the School Yourself site as we produce them.

A quick shout-out to our very own Michael Fountaine, who designed the beautiful banners for our two courses. First up is the banner for AlgebraX:


If you look carefully, you'll notice the repeating pattern in the background actually consists of the graphs of y = x^0, y = x^1, y = x^2, and y = x^3. Nifty, right?

And here's the corresponding banner for GeometryX:


The background pattern for this one are 0-, 1-, 2-, and 3-dimensional hypercubes.

Happy Pi Day!

It's March 14, which means it's Pi Day!

To celebrate, we've compiled a list of our favorite interactive lessons involving pi:

Circumference and pi

Find the distance around a circle (and then eat some pi). And maybe get a head start on memorizing pi's digits?







Circle area

Using circumference to find a circle's area. If you've never worked through this proof before, you'll definitely want to check it out!







Radians

Discover another way to measure angles. There's more to angles than just degrees...







Sector area

If you're eating a slice of pie, discover a sure-fire way to find its area!







Sine, cosine, and tangent functions

We've completely reworked our introduction to trigonometry, and those infamous trig functions. Play with interactive right triangles as you learn about these functions, and discover what they can do!





In other news, our probability-based game "Beat the Odds" has been named a winner of WGBH's Education Innovation Challenge! (And they even made a video about us.)



And on a final note, we're hard at work producing lessons on trigonometry and volumes of solids, and many of those formulas also have a pi floating around! Here's a teaser of what's to come:


Practice makes perfect

Today, we're excited to announce two of our most-anticipated features, review questions and automated suggestions for our online precalculus and calculus content. Give it a try, or sign up for an account to get started!


At any time, you can ask our system for a short quiz to test your newly-gained knowledge. We will choose questions from our large (and still growing) database of review questions that are best-suited for you based on how you've interacted with other lessons and questions. We'll make sure to choose questions on topics that you need to review the most, and at an appropriate level of difficulty.



As you progress through the course, you'll be able to see which topics you excel at and which ones you struggle on. Our system notices these things too, and can automatically highlight lessons you ought to review if you are having trouble.

With automated suggestions and review questions, there is now no need to have to browse through endless lists of videos or tables of contents just to find what you should look at next. School Yourself can automatically find out what your weak points are and help you master them!

How much could you expect to win from the Mega Millions lottery?

In case you haven't heard, the Mega Millions lottery reached an astonishing $648 million this week. There were two winning tickets, but only one winner has come forward so far.

Here we'll look at the question of how much money you could expect to win from this lottery. In other words, for every dollar you spend playing the Mega Millions lottery, how much money could you expect to get back?

For reference, here's how some other investments stack up:

  • If you invested $1.00 in the stock market a year ago, you would have $1.23 today. So for every dollar you invested, you would have made an additional 23 cents.
  • If you play roulette at a casino, for every $1.00 you bet, you make, on average, $0.95 back. So for every dollar you bet, you would lose 5 cents.
So it looks like investing in the stock market is a pretty good way to spend a dollar, while playing roulette will lose you some money. How does playing the lottery stack up?

First, we need to know how likely it is for you to win different prizes. In each Mega Millions game you play, you select 5 numbers between 1 and 75, and then one addition number between 1 and 15. Here's what five games look like:


We could calculate the probability of getting all 6 numbers right (using a branch of math called combinatorics), but we'll skip that step for now. The Mega Millions lottery is very up-front with the probabilities of winning. Here's the chart they have on their website, where the left-most column is how many of the five numbers you match (form 1 to 75), and the next column is whether you match that sixth number:


They advertise at the bottom that your chances of "winning any prize" are 1 in 14.7, or about 6.8%, which sounds pretty good. Unfortunately, just about all of that 6.8% is taken up by prizes of $5 or less.

Anyway, let's figure this out: for every $1 you spend on the Mega Millions, how much could you expect to win? In other words, we want to find the expected value of your cash winnings.

Here's a simpler example: suppose you roll a fair die (numbered 1-6), and you win a number of dollars equal to the number that comes up on a roll. So you have a 1 in 6 chance of getting $1, $2, $3, $4, $5, or $6. What's the average amount (or expected value) of money you'd make from this game? To find out, you can add up the probabilities of each event by the outcome of that event. In other words, you can expect to make:

which equals $3.50.

The expected value of the Mega Millions lottery without the jackpot is only about $0.18. But if we include a jackpot of $648 million, the calculation becomes a little more challenging, because that prize can be split if there's more than one winning ticket.

As far as we know, the Mega Millions lottery doesn't publicly announce how many tickets are sold, but it's probably in the many hundreds of millions for big jackpots like this one. As more tickets get sold, it's more likely that there are multiple winners. Let's say enough tickets were sold so that we can expect (there's that word again) about 2 winners.

With these numbers, you can expect to make $1.42 off of every dollar you put in the lottery. Those are better results than the stock market! Any time the lottery exceeds about $250,000,000, your expected winnings are greater than $1.00, so it seems like a good idea to play.

But not so fast. While you're definitely spending a full dollar to play, your winnings are taxable. The government may not tax you much when you win $50 for matching a few numbers, but you can bet they'll tax your jackpot prize (or the $1 million prize for matching 6 numbers). Assuming a 40% tax rate, for every $1.00 you spend, you'll now make only about $0.90, meaning you'll lose 10 cents. And you actually lose at lot more (closer to 40 cents) if you decide to take your winnings all at once. The 10-cent loss is only if you let the lottery make smaller payouts to you over the course of 20 years (and they don't account for inflation).

So to summarize, for every $1.00 you spent on Mega Millions, you could expect to lose about 40 cents. You're better off playing roulette.

What is Bitcoin, anyway?


From Bitcoin's own website:

Bitcoin has the characteristics of money (durability, portability, fungibility, scarcity, divisibility, and recognizability) based on the properties of mathematics rather than relying on physical properties (like gold and silver) or trust in central authorities (like fiat currencies). In short, Bitcoin is backed by mathematics.


So what is Bitcoin, anyway?

Bitcoin is a relatively new currency (think dollars, euros, or yen), and was introduced by anonymous creators in 2009. First, how much is one bitcoin worth? As with all things: however much someone is willing to pay for it. Here's a graph of how much people have been willing to pay for one bitcoin over the last few months.


Bitcoin price has been fluctuating recently, and hit a maximum of over $1200 on December 4.

Unlike other currencies, Bitcoin is digital. You can't hold a Bitcoin in your hand. So how do you know how many Bitcoins (or "BTCs") you have? Well, it's a matter of public record! Every time someone pays someone else in Bitcoin, the transaction gets logged in a digital ledger (essentially a list of every single transaction) known as the "block chain."

So the list of who has how many BTCs is publicly available. But many Bitcoin addresses (long chains of numbers and letters) are anonymous -- everyone knows how many BTCs they have, but almost no one knows who owns the address.

In addition to an address, each Bitcoin user also has a private key, which he/she needs when making Bitcoin payments. These keys are additional long chains of numbers and letters, but they are not publicly available.

When Person A makes a payment to Person B in Bitcoin, the transaction gets added to the block chain. But how does Person B (and everyone else) know this is a real payment, as opposed to some fraud who's only pretending to be Person A (perhaps using their Bitcoin address)? Just like a bank verifies the authenticity of checks, Bitcoin transactions get verified as well, but mathematically.

Many individuals, known as Bitcoin "miners," verify transactions. Miners do this using cryptographic hash functions, which are functions for which:

  • Given an input, it's easy to calculate an output
  • But given an output, it's really hard to find any input.

The miners get paid for verifying transactions with -- you guessed it -- more Bitcoin! By verifying transactions, they're "mining" for Bitcoin, much like a 49er would mine for gold. But the rate at which miners are rewarded exponentially decays over time, so that the total number of BTCs in circulation is tightly controlled.

So Bitcoin involves mathematics and cryptography rather than centralized institutions (like mints and banks) to create currency and prevent fraudulent transactions. Over the next few years, we'll see if digital currencies like Bitcoin catch on.

What shape is the moon in the sky?

Have you ever looked up at the night sky and seen a full moon? A full moon looks pretty much like a perfect circle:


So if a full moon looks like a circle, how would describe the shape of a crescent moon? Sure, it's a "crescent," but let's try to be more specific. Throughout each month, the shape of the moon changes, but the shape actually follows a specific mathematical pattern.

Here are sketches of three different "crescents," but only one of these is an accurate sketch of a crescent moon as it might appear in the sky. Which one of these do you think the moon could look like? Leave your vote in the comments below, and we'll reveal the correct answer in a later post!


Here's a little more background on the three sketches: each one starts with a circle, and then part of the circle is removed. In each sketch, the shape of the removed piece is another conic section. Conic sections are a group of mathematical functions including circlesellipsesparabolas, and hyperbolas.

In sketch A, an ellipse was removed, producing two crescents (as shown in the image below). Perhaps the moon could look like one of these crescents...


In sketch B, another circle of equal radius was removed (as shown below). Perhaps the moon looks like this crescent...


In sketch C, a parabola was drawn inside the circle, and everything to the right of the parabola was removed. Does the moon look like this crescent?


Again, vote below!

How much money will "Hunger Games: Catching Fire" make?

The new "Hunger Games" movie is opening this Friday. Get ready for more Jennifer Lawrence killing everything in sight:

Credit: Lionsgate

The first "Hunger Games" film made $408 million at the US box office. Almost half of that total was made in just the opening week! Let's take a look at the graph of how much money the first film made on a weekly basis, to see if we can predict how the second film will do.


This looks a lot like a decaying exponential function, which can be written in the form Ce-t/τ, where C is the amplitude of the function, and τ is the time constant. Another way to think about this is that each week, the film makes a fraction of the money it made the week before. That means we can treat the weekly data as a geometric series!

The formula for the sum of a geometric series is A/(1-r), where A is the first term in the series (i.e., how much money the film makes in the first week), and r is the ratio from one week to the next. For example, if a film makes $100 million in its first week, and $60 million in its second week, then r = 0.6, which is pretty high for a blockbuster release. Larger values of r mean that a film has a longer "lifetime" in the theaters -- people are still buying tickets later into the film's run. After "Catching Fire" is out for a week, we'll know exactly what A is. But how can we determine what r is?

To estimate r for "Catching Fire," let's look at how some similar movies did in the past. Let's specifically take the total amount of money each film made in its first week and divide that by how much it made in total, and let's call this ratio w (for opening week). So then:


So using a film's opening week and total intake (or "gross"), we can estimate r. Let's see how a few different film franchises compared:


For each of these graphs, there seems to be a downward trend, meaning that later films in each franchise have shorter lifetimes than earlier films. But each of these franchises behaves a little differently. For example, The Harry Potter franchise steadily declined over its 8 films, while the Twilight films plummeted after the first one. Maybe after the first film, only the "Twihards" saw the remaining movies, often in the first few weeks of release (resulting in a low value of r).

With more study and more data from other films, we could generate a probability distribution for the value of r for "Catching Fire." But for now, we can guess that it'll probably be less than r for the first "Hunger Games" film, which was ~0.53. Given the positive buzz the new movie is getting, let's say r is a relatively healthy 0.5. So to figure out the total amount of money this second film makes, take the gross from its opening week, and divide it by (1-0.5). In other words, double it!

Here's our best guess for "Catching Fire":

Opening weekend (first 3 days) gross: $160 million
Opening week (first 7 days) gross: $220 million
Total gross: $440 million (double the opening week)