Saturday, March 08, 2008

Site counter...

I have been blogging here since 2004, but I only got around to putting in a counter last March 7th. The counter sometimes dis-appears, then re-appears with no explanation. It just has the new count, as if to say, "What? I'm free. I will go on vacation whenever I want--for as long as I want". I really had little idea of what the count would be like. The web is a big place, the world has a lot of people in it... I write mostly for myself and it is hard to estimate how my style, such as it is, would change if I had a large audience. I suppose I will see, if and when I gain more of a following than the 4 friends and 3 relatives who (most likely) make up the bulk of my readership. dbp

Friday, March 07, 2008

A Little Math

I was thinking about the this last night.

Suppose you have some situation where you expect (given a lot of repetitions) a result of three, on average.

For instance: Say you had 6 cells and each have a 50% chance of dying over the period of one day. Zero could die, or one etc. up to 6. The average would trend toward three if you did the experiment enough times. There is a way to calculate the probability of getting exactly zero, or one, or whatever number you are interested in.

The formula is here: If you are interested

What concerned me last night was the probability of getting exactly zero deaths and more specifically what would happen if we kept the average at 3 while increasing the sample size: For instance 6 samples with a P=0.5 should be the same as 15 samples with P=0.2 chance of death: The average would be three in either case.

What would be the probability of exactly zero deaths though? Simple. Take the probability of a cell living and raise it to the power of the sample size. This should be obvious--but just in case: Think about flipping a coin. You have p=1/2 of getting heads in one flip. p=1/4 for getting two heads in a row (1/2 x 1/2)

I put the following numbers into Excel:

0.5^6=--------------------0.0156

0.7^10=-------------------0.0282

0.8^15=-------------------0.0351

0.9^30=-------------------0.0423

0.99^300=-----------------0.0490

0.999^3,000=--------------0.04971

0.9999999^30,000,000=---0.04978

Please note that I use the P for living since for there to be zero deaths, all must live. If the P for death = 0.2 the P for life = 0.8. You either live or die and the total must be 1.0 or 100%.

I am not sure why the results look like this: The probability of exactly zero deaths goes from 1.5% at the lowest end to approaching 5% at the high end, Why? (Bear in mind too, for any of these sample size probability sets, the average will always be three cell deaths). I would have thought at the low end it would be more likely to get zero since with an N of 6 there are only seven possible results: 0, 1, 2...6. At the high end there are 30 million possible results--even if some of them are pretty remote.

Thursday, March 06, 2008

Minesweeper

Do you remember Minesweeper? It came bundled with an early windows OS and I played it a lot. I think I got down to around 2 minutes as a record for the expert version. Anyway, lots of people played it to excess, including me. I came to call it "mind sweeper". After playing for a good bit, your eyes wouldn't focus right, your hand would be a claw and your brain reduced to jelly. Good times.

I came across this movie preview based on the game.

And here is someone doing Minesweeper in 38 seconds--about 1/4 my best time...

Wednesday, March 05, 2008

Kids...

From Lileks, The Bleat today.

So I don’t judge people who don’t want kids, but I can’t stand “breeder” and “clones” and “crotchfruit” and all the other terms of derision. It’s the worst form of misanthropy, and a curious protestation of ignorance: these people literally do not know what they’re talking about, since there’s nothing about parenthood you can observe from a distance that compares to the thing itself. Being irritated with poorly-socialized children in a restaurant does not set one up in a moral high chair. Believe me, parents are just as irritated with those people as you are.

Maybe most are as irritated, not me--at least not as much as before we had children. I make no claim here to be a better person than James (or anyone else). My reasons for not being irritated are mostly related to my own personal failings.

--It is an opportunity to feel superior: Our kids probably were just as bad, but I don't remember it that way now. Now it just seems like they were always pretty good in public.

--Remembering how embarrassing it was to have children behaving badly in public makes me feel for the parents. Mostly I feel, Wow! it is so much better to see the hate-rays aimed at someone else in the plane, restaurant etc.

--Lastly, I am just used to whining, screeching kids and it really doesn't bother like it once could. Had the disease, immune for life--or at least for a while. I have noticed that grandparents (on both sides) seem to have forgotten anything they ever knew about kids--so the immunity is long but not for life.

Tuesday, March 04, 2008

Mojito Recipe...

Fresh mint may be a little hard to come by in the Winter but I highly recomend mojito's over gin and tonics.

An easy mojito recipe

1.5 oz white Rum

12 fresh mint leaves

1/2 lime

7 oz club soda

1 teaspoon granulated sugar

Muddle mint leaves with lime juice and sugar in the bottom of a glass. Toss-in a couple of ice cubes. Add rum then soda water. Garnish with a lime wedge and a few sprigs of mint.

Ever since I had one of these I haven't wanted a gin and tonic.

Note: A well done comment on a first-class blog makes a perfectly good entry on an nth string blog like this!

Monday, March 03, 2008

I've thought this way for ages..

Jane Galt has a good idea. I would take it one further: Make FDA approval optional. If you go through the time and expense of getting approval, you are immune from lawsuits. If you choose to skip approval, then you are open to being sued.

Sunday, March 02, 2008

Spring is just about here...

What is this?

Let us take a closer look...

It is sugaring season when it gets colder than freezing at night and warmer than freezing in the daytime.

We made maple syrup when we lived in Vermont. Not because we had more maple trees though. No, it was because we heated our house with a wood stove and so it was really easy to just dump the day's sap into a big stockpot on the stove.

It takes 30-40 gallons of sap to make a gallon of syrup, so collecting the sap is only half the battle. If we are not making syrup, why collect the sap? I find that it makes a very refreshing and only slightly sweet drink. I just filter the sap through a paper towel to get out any debris that might have fallen into the bucket.

In Vermont, my neighbor Joe even set-up a little wood fired sugar shack in the woods between our houses. We would share a beer or two and drag whatever wood we could find into the fire under his evaporation pan. It was great! The wood we used was too rotten to consider for use inside the house but worked fine to boil sap. An added bonus was that this work totally cleaned-up that patch of woods and made it look like a park. I think I even suggested that he put the shack in a different part of the property every year (we had about 3 acres in each of our lots). At the end of ten years, both places would have looked park-like.