Saturday, January 17, 2009

Venn Diagram of Poker Hands: Solution

Venn Diagram of Poker Hands:


FOUR OF A KIND and FULL HOUSE are both inside THREE OF A KIND and TWO PAIRS, but do not overlap.

THREE OF A KIND and TWO PAIRS are both inside PAIR.

ROYAL FLUSH is inside STRAIGHT FLUSH.

STRAIGHT FLUSH is inside STRAIGHT and FLUSH.

PAIR, STRAIGHT and FLUSH are all inside HIGH CARD.

Because any hand has a HIGH CARD and HIGH CARD includes all the others, HIGH CARD is identical to ALL HANDS.

The above diagram is topologically correct, I think, so it doesn't really matter what sizes or shapes the boundaries take.


An additional problem, for those who love easy combinatorics, would be to show the numbers and probabilities for all the regions. This requires a slightly different interpretation of the labels: for example, HIGH CARD is interpreted to mean "HIGH CARD ONLY" which excludes PAIR, FLUSH and STRAIGHT.

Update  3/16/17:  XKCD has set me straight: technically, this is an Euler diagram.

Biomimicry of evo-devo patterns.

The evo-devo (evolutionary developmental biology) idea is that organisms have basic developmental core processes (a toolbox) that are regulated during development by other genes. Thus basic mechanisms such as development into segments can be regulated to produce few-segmented organisms such as insects or many segmented organisms such as snakes.

There is a surprising analogy in the UNIX (and thus LINUX) operating system design philosophy: "Rule of Separation: Separate policy from mechanism; separate interfaces from engines." The short version is "mechanism, not policy".

The X windows system, written about 25 years ago, made heavy use of this design principle. X provided the mechanism for user interfaces that did all the hard work of drawing and reacting to user input in a very concise and general way. Specific user interfaces such as Motif and OpenLook (that looked very different) could then be created just by controlling the use of X mechanisms.

A more recent development (10 years) exploiting this design principle has been the addition of cascading style sheets to HTML. The underlying HTML of a web page can be displayed in radically different ways depending on the style sheets applied to it. (For explanation and some amazing variations, see Zen Garden.)

Another possible example of this biomimicry is the Constitution of the United States, as I explain in Mechanism, Not Policy: Creation Of The Second Invisible Hand. This one predates modern evo-devo ideas by quite a bit, but is my own (possibly crank) interpretation.

The evolution (in the sense of change over time by modification) is obvious in all three of these examples.

Thursday, January 01, 2009

Venn Diagram of Poker Hands

A couple of years ago, I took a course on teaching Discrete Math at Tufts. While we were talking probability, we used Venn diagrams to illustrate how to compute some probabilities. And it occurred to me that it would be interesting to make a Venn diagram of all the types of poker hands. After I did it, I looked on the web to see if there was one posted any where, searching with "venn" and "poker", but couldn't find any. This is the best I found today:



It's obviously got some gross mistakes. For example, the straight circle is by itself, rather than including straight flush. And the non-straight circle is an abomination.

The challenge is to make a correct Venn diagram of the poker hands. Every kind of hand should be properly nested in all the simpler kinds of hand. I'll post my answer in a week or so. Alternatively, if you can find a better answer on the web or elsewhere, I'd like to know where.

Update 1/17/09:
Here is the solution. No peeking until you've solved the problem!

Friday, November 28, 2008

Moderation Policy

I've been participating in online community discussions for about 35 years now (starting with the Plato System in 1974.) I've seen numerous discussion groups start, grow, become diseased (with trolls, hostile opponents, etc.), recover, mature, senesce, and die.

I was among the first on Usenet Groups (which were an imitation of the newsgroups on the Plato System), and if you want to read some of my early (1984) Usenet postings, search google groups for "Huybensz" (my maiden name, which nobody ever pronounced or spelled correctly, now shortened to Huben) or "mrh". Google's cache of early postings is very incomplete.

So when moderation policy issues come up, I do think I know something about it. Sometimes they have come up here, sometimes people who dislike my position or style bring them up in their own blogs.

Here, as a heuristic, I tend not to allow anonymous comments. It is trivial to create a pseudonymous google (or other) identity: that's no real obstacle, despite protests from fools like Skeptico. It does deter the most casual annoying commenters. But the big win is that it allows us to have lines of argument person by person, rather than a contradictary chorus of an anonymous crowd.

I also rarely delete comments. I'm reluctant to do so, but sometimes there are good reasons that are not encapsulated by simple rules.

The best explanation of managing comments in blogs that I've seen is from Teresa Nielsen Hayden, her post NOT titled Some things I know about moderating conversations in virtual space.

Here are her principles:

1. There can be no ongoing discourse without some degree of moderation, if only to kill off the hardcore trolls. It takes rather more moderation than that to create a complex, nuanced, civil discourse. If you want that to happen, you have to give of yourself. Providing the space but not tending the conversation is like expecting that your front yard will automatically turn itself into a garden.

