thoughts on junk DNA

March 7th, 2009

It’s interesting to think of DNA as the source code for life. A lot of ideas fall into place nicely with this analogy.

You need some sort of compiler or interpreter; this role is given to RNA. You need a basic set of atomic instructions, and something like labels to certain parts of the code base – pointers into memory. Codons are the instruction set, with start codons helping to act as labels. A central processing unit executes the commands – ribosomes turn the codon sequences into proteins, and the proteins interact to achieve various goals. Chemistry itself is the ultimate processor, but it takes more focused form in the complex interaction of the enzymes produced by the DNA. Some of the proteins act as inhibitors, decreasing the activity of enzymes; others are activators, doing the opposite. These constructed molecules are capable of effecting or halting the production of still other amino acid complexes. The end result is a logically sophisticated dance worthy of the millennia of evolution which produced it.

As I write code on my own, in an experimental fashion, I sometimes don’t worry about the readability of the code. It is in this scenario that the evolution of source code best matches that of DNA. There is a small cost to having extra/old code, yes, but it is far outweighed by the raw functionality created.

Looking at some source which has grown up just a little bit, mostly unsupervised, offers a few suggestions about bits of information that may, at first glance, appear non-functional (aka junk DNA):

  • Old functions which are never or rarely ever called

    As code evolves, some functions become less useful, or replaced by newer ones. It would make sense that some codon sequences would become obsolete, and the encoding would remain in the DNA.

  • Literal strings and other initialization data

    There might be a bit of initialization data in DNA – information not obviously functional, yet still used. For example, some DNA may only be active for a very short time when an embryo is first developing, or triggered temporarily at certain key development stages. An even more interesting hypothesis is the possibility that some instincts, or primal knowledge, are somehow encoded in DNA, in a manner somewhat different than traditional protein transcription.

  • Debug code

    Debug code is useful for figuring out what part of a process has failed. Although there may not be a conscious debugger to check the output, we could still hypothesize that a little extra information about each step in a procedure could give enough information to locate and react to a failure or attack in the system. In this case, the usually non-functional code would be rarely and temporarily activated as a defensive mechanism.

top movies of 2008

February 25th, 2009

There are two things that make a movie worth seeing: because it moves you or makes you think by reflecting on reality, or because it entertains you by helping to escape reality.

If we are pained by a sympathetic situation that was experienced by someone in history, or alive today; or if we feel vicarious joy for a simple act of triumph (say, winning a spelling bee), the reality of the situation, symbolic or literal, is a key factor in our empathy. We are moved because this is the way life really is. On some level, we can relate to the plights and victories of these characters.

On the other hand, it’s nice to tickle your imagination from time to time with an escape. We don’t really believe Indiana Jones could easily be real, or that Spider Man might one day exist. Nor do we expect a monster like Godzilla to ever attack a nearby city (after all, Tokyo is far away for most people). The entertainment here lies with a contrast to reality. Everyday lives are kind of boring. Monsters don’t attack, nobody wins the lottery, most days you don’t fall in true love for the first time, or find an alternate dimension, or save the world. But it can be cool to daydream.

The best movies work with these principles – they choose a side. Sometimes you can mix these two aspects, but you have to be careful about it. If a piece of a film is just-for-fun, there’s no harm in bending – or even reversing – reality. But if you’re trying to move your audience, trying to comment on a state of the human condition, you have to be more careful. Symbolism and admitted exaggeration can work, because we understand the reality being represented. But to toy with reality to suite the message of the film is to defeat your own purpose. For example, Syriana presents a terribly bleak and pessimistic view of political and industrial intrigue. We are lead to believe that this situation could be real, but it felt like they were stretching a little too far; as a viewer I felt bereft of both entertainment and reality.

