Showing posts with label analysis. Show all posts
Showing posts with label analysis. Show all posts

Thursday, January 01, 2026

Upping the password ante

 kw: computer security, passwords, analysis

Almost thirteen years ago I wrote about making "million-year passwords", based on the fastest brute-force cracking hardware of the time, that was approaching speeds of 100 billion hashes per second. The current speed record I can find is only 3-4 times that fast, at just over 1/3 of a trillion hashes per second, but it is a lot cheaper. It seems the hardware scene hasn't changed as much as I might have thought.

I surmise that more sophisticated phishing and other social engineering schemes have proven more effective than brute-force pwd file crunching. However, the racks of NVidia GPU's being built to run AI training are ramping up the power of available hardware, so I decided to make a fresh analysis with two goals in mind: firstly, based on a trillion-hash-per-second (THPS) potential rate, what is needed for a million-year threshold?, and secondly, is it possible to be "quantum ready", to push the threshold into the trillion-year range?

I plan to renew my list of personal-standard passwords. The current list is five years old, and contains roughly twenty items for various uses. I have more than 230 online accounts of many types, so I re-use each password 10-15 times, and I activate two-factor authentication wherever it is offered. The current "stable" of passwords range from 12 to 15 characters long. I analyzed them based on an "All-ASCII" criterion, but since then I've realized that there are between six and 24 special characters that aren't allowed in passwords, depending on the standards of various websites.

The following analysis evaluates six character sets:

  1. Num, digits 0-9 only. The most boneheaded kind of password; one must use 20 digits to have a password that can survive more than a year of brute-force attack.
  2. Alpha1, single-case letters only (26 letters).
  3. Alpha2, both upper-and lower-case letters (52)
  4. AlphaNum, the typical Alphanumeric set of 62 characters.
  5. AN71, AlphaNum plus these nine: ! @ # $ * % ^ & +
  6. AN89, AlphaNum plus these 27: ! @ # $ % ^ & * ( ) _ - + { } [ ] | \ : ; " ' , . ? ~

The only sets that make sense are AlphaNum and AN71. The shorter sets aren't usually allowed because most websites require at least one digit, and usually, a special character also. AN89 provides a few extra characters if you like, but almost nobody allows a password to contain a period, comma, or any of the braces, brackets and parentheses. I typically stick to AN71.

The calculation is straightforward: take the size of the character set to the power of the password length. Thus, AlphaNum (62 in the set) to the 10th power (for a 10-character password) yields 8.39E+17. The "E" means ten-to-the-power-of, so 1E+06 is one million., a one followed by six zeroes. Negative exponents (the +17 above is an exponent) mean the first digit is that many characters to the right of the decimal point.

Next, divide the result by one trillion to get seconds; in scientific notation, just subtract twelve from the exponent, which yields 8.39E+05, or 839,000 seconds. The number of seconds in one year is 86,400 × 365.2425 (86,400 seconds per day, 365.2425 days per Gregorian year). Divide by this; in this case, the result is 0.0266, or about 9.7 hours.

Are you using a 10-character alphanumeric password? It will "last" no more than 9.7 hours against a brute-force attack with a THPS machine. If you were to replace just one character with a punctuation mark, such as %, the machine would find out, after 9.7 hours, that your password is not alphanumeric with a length of ten. It would have to go to the next step in its protocol and keep going. If its protocol is to run all 10-character passwords in AN71 (perhaps excepting totally alphanumeric ones, since they've all been checked), 71 to the tenth power is 3.26E+18. The number of seconds taken to crack it is now 3.26 million, about a tenth of a year: 38 days.

We're still kind of a long way from a million-year level of resistance. To save words, I'll present the full analysis I did in this chart.


The chart is dense, and the text is rather small. You can click on it to see a larger version. The top section shows the number of seconds of resistance each item presents, with one hour or more (3,600 seconds) highlighted in orange. The middle section lists the number of days, with a pink highlight for more than seven days. The lower section lists the number of years with four highlights:

  • Yellow for more than two years.
  • Blue for more than 1,000 years.
  • Green for more than one million years.
  • Pale green for more than one trillion years, what I call "quantum-ready".

For what I call "casual shopping", such as Amazon and other online retailers, the "blue edge" ought to be good for the next few years. For banking and other high-security websites, I'll prefer the darker green section. That means, using AN71, I need 13-character passwords for the thousand-year level, and 14-character passwords for the million-year level.

There is one more wrinkle to consider: The numbers shown are the time it takes a THPS machine to exhaust the possibilities at that level. If your password is "in" a certain level, it might not last that long, but it will last at least as long as the level to its left. For example, AN71 of length 12 shows 520 years. Not bad. If you have an AN71 password of length 13, the cracking machine would need 520 years, to determine it isn't 12 characters or fewer, but once it starts on 13-character passwords, maybe it will take it half or more of the 36,920 years indicated to find it, but it might luck out and get there much sooner. But it still consumed 520 years getting this far. Anyway, if you're going for a certain criterion, adding a character makes it definite that at least that length of time would be needed for the hardware to get into the region in which your password resides.

Another way to boost the resistance is to have at least two special characters, one (or more) from the AN71 set, and at least one from the rest of the AN89 set, such as "-" or "~", wherever a website allows it. Then a machine that checks only within AN71 will never find it.

With all this in mind, I plan to devise a set of passwords with lengths from 13 to 16 characters, using primarily AN71. On the rare occasion where I can't use special characters, I'll have AlphaNum alternatives with 14 to 17 characters prepared. I'll test if I can use a tilde or hyphen, and use one of them if possible for the really high-security sites.

A final word about password composition. I actually use pass phrases with non-alpha characters inserted between words or substituted for certain letters, and occasional misspellings. Starting with a favorite phrase from Shakespeare, Portia's opening clause, "The quality of mercy is not strained", one could pluck out "quality of mercy" (16 characters) and derive variations such as:

  • qUal!ty#of#3ercY
  • QW4lity70f8M&rcy
  • quality$of~MERC7
  • qua1ity2of2M3rcyy (AlphaNum with an appended letter)

…and I could add more than one character in place of the space(s) between words…

It is also worth keeping abreast of news about quantum computing. What exists today is dramatically over-hyped. It may not always be so. But I suspect a trillion-year-resistant password will remain secure for at least a generation. 

Monday, July 31, 2023

How long until AI truly catches up?

 kw: analysis, artificial intelligence, moore's law, generative language models

I recently heard an expert in artificial intelligence speak of the capabilities of the various "generative language" systems out there. The best known are ChatGPT and its successor GPT-4. Google has Bard and Microsoft plus Meta have Llama-2. I recall it was said that GPT-4 has about 50 billion parameters, and Llama-2 has ten times that many, or half a trillion. These parameters are the "knobs" that are set by the training process, which is primarily a consolidation of billions of text documents.

How do these mechanisms compare with the human brain? (The original, larger version of this image was created by Sarah Holmlund, who holds the copyright.)

We often hear that the brain has 100 billion neurons. The actual number is about 87 billion, plus or minus a billion or two. What is less well known is that nearly 70 billion of those neurons are in the cerebellum, running the body and connecting the body to the cerebrum and the limbic system. 16-17 billion neurons comprise the cerebral cortex, where most neurologists consider our conscious mind to reside, and another 1.5 billion comprise the limbic system and the memory switching centers, including the hippocampus.

I don't know how much fan-in and fan-out there is for the nodes in a neural network (the most common "black box" running AI operations). I suspect is ranges into the dozens or even hundreds, for at least some of the nodes. In the human brain, each neuron is connected to between 1,000 and 10,000 others at synapses, with an average number of about 7,000. The synapse is the key "switch", and a neuron's population of synapses primarily determine its behavior. The number of synapses in the non-cerebellar parts of the brain is more than 120 trillion.

The synapses are not simple on-off switches; they have nonlinear behavior, and they seem to have a certain amount of "decision-making" ability, depending on timing between inputs and the surrounding "chatter" of nearby synapses. However, for the moment we can compare the number of synapses with the neural net parameters mentioned in the podcast. 120 trillion is about 240 times the number of parameters that make up the guts of Llama-2, and 2,400 times the size of GPT-4.

It is fair to say that the entire human cerebrum is not involved in language use, and perhaps only a few percent make up our own language production apparatus. However, the rest of the brain is involved in the knowledge context, in cross-referencing memories, and in weighing emotional responses that arise in the limbic system, for example. AI mechanisms do none of this. So our language "machine" is perhaps 10-100x the size of today's AI systems, but we cannot discount the context provided by the rest of the brain.

Let's project a version of Moore's Law onto this disparity. In its original form, it relates to hardware density: the number of transistors on a single chip doubles about every two years. Ultimate speed was also used for CPU power prediction, but this has pretty much come to an end. The highest clock rate for silicon-based CPU's has been stuck near 4 GHz for twenty years or more. The way newer systems get around this limitation is to put more CPU's (or cores) into a machine, up to 20 or 32 in the most recent chips. The CPU in the machine I'm using right now has 8 cores.

Brain neurons aren't nearly so fast, but they all run at once (most AI neural nets are virtual, with each CPU emulating dozens or hundreds of individual neurons and the hundreds of thousands of connections between them). Signal speed in brain neurons is about 60 m/s, so a neuron that is triggered can signal anywhere in the brain (thousands of anywhere's!) within 3 or 4 milliseconds. Waves of activity, coordinating millions of neurons, produce the Beta frequencies between 13 and 30 Hz. In that time tens of trillions of synapses have each fired between 10 and 50 times. That's a lot of processing.

