Pages

Sunday, 16 August 2009

Science in the Real World

One of the Big Lies in the campaign to confuse the public about climate science is that true science proceeds from exact information applied to an exact formula, producing an exact result. Because results reported by climate models are inexact, the Lie goes, the theory must therefore be flawed. Members of the public without scientific experience can be excused for getting this wrong; experienced scientists who propagate such views should hang their heads in shame. Real science is nothing like this. Exact results only apply in artificially constructed situations (and even then, you need to allow for errors in measurement). The real world is noisy: instruments have errors, multiple sources of information interact in ways that can’t always be disentangled with precision, and precise calculations on a real-world scale may be impractical. Just as with any other branch of science, the theory of anthropogenic greenhouse gas-driven warming is based on a precise formula: increases in CO2 result in increases in temperature logarithmic in the increase in CO2. As with many other physical theories (including gravitation, thermodynamics and electromagnetism), this theory is testable in the lab under idealistic conditions. As with any other theory, real-world application involves dealing with noisy data and interactions with other aspects of the total system.

A few days ago, in online comments to a letter of mine in The Australian, someone made the claim that climate science can’t be any good because it is inexact:

Philip. With all due respect, if anyone, it is you who are confused; at least about what science is, and in that, you are certainly not alone. Science is not based on correlation but on causation, and an understanding that if A causes B, then A and B move in absolute lockstep according to a precise mathematical law; like Newton’s F=ma. It is not F~ma. Where there is the most minute variation, science says that there is a causal factor for that variation, and a further law to absolutely and completely describe that variation; eg via Einstein’s E=mc*c. Note too that this does not change the original law; it still applies, but it introduces and accounts for another factor which can affect a factor of the original law. It is also worth noting that this new law actually predicted variations from Newton’s laws that were so minute they had not yet been measured. With both together then, everything remains exact. That is true science.

Contrast that to the greenhouse “science” laws (based on correlation) to which you refer. They predict that for a doubling of CO2, there will be between a 1.5 and 4.5C T rise. To in any way equate that to true science is just wrong; for comparison, it would be like having Newton’s law saying ma<F<3ma. Einstein’s Law would then have to be something like E=ms*s (s=speed of a snail crawling over sand) to account for that sort of variation. A hydrogen bomb would then not create enough energy to lift your hat, and the sun would be so weak that earth T would be about -273K, even when the variation in gravitational force brought our orbit within a few million k of the sun!

I know this sounds silly, but I use it to emphasise that real science is exact and absolute, because there is no correlation in it; only causation. That is what climate science needs to be before it can be taken seriously outside of political and religious circles; based on causation, not correlation.


First, greenhouse gas theory is not based on correlation. It is based on radiative physics. The logarithmic relationship between increasing CO2 levels and increased temperature was discovered by Arrhenius and demonstrated in the lab in 1897. The radiative physics needed to calculate the effect accurately was discovered early in the twentieth century. There is therefore as exact a measure of the effect of increasing CO2 as any of Newton’s Laws. What makes things more complicated is the fact that we are dealing with a real-world application, where exact measurement is not possible, and there are many other confounding factors to take into account in making exact predictions.

Rather that go into all this again, I will illustrate just how far from reality the commenter’s view of how “exact” science is in another area. Newton’s law of gravitation is about as exact a formula as you could want. While general relativity corrects it, if we are doing something as mundane as designing a bridge or navigating a space probe, Newton’s law is so close to accurate that we can assume it is exact. In principle, navigating a space probe is not terribly hard. The most efficient way of doing it is to burn a rocket until the probe achieves escape velocity, while making sure it points in the right direction, then leave it to drift. To make things simple, let’s assume we only want to navigate accurately past any one location, and anything else on the way is a bonus (except a collision, but let’s ignore that to keep things simple).

We have a formula for gravitation (thanks to Newton) that says we can calculate the force on any two bodies in space as a constant times the two objects’ masses over the square of the distance between them:

G is a constant, M1 and M2 are the masses of the two bodies, and r2 is the square of the distance between their centres of mass.