This is some background for my top movie picks of 2008. I think in ten years, these movies will still be worth watching, while a lot of other highly anticipated films from this year will be forgotten.

  1. Gran Torino

    Clint Eastwood knows film. He’s been involved in about a half century of movie evolution, and I think he’s kept the good parts of more traditional film alive here. The film says a lot without being overly symbolic, and the characters are visceral and quotable without feeling cliched. This is a contemporary, somewhat realistic (even if parabolically so) film about redemption and opportunity. It’s good because we leave the theatre feeling for the story, not worrying about its plausibility. There are no u-turns or magic revelations. Everyone is flawed or troubled, and nobody wins everything. Yet there are pieces of fun, of power, of thought, of sacrifice, and of compassion.

  2. Wall•e

    Only Pixar could seriously attempt this: Let’s make a dialogue-free, post-apocalyptic love story between two robots caught in a conspiracy that might crush the threadbare hopes of the space-stranded remnants of humanity. For kids. And somehow it works. Wall•e is visually rewarding, touching, whimsical, nostalgic, and engrossing. It’s sci-fi speculation is escapist entertainment first, and social commentary far second. It gets away with allegorical statements on the irresponsibility of humanity because the reality in it is not presented as the truth, but rather as a kind of cautionary fable.

  3. Iron Man

    There are two common superhero movie mistakes: they don’t know how seriously to take themselves, and the heroes are often portrayed as everyday people who happen to have a heart of pure gold. This film tackles that second mistake – Tony Stark is neither your everyday guy, nor endowed with such heart. We like him because, unlike our super/spider/batmen, when we become iron man, we don’t have to shoulder the great responsibility of great power, and we don’t have to cower under a shroud of modesty. We can just do our thing and enjoy the moment. Somehow I find Tony Stark more realistic and more entertaining at the same time. Of course, this film is not about the human condition – to spell out the obvious, this is just for fun. And it succeeds.

  4. Be Kind Rewind

    See The Science of Sleep before you see Be Kind Rewind. Michel Gondry is a child with the ability to turn his daydreams into movies, and to really appreciate the world you’ve entered, it helps to speak the language. This one got a number of poor reviews because it’s outside the realm of normal moviedom for casual viewers. It’s unusual Gondryan style is cubism in crayon. And this is the subtle genius of it. When a critic is confused, they have to decide if it’s because the movie is above them or below them to avoid looking dumb. With Be Kind Rewind, the confusion is simply a different narrative medium — the film is just for fun, but seriously so. If you try to use Duchamp’s fountain the way you’re used to, you’ll be missing the point.

    Enough defense. Be Kind Rewind is good because it’s fun. The characters and the plight – the foundations – are tangible. Beyond this – the devices and exposition – there is not much pretension of reality. The key components are in place – what’s real is what moves us, what’s art is what makes us laugh.

  5. Wanted

    Like Iron Man, Wanted breaks the chains of the stereotypical hero movie. In this case, it really doesn’t take itself too seriously. On top of this, the dramatic tension is very personal – Wesley (our protagonist) desperately wants to avenge the death of his father. Saving the world takes the backseat. It works because it doesn’t really bother with the less entertaining aspects of the world – things like the rules of physics applied to bullet trajectories, or oracles more traditional than giant looms.

Honorable mentions: Cloverfield, Kung Fu Panda, Pineapple Express

Enter The Tangent Space (dot com)

January 26th, 2009

Here’s a new site for exploring cool math ideas: thetangentspace.com

My blog posts here have often alternated between technically detailed mathy or algorithmic thoughts, and more informal musings on life, the world, and interesting things in it. In my mind, there are really two audiences – one for the mathy stuff, and one for everything else. So it probably makes sense to have two places to put these different thoughts. From now on, my posts here will be less mathy, and I’ll feel free to go math-crazy (or algorithm-crazy, as the case may be) on thetangentspace.

I’m trying a new type of blog with thetangentspace. It’s about math research, and research is about communicating and collaborating. Even if it’s a slow channel, it’s an interactive process. So thetangentspace is both a blog and a wiki. The blog is meant as an easy stream of intuitive ideas – something you can keep up with, without investing too much thought. The wiki is where the details go – the full proofs and formal definitions. It’s also a place for other mathematicians to make significant additions – beyond what you can leave in the comments of a blog – using the same software as wikipedia. My hope is that some of the ideas and questions I post will inspire others to build on these initial offerings.

Check it out!
thetangentspace.com

