Showing posts with label exponential growth. Show all posts
Showing posts with label exponential growth. Show all posts

Sunday, June 28, 2020

GOING CORONAVIRAL-- A COMMENT ABOUT EXPONENTIAL GROWTH

We humans are pretty good at understanding linear change. It's all around us:

--eat more, gain some weight; eat less, lose some weight
--press on the gas pedal, speed up; press on the brake, slow down
--turn up the heat, feel warmer; turn down the heat, feel cooler
--someone can't hear you, talk louder; someone moves closer, talk more softly
--and thousands of other daily experiences in which a small change produces a small result and a larger change produces a larger result.

However, some events don't behave linearly. There are situations where a small change can quickly produce a big effect. We're living through at least two of them right now--climate change and the Covid-19 pandemic. We're failing miserably in understanding and dealing with both of them.

A sneeze--a few tiny droplets can cause massive disruption
Photo credit: CDC

Let's do a little math--please bear with me:

Step number     Linear growth (n x 2)     Exponential growth (2 to the n) 

         1                        2                                                    2                                       
         2                        4                                                    4                                         
         3                        6                                                    8                                         
         4                        8                                                   16                                       
         5                      10                                                   32                                       
         6                      12                                                   64                                       
         7                      14                                                 128                                       
         8                      16                                                 256                                         
         9                      18                                                 512                                         
       10                      20                                               1024 
       11                      22                                               2048                                     

Let's pretend that these numbers represent two different responses to the Covid-19 virus.

The steps might represent weeks. The first column might represent a situation where the virus is fairly well controlled (e.g. through some combination of social distancing, mask wearing, testing, tracing and isolating people likely to shed the virus). On average one infected person infects approximately one other person, with the result that the number of cases grows linearly. The third column represents exponential growth--where the virus truly is "going viral." All that takes is for one infected person to pass the virus on to more than one new victim.

Notice the enormous and rapidly expanding difference as the weeks tick by. At week three, exponential growth has infected just two more people than in the linear growth model, but at ten weeks the difference is more than 1,000, and one week later, more than 2,000.

So, our first takeaway is that when we're dealing with any situation involving exponential growth, at first it's hard to distinguish from a normal linear situation that we're used to, but sooner or later it takes off explosively.

Now let's examine that phrase "sooner or later."

      Week    Doubling stopped sooner           Doubling stopped later
         1                        2                                                    2                                     
         2                        4                                                    4                                       
         3                        8                                                    8                                       
         4                      16                                                   16                                       
         5                      18                                                   32                                       
         6                      20                                                   64                                       
         7                      22                                                 128                                       
         8                      24                                                 256                                         
         9                      26                                                 258                                         
       10                      28                                                 260 
       11                      30                                                 262
Total Cases:          198                                               1290

