• Posts
  • RSS
  • ◂◂RSS
  • Contact

  • Lilacs Blooming

    October 5th, 2011
    prediction  [html]
    Around 1848, Adolph Quetlet decided to try to predict when lilacs would bloom. [1] He found that the lilacs waited to bloom until it had been a while since the last frost. Specifically, when:

         sum(t^2 for t in mean_daily_temperatures(
           days since last frost)) > 4264C^2
    

    This is actually pretty strange: how does it make sense to be squaring temperatures? [2] We are talking about predicting frost, however, and it happens that 0C is set to the temperature of frost. So we could rewrite this as:

       sqrt(sum((t-t_freezing)^2
                for t in mean_daily_temperatures(
                  days since last frost))) > 65.3C
    

    This now makes sense, at least in terms of units. It also looks a lot like the common mean squared error loss function (though without 'sum' instead of 'mean'), and there might be an interpretation in which we see the lilacs as trying predicting "it's going to freeze" and then deciding "it's not going to freeze" when their total error since their last successful prediction crosses a threshold. This might be the same thing as the Sum of Squared Errors of Prediction?

    [1] This comes from Seeing Like A State p313 (James Scott, 1998), which sources it to Ian Hacking's, "The Taming of Chance", p 62 (1990). Scott claims that "the calculations must begin with an unpredictable event: the 'last frost'. Since the date of the last frost can be known only in retrospect, Quetelet's formula fails as a useful guide to action." This is probably a misinterpretation of either Quetelet or Hacking: instead of "the last frost of the season" the formula probably takes as an input "the most recent frost".

    Scott actually has the right hand side of the inequality as "(4264C) squared", and Hacking has it as "(4264C)^2", but this is clearly impossible as it would require lilacs to wait through 40 years of 35C days before blooming. While 4264 square centigrades just requires 10 days of 20C. This errant squared might be supposed to refer only to the C, however, in which case it would make sense.

    Looking now, this is also in the 1918 Publications of the American Statistical Association, Volume 15, p389 and the 1850 Edinburgh review, Volume 92, p39. Here they have as the right side of the inequality just "4264 centigrade", not noting that the units are square at all.

    [2] The particular choice of units matters; squaring acts very differently on temperatures measured in Kelvin or Farenheight because of their different zero points. Adding squared temperatures especially doesn't make sense. Imagine I chose a temperature scale (J) with 0J = 100C. Then if you add squared temperatures your total is lower for a series of 20C (-80J) days than 10C (-90J) days which would not work with this formula. (edit: was 80J and 90J)

    Comment via: google plus, facebook

    Recent posts on blogs I like:

    Collections: The Queen’s Latin or Who Were the Romans? Part IV: The Color of Purple

    This is the fourth part (I, II, III) of our series asking the question “Who were the Romans?” and contrasting the answer we get from the historical evidence with the pop-cultural image of the Romans as a culturally and ethnically homogeneous society typic…

    via A Collection of Unmitigated Pedantry July 23, 2021

    The Leakage Problem

    I’ve spent more than ten years talking about the cost of construction of physical infrastructure, starting with subways and then branching on to other things, most. And yet there’s a problem of comparable size when discussing infrastructure waste, which, …

    via Pedestrian Observations July 23, 2021

    Songs about terrible relationships

    [Spoilers for several old musicals.] TV Tropes lists dozens of examples of the “I want” song (where the hero of a musical sings about their dream of escaping their small surroundings). After watching a bunch of musicals on maternity leave, I’m wondering h…

    via The whole sky July 17, 2021

    more     (via openring)


  • Posts
  • RSS
  • ◂◂RSS
  • Contact