mathskool.com

January 2nd, 2009

I just launched the alpha version of mathskool.com.

This is a website I’ve been working on for the past month, meant to help connect great math teachers with motivated middle and high school students. The idea is to provide a centralized library that many math teachers can contribute to, and which gives students free access to short, focused videos. I imagine teachers recommending them as supplementary material to classes, or students searching for a single particular topic while stuck on their homework or studying for a test, or even curious people learning new things on their own.

I plan to continue adding features and videos to this site gradually over time. YouTube and other math-oriented sites already offer videos, but I think mathskool is unique in focusing on math education, being free, and encouraging a more interactive community with a nice question/answer system. For now I’ve included a few videos of my own, and several from other people.

Let me know if you know any math teachers who might be interesting in using or contributing to the site. The next step is to start building a community of users – teachers and students.

Check it out! mathskool.com

the scaled interest principle

December 31st, 2008

Here’s an idea that I’ve seen in action throughout my life, although I’ve never seen it explicitly put into words:

Events of interest tend to happen more quickly at smaller scales, and slower on large scales.

Interpreting relativity as putting a speed limit on the flow of information, gives a natural justification of the principle in the physical world. The idea jumps out when you consider the (admittedly imperfect) analogy between atoms and solar systems.

We can also see it in other ways. Small companies usually react more quickly than big ones. Flies move more quickly, and die more quickly, than elephants or whales. Smaller computer programs often run faster than large ones. Things happen faster in dense cities than in a sparse countryside. An idea of little interest fades faster than a popular meme. A simple system is easier to work with than a complex one.

driving is kind of crazy

December 1st, 2008

It can be fun to ask yourself questions that help re-think our world. An example:

Suppose an advanced alien civilization discovered our human life on earth, and studied it carefully. There would certainly be some things that stand out to them as particularly strange, ironic, or just stupid. Which things would stand out?

I’m willing to bet that our current modes of popular transportation would stand out — in particular, driving a car somewhere (as opposed to taking a trian, boat, or plane).

Why? Let’s evaluate the danger of an action, very approximately, as the frequency you take this action multiplied by the probability at any point during the action that you will become seriously injured, mauled, and/or deadified. On average, this is basically proportional to the number of “man-made” fatalities caused per year in the course of performing an action (I say man-made as opposed to pre-existing medical conditions — otherwise, we would have to say “having a beating heart” is a dangerous action, since many people have heart attacks).

Along this line of reasoning, it stands out immediately that driving (or being a passenger in a car) is the single most dangerous activity you’re likely to perform on a regular basis. And, if you think about it just a little bit, it’s not so surprising.

Let’s add another test to help discover perilous conducts: does being drunk make the activity stupidly dangerous? Clearly, this is not true for 99% of the actions you take every day. You can read your email while drunk, you can walk around your house, you can listen to music, eat food, watch movies, try to do paper work, chat with friends, play with your dog or cat, read a book, sing karaoke, dance, or play games while drunk without any danger to your person. Yet, clearly, drunk driving is so dangerous that it is a serious legal and societal offense.

I don’t seriously expect anyone’s behavior to change in light of these thoughts — I still drive around all the time. But it continues to surprise me to apparently be alone in considering driving, while pragmatically necessary, a highly precarious practice. Certainly we can imagine worlds in which people move about in some way where a strong twitch at the wrong moment can’t kill anyone. Packets of information fly around the world following routing protocols and get safely where they’re going. Snail mail networks provide another huge and relatively safe means of transportation. Passenger trains, boats, and planes are operated by professionals under careful coordination with much lower risk of collision and higher standards of maintenance. Why not cars?

fairness is contageous

October 31st, 2008

Here is a trick to simulate a coin toss between two people if both of you are caught coinless: each person secretly chooses a number, either 0 or 1, and both announce their choice simultaneously. If both numbers match, this is heads; otherwise tails.

This idea can give surprisingly fair (i.e. close to 50/50) results.

Suppose you choose fairly, but your so-called friend is nefarious, and chooses their number in any non-50/50 manner. For example, they could always choose 1, or always choose 0, or always try to predict your answer and choose the same number as you.

