Fixing the Voting System

C.G.P.Grey lays out the problems with the U.S.A’s current “first past the post/winner take all” voting system and then explains how to fix them:

The problems:

  • Minority rule: You can win with less than half the vote (at least in the beginning).
  • Inevitable, unavoidable, two-party system evolves over time.
  • Third-parties become spoilers; the better a third-party does the worse it is for their voters because it takes away votes from the other party they would favor.

The solutions:

1. The Alternative Vote/Instant Runoff.

2. Mixed Member Proportional Representation.

A Plant Responds to Water

Pepper plant responding to being watered. These images were taken over the course of two hours.

During class on Friday, I watered my Chinese five-color hot pepper plant for the first time in three days. It responded quite well, helping to illustrate one reason (to maintain their rigidity/prevent wilting) why plants need water. I did this because I was curious about how fast plants respond to water, and with the data from the images I should be able to demonstrate what a scientific report should look like.

The full plant’s response:

Notes

The original camera images were cropped for the gif-animation using Imagemagick’s convert

convert $i -crop 500x400+1550+1100 crop-$i

The image file sequences were converted to mp4 video using ffmpeg (instructions here):

ffmpeg -r 5 -b 64k -i crop-image00%02d.jpg watering64k-1000.mp4

where:

  • frame rate = r = 5 frames/second
  • bitrate = b = 64k

Encouraging Academic Honesty

Dan Ariely concludes (video by RSA) that making people think about morality increases the likelihood that they’ll act honestly.

People try to balance the benefiting they gain from cheating against being able to feel good about themselves by being honest. While very few people tend to cheat a lot, many people cheat a little and self-rationalize their dishonesty.

Our school has adopted a short honor code that we’ll ask students to write at the top of tests and other assignments that is intended to remind them of their moral obligations.

Based on one of Ariely’s other conclusions, I’m also considering having students confess their in-class transgressions — talking out of turn; improper use of technology — every month or so, since this type of thing also seems to encourage probity.

The Dish

Live Bears

Watch brown bears catch salmon in Katmai National Park on a live webcam:

Every year over a hundred Brown Bears descend on a mile long stretch of Brooks River to feast on the largest Sockeye Salmon run in the world.

bears: brown bear & salmon cam – brooks falls on explore.org

Live video from Brooks Falls, Alaska.

Exponential Cell Growth

The video shows 300 seconds of purely exponential growth (uninhibited), captured from the exponential growth VAMP scenario. Like the exponential growth function itself, the video starts off slowly then gets a lot more exciting (for a given value of exciting).

The modeled growth is based on the exponential growth function:

 N = N_0 e^{rt} (1)

where:

  • N = number of cells (or concentration of biomass);
  • N0 = the starting number of cells;
  • r = the rate constant, which determines how fast growth occurs; and
  • t = time.

Finding the Rate Constant/Doubling Time (r)

You can enter either the rate constant (r) or the doubling time of the particular organism into the model. Determining the doubling time from the exponential growth equation is a nice exercise for pre-calculus students.

Let’s call the doubling time, td. When the organism doubles from it’s initial concentration the growth equation becomes:

 2N_0 = N_0 e^{r t_d}

divide through by N0:

 2  =  e^{r t_d}

take the natural logs of both sides:

 \ln 2  =  \ln (e^{r t_d})

bring the exponent down (that’s one of the rules of logarithms);

 \ln 2  =  r t_d \ln (e)

remember that ln(e) = 1:

 \ln 2  =  r t_d

and solve for the doubling time:

 \frac{\ln 2}{r}  =  t_d

Decay

A nice follow up would be to solve for the half life given the exponential decay function, which differs from the exponential growth function only by the negative in the exponent:

 N = N_0 e^{-rt}

The UCSD math website has more details about Exponential Growth and Decay.

Finding the Growth Rate

A useful calculus assignment would be to determine the growth rate at any point in time, because that’s what the model actually uses to calculate the growth in cells from timestep to timestep.

The growth rate would be the change in the number of cells with time:

 \frac{dN}{dt}

starting with the exponential growth equation:

 N = N_0 e^{rt}

since we have a natural exponent term, we’ll use the rule for differentiating natural exponents:

 \frac{d}{dx}(e^u) = e^u \frac{du}{dx}

So to make this work we’ll have to define:

 u = rt

which can be differentiated to give:

 \frac{du}{dt} = r

and since N0 is a constant:

 N = N_0 e^{u}

 \frac{dN}{dt} = N_0 e^{u} \frac{du}{dt}

substituting in for u and du/dt gives:

 \frac{dN}{dt} = N_0 e^{rt} (r)

rearranging (to make it look prettier (and clearer)):

 \frac{dN}{dt} = N_0 r e^{rt} (2)

Numerical Methods: Euler’s method

With this formula, the model could use linear approximations — like in Euler’s method — to simulate the growth of the biomass.

First we can discretize the differential so that the change in N and the change in time (t$) take on discrete values:
 \frac{dN}{dt} = \frac{\Delta N}{\Delta t}

Now the change in N is the difference between the current value Nt and the new value Nt+1:

Now using this in our differentiated equation (Eq. 2) gives:

 \frac{N^{t+1}-N^t}{\Delta t} = N_0 r e^{r\Delta t}

Which we can solve for the new biomass (N^t+1):

  N^{t+1}-N^t = N_0 r e^{r\Delta t} \Delta t

to get:
  N^{t+1}     = N_0 r e^{r\Delta t} \Delta t + N^t

This linear approximation, however, does introduce some error.

The approximated exponential growth curve (blue line) deviates from the analytical equation. The deviation compounds itself, getting worse exponentially, as time goes on.
The approximated exponential growth curve (blue line) deviates from the analytical equation. The deviation compounds itself, getting worse exponentially, as time goes on.

Excel file for graphed data: exponential_growth.xls

VAMP

This is the first, basic but useful product of my summer work on the IMPS website, which is centered on the VAMP biochemical model. The VAMP model is, as of this moment, still in it’s alpha stage of development — it’s not terribly user-friendly and is fairly limited in scope — but is improving rapidly.

The Mathematical Logic Behind Billions, Trillions and Standard Form

A billion, in continental Europe is, a million squared ( 1,000,0002 = 1,000,000,000,000), but in the English speaking world, a billion is only a thousand million (1,000,000,000). numberphile goes into the beautiful, mathematical logic of the longer form (i.e. the continental system).

Of course, the “simplest” system, which avoids all the potential for miscommunication, is the standard scientific notation, where 1,000,000,000 is written as 1×109 (or just 109).

The Dish