Saturday, June 27, 2009

The Mathematics of Measurement


We are surrounded by measurement devices. The modern world is abound with instruments providing values for temperature, humidity, weight, time, speed, force, pH, radioactivity, power, height, voltage, current and even our attractiveness to the opposite sex ! It is a naive person indeed who accepts a measurement on face value. Accurate and reliable measurement of any quantity is difficult and errors, whether they be random or systematic, are normal.

For example, if you are told that the temperature of your house is 26.56632 C, a thinking person would ask:

How do you know the value to such accuracy ?

At what time did you take this value and does it vary with time ?

Is the value an average of many values taken from many positions in the house or is taken from a set position in the house ?

If taken from one position, is this value representative of the "house" as a whole ?

If it is an "average" value, how precisely is this average calculated ?

Are there any corrections made for the way the thermometers are distributed in the house ?

For example, if there are ten thermometers in the basement and only one in the front lounge, wouldn't a straight averaging of these values give a distorted figure ?

How much variation is there in the values "averaged" ?

Does this variation in the case of multiple values relate to the position of the measurement or is apparently random ?

Have the thermometers been calibrated against a standard ?

These questions all converge onto two main points: What does the measurement tell us about the system we are studying and how accurate is the measurement ?

Mathematics is highly useful in evaluating many of these issues. For example, statistics can be used to evaluate variation in measurements and calculus can be used to "average" values and quantify variation. Above all, mathematics can ease the hand waving and provide quantifiable answers to these questions.

For example, imagine you are calculating the distance travelled by a trolley moving at constant velocity, using the very simple formulae:

distance (m) = velocity (m) x time (m) or D = V x t

The velocity has been measured as 22.35 m/s and the time has been measured as 10.00 s. What is the error associated with this calculation ?

Given there crude measurement, we can assume that there the random error of the measurement is one half of the last graduation of the device. Simply put, if you are using a mm graduated ruler, we can assume that the error associated with the rule is +/- 0.5 mm. This may not be correct, for example, if my sight is poor the error may become larger or if the graduations on the ruler have been badly printed, this assumption may also be too low. Another possibility is that I incorrectly placed the ruler and introduced a large systematic error (as opposed to the "random" errors I have been discussing) However, without any more information the "half the smallest graduation" principle is a reasonable starting point for our deliberations.

Therefore, in this calculation, we can assume the that the velocity is 22.35 +/- 0.005 m/s and the time was 10.00 +/- 0.005 s.

Method 1.

We know from the fundamental derivation of calculus that dD/dt is approximately equal to (small change in D/small change in t) or more simply put the gradient of the curve at a particular point is approximately equal to the ratio of a small change in the resultant variable to a small change in the independent variable. This principle can be used to approximate the error using the following formulae:

error in D = dD/dt x error in t = V x error in t = 22.35 x 0.005 = 0.11175 m.

Therefore, we have the result of 223.5 +/- 0.1 m. This approach ignores any error in the V value, as it treats the problem as being D = f(t). This would be fine if V was truly constant or the error associated with V was very small compared to that associated with t. This approach is particularly useful when the function is complex (e.g. D = Vcos (t^2)) and other methods are difficult to use.

Method 2.

We estimate the error by calculating the answer using the most pessimistic values and take this answer away from the value calculated without considering the error. In this case:

(22.355 x 10.005) - (22.35-10.00) = 223.66175 - 223.5 = 0.16175m

Therefore, the answer is 223.5 +/- 0.16 m.

Method 3.

It can be shown by a simple proof, that when the errors associated with measurements are relatively small, that when two values are multiplied together, the relative error (absolute error/value) of the new value is the sum of the relative errors of the original values. In our example, this results in:

error in D = D ((error in V/V)+(error in t/t)) = 223.5 ((0.005/22.35)+(0.005/10)) = 0.16175 m

Therefore, the answer is 223.5 +/- 0.16 m.

Clearly, the first method underestimated the error and the results from the final two techniques should be used in this case. This simple example illustrates some of the complexity in determining what a measurement really means and how mathematical approaches are useful and dealing with the complex issues associated with measurement.

Sunday, June 7, 2009

The Business Mathematics Connection


Niall Ferguson's "The Ascent of Money" is a highly entertaining history of business that seeks to explain how business practice has had a profound effect on human history. The title of documentary series is a deliberate pun on the influential BBC TV series "The Ascent of Man" from the 1970s. This series presented a grand overview of the history of human civilisation, in which commerce was barely mentioned, where as Greek mathematics and Galileo's trail by the church were described in great detail. Apparently, a young Niall felt that something was missing and decided that once he had become a world famous economic historian he would have his revenge ! I, for one, enjoyed the pun !

In one episode, Ferguson traced the history of lending, arguing that the fortune generated by the business innovations of the Medici family and other Italian businessman effectively funded the Renaissance. This claim may somewhat under estimate the importance of artistic and scientific ideas but is certainly an effective counterbalance to the traditional dis-taste and dis-interest that many historians have shown towards the influence of commerce on human affairs.

Of particular interest to me, was Ferguson's emphasis on the impact of the introduction of "Arabic" numerals to Europe (which we now know came from India) on the ability for traders to effectively barter and exchange currency and goods. As Ferguson explained, Roman numerals, was practically useless for large commercial transactions and that Southern European traders found the counting systems used by their counterparts from the Muslim world to be far more practical. In this way, business lead a revolution in mathematics.

This link between business and mathematical innovation is profound. The very business of counting in groups of numbers (binary, decimal or duodecimal) is almost certainly linked to the growth trade in the ancient world. The concept of exponential functions is similarly linked to the development of interest calculations and banking practices in the late middle ages. It is also well established that basic concepts of probability and statistics were developed in a business context, in particular, around the complicated calculations of insurance and risk assessment in the 19th century. This interaction between business and mathematical innovation continued in the 20th century with the development of game theory and other techniques of discrete mathematics.

I'm personally not surprised by this profound link. In my own experience in small business, the back and forward of everyday commerce is a fertile ground for innovation and new ideas. The atmosphere is very different from academia, where often new ideas can be squashed by petty snobbery's, ideological positions, intellectual fashions and just plain conservatism. In business, the attitude often is, if it works, than lets use it ! This, of course, means that lots of mediocre ideas also fly but that's part of territory.

I look forward to the next episode of Ferguson's "The Ascent of Money" and learning more about the link between "dirty money" and mathematics !