Showing posts with label the observant turkey. Show all posts
Showing posts with label the observant turkey. Show all posts

Saturday, December 26, 2009

New Homeland Security Paradigm

I don't know about you, but I am getting sick and tired of these stone age jihadist Muslim terrorists walking onto a plane and trying to blow it up with improvised explosives. In a previous humorous treatment of this deadly serious subject, I suggested that everyone has to swear on a slab of bacon that they are not terrorists as they board an aircraft. These intellectually-impaired Muslim terrorist morons would never dare touch a good slab of pork.

With the latest incident of the Nigerian lighting a bomb as they approached the US, the increase in airline security has become onerous again. I say that it is time for a new security paradigm. This is the proposed Cosmological Cabbage security paradigm.

The bottom line is this. There is not enough security agents to monitor everything and everyone. For example, the city of London in England has put in 10,000 CCTV security cameras at a cost of £200 million. The results have been so-so. There is only a certain limit as to how many humans can monitor any number of cameras.

There are two approaches. The first approach is to try to develop image recognition software to help the authorities monitor the cameras. This is an expensive approach.

Instead, you get the crowd on the internet to watch the cameras for you. And you make it financially worthwhile. Right now people spend a lot of time on Facebook, or SecondLife.com or dating sites or many other time-wasters. Suppose that you put all of the cameras on the internet, and let the mob watch them. If they see something suspicious, they report it. If it turns out to be a terrorist, they get a cash windfall of say $100,000.

Now of course, the level of false alarms would be initially high, because of folks trying to cash in, but you let the "crowd is always right philosophy" work for you. A single report of a possible terrorist in Des Moines Iowa is not to be taken seriously, but 10 reports of a terrorist getting on a plane in Nigeria is worth investigating. Thus the authorities who now watch the cameras would be employed to investigate the reports, instead of watching cameras. You would develop metadata as to what reports would be taken seriously.

I can see this concept being extended to lotteries and crime fighting. Various locations such as convenience stores and ATMs would be put on the internet and people would pay a small amount to a central kitty and watch these cameras. When they averted a crime, they would win the pot.

But in the meantime, the search giant Google would not be idle. They would develop a video search engine that would monitor these images, and as an observer, you could search CCTV with the parameters of white windbreaker, blue jeans and Columbus Ohio, and you could watch your husband or lover delivering flowers to his other sweetheart, as he cheats on you.

This could open up a whole new range of businesses and money-making paradigms. But I would be content if it paved the way for less security at airports. However, the real issue at hand now, is protecting ourselves during air travel. The new measures punish the wrong people -- the travelling public, instead of the socially-retarded, uncivilised few terrorists.



As it stands, I am in favour of banning all radical Muslims for any air travel to and from and within North America. And that takes me back to swearing on a big slab of pork that you will not carry explosives onto an airplane.

Tuesday, December 15, 2009

The Mathematics of Correcting Estimations

I used to work for a guy who was an amazing project manager. He was an army officer and a logistician. He did logistics. He never rose beyond the rank of captain, yet he understood basic principles of logistics. His favourite saying was that an army has to eat, crap and move. Therefore the three most important logistics elements of any army project and maneuvers were food, toilet paper and gasoline. Everything else was just an extra detail. When it came to estimating, his idea of doing so was to raise his thumb like a rifle sight and pretend to shoot randomly at the wall. When a target eventually appeared, he would measure the difference from his first random shot to where the target appeared, or the delta and adjust the rest of his estimations and assumptions with the same relative degree of error.

This got me to thinking in the vein of the Black Swan, by Nassim Nicholas Taleb, who's philosophy is that we really know nothing about the future, therefore we cannot predict much, until we know something. And the past does not always indicate the future. So how can we proceed in this world based on projections that are subject to the whims of randomness.

In my twenty year consulting career, and including various businesses that I have been involved in, I have made many predictions. These appeared in business plans, pro forma projections, project plans, and other documents that my clients paid me to produce. The strange thing was that there was never a major penalty for being wrong, even though I was supposed to be the expert. The most important deliverables were the projections or predictions themselves, and not how accurate or reliable they were.

Many things hinder a prediction from coming true, but is there a way to track how accurate any prediction is? Is there a rule of thumb, or a gross discounting equation? Is there a way to normalize someone's educated guesses to more accurately reflect reality? Is there a tool to do this? These damn black swans keep getting in the way of making accurate predictions. Is there a possibility of Mandelbrotian mathematics coming to the aid of assessing predictions -- especially numeric predictions?

The Gaussian method would be to go back and calculate averages and standard deviations and then try to ascertain a degree of certainty or a coefficient of correlation? Gaussian methods do not work where there is a possibility of two directions or vectors of truth and there is no direct correlation between the two except for the existential solution to the function. The easiest example of this is that suppose you have a function whose answer lies either in a Venn set of A or B and the only thing tying the two sets together in any way, is the result of the function could be a member of either set.