As long as you choose fairly, though, the ultimate answer will also be exactly fair. Why? No matter what your friend chooses, you’ll choose either the same or the different number with 50/50 probability. If you’re really choosing your number fairly, then there’s no way for your friend to make any kind of prediction (by the way, this unpredictable property is one way to think about probabilistic independence).

Of course, the situation is symmetric: if your friend plays fair, then the ultimate outcome is fair, too, no matter how nefarious you are. Fairness trumps nefarness.

Even cooler: even if you both play unfairly, though still independently, then the ultimate outcome will still be more fair than either of you would have been acting on your own. The math on this is pretty simple.

Suppose you choose 0 with probability 1/2 + b1, and your friend chooses 0 with probability 1/2 + b2. I’m writing the probabilities this way because it makes the calculations easier. We can think of the b‘s as the “bias” of each person’s randomness. A bias closer to 0 means a more fair result — closer to 50/50.

Using b1 and b2, what is the probability that the outcome will be a match? It’s Prob(both heads) + Prob(both tails) =


(1/2 + b1)(1/2 + b2) + (1/2 – b1)(1/2 – b2) =
1/2 + 2b1b2.

In other words, the combined bias is 2b1b2. Notice that each individual bias is in the range [0, 1/2], so the combined bias is also in that range. Also notice that, if both biases are < 1/2, then the combined bias is less than either individual bias. This is what I meant by saying that the combined outcome is more fair than either player alone.

In fact, things are a lot more fair since this is a multiplicative effect. Suppose you’re sitting around with the unshakable urge to produce fair random binary digits. Alas, you empirically discover that you seem to choose 0 with probability 60%, and 1 the other 40% of the time. What are you to do??

Just write down a few random 0/1′s in a row, and take the XOR of this list of numbers. This is just a slight generalization from the above 2-player version. (By the way, this is the same as giving an ultimate outcome of 1 if there are an odd number of 1′s in your sequence; 0 otherwise.) If you started with bias b, then taking the XOR of n bits in a row will give you an ultimate answer with bias (2b)n/2.

Why? We can confirm this formula by repeated application of the above derivation that 2 players end up with combined bias 2b1b2. The sequence of biases for a single player looks like this:


b → 2b2 → 4b3 → … → (2b)n/2.

To get an idea of how incredibly useful this convergence is, suppose that your personal bias is b=60%, and that you want to be within 1 millionth of perfect fairness. How many times n must you perform a single (60%-biased) choice in order to arrive at an XOR which is this close to perfect fairness? Only nine times! This works because (2*.1)9/2 < 1/1,000,000. If you ask me, this is a pretty small price to pay to go from a 10% bias down to 0.0001%.

exposé: poorly Lego’d Eggos

September 22nd, 2008


It’s always interesting when a new mix of two different worlds pops up. Remember when Drew Barrymore married Tom Green? Sometimes these things work out – like the glory of rock stardom and video games. Other times the result is disturbing and creepy – like anime and ronald mcdonald.

I try to be optimistic, so I was pretty excited when I found out Eggo had released a Lego-themed waffle. At long last, food I can legitimately play with! This was awesome – two things I really enjoyed as a kid (and still do, though less often) – creativity and edibility, all in one.

Imagine the profound depths of my chagrin when I discovered the horrible truth. Gentle reader, let my folly be your tale of caution:

You can’t actually build anything with Lego Eggos.

Someone, somewhere along the way made an unspeakably heinous design decision and decided that three holes on the bottom of the wafflebricks would fit just fine with the 8 pegs on top. Please refer to the photographic evidence.

Why?!?!? As a mathematician, I can attempt to quantify the magnitude of this engineering catastrophe with a simple formula:

8 pegs + 3 holes = WTF

As you can see, these wafflebricks do not stack any better than standard waffles.

You have been warned.

mistaking your wife for a hat

August 30th, 2008

In 1985, neurologist Oliver Sacks published the book The Man Who Mistook His Wife for a Hat – a collection of 24 essays exploring fascinating case studies in neuropsychology. The title essay describes a man suffering from a form of visual agnosia – a result of brain damage in which vision is intact, but comprehension of vision is impaired.