2. Once you have a well-established online conversation space, with enough regulars to explain the local mores to newcomers, they’ll do a lot of the policing themselves.

3. You own the space. You host the conversation. You don’t own the community. Respect their needs. For instance, if you’re going away for a while, don’t shut down your comment area. Give them an open thread to play with, so they’ll still be there when you get back.

4. Message persistence rewards people who write good comments.

5. Over-specific rules are an invitation to people who get off on gaming the system.

6. Civil speech and impassioned speech are not opposed and mutually exclusive sets. Being interesting trumps any amount of conventional politeness.

7. Things to cherish: Your regulars. A sense of community. Real expertise. Genuine engagement with the subject under discussion. Outstanding performances. Helping others. Cooperation in maintenance of a good conversation. Taking the time to teach newbies the ropes.

All these things should be rewarded with your attention and praise. And if you get a particularly good comment, consider adding it to the original post.

8. Grant more lenience to participants who are only part-time jerks, as long as they’re valuable the rest of the time.

9. If you judge that a post is offensive, upsetting, or just plain unpleasant, it’s important to get rid of it, or at least make it hard to read. Do it as quickly as possible. There’s no more useless advice than to tell people to just ignore such things. We can’t. We automatically read what falls under our eyes.

10. Another important rule: You can let one jeering, unpleasant jerk hang around for a while, but the minute you get two or more of them egging each other on, they both have to go, and all their recent messages with them. There are others like them prowling the net, looking for just that kind of situation. More of them will turn up, and they’ll encourage each other to behave more and more outrageously. Kill them quickly and have no regrets.

11. You can’t automate intelligence. In theory, systems like Slashdot’s ought to work better than they do. Maintaining a conversation is a task for human beings.

12. Disemvowelling works. Consider it.

13. If someone you’ve disemvowelled comes back and behaves, forgive and forget their earlier gaffes. You’re acting in the service of civility, not abstract justice.

Thursday, November 20, 2008

The One Ring

I don't really have a personal blog (just how many should I have?) but I want to stash this somewhere on the web.

I teach Precalculus, and one of the key ideas for explaining the trigonometric functions is the unit circle ( with a radius of 1.) Tolkein fans might appreciate how appropriate this poem is:



The One Ring
(Great Circle Of Power,
Math Student's Bane)

One Circle to rule them all,
One ring to find them,
Unit circle to calculate all,
and in trigonometry bind them.
In the study of Precalculus where the functions lie.

Thursday, November 13, 2008

Lame Duck Ideological Sabotage Deterrence Bill

Yesterday, there was an NPR report that the Bush administration is charging ahead with plans to change regulations in industry-friendly ways that Obama would not be able to undo. For example: bypassing environmental regulations, approving various applications, etc.

This could be forestalled with a Lame Duck Ideological Sabotage Deterrence Bill. The idea is to get the threat out there that any company that benefits from lame duck regulatory changes (before Obama and Congress get to act) will be socked with a massive penalty tax, far in excess of the profits expected from the regulatory change.

Of course, this could be prettied up and done informally.

Alternatively, Obama could be negotiating with Bush not to do this. Obama has a major bargaining chip: how freely he will unleash the furies to discover and prosecute Bush administration crimes and malfeasance. I'd settle for a truth and reconciliation commission, though I'd love to see Bush and Co. extradited to the Hague to stand trial for war crimes such as torture. Bush cannot pardon anybody for international crimes, only for crimes against US law. I don't think Obama would ever use this club against Bush, but it sure would make me feel good.

Sunday, October 26, 2008

Sarah Palin Proudly Ignorant

Sarah Palin's speech ridiculing fruit fly research earmarks as wasteful has spawned an enormous reaction. However, that reaction is almost as wrongheaded as Palin.

When I read the criticism at Skeptico, I just couldn't resist deflating that (sometimes good and reasonable) windbag again for his confidence in his ignorance.

So many people are so wrong about this, that I've decided to post my response here as well. I wrote:

While it seems many people have their hearts in the right place on this subject, the press (and this site) are showing an incredible ignorance as well.

The common name "fruit fly" is used for SEVERAL FAMILIES of flies. The olive fruit fly (Bactrocera oleae) is in the family Tephritidae, while the common fruit fly of genetic research (more accurately called a vinegar fly or pomace fly) is in the family Drosophilidae.

Olive fruit flies have NEVER been important for genetic research, and anybody implying that this earmarked research is important for genetics is a fool ignorant of the differences between flies. I've yet to see the research proposal itself, but the few words I've seen describing it make it sound as if the research was for biological control through release of sterile irradiated males: a technique that has been used successfully to control several pest fly species such as the screwworm fly. That's economically valuable research that Palin is wrong to ridicule, but it also has nothing to do with genetics.

Once again, we see Skeptico (this time following the herd) making comments on a subject where he is extremely ignorant, where anybody familiar with the subject (like me: I had a course in fly systematics at Cornell) could immediately spot the howlers. I suppose his excuse is that he's as ignorant as most people, and doesn't have the sense to consult an expert in the RIGHT FIELD before he regurgitates bullshit from experts in the wrong field, who can't tell one family of flies from another.

Ayn Rand is not the source of the problem.

A correspondent wrote "Was just curious if you thought that the vast economic problems we're now facing could possibly be tracked to ideologies that Ayn Rand so cleverly designed and sold?"

A lot of people are trying to pin this down on Rand. But that makes no sense to me.

The basic source is the plutocracy of corporations and their owners. They are the first class citizens: government, business, and entrepreneurs serve them first. Rand was merely an entrepreneurial repackager and popularizer of plutocratic ideologies. As was Hayek, Mises, and Rothbard. As are CATO, Heritage, and a host of other think tanks.

I'm sure that the plutocracy would much rather we misdirected the blame at libertarians and other cats paws.

Monday, October 20, 2008

The financial crisis and libertarianism.

Jacob Weisberg has a new Slate article titled The End of Libertarianism: The financial collapse proves that its ideology makes no sense.

It's not a perfect article, and it may claim a bit more than is justified, but the basic point is sound. Financial markets cannot regulate themselves in ways necessary to prevent disasters, contrary to libertarian propaganda.

The largest cause of the financial contagion has been the credit default swap. These are unregulated, high-leverage derivatives that were created to circumvent normal insurance regulations. Without these derivatives, the damage done by the housing bubble collapse would not have paralyzed the entire lending industry.

Libertarians love to claim that markets swirl around and circumvent attempts at government control. Now we see the result of letting them do it. Numerous people called for this to be regulated, but the market fundamentalists were too influential.

Monday, October 13, 2008

Krugman wins his Nobel Prize

Many years ago, Steve Kangas pointed me to Paul Krugman as a really good economist. I've followed his writings in numerous sources since then, and have at least ten of them in the Critiques indexes. (Go to the All Links page and scroll to the first mention of his name.)

Krugman has many harsh things to say about libertarianism and Austrian economics. The one that is really relevant today is The Hangover Theory: Are recessions the inevitable payback for good times?.

Sunday, September 21, 2008

Why we won't have Mars or Moon colonies for a LONG time.

A thought while driving.

I've long loved the science fiction / futurist dream of establishing extraterrestrial colonies. But I've realized why it won't happen any time in the next century or so.

A colony requires a technology of production that will (in combination with trade) allow self-sufficiency and growth.

If we look at past successful colonizations, we can spot the technologies. Europeans brought technologies for dominance and agriculture, and were able to adapt technologies of the native peoples. Polynesians brought marine and agricultural technologies.

Now, some polyannas might claim we have the technologies for the Moon or Mars, and start listing solar power and other Heinlein/Clarke stuff, but it's obvious to me that's wrong. Yes we have those technologies, but they are not right or sufficient. We have a very simple demonstration why, right at our doorsteps.

Antartica.

It would be far easier to colonize Antartica than anywhere in space, and yet we haven't in roughly 100 years. We have some stations there, but NOTHING IS BEING PRODUCED for local consumption or for trade. (Yes, you could argue that scientific information is being produced, but face it: a real colony has a COMMERCIAL life that supports its own population.) Other excuses are easily made (for example international treaties), but if there was commercial opportunity due to technology in Antartica, we'd exploit it as fast as we exploited offshore oil: the treaties would change.

We haven't even colonized tropical shallow waters, let alone under water. Offshore oil fields are not colonized. Vast commercial opportunities await in those locations, but no colonies. Because it isn't enough to have a technology for commercial exploitation only: you must have an array of technologies for daily living of a community before you really have a colony. Otherwise you're just an outpost. It can be argued that Chilean's have a permanently occupied Antartic colony, and that satisfies the daily living technology requirement. But I'd point out that it is not a commercial success: it is a highly subsidized investment in geopolitical claims staking.

Saturday, September 20, 2008

Paying for the bailout.

I know I've got maybe 3 readers but I want to be on the record with this one.

All the wailing and gnashing of teeth over the general public having to pay for the bailout seems to be missing three little words.

Capital. Gains. Tax.

Nice populist ring to them: but you won't hear them from somebody like McCain.

Now, I don't know if that makes any economic sense as an idea, and I'm not proposing it as a serious solution because I'm not knowledgeable enough to think it through. But I'm shocked that nobody's using the words yet. Populists could use the bailout as a justification for continuing or increasing the CGT. Plutocrats could use the CGT as justification for the bailout -- what have they been paying for all this time? Spin could go either way.

A further source of joy for me is to hear all the howls of "communism" coming from the usual capitalism-uber-alles lunatics. Here they have the most compliant right-wing presidential lapdog they could ever have asked for. But when faced with the possibility of being branded the second Herbert Hoover for bringing on a second world-wide great depression, he scurries to nationalize. Maybe that sounds as if he's working against his patron capitalists, but chances are it will boil down to government handouts to the corporations and the rich.