This is like the problem of estimating, predicting or putting down pro forma numbers. Either you over-estimate and the ultimate reality is less than you estimate, or you under-estimate and the ultimate real figures are way above what you predicted. This can roughly correlate to A for the over estimation and B for the under estimation.

Needless to say, that the answer or reality lying either in A or B doesn't translate well into Gaussian math -- especially when there is no relationship between A and B such as a reciprocal or multiplication by -1 or any other visible mathematical relationship. This is were the mathematics of the situation becomes what Taleb calls Mandelbrotian, and I call Ulamian. (Click on the Stanislaw Ulam label at the bottom of this post for an explanation).

So you have a sort of a dipole representation of the outcome of the normalizing function to assess predictions. Remember, what I am looking for is an equation or series of equations that takes someone's most educated, erudite and most thought out predictions or guesses, and process them mathematically to get some sort of realistic assessment of someone's predictions.

I am a data pack rat, and I went back to many many predictions that I have made in the past in my consulting career. Needless to say, none of my predictions or estimates was bang on. It was my nature and perhaps universal nature to over or under estimate in almost every case.

When it came to revenues, I would grossly over estimate. When it came to units sold, units produced, or units delivered, I would grossly over estimate. I was over confident in the amount of time that things took, and I over-estimated our production capacity to get things done. If I estimated that we could write 500 lines of production code a day, we would actually write something closer to the one hundred mark.

Another amazing factor was that the consequences of the estimates or predictions were overwhelmingly on the negative or unpleasant side. If I were estimating possible revenues, the estimate would be on the "bad news" side. I came to the conclusion that it was just like the universe -- entropy was at work. Things are much easier to destroy than to build. Bad happens more often than good. In short in was the Peter Principle all over again -- "If something can go wrong -- it will!"

So was there a rule of thumb to correction estimations? I came up with the dipole concept which is shown in the graph below:


There are two curves connected by a straight line at the zero x axis. The A Venn set is the left most curve. The B Venn set is the rightmost curve. There exists another incarnation of this graph that is an isomer if you will, where the curves are mirror image reversed in y axis magnitude. Lets go with the variant pictured above.

I went back and did some analysis of all of my predictions. They fell into two camps -- one where I over-estimated things and they did not come to pass, and those where I under-estimated things and they came to be in a much greater numerical quantity than I expected. I found an interesting thing.

When there was a problem or negative outcome with under-estimating (such as under-estimating possible revenues in a cash-starved start-up company), there was an 80 percent probability that it would be the reality. In only 20 percent of the cases was the surprise a pleasant one. And the obverse is true as well. If I underestimated and the actual figure was much more, it was usually time to completion or other numbers that had negative or nasty implications.

I fired up my mathematics and came up with the Cosmological Cabbage Prediction Normalization Formula, or the CCPNF. It is a dipole type of thing where you get two ranges of answers. You get a set of A answers, where the real value will appear somewhere in the set if the originator overestimates, and you will get a set of B answers if the originator underestimates. The probability of A or B is 80 percent of which ever outcome will cause the most harm or the most negative consequences.


So let's take the hypothetical case that you are a venture capitalist, and someone says that they will sell 100,000 widgets. You suspect that this is an gross over-estimation. So you take your handy Cosmological Cabbage Prediction Normalization Formula or CCPNF and do the following calculations:

x = the predicted value

A(upper) = 0.056x + (.341 *(0.056x))
A(lower) = 0.056x - (.341 *(0.056x))

The upper limit of A is 7,896 and the lower limit is 3,304. The reality has an 80 percent chance of being between those two figures.

Now, lets suppose that they underestimated. According to my formula, the real figure will lie between the lower and upper values of B.

x = the predicted value

B(upper) = 1.68x + (.341 *(1.68x))
B(lower) = 1.68x - (.341 *(1.68x))

In this case, B(upper) is 225,288 and 110,710. But if this will be a pleasant thing, then there is only a 20 per cent chance of this happening.

How is this useful? Let's go back to the case of the hypothetical venture capitalist going over a business plan. If the business plan projects that they will sell 100,000 widgets, then the formulae says that if things go wrong, they will in fact sell between 3,300 and 7,800 widgets instead of the predicted 100,000. That is roughly how much people over-estimate by. And if there numbers are sound, and their plan is sound, and they have under-estimated, then they should sell between 110,000 and 225,000 widgets.

So there you have it -- a rough rule of thumb to discount numerical predictions. I look forward to real world validations of the CCPNF.

Tuesday, November 17, 2009

Wild Turkeys and Things

Cruise ships in the harbour.

It seems strange posting pictures of the warm tropics while eight wild turkeys walk through the fallen autumn leaves, pecking away at a half-dead, frost-killed lawn. It is ironic that they are wild turkeys, because I am thinking of my observant turkey concept. (more to come).