One projection would be: For the Llama-2 set of parameters to be increased by a factor of ten might require 6-7 years. For GPT-4 to get a 100x boost could require 12-15 years.

However, we must consider that, for any generative AI to produce truly useful text, its creators will need to take the other functions of the brain into account; at the very least, context, memory indexing, and emotional content. Then, if we're in the 240x to 2,400x realm, Moore's law would project a timeframe of around 16 years to 23 years.

I conclude that reaching truly human-level AI performance is possible in my lifetime (I'm over 75 years old), just barely. But there is one more hurdle: What size will such hardware be? At the moment, the AI systems we have been discussing rely on large rooms full of racks of CPU's or GPU's (A GPU runs less than half the speed of a CPU, but can do more overlapping operations, plus it uses a little less power). The electricity running such an installation is a few million watts, including some million-watt air chilling units. That's still a long way from having a human-sized robot walking around with a human-capable brain squeezed into its 50-kg body somewhere.

This is a reach, but with the human brain using 20 watts, how long would the naïve version of Moore's law, applied to power consumption, predict? For a factor of 100,000 in power reduction: 33 years.

I really don't expect to live to an age near 110, but if I do, things could be very, verrry interesting by then.

Wednesday, May 10, 2023

How many EV batteries can we make?

 kw: analysis, lithium ion batteries, cobalt, resource limits

When I lived in South Dakota I sometimes visited the sites of abandoned mines. A number of these had mined spodumene, a lithium-bearing mineral that is famous in the Black Hills for forming gigantic crystals such as this one in the Plumbago pegmatite. It is 12 feet long and 3-4 feet wide (~4m x 3m). Crystals approaching 50 feet long (~15m) have been reported.

A pegmatite is a special igneous (crystallized from molten rock) deposit that formed in the presence of high-pressure water and cooled slowly, so large crystals were produced. Many gemstone mines are in pegmatites. For example, while there are often ruby or sapphire crystals in granitic rocks, they are usually microscopic. It takes "pegmatite conditions" for large (cm size) gem crystals to form.

Spodumene is the primary source of lithium around the world. Pure spodumene has the chemical formula LiAl(SiO3)2. To understand the physical economics of lithium mining, it helps to know just how much lithium the mineral contains. This table will help:

This presumes the pure mineral. Elemental lithium content is less than 4%. Ore grades are reported as the oxide, Li2O, which comprises 16% of the pure mineral.

Spodumene in bulk is seldom pure. Its gemstone varieties, hiddenite and kunzite, are nearly pure and transparent, with coloration due to trace impurities. The "log" of spodumene shown in the image above is probably no more than 60% pure, containing iron oxide and iron silicate and other impurities. Spodumene ore is considered "good" when its composition of Li2O is above 8%.

Also, a spodumene pegmatite seldom contains more than 15% of such "good" spodumene. The best spodumene ore in the world, found in Australia, has a Li2O content of 1.6%. About 1% is more common. See this Wikipedia article for more detail.

What is needed to produce an EV battery? From a number of sources I find that a "typical" EV battery contains 8 kg of lithium, 14 kg of cobalt, and 20 kg of manganese in its cathode, the + electrode. Such a battery as a whole weighs about 250 kg, much of which is the casings (metal shells of the cells). By contrast, the battery in a Tesla Model S contains 62.4 kg of lithium. I haven't discerned whether the proportions of cobalt and manganese are the same, but that is probably so. The packaging is more efficient, so the Model S battery weighs 900 kg (about a ton).

What do the cobalt (Co) and manganese (Mn) do? They are part of the cathode, and increase its energy density. Much experimentation and optimization have resulted in this composition. One restriction is the scarcity of cobalt, seen in figures for known world reserves for these metals:

  • Li: 89 billion kg
  • Mn: 1,700 billion kg
  • Co: 8.3 billion kg (9% compared to Li)

A battery made with Li and Mn but without Co is less efficient, but it appears we'll need to go that way anyway; batteries aren't the only use we have for cobalt.

So, what are the implications of replacing every vehicle with an electric vehicle? In the US there are nearly 280 million registered vehicles; worldwide, about 1.4 billion. Let's assume as an initial estimate that each one needs 8 kg Li, 14 kg Co, and 20 kg Mn. That works out to

  • Li: 2.24 billion kg for the US and 11.2 billion kg for the world. So far, that's doable (NOT easy!)
  • Mn: 5.6 billion kg for the US and 28 billion kg for the world. Ditto.
  • Co: 3.92 billion kg for the US and 19.6 billion kg for the world. OOPS! Almost 2.4 times the known supply.

Using all known cobalt to make EV batteries using the currently-accepted technology, the number would be 590 million. Almost half of that would be snarfed up by the US, if that were allowed.

Extracting the elements produces lots of waste. In the case of Lithium, each kg produced is accompanied by 27.3 kg of waste if the spodumene is pure, and usually by 98-99 kg of waste. Cobalt and Manganese are heavier and their ores are a bit richer, but their production also yields enormous piles of waste material. By the way, seabed mining can't help much. The "manganese nodules" do contain a lot of manganese, but usually a nearly equal amount of iron; they contain less than a percent of cobalt.

All this is big, but it is actually the tail wagging the elephant in the room. Transportation uses about 30% of US energy consumption, and half of that is for private autos. In the world, the figures are 25% and 12%, which means for the non-US countries, private auto transportation is even less of the total, around 10%. Electric generation would have to increase mightily to support another half billion or billion EV's. What could be done to replace petroleum and coal used for electric generation, the other 80-90%?

Burning coal, oil, and natural gas are three of the four stable forms of electric generation. The fourth is nuclear fission. None of these depend on daylight, or wind, or tides. I am disregarding geothermal because its practical, widespread use is two or more generations in the future, at the very best. Hydropower is comparatively stable, but nearly all the hydropower available in the US is already being used, and worldwide, it cannot provide more than a few percent of the need.

The two big technologies that seem able to produce large amounts of electricity are solar and wind. Solar reached energy breakeven 10-20 years ago, and improvements continue. Wind power does not yet generate enough new electricity to replace what is used to manufacture, transport, erect, and maintain the equipment. Wind turbines also kill birds, lots of them, including eagles and numerous endangered species, but the industry gets a pass because of climate-change activism. Both technologies have variable output that depends on the time of day and the local weather. Thus, utility-scale battery storage is required. Tons and tons and millions of tons of batteries.

I could get into a rant here, but I'll stop with this admonition: we need new battery technologies that depend on neither lithium nor cobalt nor any "rare earth" elements (which aren't rare, just hard to separate from their ores). A 10x-100x increase in funding for battery research is definitely worth pursuing.