What a difference a delay makes.  This might represent two states, one of which sees the exponential handwriting on the wall after just four weeks, institutes effective controls and ends up with 198 cases, while the other delays control measures one month more and ends up with with 6.5 times as many cases. (Or these numbers could equally well represent deaths, in which case that one month delay would have caused over a thousand needless deaths.

Obviously the numbers above are meant to be an illustration; they don't match exactly with the real world. However, you can see this in the real world if you compare the impact of a one-week delay in responding to the pandemic in New York vs. California. Here's a zerospinzone.blogspot post from March 30:

In this comparison of coronavirus cases in New York vs California, you can see what difference even a few days lag in imposing strict stay-at-home orders makes. California--population 39.5 million, first state to impose strict controls: current # of cases 6358, deaths 132. New York--population 19.5 million, delayed a week before imposing controls: current # of cases 60,679, deaths 1063. The number of cases per population in NY is 19 times greater than in California, and the number of deaths per population 17 times greater. What a tragic difference a week's delay makes.

A lot has happened in New York and California in the subsequent three months, with start-and-stop openings and closings in both states. Through all that, however, California has managed to keep a tighter lid on the explosive potential of the coronavirus. As of today, June 28, New York has documented 416,769 cases and 31,483 deaths while Callifornia has had 215,575 cases and just 5,934 deaths. Adjusted for population, late-starting New York has suffered nearly four times as many cases and more than ten times as many deaths as California. Clamping down just one week earlier in California almost certainly saved tens of thousands of lives.

Our second takeaway, then, is that when dealing with the potential for exponential growth, getting control of the rate of growth as early as possible--before the number of cases explodes-- makes a huge difference.

It's pretty clear that we, as a species, aren't very good at dealing with things that have the potential for exponential growth, and so can blast out of control at any time.  We're seeing the results of this globally as we try to put a cap on the coronavirus. Similarly, experts have been warning us for decades that, because of a number of looming tipping points, climate change too has the potential to spin wildly out of control.

However, we don't have a good excuse for continued ignorance; it's not as though the potential for dangerous exponential growth has been a secret. Consider this old proverb, a version of which goes like this:

For want of a nail a horseshoe was lost,
for want of a horseshoe a horse went lame,
for want of a horse a rider never got through,
for want of a rider a message never arrived,
for want of a message an army was never sent,
for want of an army a battle was lost,
for want of a battle a war was lost,
for want of a war a kingdom fell,
and all for want of a nail.

Clearly we've had folk knowledge about exponentially large consequences from a small event for a lot time.

Even more ancient is a story from India about a chess-loving king who promised to reward a visitor with whatever he wanted. The visitor "modestly" asked for one grain of rice on the first square of a chessboard, 2 grains on the second square, 4 on the third, 8 on the fourth, etc. It didn't take the King many squares before he realized he'd taken on an impossible task. Sixty-four doublings would have required some 18,000,000,000,000,000,000 grains of rice, enough to cover all of India a meter deep.

That ancient king learned a striking and costly lesson about exponential growth. It seems as though we--and our current leaders--need to learn it all over again, and quickly. That is, if we don't want our kingdom to fall for want of an adequate response to this microscopic but immensely dangerous virus.

-----

REA











Wednesday, July 31, 2019

FORGET MOORE'S LAW -- NEVEN'S LAW RULES NOW

Moore's law has had a pretty impressive run. For more than 40 years, Gordon Moore's prediction that the density of components in integrated circuits would double roughly every two years has held true. The result is that the microchips that run our digital world are 2-to-the-20th power, or several million times more powerful than anything that was available back then.

(In the late '60s, I wrote programs for the CDC 6600, then the most powerful supercomputer in the world. It churned out 3 million operations per second. The processor in a current iPhone performs more than 3 billion operations per second, and today's fastest supercomputer 122 quadrillion.)

By way of putting this exponential growth of computing power into perspective, imagine if you were a million times richer or a million times smarter than you were a few decades ago, and could expect to keep doubling your wealth or your smarts every two years. Not too shabby.

IBM Q Quantum Computer*
Credit: Lars Plougmann

But that's all so yesterday. Now, as the era of quantum computing surges into view, there's a new sheriff in town--Hartmut Neven--bringing us Neven's law.

Earlier this year, Neven, an economist, physicist and current head of Google's Quantum Artificial Intelligence lab, made the stunning observation that the power of quantum computers is growing not at an exponential rate, but at a doubly exponential rate. Rather than, for example, doubling ever two years, their power is doubling at a rate that itself doubles every two years.

That may not sound like a big difference. But to get a sense of what it means, check out the following table:

Step (n)       Exponential Growth               Doubly Exponential Growth
                    (2 to the n'th power)               (2 to the 2 to the n'th power)

    1                             2                                                         4
    2                             4                                                       16
    3                             8                                                     256
    4                           16                                                65,536
    5                           32                                    4,294,967,296
    6                           64                                       1.8  x 10^19 = 1,800,000,000,000,000,000

If Neven is right, the amount of progress that classical computing made over the last 40 years will be compressed into the next six years of quantum computing development. Or, as he describes it, "It looks like nothing is happening, nothing is happening, and then whoops, suddenly you're in a different world."

The tipping point that will notify us that we're in that different world will be quantum supremacy--the point at which a quantum computer can out-perform the most powerful classical computer. Since quantum computers are still in their infancy, you might think that will take a long time. Not so. Based on the explosive rate of progress in his lab and those of his competiors, Nevens thinks that will happen this year.**And, if progress in quantum computing does follow a doubly exponential curve as Nevens predicts, quantum computers will not just gradually outstrip classical computers; they will almost immediately leave them in the dust.

And it may not only be classical computers that are left wondering what just happened. As those of you who have been following developments in artificial intelligence (AI) know, some very smart people have been warning us about the risks of runaway AI--the emergence of a superhuman artificial intelligence (AGI) that could quickly build an even more intelligent system that could build a still more intelligent system etc. The result could be the emergence of an immensely powerful machine-or internet-based intelligence that might well not have our interests at heart.

Those dire warnings didn't take into account quantum AI which, as you recall, is the raisin d'etre of Neven's lab. If the exponential growth of AI based in classical computers presents us with a looming existential threat, what about the doubly exponential growth of quantum AI?

Remember that sequence: 4, 16, 256, 65536, 4294967296 . . .

-----

*To help keep track of the pace of progress in quantum computing, here's a milestone as of September, 2019, IBM's soon-to-be-available 53-qubit quantum computer:
https://techcrunch.com/2019/09/18/ibm-will-soon-launch-a-53-qubit-quantum-computer/ 

**And just to emphasize the rate of change Neven predicted, in mid-September, 2019, well before the end of the year, his lab has published a paper demonstrating quantum supremacy. A 54-qubit quantum computer in their lab took just 200 seconds to solve a problem that would take a supercomputer 10,000 years to do. You can read about it here.

-----

Robert Adler