Everything is a bit surreal. I am using remote desktop to log into Nassau. I am writing code that resides on a server 1,400 miles away. It is cold and sunny today in the foothills of the Laurentians. I see the fir-clad hills with the fractal geometries of the hilltops, and the outlier trees every once in a while, growing much taller than its neighbours, silhouetted against the cobalt blue sky.

And the words "fractal" and "outlier" seem strange to me, yet it is quite descriptive of what I am seeing. They are somehow the perfect level of abstraction, as I think about the concept of an observant turkey who knows that something weird is up. (Note, this is my next book idea, that I am developing). To reiterate the idea of an observant turkey, I use the example of a bunch of turkeys who for 1001 days have been fed and nurtured by human beings. However they are about to have their beliefs about the "nice" humans, built on past observations, shattered on the Wednesday before Thanksgiving. Only the observant turkey notices that something is strange of late. What it is, he has no clue, but he feels that the strange events might be a precursor to some unpredictable event.

Taleb, in his book The Black Swan, says that these unpredictable events are black swans, and it is the mathematics of Mandelbrot that describes them, rather than the mathematics of the Gaussian curves and averages. For example, if a turkey builds a model of events based on history, there is no way that he can predict the killing event. The average of his existence says that he will be fed as normal.

My contention is that highly unpredictable events are not Mandelbrotian, but rather Ulamian, named after the Polish American Ulam who first described cellular automata (Click on the Cellular Automata label to get an explanation). Mandelbrot's equations have a large degree of perceived randomness and uncertainty, but they do not have the capacity for extreme chaos that some of Ulam's cellular automatons do.

And this got me thinking deeper into the problem of chaotic events in any system. Mandelbrotian events can arise from Ulamian events but the obverse is not true. The ordered fractal geometries and topologies can be generated by cellular automatons, but fractal geometries cannot be true cellular automata in all cases because certain classes of cellular automata break down into chaos.

Mathematics is a symbolic language for many things, and while I talk about geometries, these equations can be applied to many things in life, or things and events can be modeled with these concepts.

I don't expect you to understand or even follow, and I will forgive you if you think that I have been smoking some organic substances or require a tin foil hat, however I am thinking out loud in a stream of consciousness that seems to make sense to me. I will let you know if this is a bona fide hallucination.

I will also try to find a better way to explain it without all of the arcane and esoteric language.

Sunday, November 15, 2009

Abstract Things and Cellular Automata

With my blog graphics, I am taking a real abstract tack in the past couple of days. The above shot is of a marlin fishing boat leaving Nassau harbour in the morning for a day's fishing. I was riding on the back of the Bo Hengy fast ferry to Harbour Island off Eleuthera when I snapped the shot.

I am also on a highly abstract mental tack as well. I have been devoting a lot of brain cycles to cellular automata. What the heck is cellular automata, you ask. I'll give you the first few sentences in the Wikipedia entry:

A cellular automaton is a discrete model studied in computability theory, mathematics, physics, theoretical biology and microstructure modeling. It consists of a regular grid of cells, each in one of a finite number of states, such as "On" and "Off". The grid can be in any finite number of dimensions. For each cell, a set of cells called its neighborhood (usually including the cell itself) is defined relative to the specified cell.

Still clear as mud. Here is a pic of a simple cellular automaton:



This is an incredibly simple cellular automaton. Here is a practical explanation of how it works: Divide your computer screen into say 500 grid spaces or cells. Take a set of 5 colours. Assign each grid space a random colour, but apply a few rules. For example, one rule can be that no two adjacent sides (top, bottom, left and right of the cell) can have the same colour. Another rule can be that you can't have the same colour for more than three grid spaces. Choose some arbitrary rules, and then start the program and let it run indefinitely, scrolling up and continuing on when you reach the last row.

You will be amazed. At first it will be a mumble jumble. Then out of chaos, order will form. At first you will see a small orderly geometric pattern arise. Then it will arise again and start getting more complex. Then you will start to see snowflakes and wildly complex geometries. Then you will start to get the chaos and it will break down and start over again.

Here is a complex cellular automaton caught in a particularly neat state:

I first read about cellular automata in Scientific American in the the 1980's. I was fascinated with it then, but I never had a chance to do much with it. To me, it is proof that there can be order in chaos.

I got to thinking how this applies what Taleb, in his book The Black Swan, describes as unpredictable events or black swans. Unpredictable events would become less unpredictable if you had some inkling of the coming chaos.

This sparked the genesis of my next book manuscript. In cellular automatons, when you are in a state of high complex order, the automaton signals the coming chaos with discordant random pixels. You don't know what is going to blow up, or what random event will happen. You will just know that something is coming.