Thursday, April 27, 2023

If BARD is a poet, I wouldn't know it

 kw: analysis, artificial intelligence, experimental linguistics, poetry


My first queries to BARD were related to Shakespeare. BARD bungled the iambic meter of a soliloquy. I decided to try poetry in a more general sense. I will comment in each section.

P07: There are 3 kinds of photosynthesis: C3, C4 and CAM. Please write a sonnet about photosynthesis in the Italian rhyming style.

Bard: Sure, here is a sonnet about photosynthesis in the Italian rhyming style:

Photosynthesis

The leaves unfurl, the sun shines bright,
And plants begin their daily flight.
They take in carbon dioxide,
And water from the ground below.
 
They use the energy from the sun,
To turn these things into one.
A sugar called glucose,
And oxygen, which is released into the air.
 
There are three main types of photosynthesis,
C3, C4, and CAM.
Each type has its own advantages and disadvantages,
And they are all used by different plants.
 
C3 photosynthesis is the most common type,
And it is used by most plants.
It is not as efficient as C4 or CAM photosynthesis,
But it is less demanding of water.
 
C4 photosynthesis is more efficient than C3 photosynthesis,
But it requires more water.
It is used by plants that live in hot, dry climates,
Such as cacti and succulents.
 
CAM photosynthesis is the most efficient type of photosynthesis,
But it is also the most demanding of water.
It is used by plants that live in very hot, dry climates,
Such as cacti and succulents.
 
No matter what type of photosynthesis they use,
All plants play an important role in the environment.
They help to clean the air,
And they provide food and oxygen for animals.

A sonnet has 14 lines. Here we have 28. The Italian rhyming style is ABBAABBA CDECDE, although there are various ways the last six lines are handled, including CDCDCD and CDDCDD. None of the quartos above has an ABBA rhyming pattern. Also, sonnets are typically in iambic meter, but none of that is found here.

P07: Please write a limerick about a coder named Larry

Bard: Sure, here is a limerick about a coder named Larry:

There once was a coder named Larry,
Whose code was as tight as a curry.
He could write in any language,
From C++ to Python,
And his programs always ran merrily.

This limerick was in a box, so maybe Bard copied it from somewhere…but it doesn’t rhyme lines 3&4. There were two other drafts:

There once was a coder named Larry,
Whose code was quite hairy and scary.
He said, "I'll rewrite it,
But first I must write it,
Then I'll test it, and then maybe I'll marry."
 
There once was a coder named Larry,
Whose code was quite hairy.
He said, "I'll rewrite it,
So it's not so tight,
And maybe I'll get a raise, maybe."

The first alternate draft is a near-perfect Limerick; just remove "and" from the last line. The other draft, and the original version, are quite klutzy.

P07: Describe the common feet in prodosy: iamb, trochee, anapest, dactyl, and spondee

Bard: Sure. In prosody, a foot is the basic repeating rhythmic unit that forms part of a line of verse. The most common feet in English are the iamb, trochee, anapest, dactyl, and spondee.

Iambic

An iamb is a two-syllable foot with an unstressed syllable followed by a stressed syllable. For example, the word "today" is an iamb, with the unstressed syllable "to" followed by the stressed syllable "day."

Trochaic

A trochee is a two-syllable foot with a stressed syllable followed by an unstressed syllable. For example, the word "about" is a trochee, with the stressed syllable "a" followed by the unstressed syllable "bout."

Anapestic

An anapest is a three-syllable foot with two unstressed syllables followed by a stressed syllable. For example, the word "telephone" is an anapest, with the two unstressed syllables "tele" followed by the stressed syllable "phone."

Dactylic

A dactyl is a three-syllable foot with a stressed syllable followed by two unstressed syllables. For example, the word "hammer" is a dactyl, with the stressed syllable "ham" followed by the two unstressed syllables "mer."

Spondaic

A spondee is a two-syllable foot with two stressed syllables. For example, the word "forever" is a spondee, with both syllables "for" and "ever" stressed.

These are just a few of the most common feet in prosody. There are many other types of feet, as well as more complex meters that combine multiple feet.

The descriptions are good but not all the examples are apt. “About” is not a Trochee but an Iamb; a better choice would have been “under”, or the example used for Dactyl, “hammer”. A better choice for a Dactyl would have been “murmuring” or “mockingbird”. “Forever” is not a Spondee but an Amphibrach (rare as a repeated foot in English poetry); a better choice for a spondee would be a “smokestack”, or more common examples of repeated one-syllable words such as “woe, woe!”. In another draft, BARD used these apt examples: “report”, “daily”, “serenade”, “merrily”, and “he who”. A third draft used some four-syllable words as examples!

That's enough. I have read here and there about the poetic abilities of ChatGPT. I suspect they are overhyped. I didn't ask BARD to write free verse, which I don't consider to be verse at all. Maybe that's what folks have written about.

Wednesday, April 26, 2023

Mathematical models, useful and otherwise

 kw: book reviews, nonfiction, mathematics, modeling, simulation, cautions, analysis

For a significant part of my career I worked with a group of talented computer programmers in a "skunk works" at an oil company. A colleague and I made up the Modeling and Simulation sub-group among the 20 members of the group. He and I developed software that simulated the production of crude oil and natural gas from kerogen, their migration upward through rock layers, and their accumulation against a trapping layer. No model is useful until it is checked against the real world, what we called "getting ground truth". I visited several exploration offices to show off the software and to use it with data those offices had on hand.

