Something about maths

This problem was posed on FB by an old school friend.

For those with an over stimulated interest in mathematics, riddle me this ….. if I but $10 worth of petrol at $1 per litre I get 10 litres ….. if I buy $10 worth of petrol at $2 per litre I get 5 litres ….. if I buy $10 worth of petrol at $1.50 per litre (as $1.50 is half way between $1 and $2) I should get 7.5 litres ….. but I get 6.66 litres ….. why is it so!?

Mathematics gives us away of looking at the world and abstract problems, often by creating a model with an equation and some assumptions. The equations simply relates what is on the right hand side, normally a computation, to a single value on the left hand side. The LHS is made up of things we call variables, and arithmetic operations are performed to produce a single value.

The above problem looks like a paradox at first until it dawns on you that this is a class of problems described by the equation as y = c/x, where c is the amount of fuel in litres and x is the cost in dollars and y represents the amount per unit by cost. e.g. c=$10 and x=$2 then y = 5 litres per dollar.

The assumption made in the statement of the problem assumes a linear relationship, but the graph of y = 1/x with x>0 shows a curve with the behaviour that as x gets small then y gets big and as x gets big then y gets small, and changes in y happen quickly and not uniformly as x changes uniformly and x=1 gives y=1.

Many will know the frog in boiling water parable. The above is a demonstration of exponential growth for x>1 and unfortunately this does not have nice even spacing for the y values for evenly spaced x values and hence we can’t claim that $10 worth of petrol at $1.50 gives a result evenly divided between petrol costing $1 and $2.

We could make an Integer relationship and force the result e.g. A(x) = {(1, 10), (1.5, 7.5), (2, 5)} and so on, and if we plot these ordered pairs we would see they lie on an imaginary straight line.

Exponential relationships exist everywhere in nature – weather, smoke, economy etc. and commonly we often don’t understand that things may well be speeding up or indeed slowing down, it is probably fair to say our brains tend to shape what we see into something that fits what we know and this is mostly linear. It is why we need to be very careful with claims that appear linear when in fact they are better modeled as exponential.

You will find a very interesting discussion on how it is vital that we understand exponential growth – see Economics and Exponential Growth the point of this article is what has happened in the past may happen 50 times quicker in the future, and the 100 times, then 1000 times i.e. every accelerating or the opposite. Think population growth, carbon entering atmosphere, fish numbers etc.

And a word of caution on models and simulations of these using computers – models are abstractions of reality and exist under assumptions, which may or may not be accurate.

The stock market is an interesting system to consider – by system I mean something that has inputs and outputs, at a simple level we have money to purchase stock as the input and the twin outputs of dividends and capital growth or decay. Today the markets is monitored down to mico-seconds and buy and sell decisions are made as much by decision making software as are made by humans. Caught in the middle of all this it seems to me that it is impossible to draw trends, or those that are drawn are done so on a very much smaller time scale that say a day. Does the market behave in a linear (don’t think so) or exponential manner, probably the latter if you look at the long term chart, but at another level it could be completely random. The only reason we are interested in equations is because they allow use to try and predict things but getting linear and exponential mixed up leads to very poor predictions.

Lets turn to another idea, that of randomness and models. Ants have been studied as they come out of the nest and go to either of two food sources to the left or to the right meeting other ants that are coming back to the nest. It seems that ants to one of three things: go to the food source they have always gone to and never change, randomly choose as they emerge or are influenced to change their mind by a returning ant. I find that fascinating! Consider the most recent election and assume 70% of people vote as they always done, 20% make a random choice and 10% are influenced to change their mind at some point in the time they started thinking about voting and when they tick the box. You can easily model this with what is terms a simple stochastic process and you can run different models making different assumptions about the size of each group – clearly the larger the last group the more you maybe able to influence the result via advertising or some other intervention. The larger the random group the more difficult it becomes to predict, you only need one more vote than your opponent to win.

What I have done here is made a leave of faith that the Ant model is a good one to apply to voters, but when you reflect maybe I am not so mad for doing so – decision processes are open to study, here the voting process does seem to be able to be categorised. For instance we could add those that donkey vote, or those that will vote informal etc. Imagine also if a particular form of advertising was seen to act in an exponential manner i.e. each single day the shift of voters accelerated from one group to another due to FB advertising in a direct sense – this phenomena does in fact seem to exist i.e. phases such as campaign momentum and landside seem to suggest voters can move quickly in time.

My final ramble is about binary arithmetic, and again I find this amazing that something so simple is so, well wonderful. Computers represent stuff as on or off, two states, hence we can use a 1 or 0. How do computers subtract numbers – well by adding complements, this simplifies things in terms of circuits, reduces heat and speeds things up.

1 + complement = 0 this is the result we want. Adding 1 + 1 in binary gives 10 (thing adding 5+7 gives 12), I will not go into bases and place values.

