Sunday, May 8, 2016

What does Rx mean?

I was out to dinner the other night with my friend Bill. We were celebrating his retirement as a pharmacist. Just to be clear - I am not talking about my friend, Bill the Pharmacist who retired a year ago. Or my friend Linda the Pharmacist who also retired a year ago. Nor am I talking about my friend David, who hasn't said anything about retirement. Yet.

You can draw your own conclusions about why I have so many friends who are pharmacists. I will explain it as mere coincidence.

I don't know how the topic came up, but someone asked where the symbol "Rx" came from. Bill said it was an abbreviation for the Latin word for "recipe". The "x" on the tail of the "R" designates an abbreviation.

Inserting the Rx symbol in Word

For those who like simple answers to life's important questions, please feel free to accept that as your version of the truth. But for people like me, there always has to be a more contorted answer to simple questions. Here's what I told Bill.

It goes back to Hippocrates

Most everyone remembers Hippocrates. I'm not talking about that one character from some sitcom or other. I am talking about the Father of Medicine, the guy who is famous for the Hippocratic Oath.

Hippocrates taught that each part of the body is ruled over by one of the signs of the zodiac, as we see in the illustration below. Aries governs the head, Taurus governs the throat, as so on. Naturally, to understand how to care for the sick, a physician must understand astrology. Hippocrates had this to say about astrology: "A physician without a knowledge of Astrology has no right to call himself a physician." No kidding. He really said that.

The signs of the Zodiac calling dibs on this unfortunate fellow

This advice made it into the early Renaissance. 

Paracelsus (1493 - 1541) was a physician and philosopher who broke with Aristotle's view that we could discover truth by just thinking about things and making stuff up. Paracelsus taught that observation was more important than the dogma of the ancient Greeks. But he was stilled chained to the past in terms of astrology: 

“[Paracelsus] taught the doctrine of the microcosm and the macrocosm that forced the physician to become astrologer.”
(The Scientific Revolution 1500 – 1800, A. R. Hall, p. 133)

One historian tells us that Hippocrates' edict was alive and well in the early Renaissance.

“Between astrology and medicine, however, strong ties existed. The heavenly bodies were universally believed to influence human as well as other sublunary bodies: the good physician was supposed to always take astral influences … into account.”
(Medieval and Early Renaissance Medicine, Nancy Siraisi, p. 67)

Another historian is even more strident.

“Astrology also became closely associated with the practice of medicine: no reputable physician of the later Middle Ages would have imagined that medicine could be successfully practiced without it.” 
(The Beginnings of Western Science, David Lindberg, p. 279)

Here is yet another historian who tells us of how medicine was practice in medieval times:

“The progress of the planets, especially the Moon, was charted over succeeding days, with little or no observation of the patient himself, indeed the staunchest astrologer-physicians would claim that they did not even need to see the patient.”
(Astrology, A History, Peter Whitfield, p. 174)

Doing the patient's astrological chart was even more important than seeing the patient? Imagine that. I would hope that most of the readers of this blog find this at least a little bit absurd. 

I have written about the signs of mathematicians, and the signs of politically active rock stars. In both of these incredibly astute blog posts, I showed no correlation whatsoever between someone's sign of the zodiac and their proclivities. If you have read these blogs, you will likely have guessed that I don't rush to open my paper every day to read my horoscope. If you guessed that, you would be correct. I don't get the paper.

Belief in astrology reached a peak in the early 1600's, when techniques for predicting the positions of the planets were rediscovered. Thus we see many early scientists earning money through casting horoscopes.