One memorable day in Louisiana, an explorer showed me the 3D seismic survey of one area. He pointed out the most likely source rock and explained the character of other layers, so we entered the appropriate setup parameters, "pointed" the software at the survey data, and let 'er rip. It showed progress over time, of the filling of trapped pools, as growing green blobs on a series of maps. He said, "OK, that blob is 'X' field, that one is 'Y' field,…but what is that?", pointing to a third blob between the other two. I answered, "I don't know, but I suspect it represents a lot of money." As it happened, the company had leases that covered most of the "what is that" area, but a deal had already been made to sell the leases to another company. That company made the money!

I had less exciting encounters with exploration geologists in Europe. The result was the validation of a useful model. Getting "ground truth" turned a simulation program into a tool the geologists could use to rank prospects.

Let me say right now that this tool is a million times less complex than the "general circulation models" (GCMs) used to forecast weather. Crude oil is gummy and moves slowly; air masses in the atmosphere, which are the elements of weather, move rapidly and swirl around on all scales. Oil forecasting is hard, but not as incredibly difficult as weather forecasting. So I was never faced with an irate caller complaining about "shoveling a foot of 'partly cloudy' from [his] @#&% driveway!"

Furthermore, I had the great good fortune to decide early in my career to "let the singers sing and the dancers dance": to turn over to the computer those tasks that are hardest for humans, while retaining tasks for the humans that we do better than computers. This led to very productive synergies. Far too many programmers spend years beating their heads against the wall trying to replace the human element. Futility personified.

I was delighted to read Escape From Model Land: How Mathematical Models Can Lead Us Astray and What We Can Do About It by Erica Thompson. She sets the tone early on by quoting statistician George Box: "All models are wrong, but some are useful." Those who forget to think this way, or never heard this aphorism, get stuck in Model Land.

The author continues with the observation by President Dwight Eisenhower, that "Plans are useless, but planning is indispensable." The thinking behind the model, or the plan, is the great value of the exercise. I also recall what Sun Tzu wrote in The Art of War, "No battle plan survives contact with the enemy." In more peaceable pursuits, contact with "ground truth" exposes the errors of every model. It is our task to determine the tolerable level of error, for we must typically carry on anyway.

A model is a tool. It can help us understand a process, and perhaps inform the solution to a problem. BUT no model solves any problem all by itself. Even better than one model, a suite of models, built with various assumptions and focusing on different sets of driving parameters, can help us set boundaries on the range of outcomes.

It doesn't seem so long ago that the fastest supercomputer needed to run for half a day to produce a 2- or 3-day forecast for a continent-sized area. Now numerous GCMs exist, and the weather forecasters collect the output from all of them. One result is a spaghetti plots of hurricane tracks. In this image, the letter codes such as COTC represent the names of the models used. The characteristics of a spaghetti plot are used to produce the "cone of likelihood" that is often shown.

The situation with climate modeling is far different. Escape focuses on two areas, because of current events. One is climate "change" (spoiler: it is always changing, but on a slow time scale) which is all based on modeling because we can't perform physical experiments. The second is the epidemiology of COVID-19, modeled numerous ways, and almost never properly! The disease fooled the "experts" almost daily, and the societal flailing around that resulted seems to have caused more harm than doing nothing. I called the CDC the "strategy of the week club."

Both phenomena became so intensely politicized that no actual science has been possible. A certain spokesman whose name I hate to utter said, "I am the science." Tantamount to blasphemy. Another group of mostly pundits and a few scientists bludgeoned the public with the notion of "settled science." There is no such thing, except perhaps certain portions of mathematical physics. Neither climate and weather, nor epidemiology, are amenable to mathematico-physics treatment.

I am an educated layman. I went to school in an era in which we were taught critical thinking, and learned to identify bias. Putting on those hats, I can say the following, first about climate, and then about the pandemic.

1) I learned to apply the mathematics used by Arrhenius to study the Greenhouse Effect before I was in high school. The simplest model of the atmospheric response to sunlight with respect to CO2 has four spectral regions:

  1. The Ultraviolet-Visible-Near Infrared region: wavelengths that are not affected by CO2.
  2. Three narrow bands of Medium Infrared in the range 2.5µ-4.5µ, one of which is fully lapped over by an absorption band of water vapor. These have little warming effect, but they are well positioned for optical CO2 detectors.
  3. A moderately wide band of Longwave Infrared centered on about 14µ, of absorption by CO2; the amount of absorption depends on the concentration. This is the "thermal IR" band of interest.
  4. The rest of the Infrared spectrum, Far-Infrared and so on; it is not affected by CO2.

Within region #3 there is a variable level of absorptivity, but once the concentration of CO2 reaches 0.2% (2,000 ppm, comparable to the level during the age of the dinosaurs), the "carbon dioxide window" is effectively "closed". At that point, within that wavelength region, about half of the infrared radiation from the warm ground is absorbed by the atmosphere and is reradiated, half to outer space, and half back down. At a specific temperature a balance is achieved. That temperature is 4°C warmer than the average global temperature in the year 1900. Today, with 400 ppm, we're at 2°C, and it will take much more than another 400 ppm to push into that +4°C region. The relationship is not linear.

What detailed computer modeling can do is to show where the warming is greater, and where it is less. We've been hearing for years that the warming is greater in the polar regions and less in the tropics. The general picture is 6°-7°C warming around the poles and less than 3°C warming in the tropics, when CO2 concentration exceeds 1,000 ppm. At this point the "window" is mostly closed already; extra warming greater than 1°C is unlikely.

The above discussion means that warnings about deadly heat waves in the tropics are overblown. On the other hand, we can expect some frozen polar areas to thaw. One effect I haven't heard the slightest discussion about is that Siberia, northern Canada, and the southern part of South America could be the next breadbaskets. Will the Sahara and Mojave/Sonoran deserts, in Africa and North America, respectively, get even drier and hotter? The computer models are inconsistent. Fretful silence on these questions reflects the uncertainty.

2) The situation of the COVID-19 pandemic, and the incredible array of opinion/ideology presented as "science" is a stunning spectacle. Roughly half the adults in the U.S. think that the crisis was exploited to the hilt for political purposes, partly to remove Donald Trump from office and even more to increase the scope of totalitarian control on the part of the Left. Meanwhile, the other half are thrilled that Trump is out of office, but ambivalent about J.R. Biden's performance.

If there has been any serious modeling of the epidemiology of the C19 virus, I haven't seen it. I've seen numerous toy models presented, followed by lots of screaming to "follow the science". When it became evident that actual science contradicts what the screamers are saying, they took up new mantras about "protecting Democracy" (which really means protecting political power for Democrats). Sadly, I still see people walking alone in near-isolation, wearing a bandanna or cheap mask or, if they have an actual N95 or KN95 mask, wearing it below the nose. Firstly, they are insane to wear the mask at all, and secondly, the "face covering" they are using is not effective. Close to 0%. Nearly everyone who caught C19 after mid-2020 was wearing a mask when they caught it.

There is one and only one valid reason to wear a mask outside, anywhere there is no crowd: To keep the sun off one's face. My wife does this. She wears a mask to keep her cheeks from getting burnt when doing yard work. Never any other time!

There are three simple models that can be used to understand the risks of contracting the COVID-19 virus, SARS-COV2, when outside, with or without a mask. Firstly, except in very humid weather, the virus aerosolizes rapidly. The tiny droplets that a mask would stop evaporate completely in just a few minutes. You can look up the formula (the first "model") to calculate how long a droplet of size 1µ or 5µ will evaporate, at different levels of humidity. That means that the virus particles, which have a diameter of about 120nm (0.12µ), are what your mask has to stop. This introduces the second model.