This approach takes the black swan out of the mathematical realm of the Mandelbrotian (after Benoit Mandelbrot and fractals) into the realm of what I coin the Ulamian.

Stanisław Ulam while working at the Los Alamos National Laboratory in the 1940s, studied the growth of crystals, using a simple lattice network as his model. His colleague was John von Neumann, a mathematician who made great contributions to mathematics, physics and compute dynamics. Together they came across cellular automata, although they planned to use it for a model of self-replicating robots.

So what does taking random events out of the Mandelbrotian realm and putting them into the Ulamian realm? Mandelbrot's mathematics while pseudo random, has a high degree of intrinsic order. The Ulamian realm has much more chaos in it, which is more reflective of the human condition and events driven by human action.

How am I going to tie this together? I haven't decided on a working title, but it will probably be either "The Random Pixel" or "The Observant Turkey". Taleb gives the classic problem of unpredictability of the future using the past in the Thanksgiving Turkey scenario.

Take a thanksgiving turkey. For a thousand and one days, humans feed and care for the bird. Based on the past history, the turkey gets a warm and fuzzy feeling for the humans that care for it. Because for 1001 days, it has been nurtured, it will predict that life will continue on. Then comes the Wednesday before Thanksgiving. The neck-wringing turkicide was not predicted by any of the turkeys. Taleb contends that this was a black swan for the turkeys.

I take this contention a little further. If the turkey was observant, it would have noticed the random pixel in the cellular automata of its existence. For example on that fateful morning, instead of a whistling farmer bringing corn, a big huge truck pulls up. That is the random pixel that signifies the coming chaos. The observant turkey in the bunch would have noticed that something was different. If the turkey was really observant, it would have noticed that in the last month, the food was more plentiful and its comrades were getting incredibly fat.

And that is what thoughts go through this head on a Sunday morning in November. I think that I will go out for some random pixel spotting. This is a book that could literally write itself. More to come.

Sunday, November 1, 2009

Musings On Mandelbrotian vs Gaussian Aspects of the Universe

(Image from: blogs.warwick.ac.uk)

In a previous blog entry, I mentioned how Nassim Nicholas Taleb's book, The Black Swan, made me angry as I read it, even though I agreed with it. I am just re-reading the real meat of the book, where the author contends that Gaussian distribution and the bell curve does a huge disservice to man. The world is not bell curve average, but rather Mandelbrotian, as in Benoit Mandelbrot's classical work on fractals.

I must admit that I am an early adopter of the ideas of Benoit Mandelbrot, and his epic book "The Fractal Geometry of Nature" has been in my personal library since 1985.

My mind keeps going over Taleb's ideas. At first I thought that he was thinking too deeply of a simply self-evident thing. After all, experts get to know more and more about less and less until they know everything about nothing. And then I thought that Taleb was capitalising on a meme that turns out to be an incredible moneymaker for him. And that is possibly true as well.

I had just read something that Taleb further refined his ideas such that anything dealing with gravity behaves in a Gaussian fashion and the exclusion set (which is everything else) is Mandelbrotian.

So on this fine morning on the first of November of this year, I have come up with some musings of Mandelbrotian vs Gaussian aspects of the world.

1) Suppose that you are a Gaussian dogmatist, and your Gaussian beliefs have a sort of high degree of correlation to the curve, as metaphorically depicted below in the modified graphic. Reality is the underlying fractal, and the red bell curve is how you believe the world works. There is enough of a degree of correlation to make it work for you except in three areas (the really dark blue areas behind the red line). But since you tend to ignore these areas and live in the Platonic fold, the curve is "good enough" for you.

The really big outlier is the area by the yellow arrow. This is the outlier that whipsaws you out of the market and makes you lose your retirement money. This is the outlier that puts you on the Air France flight that disappears over the ocean. This is the Black Swan.

BUT, can it really be an outlier or a Black Swan, or unpredictable, given the underlying fractal?

Can one know the underlying fractal geometry that caused that?

I was talking with a risk manager of the biggest bank in these islands after a rather nice dinner that the Lovely One cooked. It was Julia Child's recipe for Boeuf Bourgignon. He told me that he doesn't buy into Talib's ideas because the Gaussian curve works fine for him and the ultimate proof is that the bank makes money every day.

That got me to thinking. Can there be a quantum element whereby events in life have a duality of Gaussian and Mandelbrotian. Just like quantum physics where light behaves as a particle or a wave depending on how you measure it, can events in our histories be either Gaussian or Mandelbrotian? Can Richard Feynman's The Sum of All Histories be applied here?

I don't have the mental discipline today to think these things through, or to put some mathematical rigor behind them. I just let these thing roll around in my head. I would think some more about these things, but I have to go swim in the ocean. Maybe I will have a moment of clarity as I swim the half mile of surf today.

I hope that the Great Pumpkin visited you last night.