“Like Kepler, Tycho stood with one foot in the past and was devoted to both alchemy and astrology. Like Kepler, he became a court astrologer and had to waste much of his time with the casting of horoscopes for patrons and friends; like Kepler, he did it with his tongue in his cheek, despised all other astrologers and quacks, and yet was profoundly convinced that the stars influenced man’s character and destiny though nobody quite knew how.”
(The Sleepwalkers, A History of Man's Changing Vision of the Universe, Arthur Koestler, p. 291)


I actual did an old-school search for the quotes above!

Mystic pseudo-science eventually gave way to true science as medical science began to provide demonstrable physical explanations for why we get sick. 

So what about the Rx symbol?!?!

Planets generally travel in one direction with respect to the stars. When a planets is on the other side of the Sun from us, the relative motion reverses and the planet appears to "flow upstream". When this happens, we say that the planet is in retrograde.  

In astrology, this is generally not considered a good thing. In particular, the astrological websites seem pretty unanimous about this being a particularly inauspicious time for surgery:


As an aside, this is a theory that could be quite readily tested, it would seem. Funny... despite the fact that the retrograde surgery problem is (apparently) well established in the astrological community, I am unable to find any direct tests of this. This is proof that the medical community is nefariously putting our health at risk strictly to make lots of money. Or maybe the lack of published research shows that the whole idea is preposterous nonsense.

Below we see a horoscope. I have circled two places where the symbol for retrograde have been used. The upper red circle shows the Rx symbol next to the symbol for Jupiter. The lower red circle shows the symbol for Venus with this symbol. This means that both Jupiter and Venus were in retrograde at this time. Rx is an abbreviation for "retrograde".

 Somebody's horoscope 
 
Thus, the Rx symbol is frequently found as part of the normal work that was performed by doctors around 1600. I haven't quite come up with an explanation for why astrologer/doctor/pharmacists picked this particular symbol to be the symbol for pharmacy. I will work on fabricating some sort of nonsense to explain that. In the mean time, if you are planning on surgery, avoid it when Mars or Venus is in retrograde.

Tuesday, February 23, 2016

Mathematical models

Let's just say I drop a bowling ball from the top of my house. High school physics won't help much in predicting my wife's reaction, but I can use high school physics to predict what will happen to the ball.

If I remember correctly, the magic formula said that the distance traveled is one-half the force of gravity multiplied by the time squared. The force of gravity is about 9.8 meters per second squared (about 32 g=feet per second squared), so if I drop the ball from 16 feet... Ummm... lemme think here ... the formula tells me that it will take a second to hit the ground.
Let's take that just a tiny step further, and suppose I were to jump from an airplane that is flying at 32,000 feet. Once again, physics won't be all that helpful in determining my wife's reaction. Her reaction would likely depend on my life insurance company's reaction to me jumping out of an airplane at 32,000 feet.
Doing last minute calculations before boarding the plane

If I apply the magic formula from my high school physics class, then I would predict that I hit the ground at a speed of just under 1,000 miles per hour, about 45 seconds after I jumped. That's about mach 1.27, in other words 27% faster than the speed of sound. Yes. That's right. If I yelled "look out" to the folks below me, I would hit the ground before my warning reached them.

We know that this ain't gonna happen. We have all seen too many movies where we hear the guy yelling long before he hits the ground. Any of my readers will recall an important piece of trivia: the terminal velocity of a human body is about 120 miles per hours. The terminal velocity is the speed where the force of gravity balances out against the wind resistance. A falling body goes no faster than the terminal velocity. At 120 miles per hour, this speed is usually terminal.

If I am trying to predict the speed of a bowling ball dropped from a house, then I can probably neglect air resistance. But if I am dropping feathers, then wind resistance is a pretty gosh-darn important part of the model. How about when I am looking at the trajectory of long slender sticks of wood with a sharp point on one end, and feathers at the other? Is air resistance important for a bow hunter when determining how far above the heart of the deer to point?

Yet another super-hero who relies on John the Math Guy for all her Math Guy needs

Strange as it may seem, I recently had a client who asked that very question. An elaborate experiment was performed, and I got out my big slide rule to crunch the data. I could find no evidence in the data that air resistance was important. Arrows are arrow-dynamic. (I am really proud of that pun, by the way.)
Are you keeping track?  If I am dropping feathers or jumping from an airplane, I need to mind the air resistance. If I am shooting arrows or dropping bowling balls from my roof, I don't need to.

But, you may ask, what if I am determining the path of a satellite, where there is no air resistance? Can I just use the same formula: distance = one-half the constant of gravity times the square of the time? 

Well... yes and no. Yes, the formula works, but no, the force of gravity will not be the same as on Earth. It is entirely possible that the force of gravity is not the same over the whole trip. The Earth's gravity diminishes as the square of the distance from the center of the Earth. So, at a height of 4,000 miles above the Earth, the gravitational pull is about a quarter of what it is at the surface of the Earth. At a height of 32,000 feet, the difference in the acceleration of gravity is about 0.3%, so I could safely leave it out of my flight calculations when I test my life insurance policy.

All right... here's another good one... What if I am measuring the rate that helium balloon falls when I drop it?  Oh. There is some other force involved there... the weight of the atmosphere pushing down on the balloon. I need a totally different equation if Macy's calls me in to consult on their parade. But, I can ignore buoyancy when I am dealing with bowling balls and arrows, at least until I start filling my bowling balls with helium.

I have yet to regale the reader with an explanation of how the combination of the spin and dimples on a golf ball cause turbulence that reduces wind resistance and makes the ball go further. Nor have I mentioned how my wife's dimples effect my own turbulence and speed. I will save that for another blog.

The first point I am making is that a really, really accurate mathematical model of reality is really, really complicated. But as George Box once said "All models are wrong, but some are useful."

Now let's consider my deer hunting buddy. Let's say that he refused to believe my analysis and figgered in the air resistance when he determined where to point when he was out in the woods, killing poor defenseless deer. In order to make this air resistance correction, my buddy needs to know the constant for the wind resistance to use in the magic equation. In order to get that constant, he needs to spend an afternoon at the archery range, shooting arrows from different distances to get the data to calibrate the mathematical model. Then he has to buy me another six-pack to coerce me to turn his data into a value for the wind resistance parameter that fits his arrow.
I predict that there will be less venison in his freezer as a result of his figgering in the air resistance. It's not just because the calculation is harder - it's because the calibration of the effect is less stable. There is noise in his data. He might have flinched a bit on one shot during the calibration run, or pulled the bow back a bit too far on another shot, or measured the position of the arrow on the target a bit wrong on another. Since the effect is small, the calibration will be sensitive to this noise in the data.

I have blogged about this before, the temptation to try to add more parameters to improve regression. I even wrote an honest-to-goodness scientific paper that at one time earned the Guinness Book of World Records distinction of having the largest color difference ever reported.
And there is my second point. Sometimes the quest for that perfect model is just a dumb idea.
One of my favorite drinking buddies

As my pal Einstein once said,"Everything should be made as simple as possible, but not simpler." As a guy who hangs out all day with mathematical models, I know that models are often not all that simple. Anorexia, paparazzi, you name it! I am with Einstein on this one.
Now some serious advice for any would-be applied mathematicians who would actually consider taking advice from a guy with a dorky hat, old man sunglasses, and a slide rule. A good share of the work done by an applied mathematician is determining exactly which effects are necessary to include in the mathematical model.

Saturday, February 13, 2016

Valentine's Day Movie Picks

"So, what are gonna do for Valentine's Day?" That question always scares me when it comes out of my wife's mouth. It scares me because I have learned that the question really means that I have the responsibility of decision-making, but don't have the authority to enact that decision. If I come up with the "wrong suggestion", then I will be in trouble. I cried a little bit under my breath.

 

I took a deep breath, and I did come up with a suggestion that was a winner. I could tell it was a winner because I didn't get instantly ridiculed. "You know Honey," I said in my sweetest James Earl Jones kinda voice, "the restaurants are always so crowded on Valentine's Day. Maybe we should make a nice meal and watch the greatest romance movie ever made."


Intimate pic of Madelaine and I from Valentine's Day 2015.
I'm the one with the chocolate stains on my earlobe

"Oh? What movie might that be?" Like I said... I wasn't ridiculed for coming up with a stupid idea! But she did put me on the spot. Luckily I had a few suggestions in my pocket. "I dunno... Must Love Mathematicians? Sleepless in CIELAB?" She came back with Pretty Woman, and then "that one with Cary Grant and what's-her-name... and they agree to meet at the Empire State Building..."

How does one decide what movie to watch? I have had such good luck with crowd-sourcing before. I like the idea of crowd sourcing... You ask a few thousand of your closest friends about which tie goes best with your boxer shorts, and you'll be guaranteed not to look like someone who gets all their fashion advice from Donald Trump.


I decided the rules ahead of time. I would Google the phrase "best romantic movie of all time", and take the first 20 hits that gave me lists of movies. I would take ten movies from each website, and compile these into one big list. The winning movie would be the one that occurred in the most lists.

Of course, as soon as you make rules, you set yourself up for problems. The first website I looked at had 100 movies listed. The next had 20. So... does the first website get 100 votes, and the second site only 20? That sounds about as fair as the whole super-delegate thing.


So, I decided that if the site had a count-down sort of thing, I would pick the best ten. If the movies were just plopped into the file without reference to any ranking, I would just take the first ten.

I am sure that most of my readers are getting a little hot under the collar just reading my description of meta-analysis! Boy, this sure does get my central processing unit going!


I thus had a list of 200 movies, with many duplicated. The duplicates were the ones I was most interested in. Without further ado, here are the winners...

Annie Hall



When Harry Met Sally



Pretty Woman



Say Anything



Here is a list of the most commonly cited romantic movies. Cue up one of these movies on your Roku box, stream yourself a little Amazon Prime Rib, and you got yourself a Valentine's date.

Annie Hall 10
When Harry Met Sally 9
Pretty Woman 6
Say Anything… 6
Casablanca 5
Four Weddings and a Funeral 5
It Happened One Night 5
Roman Holiday 5
Sleepless in Seattle 5
The Notebook 5
The Philadelphia Story 5
The Princess Bride 5


Then again... I showed the list to my lovely and darling wife. "Annie Hall??!?!?  That's a good movie, but it's not romantic! It's a friggen' Woody Allen movie, for Mose's sake!" I guess it's like my gramma always used to say: you can source all of the crowd some of the time, and you can source some of the crowd all of the time, but you just can't make peanut butter out of lilac petals with a pair of galoshes.