A N-95 mask is called that because it catches 95% of particles (virus or otherwise) in the size range near 300nm, where the mask is least effective. It is very nearly 100% effective for larger particles (which are caught mechanically) and smaller particles (which are caught electrostatically). Particles in the 120nm range are caught electrostatically with an efficiency near 97%. Think a moment. If there are few viruses about, only 3% of them will get through the mask, if you wear it correctly. But suppose you enter a very crowded area that includes perhaps half a dozen folks who are coughing out C19 particles. Then, 3% of that viral load may well be enough for you to be infected. It is a numbers game.

Thirdly, during the daytime the C19 virus is about twice as susceptible to being disabled by solar ultraviolet as the Ebola virus. I worked out the numbers: Between 10 AM and 2 PM solar time, 90% of virus particles exposed to sunlight are inactivated within about 45 minutes. During the next 3/4 hour, 90% of whatever is left is inactivated, and so forth. It's a statistical function, now long it takes before a UV photon strikes a particular virus particle in a vulnerable spot.

Now we can pull back from my cogitations and look at the book's conclusions. The main problem with any model is the person who uses it. A model will give definite results, but it is easy to forget that those results pertain to the model, not to the system being modeled. They may be close, or they may not. But properly used, a model helps you think about a system of interest. It can't decide for you! Letting models do the deciding is always, always, a travesty.

What does the author suggest? How can we escape from Model Land? Five points form the meat of the last chapter:

  1. Define the purpose. That purpose better not be "decide for me." The purpose has to include capturing the relationship between all the relevant parameters and the results. All...but learn what to neglect.
  2. Don't say, "I don't know". Ask, "What do I know now that I didn't know before?"
  3. Make value judgments. Every model reflects someone's values. Make sure the values behind the structure of a model are the right ones. Remember: genuine science is value-free. YOU supply the values.
  4. Write about the real world. Bring the model's conclusions into the real world, by getting "ground truth", for example.
  5. Use many models. Consider the spaghetti plot of the hurricane, shown above. If the system is "too simple" for multiple models to be generated, perhaps it is simple enough to comprehend without mathematical modeling.

It takes work just to understand this list. It is worth it! It takes much more work to carry out a modeling exercise that doesn't trap you in Model Land without an exit. I used a Jumping Ship metaphor at the start of this piece to show that sometimes we need to get far away, to seek a really different perspective. This is an extension of Principle #5 above.

Finally, consider this: You have two eyes for a reason. It is not just for parallax, to find out the 3D aspect of the situation. It is for completeness. Except in very simple views, your right eye will see something your left eye cannot, and vice versa. Even more, if you have someone standing near you, each of you will see things the other does not, particularly if you're looking in different directions. Using a numerical or mathematical model in too simple a manner, and yielding too much authority to it, is like viewing a complex scene using one eye from one viewpoint. I leave you with this proverb: "If two people have exactly the same opinion about everything, one of them is redundant."

This book is a great read!

Monday, April 24, 2023

BARD figures it out

 kw: analysis, artificial intelligence, experimental linguistics, mathematics, computer science

Continuing my exploration of the capabilities of BARD, I asked it about some computational and mathematical matters, starting with one that was relevant to recent work I have been doing. I'll comment along with each interaction this time.

P07: Two angles are related by the function A = arctan(sec B * tan B). Given A, what is B?

Bard: The given function is not invertible, so there is no unique value of B that corresponds to a given value of A. This is because the tangent function is periodic, with a period of 180°. This means that for any value of A, there are infinitely many values of B that will satisfy the given function.

For example, if A=45∘, then B could be any value in the range (−45∘, 45∘). Or, if A=90°, then B could be any value in the range (−90°, 90°).

In order to find a specific value of B that corresponds to a given value of A, you would need to specify additional information about the problem. For example, you might know that B is an acute angle, or that B is a right angle.

P07: In the above problem, both A and B are in the range 0° to 90°.

Bard: In that case, there are two possible values of B for any given value of A. For example, if A=45°, then the two possible values of B are 45° and 135°. This is because the tangent function is positive in the first and third quadrants, so the two possible values of B are the two angles in the first and third quadrants that have a tangent of 1.

In general, the two possible values of B can be found by solving the equation

[recast by P07]                  tan B = ± tan A / sec B

For example, if A=45°, then this equation becomes

[recast by P07]                  tan B = ±tan 45° / sec B = ±1 / √2

Solving this equation, we find that the two possible values of B are 45° and 135°.

The original statement is correct, though not only for the reason BARD presented. This is an example of a Trapdoor Function. If angle A is known, it is straightforward to calculate angle B. But if only B is known, finding A requires an iteration, such as successive applications of Newton's Approximation.

BARD treated this like a Diophantine problem, and ignored the restriction of B to (0°, 90°). Further, the answer is incorrect. Tan 45° = 1, sec 45° ≈ 1.414, so 1 is being equated to √2.

P07: Are you able to chart a function?

Bard: Yes, I can chart a function. I can use the following steps to chart a function:

1.       Identify the domain and range of the function.

2.       Choose a few values of x and calculate the corresponding values of y.

3.       Plot the points (x,y) on a graph.

4.       Connect the points with a smooth curve.

For example, let's chart the function y=x2. The domain of this function is all real numbers, and the range is all non-negative real numbers. We can choose a few values of x, such as x=0,1,2,3, and calculate the corresponding values of y, such as y=0,1,4,9. We can then plot the points (0,0), (1,1), (2,4), (3,9) on a graph and connect them with a smooth curve. The resulting graph is a parabola that opens upwards.

P07: Can you draw the chart?

Bard: I can't draw a chart for you here, but I can give you a description of the chart of y=x2.  The chart is a parabola that opens upwards. The vertex of the parabola is at (0,0). The x-axis is the line of symmetry of the parabola. The parabola approaches the x-axis asymptotically as x approaches ±∞.

This is just as I expected; BARD is linguistic in nature, and has no graphical capabilities...yet!

P07: What is the integral of Sqrt(sec(x)*tan(x))?

Bard: 



The line above needed to be a picture.

To solve this, we can use the following steps:

  1. Let u = sec x. Then du = sec x tan x dx.
  2. Substituting gives us:

Code snippet

∫√sec(x)tan(x)dx = ∫√u du = 2√u + C = 2√sec(x) + C

where C is an arbitrary constant of integration.

P07: Can a computer store the exact value of an irrational number?

Bard: No, a computer cannot store the exact value of an irrational number. This is because computers store numbers in binary, which is a finite representation of numbers. Irrational numbers are infinite, so they cannot be represented exactly in binary.

For example, the number π is irrational. It is a non-repeating, non-terminating decimal number. This means that there is no finite sequence of digits that can represent π exactly. If we try to store π in binary, we will only be able to store an approximation of it.

The same is true for all other irrational numbers. They cannot be stored exactly in binary, so they can only be approximated.

However, this does not mean that computers cannot use irrational numbers. They can still perform calculations with irrational numbers, as long as they are aware that the numbers are being approximated.