Lets consider we have groups of three 1s and 0s to represent 0 to 8 i.e. (000), (001), (010), (011), (100), (101), (110) and (111) note there are eight groups hence (000) is 0 and (111) is 8.

(000), (001), (010), (011), (100), (101), (110) and (111)

Complement (111), (110), (101), (100), (011), (010), (001) and (000)
add 1 to each (000), (111), (110), (101), (110), (011), (010) and (001)

Now add each pair from the first row to the third row —what do you get, ignore any carry at the end? You get all zeros!

We have our result – value + complement gives ZERO—beautiful.

 

Phenom Pen

Last Friday we ventured to Phenom Pen for the weekend, it was a 30 minute plane trip, we opted for this rather than the 8hour bus or 4hr boat.

Prior to landing the spread of the Mekong could be seen covering a vast area. We stayed in a hotel called the Frangapani and it was right next to the merging point of the Mekong and the Tonle Sap river, which drains out of the lake by the same name.

Our journey into the hotel was via Tuk Tuk and we got to see the traffic up close, nothing exceptional, but it did feel relaxed much like Siem Reap as compared to down town HCMC, which is just load, dirty and fast!

The hotel was lovely, friendly staff and great roof top restaurant, the bed was also nice – we slept well and were up early waiting for friends so we could go off to the Killing Fields. The taxi arrived an hour early and we left just before 10am detouring to avoid the congestion caused by a protest against the Government not ceding to the  will of the people as expressed in free elections and leave office. In fact the tourist numbers were right down as the news of civil disobedience and the potential for over reaction from the police and army was keeping people away.

The Killing Fields is a somber and grisly place – the collection of skulls being hard to view, and when you realise that this was just one of many and that 3million died in about a three year period of Pol Pot rule, it is hard to understand. The prison that we visited early on route, an old school, is also a terrible reminder of the atrocities committed with the gallows still in plain sight.

At one point on route we past hordes of people on the road, both sides, and these turned out to be workers from the factories heading home for lunch, there are factories all over, newly build or in construction, often they have blue roofs and have a sinister aura, mostly there were no signs saying what the purpose of the factory was – low wages and exploitation were in the news!

Sunday saw Cathie and Helen  off shopping ALL day except for a quick lunch time visit where they interrupted John and I at the Irish pub next to our hotel – we had viewed the museum.

Monday saw us off to see an Ankor Watt type ruin at Tonle Bati and a visit to the wild life rescue farm. The latter was most unexpectedly well developed with large spaces available to all animals, many of which were victims of poachers or urbanisation or farm clearance. The Sun Bear being the  highlight.

As always the people were fantastic and it was a pleasure. Pictures at:

https://plus.google.com/photos/115822802180325365262/albums?banner=pwa

 

Angkor Wat

What a fabulous place, Siem Reap was like a small country town, friendly people and the trips out the temples amazing. We set off each morning in a Tuc Tuc with a guide and driver, I was at first hesitant (my risk analysis brain told me this was risky), but it was the best way to get around, the open air keep you cool. We also hired the young taxi driver who had picked us up at the airport and he took us high into the mountains.

I will let the pictures speak for themselves.

https://static.googleusercontent.com/external_content/picasaweb.googleusercontent.com/slideshow.swf

Han Noi visit

Went with the school swim team. It was cool and I could get out and look around. A different city to Saigon, the lakes in the middle have long history, and I began to appreciate the significance that water has played in how Vietnam evolved. Many of the myths and legends revolve around water, the big rivers and Mekong delta have shaped the southern parts.

https://static.googleusercontent.com/external_content/picasaweb.googleusercontent.com/slideshow.swf

Da Lat

Cathie visited in late September 2012 and we took a trip to the highland city of Da Lat – another 8 hour drive, you can also fly so it turned out, a tad quicker, but then you don’t get to see the sights.

It is simply a lovely area, over 1000m so no humidity, much like the highland areas of Sri Lanka.

Here are three slides shows.

https://static.googleusercontent.com/external_content/picasaweb.googleusercontent.com/slideshow.swf

https://static.googleusercontent.com/external_content/picasaweb.googleusercontent.com/slideshow.swf

https://static.googleusercontent.com/external_content/picasaweb.googleusercontent.com/slideshow.swf

Mui Ne

In early September 2012 I decided on a weekend trip to see the sand dunes of the coastal area of Mui Ne, this turned out to be a bit more time consuming than I expected. I turned up at 8am at the tourist office in HCMC and eventually boarded a bus, which was a normal local bus….all very interesting, comfortable and with a few stops as it took 7 hours to trek the 200klms!!

The bus weaved its way in and out, passing regularly on the outside into the on coming traffic, and this was a wall of traffic and on one occasion an inside route around some slow moving truck.

I was dropped on the side of the road not the resort I had booked….fortunately I saw a sign and walked the 1k in the hot sun and hot and flustered when I arrived, but the room was sunning and the view beautiful, after a walk on the beach and dinner I got set for an early start – 4am to see the sunrise over the sand dunes.