For some reason, the man in question is able to see and understand the general shape of things, but has immense trouble “seeing” people and certain other things. The most curious example is the case when, as the man was leaving an office, he searched for his hat, and apparently attempted to remove his “hat” from the top of his wife’s head. Since he could understand that the top of her head was hat-shaped, he surmised that it must be the hat he was looking for.

In another case, he was easily able to recognize a wristwatch. Yet, when he was shown a glove, he had a great deal of trouble calling it a “glove”, or recalling its function. Instead, he was able to very accurately describe its general shape – a flexible series of tube-like structures ending in half-spherical tops, all joined at one end with a hole. In general, he had a great deal of trouble recognizing people and familiar faces, including his own wife.

I would like to add a hypothesis to the essay: that this form of agnosia suggests a neurological dichotomy between recognition of organic vs inorganic objects. Basically, this story fits the idea that there’s one part of the brain designed to recognize many natural objects – faces, hands (& gloves), dogs, cats, etc – and another part designed to recognize artificial or learned objects – wristwatches, tubes, cubes, etc. Such a dichotomy also makes sense evolutionarily, since brains that had built-in recognition of things that it could “evolutionarily know” were around, such as familiar human faces, would have a great survival advantage. The human race probably hasn’t had wristwatches long enough to evolve a glob of neurons just for them, so we may store the visual recall center for watches in a more learning-oriented part of the brain.

By the way, if you have any interest whatsoever in curious neuropsychological phenomena (who doesn’t??), I highly recommend Sack’s book. It also includes a case of a “Jimmy G.” who suffers from Korsakoff’s syndrome (to simplify – severe amnesia) which I’m guessing was an inspiration for the (very cool) movie Memento; and another case about an elderly woman who’s happy to be suffering the tertiary stages of a usually fatal disease, which I’m guessing was an inspiration for a certain subplot in an episode of House, MD :)

PS Tangent: why does it “sound wrong” to say “an usually fatal disease” when I know that’s grammatically correct?

should considered harmful

July 17th, 2008

When I was young, I learned a few words to never say. The entire concept of “bad words” always seemed funny and weird. It really doesn’t make much sense to disallow the utterance of a few key phonetic components, as if these somehow could really be inexcusably more offensive than other more coherent and meaningful strings of sound.

As I’ve played with the character of a personal dialect, I came to my own decision to swear less because, often, swearing simply means you couldn’t think of a more articulate way to express yourself.  To stretch an analogy, swearing is to communicating as drinking is to having fun.  It might seem cool when you first try it, but in the end it’s more a pain than a panacea.
Finally getting to the point: this post is not all about the classically crude curses, but rather about the existence of a few choice words – well, one in particular so far – that might actually deserve all the hullabaloo of a terminological taboo: the word “should”.  It is extraordinarily easy to invoke this word as a means of detached and elitist censure.
So what makes a truly bad word?  I proffer that a word which strongly implies, or depends upon, the acceptance of questionable ideas as a basis for its meaning, is a word which allows for easy abuse.  In the case of should, the questionable idea is that of either a universally-agreed moral code, or a moral expert.  A phrase like “you should never burp at dinner” carries with it the weight of unjustified authority.  In fact, such advice might leave you a rude dinner guest in some cultures.
To be constructive, let’s consider what can be said instead.  If you want to avoid the embarrassment of someone new to the dining customs of the U.S., you might say that many American hosts consider it rude to burp loudly during meals.  If you’re teaching your child about your moral position on theft (let’s assume you’re against it), you could explain the legal, material, and emotional consequences of stealing, along with your own personal disapproval.  If you have your own moral decisions that you’ve reached rationally, then it’s always possible to express yourself without resorting to vague implied universal standards.
Am I so vulgar as to say you should never say should?  Absolutely not — I’m really trying to emphasize personal choice and rationality here, after all.  So, with respect to any readers who chuckle at such lexical eccentricities, this post aims at nothing more than a reminder to speak responsibly :)