For our navigation problem therefore, things look very straightforward – until we get to the detail. We don’t just want to know the forces that apply to the space probe at an instant but how its motion is affected over its entire journey. To make things harder, the space probe isn’t the only thing moving. The entire solar system is in motion under the influence of gravitational forces of everything else in the solar system (and other more distant objects, but the inverse squared law makes that an insignificant correction). In theory we could set up a bunch of differential equations to solve exactly but there is a practical problem with doing this for so many different bodies. There are over a million asteroids for a start and even without them, the differential equations would not be practical to solve. So in practice what you need to do is to approximate the parameters at a given time, calculate where everything will be at some later time (soon enough not to loose too much accuracy, but not so soon that the amount of calculation is prohibitive), and keep applying these steps until you arrive at the time when you need to know where your probe will be.

Let’s just look at how difficult this is for one body in space. Assume we have a series of measurements of where this body is, culminating in the positions I’ve labelled here as A and B, measured at times tA and tB – with the aim of working out where it will be at a future time, tC:

So how do we work out where the body will be at time tC? Based on previous measurements, we estimate the speed and acceleration of the body as it passes through position B, and apply Newton’s formula to adjust its acceleration, resulting in calculating that the body will be at position C. Unfortunately because our previous measurements were not 100% accurate, the actual position the body ends up in at time tC is position D, a little out from our calculation.

How could this happen? The previous measurements of where the body was hadn’t taken into account gravitational forces fully. At some point, you don’t know where every body is going to move next, and have to make some approximations before you can start exact calculations. Why? Because to calculate the effect of applying a force to an object you need to know three things at the time immediately before you apply the force:

  1. its position
  2. its speed (velocity)
  3. its acceleration

Applying the force alters the body’s acceleration and (assuming no other forces are involved), if you know all four quantities precisely (force, acceleration, velocity, position) you can calculate where it will go next precisely (until the parameters change). However if there is any error in any of the parameters to the calculation (including the force, which for gravitation relies on having the positions and masses of all other objects right), the answer will not be exactly right – despite the use of an exact formula.

Worse still, because time tC is in the future, between time tB and time tC, everything else has moved, making any calculation based on the gravitational effects of the positions of everything else at time tB inaccurate. Point C should be marked as a circle representing the uncertainty in the calculation, or a fuzzy blob if you want to represent the fact that the most likely location is at point C with diminishing probability of the position being at a location further out from point C.

Even assuming you can arrive at a tight enough approximation to the position, velocity and acceleration of all objects in the solar system to sufficient accuracy at a given time, you need to recalculate all the parameters for successive time intervals, applying the gravitational force each time to get fresh parameters. This is where things get really hairy. We have around a dozen objects big enough to call planets or large moons and over a million asteroids. Even with a large-scale computer to recompute the position in space of each object along with its new velocity and acceleration, we would have to do trillions of calculations just work out where everything has moved, even if we only do this once. Why? Because for each body, we must calculate the effect of every other body. If there were exactly 1-million such bodies, that would mean almost a million times a million applications of Netwon’s formula. This is clearly impractical, especially if we have to repeat the calculations many times to get an accurate projection of the probe’s trajectory.

Fortunately, there’s a better way. If a group of bodies is far enough away, treating them as a single body with a position based on their centre of mass is a reasonably accurate approximation to their contribution to the gravity computation [Barnes and Hut 1986]. This picture illustrates the basic concept (in two dimensions to make the picture easier to understand):

Depending on the sensitivity parameters of the calculation, it may be possible when calculating the forces at A to proceed as if there were a single body at each of locations C and E. The body at D on the other hand may be too close to C to allow this approximation.

The upshot of all this is that although we can in theory calculate gravitational forces extremely precisely, in the real world, any practical calculation has to contain errors. We can limit those errors by taking more measurements, taking more precise measurements, and reducing the approximations in the calculations at the cost of slower computation. Our space probe can be placed to within some reasonably accurate window of its intended destination, but it had better have a little fuel on board for course corrections.

Back now to climate models.

The situation is really not so different. The relationship between CO2 increases and temperature increases can be measured accurately in the lab, but effects on the real world require approximations because measurement is inexact, we have fewer data points than we’d like and accurate computation would take too long. But as long as we have a handle on the scale of the errors, we can work these into the computation, and produce an answer with a central value and a calculation of how much the actual answer could vary from that central value. This is not some strange new principle invented by climate scientists. Any science of the real world is necessarily inexact, for similar reasons to those that apply to the gravitation computation. As with any other area of science that requires complex accounting for the real world, an answer may be inexact, but not so inexact as to be useless for policy makers [Knutti 2008].