The only quibble I have with this answer is the word "they" in the last sentence. Computers aren't aware of anything. It should read, "…as long as those using the program are aware…"

P07: What is Green’s Theorem?

Bard: Green's theorem is a theorem in vector calculus that relates a line integral around a simple closed curve C to a double integral over the plane region D bounded by C. It is the two-dimensional special case of Stokes' theorem.

In mathematical terms, Green's theorem states that

Code snippet

∫CF⋅ds=∬D(curl F)⋅k dA

Use code with caution. Learn more [link to https://bard.google.com/faq#coding]

where

  •         F is a vector field defined on a two-dimensional domain D
  •         C is a simple closed curve in D
  •         ds is the line element along C
  •         dA is the area element in D
  •         curl F is the curl of F, which is a vector field that measures the circulation of F around a point
  •         k is the unit vector in the z-direction 

Green's theorem can be used to solve a variety of problems in physics, engineering, and mathematics. For example, it can be used to 

  •         Calculate the flow of a fluid through a region
  •          Determine the area of a plane figure
  •          Find the centroid of a plane figure
  •          Solve boundary value problems

 Green's theorem is a powerful tool that can be used to simplify and solve a wide variety of problems in vector calculus.

BARD then referred to the Wikipedia article on Green’s Theorem, and suggested three Google searches on the topic. I then asked about one term used in the description.

P07: What is the curl of a function?

Bard: In vector calculus, the curl is a vector operator that describes the infinitesimal circulation of a vector field in three-dimensional Euclidean space. The curl at a point in the field is represented by a vector whose length and direction denote the magnitude and axis of the maximum circulation. The curl of a field is formally defined as the circulation density at each point of the field.

In other words, the curl of a vector field is a vector that measures the rotation of the field around a point. The curl is zero at points where the field does not rotate, and it is nonzero at points where the field does rotate. The direction of the curl vector indicates the direction of the axis of rotation, and the magnitude of the curl vector indicates the magnitude of the rotation.

The curl of a vector field can be calculated using the cross product. The cross product is a mathematical operation that takes two vectors and produces a third vector that is perpendicular to both of the original vectors. The direction of the cross product vector is determined by the right-hand rule.

The curl of a vector field can also be calculated using the curl operator. The curl operator is a mathematical symbol that represents the curl of a vector field. The curl operator is written as a counterclockwise cross product, and it is applied to the vector field.

The curl of a vector field has many applications in physics and engineering. For example, the curl of the velocity field of a fluid is used to calculate the vorticity of the fluid. The vorticity of a fluid is a measure of the rotation of the fluid. The curl of the electric field is used to calculate the magnetic field. The magnetic field is a vector field that describes the direction and magnitude of the magnetic force.

The curl is a powerful tool for analyzing the behavior of vector fields. It can be used to calculate the rotation of a vector field, the vorticity of a fluid, and the magnetic field. The curl is an important tool in physics, engineering, and other fields.

BARD referenced a Wikipedia article on the subject. In an alternate draft BARD added:

The curl of a vector field F is denoted by ∇ × F. In three dimensions, the curl can be computed using the following formula:

Where F1, F2, and F3 are the components of function F.

Not being a vector calculus expert, I had to ask for the definition of the inverted delta.

The symbol ∇ is called the nabla symbol. It is a triangular symbol resembling an inverted Greek delta: \nabla or ∇. The name comes, by reason of the symbol's shape, from the Hellenistic Greek word νάβλα for a Phoenician harp, and was suggested by the encyclopedist William Robertson Smith to Peter Guthrie Tait in correspondence.

In mathematics, the nabla symbol is used to represent the gradient operator in calculus. The gradient is a vector that points in the direction of the greatest rate of change of a function, and its magnitude is equal to the magnitude of the rate of change.

The nabla symbol can also be used to represent other vector operators, such as the divergence and the curl. The divergence is a vector operator that measures the outward flux of a vector field from a surface, and the curl is a vector operator that measures the circulation of a vector field around a point.

The nabla symbol is a powerful tool that can be used to represent a variety of vector operators in mathematics. It is an important symbol in vector calculus and has many applications in physics, engineering, and other fields.

Sources:

  1. brainly.in/question/12687051 
  2. en.wikipedia.org/wiki/Nabla_symbol 
  3. mathoverflow.net/questions/289607/mathematical-objects-whose-name-is-a-single-letter  

BARD did what I would have done, look these things up in Wikipedia and math sources such as those it listed following its response. Green's Theorem was the bugaboo of a Senior-level course in Physics I took many, many years ago.

Here we see BARD doing less linguistic generation and more copying of sources.




Saturday, April 22, 2023

Bard versus BARD

 kw: analysis, artificial intelligence, experimental linguistics

I was invited by Google to use BARD, their version of ChatGPT. I decided to do various experiments, not to "trip it up", as some have done, but to learn its range. In the terminology of generative language models, faulty results are called "hallucinations". The process used by BARD and its kin to produce responses is a kind of stream-of-consciousness musing based on probabilities, so in my view, it's all hallucinatory anyway! And when it's wrong, it's just wrong.

I first tested BARD against The Bard with three prompts. I will comment after the transcript of the three results.

P07: Write a short summary, up to 300 words, of The Tempest by Shakespeare.

Bard: The Tempest is a play by William Shakespeare, probably written in 1610–1611, and thought to be one of the last plays that he wrote alone. After the first scene, which takes place on a ship at sea during a tempest, the rest of the story is set on a remote island, where Prospero, a complex and contradictory character, lives with his daughter Miranda, and his two servants: Caliban, a savage monster figure, and Ariel, an airy spirit. The play contains music and songs that evoke the spirit of enchantment on the island. It explores many themes, including magic, betrayal, revenge, and family.

Prospero is the rightful Duke of Milan, but he was usurped by his brother Antonio and his allies, the King of Naples and Sebastian. Prospero and his infant daughter Miranda were set adrift at sea, but they survived and landed on the island. Prospero used his magic to create the storm that shipwrecked his enemies on the island. He then uses his magic to control the events on the island, manipulating his enemies and testing their characters.

Prospero's main goal is to get revenge on his enemies, but he also wants to teach them a lesson about the consequences of their actions. He eventually forgives them and returns them to their rightful places in society. The play ends with Prospero giving up his magic and returning to Milan with Miranda and Ferdinand.

The Tempest is a complex and fascinating play that explores many themes. It is a story of magic, betrayal, revenge, and redemption. It is also a story about the power of love and the importance of forgiveness.

P07: Write a short soliloquy in iambic pentameter on the subject of triumph over loss.

Bard: I have lost all that I held dear,
My loved ones taken from me so soon.
I have fallen to my knees in despair,
And begged for the pain to just end soon.
 

But then I remembered something I had heard,
A saying that gave me new strength and resolve.
It said that even in the darkest of hours,
There is always hope, if we just believe.
 
So I picked myself up off the ground,
And wiped away my tears.
I knew that I had to keep going,
For the sake of those I had lost.
 
I would not let their deaths be in vain,
I would live my life to the fullest,
And make them proud.
 
I would triumph over loss,
And find joy in the world again.

[This one had two other Drafts]

 2) Soliloquy

I have lost so much, I have lost it all.
My dreams, my hopes, my loves, they all have fled.
I am left here with nothing, not even a shred
Of what I once had, of what I once held dear.
 