Two wake up calls got me into the jeep at around 4:15 am, and off we set, with me jammed up the back bouncing around – no seat belts, but running commentary of what we will see – and suddenly there the dunes were, a great expanse of sand inland by about 10kms and the seen was magical, as you will see in the slide show below.
https://static.googleusercontent.com/external_content/picasaweb.googleusercontent.com/slideshow.swf

At around 6:30am we set off to see the local beach scenes and have breakfast, this was some glutenous prawn things but I liked them and consumed plenty. The locals were out in force – best part of the day as boy did it get hot around midday.

The fishing scenes were great, see the pics, all the traditional boats, the round ones included and much activity on the beach, and everyone was so friendly.

The final things was a walk up a creek to look at some interesting erosion and colours of the sand and cliffs were striking.

Off back to the resort and then a 7 hour trip home – all terrific, next time I will take the train, it is only 4 hours.

 

First Visits Down Town Ho Chi Mich City

I live in a resort called the Riverside, right next to the Saigon River, initially I was in a third floor apartment, the a ground floor with a garden view and now we have a ground floor with panoramic views of the river out cover our sliding door to the patio – the river is less than 10m away, as is the bar.

https://static.googleusercontent.com/external_content/picasaweb.googleusercontent.com/slideshow.swf

The above slide show I think needs Flash MAC people! The pictures of the rive and boats is what happens all day and night, endless traffic and the sunset can as picturesque as any place on earth. There are some views of the down town – the Cathedral and on of the tangle of Internet cables which adorn every intersections.

The following two slideshows are just more of the city and surrounds, the hustle and bustle of Sai Gon and the mass of bikes is hard to comprehend at first. There are also some cloud and sunset pics – I am told I over do these, but like Tuner the colours and patterns of the light in the sky are endlessly fasinating.

https://static.googleusercontent.com/external_content/picasaweb.googleusercontent.com/slideshow.swf

https://static.googleusercontent.com/external_content/picasaweb.googleusercontent.com/slideshow.swf

This blog entry brings me to about mid-September when I made a visit to the Mekong via Mr Son’s taxi.

The Mekong is just amazing, a place of wilderness, vast tracts of water, canals dating back thousands of years, French developments, all sorts of plants and animals, many only found in the Mekong. It is home to the Charm people who as Islamic and date back 2000 years when they colonised from Indonesia and at that time were influenced by the Indian religions. They lost power and influence in the mid-1400’s, but there building legacies lives on as we shall see in a latter blog about My Son.

https://static.googleusercontent.com/external_content/picasaweb.googleusercontent.com/slideshow.swf

I did the standard tour, all very interesting. The low boat is carry sand dredged from the river and is bound for Singapore’s beaches!

 

 

Dealing with it

Today I have been listening to music to spark the mind, to lift the curtain. My mother who was a classically trained musician introduced me to Handle’s Messiah and Mozart’s Great Mass Cm and the Requiems – in Dm and others. If you are keen you can  listen via YouTube.

Great Mass in Cm

Handel’s Messiah Chorus

These are uplifting, whilst celebrating Christ it is hard not to be emotional involved when listening, at least this is what happens to me and I am an atheist, but as someone said to me recently you are spiritual. I also listened to some Wagner – the old joke being “Does you name start with a V Mr Wagner, IX W”, anyway, I have always fund his music confronting almost brutal, in modern terms he was heavy metal – the Overture to the Flying Dutchman being a good example: Overture

Wagner had some odd views, the existence of inferior races being one, and his music  adopted by the person responsible for the greatest world tragedy yet. It raises the question, which Derrida et al. posited that “there is nothing but the text”, this is the basis of post-modernism, in that literary works can be interpreted and deconstructed in multiple ways, each of equal validity. I have always puzzled on this, Tolstoy as I understand him argued that artistic works, primarily literature I guess, has a serious purpose and the writer should try to communicate clearly, he reportedly was most put out when readers or critics did not interpret his writing the same way he did – play writes like David Williamson are the same . You can image Tolstoy saying to Derrida “You can stick your multilayered post structural analysis – I mean what I say and that is that, there is no other valid interpretation”.

Bob Dylan did not want to be held up as a beacon of rebellion, he reacted against being included into the protest and political movements – I think he was probably saying I am free to write what I write: you are free to interpret in whatever way you wish – Blown in the Wind and Time They are a Changing being the two most adopted songs by the left.

It is interesting when you view a painting, it affects you – or at least some do, it is clearly subjective, but on the other hand how come experts can decide what is a good and bad painting. Doesn’t this imply some level of objectivity, but it is clearly different to the objectivity of Science. All that is happening with art critics is a kind of power over what you should think, hence we had Picasso et al. saying no, the old masters where fine but art is about…..well about what?

My first blog for a while, if you have got this far I am going to update the recent travels and possibly you will find something there, and maybe in what I said above, which is purely my opinion. Love to all.