So what of the “correlation is not causation” mantra, which so often accompanies objections to climate science? Simulating the whole earth’s climate is not done using correlations. To claim this is ignorant or dishonest. The simulations are based on laws of physics and measured data (with the sort of simplification, handling of noisy data and approximation needed to do any real-world science) to predict a trend. Comparing that predicted trend against actual measures certainly can be done using correlation, but that is not the only test of the theory – nor should it be. In any case, if you have a mechanism and then look for a correlation, that correlation can hardly be said to lack causation. To claim blindly that correlation is not causation (as opposed to the more reasonable position that you should be cautious to claim causation if correlation is your sole evidence) is more or less to say that whenever you find a correlation, you must dismiss the possibility that there is a causal connection, which is clearly absurd.


References


[Barnes and Hut 1986] J.E. Barnes and P. Hut. A hierarchical O(N Log N) force calculation algorithm. Nature, 324(4):446-449, December 1986
[Knutti 2008] Reto Knutti. Should we believe model predictions of future climate change? Phil. Trans. R. Soc. A, 366(1885):4647–4664, 28 December 2008 [PDF]

Thursday, 13 August 2009

Climate of Fraud

I saw Bob Carter, a leading opponent of climate science, on SBS TV (semi-commercial government-owned channel in Australia) news tonight (13 August 2009). Shortly afterwards, the view switched to a slide carrying the claim that the IPCC’s models “predict monotonic warming, and they are wrong”. Here is the slide, captured from the online edition of the news (about 1:18 in from the start):

This is a blatant lie.

I reproduce here a graph from the IPCC’s 2007 report [Randall et al. 2007]:



A “monotonic increase” means that temperatures can only increase over time, with a possibility that they may stay level at times. Examine the graph. The yellow area represents results from 58 simulations. The black line is the actual temperature record and the red line the average of the simulations. What you can observe is that the yellow lines and their average, the yellow line, do not either increase or at least fail to drop over the entire period of the simulation.

Indeed it would be bizarre if any reasonable approximation to the real climate showed a monotonic temperature increase, unless that increase was so extreme as to overwhelm all natural variation, and no serious climate scientist is making any such claim. It is widely known that the two major short-term influences on temperature are the El Niño Southern Oscillation (ENSO) and the solar cycle. This is why climatologists define the climate as the long-term average. It is a shift in the long-term average that is a concern, not whether temperatures increase every year.

Why is the Carter crew claiming that the theory demands this? Because they want to knock the theory down, and have no evidence to the contrary, so they have no option but to lie.

That he is trundling this stuff out along with cronies from the right wing US Heartland Institute at a time when there is political activity around climate change is no surprise. That they cannot do better is. Professional science obfuscators – including Heartland – confused the public for years around the link between tobacco and cancer without resorting such obvious falsehoods.

[Randall et al. 2007] Randall, D.A., R.A. Wood, S. Bony, R. Colman, T. Fichefet, J. Fyfe, V. Kattsov, A. Pitman, J. Shukla, J. Srinivasan, R.J. Stouffer, A. Sumi and K.E. Taylor, 2007: Climate Models and Their Evaluation. In: Climate Change 2007: The Physical Science Basis. Contribution of Working Group I to the Fourth Assessment Report of the Intergovernmental Panel on Climate Change [Solomon, S., D. Qin, M. Manning, Z. Chen, M. Marquis, K.B. Averyt, M.Tignor and H.L. Miller (eds.)]. Cambridge University Press, Cambridge

Wednesday, 22 July 2009

Monty Python Climate Change Phrasebook?

Australian Prime Minister Kevin Rudd has set up a blog, with the first topic for discussion climate change. One Malcolm has taken up the opportunity to post copious volumes of alleged “facts” that purport to show that the PM has failed to exercise “due diligence”. The blog bizarrely prevents posting of internet links of any sort making it hard to point directly at factual content to debunk this stuff.