But I will not give up. I will not despair.
I will find a way to triumph over this loss.
I will find a way to rebuild my life, to start anew.
I will find a way to be happy again.
 
I know it will not be easy. It will take time and effort.
But I am strong. I am resilient. I will not give in.
I will triumph over this loss. I will find my way back to happiness.
 
I know that I am not alone. There are others who have lost as much as I have.
And they have found a way to move on. They have found a way to be happy again.
So I will not give up. I will find my way back to happiness.
 
I will triumph over this loss.

 

3) 

I have lost so much in this life,
I have loved and lost, and loved again.
I have cried and laughed, and felt the pain
Of heartbreak and the joy of gain.
 
But through it all, I have learned to triumph.
I have learned to rise above my pain,
To find the strength to go on,
Even when all seems lost.
 
I have learned that loss is a part of life,
But it does not have to define me.
I can choose to let it destroy me,
Or I can choose to use it as fuel to grow.
 
I choose to grow.
I choose to triumph over loss.
I choose to live my life to the fullest,
Even in the face of pain.

P07: Please write a sonnet in Shakespearean style that names Alice

Bard:

Oh, Alice, thou art fair and true and kind,
A gentle soul with beauty to beguile,
A heart that's pure and free from all guile,
A face that's bright with love and smiles divine.
 
Thy eyes are like the stars that shine at night,
Thy hair is like the raven's wing so black,
Thy lips are like the rosebud's tender pink,
Thy cheeks are like the peach's downy cheek.
 
Thy voice is like the songbird's in the dell,
Thy touch is like the zephyr's on my brow,
Thy presence like the summer's balmy spell,
Thy smile like sunshine on a winter's day.
 
Oh, Alice, thou art all that's good and fair,
A gift from heaven to bless my life here.


My evaluation:

The first paragraph of the summary of "The Tempest" is lifted directly from the Wikipedia article referenced at the end. The rest is a pretty good summary of the plot of the play. It doesn't mention the Masque, or play-within-a-play, found in the last Act.

The soliloquy is presented in three versions. Frequently BARD has produced three drafts and then has presented the one it "thinks" is most likely to fulfill the prompt. None of the three drafts comes even close to Iambic Pentameter in more than a handful of lines. All three are much closer to "free verse" (which I don't consider to be verse at all). The second stanza of the second draft can be most easily reworked into IP:

But I will not give up, will not despair.
I'll find a way to triumph o'er this loss;
Rebuild my life; a way to start anew.
And find a way to happiness regain.

The sonnet's rhyme scheme is messed up. It should be ABAB CDCD EFEF GG. Instead it is ABBA CDEF GHGI JJ. Rhyming "kind" with "divine" is OK; Shakespeare did worse. Also, switching the 3rd and 4th lines of the first stanza would fix the rhymes, and the 3rd line needs a syllable somewhere to match the meter, perhaps adding a short adjective before "guile". The other two quatrains are irredeemable. Were I grading this for a middle school student, it would get a "B".

There you have it. BARD is fun. BARD is growing. It will be interesting to rerun these prompts in another year or two. I ran other experiments, to be reported soon.

Friday, October 01, 2021

Who's afraid of the big bad COVID?

 kw: analysis, epidemiology, immune system, vaccination, herd immunity

The magic number is 7. We'll get back to this. 

The first thing to understand about a pandemic disease is the ratio of infection to symptomatic illness. Only then can you understand the progress of the disease through time in a population. This ratio is the first thing a national disease-monitoring organization such as CDC should determine. However, they have not, or if they did, they are not telling. I have sought other sources.

Dr. Anthony Fauci, without citing sources, claimed a few times that of the total number infected with SARS-CoV-2 virus, about 40% have no symptoms. An estimate out of South Korea claims 30%. But both of these are actually talking about asymptomatic carriers, those who have no overt symptoms but can still spread the disease. A few test surveys that I have been able to find showed a different picture. In a test survey, everyone in some population is tested, such as residents in a dormitory. Reports popped up, were public for a few weeks or less, and then vanished. They had a narrow range of numbers of the ratio of infection to illness. From these I got the magic number above. Stated a better way:

For every 7 persons whose test showed they were infected, one was ill and the rest had no symptoms.
 The range of magic numbers was between 5 and 9. For one test survey it was 10. Therefore, in the earlier stages of the COVID-19 pandemic, when there were no accurate tests, the numbers of known cases was only 1/7th of the actual number of infections.

If we combine that with the 30%-40% "claimed asymptomatic carrier" rate, we can surmise the following, for a total of 1,000 infected persons:

  • 143 will be ill at some point (we're not counting deaths yet; some of these will die).
  • Between 61 and 95 will be "carriers" who have no symptoms, for a total of 204 to 238 who can infect others.
  • The remaining 762 to 796 who are infected will recover without consequence, for themselves or for others.

Now to re-examine the first bullet point above: How many of the 143 will die? Spoiler: less than 2, and maybe much less than that.

I am going to use data from the charts supplied at Worldometer, as faulty as it is. The definition of a "Case" has changed over time. Early on, people with certain symptoms were "presumed positive". Later, testing was implemented. To date, in the U.S. about twice as many tests have been performed as there are persons in the country. However, there are those who get a test every week, some (like myself and my wife) who have been tested 3-4 times, and well over half of U.S. residents have never been tested. At the present time, the number of "cases" includes test results, which depends on the accuracy of record-keeping (We all have heard stories of people who were in line to get a test, had "signed in at the door", and then before getting tested, opted out and left; later they got a letter in the mail stating that they had tested Positive. Maybe the person in back of them in line was the one really tested, or something. We'll never know).

There is the further problem with "no Flu season in 2020-21". Really? Is that believable? Reasonably accurate tests for SARS-CoV-2 were just coming into use during the winter of 2020. COVID "cases" were among the "presumed positive". I contend that between 30,000 and 60,000 U.S. residents who are counted as "COVID deaths" actually died of Influenza. There are also those who died while they were infected with the virus, but they did not die OF the virus (car accidents, suicide, etc.). News of such events is being suppressed, so it is hard to gather statistics. Let's hope the number is small. With all those disclaimers, let's look at this chart, taking it (mostly) at face value.

The blue and brown curves are 7-day averages, as calculated at Worldometer. Blue is cases reported each day, however such cases were determined. This is for the U.S., and the axis to use is labeled "100k" and so forth. Five waves of infection can be seen; they peaked in April 2020, late August 2020, January 2021, April 2021 and late August 2021.

Each peak has a corresponding peak in daily deaths, the brown curve. The axis is labeled "2k" and so forth. These curves are scaled to have visible parity during the third wave. Note that the peaks in deaths and the curves for daily deaths are offset from the peaks and curves for cases…except for the first wave. At the beginning, people didn't get help until they were at death's door, so many of those who died did so within a day of being admitted to a hospital, and they had been reported as a "case" on the day of admittance. Thus, let's look at the same chart, with cases shifted 15 days back, which makes the third wave overlap as well as possible. 

This presentation makes the dates harder to discern. I presented a similar chart on August 1, just 2 months ago, when the fifth wave was just beginning, stating "Herd immunity has arrived." This conclusion was based on the anomaly about Wave 4: there was no peak in the death rate, and during the summer of 2021 case rates were lower than at any time since mid-March 2020.

The 5th wave is the Delta wave. It is smaller than Wave 3 because it is occurring primarily among the unvaccinated (in which I count those formerly infected: "vaccinated by God"). It also appears to have about a 15-day delay between discovery and death. However, look at the subtle vertical shift over time. The death rate is lower in proportion during Wave 5 than it was previously. And the gorilla in the room is the very high death rate during Wave 1.

What happened during Wave 1? Firstly, we had no clue what was going on. There were no effective treatments. President Trump ordered certain companies to ramp up the production of ventilators. It turned out that ventilators caused more deaths than they prevented. They aren't supposed to be used for weeks at a time. But even more, many of these deaths occurred in nursing homes where the virus ran rampant. This was aggravated in five states whose Governors ordered COVID patients moved from hospitals back to the nursing homes they came from, creating the first super-spreader events. 

Secondly, there were no effective medicinal interventions yet. Now there are two for early use (coded IVM and HCQS), and also monoclonal antibody treatments such as Regeneron, which was used to treat President Trump. Thus, the blast of early deaths represented the "low hanging fruit". A large proportion of the most vulnerable Americans died in Wave 1. Most variants of the virus that have arisen later cause fewer deaths, and we have medicines that work better. So let's look at another couple of charts.


For these I used the 7-day averaged number of cases or deaths at the peak of each wave. These are not totals for each wave, be clear on that. For a few cases in one state or another, and in the U.S. during Wave 4, where there was no peak in the death rate, I used a date 15 days delayed from the peak in cases.

The chart on the left has the data for the U.S. along with the five states whose governors forced COVID patients into nursing homes. Each bar represents the ratio of peak death rate divided by peak case rate, in each wave. The chart on the right has data for seven states I found of interest, including some in which I have lived. The one I find of particular interest is South Dakota (I lived there 8 years), which seems to have had a better handle on this disease than the rest, particularly in Waves 1 and 5.

The "easy take-away" is this: During Wave 1, D/C was about 7% nationwide, ranging from 4.5% to 9.5% for the five states shown on the left, and (except for NH) between 1.7% and 4.5% for the seven states shown on the right. The death rate has continued downward since then.

While state numbers hop around a bit, the national averages for the five waves are

7%, 1.7%, 1.4%, 1.0%, 1.1%

Let us return to the magic number, 7. On average, for 7 infections, there is one illness. Is all the testing finding every infection, whether ill or not? Not really. The vast majority of tests are done by those who either think they are sick, are feeling sick, or fear/think they have been exposed. So, if there are 6 people out there with no symptoms for everyone who has symptoms, and very few of those 6 are getting tested, they are still not known.

We were told that we needed to achieve 70% "fully vaccinated" to gain herd immunity. That was based on an infectivity rate for the Alpha variant, which is pretty much out of the picture by now. Back to variants in a moment. To date (Oct 1, 2021), just over 185.25 million Americans are recorded as fully vaccinated. This is called 56.1% of the population in news reports, but of course no children under age 12 have been vaccinated, and it isn't certain that they ever ought to be, at least with today's vaccines. That's 48 million, or 14.4% of the population. So the proportion of those12 and older who are fully vaccinated is about 65%. Getting close! But let's remember, the 2-shot "vaccines" are claimed to be 95% effective, while the one-shot version is 65% effective. We can expect about 90% overall effectiveness, so the "actually immune" adults in the U.S. total about 58.5%. One more factor must be considered.

The number of past infections that have resulted in recovery is 33.7 million, or 11.8% of persons 12 and older. 58.5+11.8 = 70.3%. By the criterion set by the CDC, we have achieved herd immunity. More vaccinations and more recoveries happen every day, so we are moving farther and farther into "herd immunity" territory.

So what's with Wave 5? I call it the Delta Wave. A word on variants.

There are many "serotypes" of the SARS-CoV-2 virus. A year ago it was reported that about 30 were circulating in the U.S., and more than 100 were known in China. It's practically impossible to get useful data out of China any more, so we don't know how many serotypes exist. A Serotype is a minor variation in the RNA of the virus. Not all have any practical effect. But a few do. The serotypes are grouped into families by RNA similarity and by clinical measures including infectivity and virulence. So far, there are 12 such Variants.

Infectivity is a measure of how many virus particles one must ingest to cause an active infection, for a person of "average immunity" (a quantity that has never been quantified). Those 5%-10% of vaccinated persons for whom the vaccine "didn't take" have lower immunity, didn't respond strongly enough to the mRNA agent in the vaccine, and so didn't develop a useful antibody defense. They were easier to infect before, and remain easier to infect. For most of us, there is some number, perhaps 1,000 particles, that are sufficient to swamp our early immune response and trigger active infection (whether we ever get symptoms or not, and I picked 1,000 "out of the hat"). We may be exposed to 100 particles several times, and out body fights them off, all the while getting more "wise" to the virus. That produces natural immunity without infection.

Reversing the logic, we have the case spreading rate. For a virus of average infectivity, someone who is infected might infect two other persons during his or her period of active infection. The 70% figure for achieving herd immunity was based on a case spreading rate of 3. I have read claims that the Delta variant is more infective (a smaller number of particles are sufficient to cause active infection), such that the case spreading rate is 6. 

Some claim that if this rate is greater than 5, herd immunity is no longer possible. That is nonsense. Those who state such things have their math wrong. They are using a simple ratio, but the math actually requires inverting a Weibull distribution, and never goes to 100%, meaning that herd immunity is always possible. However, it does get harder to achieve when infectivity is greater. For example, polio has a very high infectivity, as does measles, but we rely on herd immunity in both cases by striving for vaccination rates of 95% of the population, primarily by requiring all school children to be vaccinated for measles and polio (and a bunch of others).

Virulence refers to the likelihood of serious illness or death. If we look at Wave 1 above, it appears that virulence was such as to cause a 5% death rate, before we found effective treatments, and now it is about 1%. Untreated, AIDS and Ebola have a near-100% death rate. Influenza has a virulence about 1/10th as great as SARS-CoV-2, with a great range depending on the yearly variant.

So, although there are hundreds of serotypes out there, we hear of only Variants ranging from Alpha to Mu, the 1st and 12th letters of the Greek alphabet. Waves 1 through 5 were due to Variants Alpha and Lambda (11th). A Variant is a collection of similar serotypes. Delta was the fourth variant identified, but was kept out of the U.S. until late this summer. Now it is dominant.

If the Delta variant were to arrive in a totally naïve population, a big, big Wave of infections would occur. The comparatively smaller size of Wave 5 shows that it is occurring among the non-immune, which presently comprise 30% of adults in the U.S. All the variants so far known cause only mild infection in the vaccinated. Yes, there have been a number of vaccinated people who caught the disease and died. They are among the 5%-10% identified earlier. The mRNA vaccine didn't produce a useful response in them.

Now, a final word about the magic number, 7. For at least Waves 1 through 4, reduce the death rate by a factor of 7 to get a true death/case ratio. It is likely also true for Delta, so we find that actual death rates for the five waves are:

1.0%, 0.25%, 0.2%, 0.14%, 0.16%

That's a low death rate, and I repeat, we have achieved herd immunity for Alpha and Lambda, and we're on the way to achieving it for Delta.