I am guessing here at the specific book “Malcolm” has used as source material but I won't name it since he doesn't (he mentions the author's name, Plimer, but I don't have the book I’m thinking of in front of me so I will take it as Malcolm’s contribution; if anyone has the Plimer book, feel free to comment on the “Malcolm” interpretation).

This whole thing reminds me of the Monty Python Hungarian Phrasebook sketch, in which pranksters have published a phrasebook rendering commonly-used tourist questions from the original Hungarian into inappropriate English (e.g., “Can you direct me to the railway station?” in Hungarian is translated to “Please fondle my buttocks.”).

Let’s look at some of “Malcolm’s” quotes from his phrasebook (approximate page numbers from the PM’s blog; they shift around as responses go up):

  • [p 85] The warmest year in modern times was 1934. The next three warmest were 1931, 1938 and 1939. All before humanity’s latest industrialisation with higher CO2 production. Other warm years: 1998, 1921, 2006, 1999 and 1953. Uh, no. The Hadley data set HadCRUT3 shows that 1998 was 0.7° warmer than 1934. The source of “Malcolm’s” error is NASA’s correction of their US data set, that has been misrepresented around the blogosphere as a significant change in worldwide trends. No data set that anyone takes seriously does not show significant warming over the twentieth century.
  • [p 81] Other likely climate drivers in the solar system include variations in: solar system centre-of-gravity; sun’s centre of gravity; Earth's orbit and distance from sun; Earth’s axis tilt and precession; moon’s orbit; sun spot cycles and solar irradiance or energy output; ...........
    The IPCC’s mandate prevents considering these and other natural climate drivers. Why? The IPCC is not a scientific organisation, it’s political.
    Rubbish. Read the IPCC's report Understanding and Attributing Climate Change, easily found by searching for attribution of climate change, and you will find this claim is completely false.
  • [p 89] Krakatoa’s 1883 volcanic explosion dwarfs humanity’s CO2. Nature rapidly absorbed Krakatoa’s sudden, huge CO2 into oceans and biomass, quickly rebalancing Earth’s atmosphere. False. Krakatau in 1883 is estimated to have produced 9.1x1011 moles of CO2. One mole of CO2 is 44g so this amount of CO2 is about 40-million tonnes. The latest figure I can find for total human carbon emissions is 8,230-million tonnes of carbon in 2006, or about 29-billion tonnes of CO2. So in one year, total anthropogenic CO2 emissions are more than 700 times the amount Krakatau vented in 1883.


That’s all I have time for. Be assured, there is a lot more where these came from.

Tuesday, 14 July 2009

Free eTax Software

After years of complaining, I’ve decided to take on the Australian Tax Office’s inability to create an eTax system that is platform-independent. While a minority of computer users use computing platforms other than Microsoft Windows, they have a right to access government services. It is also wrong that a government agency is favouring one company over other alternatives. It’s as if you were only allowed a tax break for business use of a car if it was a specific brand.

Let us be clear about this: some have said, what’s the big deal? Mac or Linux users are no worse off than people without computers who also lose out on the benefits of eTax. That’s not the point. Someone buying a popular (if not the most popular) computer platform may have their choice swayed if a major, mainstream application is not available. If you want to use a Windows machine, a Mac or a Linux system, you have good options for spreadsheets, word processing, email, web surfing, personal accounts etc. on all of them. A government agency such as the Tax Office ought not to be swinging competitiveness of rival computing platforms towards creating a monopoly.

If you want to make your voice heard, here are two things you can do:

What will I do with the petition? Once it’s reached 1,000 signatures I will alert the ATO, Wayne Swan, Joe Hockey and Bob Brown as to its existence. I will challenge each of them to take action.

The results count below includes a few bogus signatures that I’ve trimmed:



To illustrate the standards of other countries, here are some that support at least 2 platforms:

  • South Africa: Mac plus Windows
  • USA: Mac plus Windows – as far as I can tell the IRS also publishes the spec so anyone can develop software for electronic filing
  • UK – online filing, with options to submit information in more complex cases from other software (available from private sources, so a good guess is that the spec is available).

In summary, we are not talking about an insoluble problem. Even a developing country does better, and it’s not because Macs are much more popular in South Africa than in Australia. They represent an even smaller niche there than here.