Saturday, March 31, 2007

The gross files

I interrupt the blogging hiatus with breaking news from one of my cats. Evidently Bennie has a hairball or something since he's gagging an heaving a bit. Unfortunately he is still hungry, so he was eating food, then spitting a bit up, then eating it again. Gross, huh?

Or maybe it's Feline bulemia? He's historically been unconcerned about his figure, and I doubt he's slimming down for swimsuit season. Lately though, some people have been calling him fat, so maybe that has sparked body image issues.

On a more serious note: ever since we've moved (about 10 days ago), he's also had an urge to use the litterbox 3-4 times an hour. I'm hoping it has something to do with the move/exposure to a new cat and not anything like the recent food poisoning in cats. Of course we checked his food against the recall list, but when I read lines like this:

Sundlof said the FDA had not found any studies of melamine in cats, and the results of only a single 1945 study that tested it on dogs. That study suggested the chemical increased urine output when fed to dogs in large amounts.


I worry the contamination might be more distributed than the pet food suppliers are letting on. It's time for a vet visit.

Labels: , ,

Wednesday, March 28, 2007

Adjusting to changes...

So I recently moved most of my belongings from my house to an already occupied 1-bedroom (on the Upper East Side of Manhattan). My cat is slowly adjusting to the environment, though fiancee's cat has a bit of trouble coping with the idea of shared territory. The fiancee herself was keen to share territory - but perhaps not equally (at least when it comes to closet space). It's been a challenge finding space for all my shit.

On top of that, I've started a new job this week, and I really like it. This is my first job at the PhD level, and I was hired for my "expertise" in two fairly esoteric fields. That having been said, when you're hired into a job with a backlist of problems that have been awaiting the new PhD engineer, you quickly discover how little you know and how much you have to learn (and, oh, by the way, your project was supposed to be done a month ago).

The big downside of the job is that it's two hours away each way. I get up at 5 AM to get into work by 7:30, and don't get home before 7. That's kinda sucky.

So on top of unpacking, and the eternal commuting, and trying to learn my new job, I'm trying to get my house fixed in Philly to sell. I'll be going down tis weekend...that's a 3+1/2 hr trip on my day off. But hey it's less than my daily commute. When I get back Sunday, we're going to go get a entertainment center from a 5th floor walk-up.

Anyway, that's life. Blogging may be light for like...the forseeable future.

Labels: ,

Thursday, March 22, 2007

Lies, Damned Lies, and Statistics

Lately I've been thinking I should blog about things I actually know and do less of my usual, ahem, making shit up. The problem is, the stuff I know is largely boring, and moreover it kinda reminds me of work. Well, maybe my 2 weeks of pseudo-unemployment (I start a new job on Monday, and nominally had these 2 weeks off) have rekindled an interest in blogging about technical stuff. Or maybe I'm feeling didactic. Either way, when I read this bit below, I thought it was time for a lesson. (from TPM)

Six of the eight U.S. attorneys fired by the Justice Department ranked in the top third among their peers for the number of prosecutions filed last year, according to an analysis of federal records.

I thought...what are the odds of that? And then I thought, well that can easily be calculated by binomial statistics (better here). The binomal distribution is used when things are split into a binary (two option) state with a certain probability. The chances of rolling a 6 on a die is 1 in 6. The chances you don't are 5 in 6. You either do or don't (ie binary), and you have a probability of 1 in 6 (ie known probability). In engineering terms, you have a probability distribution of either one state or another each has a defined probability. In general the probability distribution for multiple events can be obtained by the mathematical convolution of the probability distribution with itself multiple times. Convolution sounds scary, but it's not bad for binomials. It is a little harder because there are more states: you could have 0 sixes, 1 six, 2 sixes ... 5 sixes. Anyway the whole problem was worked out long ago and reduced to a formula.

Unfortunately, some of the mathematical notation required to explain the formula is really hard to type into Blogger (if you recognize that as a cheap excuse, you win a cookie). So instead of hitting the theory, I'll show you how to cheat and just get the answer out of Excel! (Go surf a mathematician's blog if you want theory, engineers are all about plug 'n chug.)

The Excel formula is:
=BINOMDIST(number,trials,probability,cumulative)

In this case the number and trials are, 6 (high-performers) of 8 (trials).

On to probability. We are given the criteria that some attorneys were in the top third of their peers. What's the probability that someone might be in the top third? Hmm, let's think hard... AHA! how about 1/3 (or 0.33333) ?

The next part gets technical. If we want a cumulative value, which is the sum of all smaller values in the probability distribution, we type "true". If we type "false" we get the probability for exactly 6 of 8. In this case we'll take the cumulative value to express the odds of getting 5 or less.

That gives us an answer of 0.9974. Probabilites are given on a scale of zero to one, so that means you have a 99.74% chance of getting zero through five attorneys from the top third. Alternatively, it means is if you randomly picked US district attorneys, there's a 0.26% chance that you would get 6 or more in the top third. When conducting a difference test one starts with the null hypothesis that two populations are the same. In this case, we compare our population to the general US attorney population. In most applications the threshold to demonstrate a significant difference is 5%. A result at 1% is usually considered a "highly significant" difference. So our value of 0.26% is highly significant. All of which reinforces the intuitive point of the article: that these attorneys were better than the baseline.

The White House originally claimed it fired the attorneys for performance reasons...and now we find that as a group, they do have a pretty uncommon performance record. Uncommonly good. Maybe so good they got fired?

Now the White House has retracted the performance issue (probably to draw attention away from the relatively good records). Even so, the chance of them randomly picking a set of attorneys with this quality work is under 3 in 1000. The chance of the White House being full of shit...it's significant.


BONUS MATH: If this is true, and the White House had not fired the loyal loser then the probability value would have been 0.99954. That would have been "extremely significant".

TAKEHOME PROBLEM: How many losers should the White House have fired to cover up for their purge of people actually doing too good a job?

Labels: , , , ,

Wednesday, March 21, 2007

Interesting doublespeak

Lefty blogs are getting excited about the pressure being put on Alberto Gonzales for the firing of 8 US district attorneys. They're starting to talk about impeachments, and digging into the "data-dump" of 3000 pages of voluntarily released communications. Random thoughts, in no particular order.

1. The legislation to allow Gonzales to appoint replacements that was squeezed into the PATRIOT act (feel safer yet?) will be remedied by Congress, and probably unopposed.

2. The whole thing has an air of "Fitzmas" to it. I think perhaps the rabid masses are getting ahead of themselves. I too, share the conviction that there is something shady here, but I don't think it's what people think it is. On top of that, it doesn't matter what people think, it matters what they can prove.

3. Against the Fitzmas concern, is the suddenly real possibility that Bush is positioning to let Gonzales take the fall. That's not out-of-character for the guy who fired Rummy the day after elections. If Bush would only learn to act sooner...

4. Pundits are always saying things like I just said in 3 and you're supposed to believe them becuase they're knowledgable or some shit. Since I routinely opine on things where I have no clue, let me say why I'm starting to lean towards #3. Via TPM, Tony Snow (the president's mouthpiece) said

SNOW: The president's said he's got confidence in Al Gonzales. This is not fact-gathering on whether to allow him to maintain his employment. We hope he stays.

Q: He will remain in office for the rest of the administration?

SNOW: Well, we hope so


(In politician speak, this reads: Gonzales may decide on his own that he needs to spend more time with his family (wink wink), but we hope not, and in any case it would totally be his decision (wink wink), and not us throwing him under the bus.)

4. Data dumps of enormous amounts of info are great versus a small legal team. Sometimes there are nuggets in there that become hidden among the gobs of irrelevant BS. But you put that same mountian in front of a hoarde of liberal bloggers with an axe to grind, and they'll burn through it like nobody's business.

5. Personally, I think Gonzalez's time has come and gone. I think the best way to describe his mindset is "quaint". (Just like anti-torture provisions in the Geneva Conventions)

Labels: , ,

Saturday, March 17, 2007

Two Years of Blogging!

Spanning three St. Patrick's days...yay for me 'n all.

Blogging will be light as I've cancelled the internet in preparation for moving to NYC and starting a new job. Exciting stuff!

Thursday, March 08, 2007

Happy International Women's Day

Evidently it's gender week here at Cognitive Apostate.

Did you know today is International Women's Day? I wouldn't either, except I listened to some BBC world report news this morning. (All day on NPR they cover silly things like women's protests in Iran... what about Paris Hilton news? Pfft. They should learn journalism.) So I went looking for an International Women's Day Card. Sure enough, they have them! Unfortunately, they all appear to be women-to-women cards, so none of the women in my life will be getting any. After reading 3 or 4 I'm left with a pretty flakey perspective of this holiday. If there're any feminists out there who might want to comment on this tripe they peddle to women for other women, feel free to chime in. Hey did you know that today is a day for women to organize and make their needs known the world over? In Iran women under 40 aren't allowed to leave the country without male custody, and a pile of them just got beaten and arrested for a peaceful protest. I know, let's celebrate with an e-card about endless chit-chat, shoppin' sprees, and hours of relaxin!

Commercialism aside, if you happen to have 2 X chromosomes (or as I've recently been corrected: lack of a Y chromosome), then Happy International Women's Day!

Also, as a followup to recent posts on the genetics of homosexuality, this letter is pretty entertaining.
If you ask a heterosexual, he or she will generally deny that they had any kind of choice in the matter. They say that they were just born that way or at least knew at the first stirrings of sexual awareness that they were heterosexual. “It just feels natural,” they say and seem genuinely puzzled that anyone would wonder about it....

No one seems to have found any genes for heterosexuality. Nor have studies of human brain found anything that impels males to be attracted to females or vice versa...


Humorous. I understand some folks may be insulted if you propose searching their DNA to find a rationale for their behavior. Me? I still think we should look for a genetic basis for sexuality. Maybe it's the engineer in me just wanting to see how we're all wired. One thing I don't care to understand: What posessed the people who made those awful e-cards?

And since this is a political blog, and we're talking about women and homosexuals, I'd be remiss to not at least mention this.

Labels: , ,

This feels good...

Just finished prep work for my very last experiment of grad school today. Officially 2 more days of school. After 5&1/2 years, it is time.

Labels: , ,

Wednesday, March 07, 2007

Will justice dept officials be subpoenaed?

Interesting stuff here. So a Senate Committee is going to request 5 officials testify voluntarily. They're also going to vote on whether to subpoena the people if they refuse. Isn't that odd? Why not wait until they actually refuse? There's a few ways this could play out.

1. The people want to talk and do it voluntarily.
2. The people don't want to talk, but would rather do it voluntarily (possibly not under oath) than by subpoena.
3. As with the US district attorneys, these Republican footsoldiers at least pretend to not want to talk, but will grudgingly spill the beans if subpoenaed.

I think we can mostly rule out case #1. These guys have some serious skeletons in the closet, and their only motivation to talk will be to keep from being somebody bigger's fall-guy. I can also predict they will decline the invite if the vote fails. So in that respect the voluntary bit is not only a courtesy, but a one-sided courtesy.

As for the vote, my initial guess was party line. But that gets a little tricky...if it's going through anyway, the Republicans might sign on to not look bad. One thing you can be sure of...these subpoenas would never have happened if Republicans still ran Congress.

Labels: , ,

Good news from Dr. Rice

We recently elected the first Muslim Congressperson, Keith Ellison. (If you follow political theatrics, he's the one who was asked by Glen Beck to "prove to me you are not working with our enemies." Also, he's the one who was sworn in on Thomas Jefferson's copy of the Koran. )The good news is, Secretary of State Condoleezza Rice has recruited him to help improve our international image among Muslims. I wonder if he's Sunni or Shia, or if that's a totally ridiculous question. (I know close to zero about Islam.)

Anyway, freedom of religion is a good thing. It has advantages. Using them is a no-brainer. Props to both for being bipartisan and doing what's best for the US.

Labels: , , ,

Tuesday, March 06, 2007

Stat of the Day

While China’s total greenhouse gas emissions were only 42% of the US level in 2001, they had soared to an estimated 97% of the American level by 2006.

reference

Labels: ,

Monday, March 05, 2007

Intelligent design and homosexuality

Not sure whether I've posted this before, but the previous post reminds me of an interesting irony. I'll preface this by saying I'm going to address two reasonably taboo subjects (homosexuality and religion) fairly clinically. If it comes across as insensitve, I apologize.

Let's suppose homosexuality is genetic (I have doubts, but for the sake of argument). And let's suppose it's a yes/no binary thing (ie no bisexuals).

The question is: how do we evolve to have homosexuals? By standard methods, a homosexual couple cannot have children. So if you happen to believe in evolution, you'll recognise this as a negative selection: an evolutionary dead-end. Typically, such traits are breeded out. So homosexuality is not a stable endpoint of evolution. In a way, it is evidence against evolution.

An alternative theory of genesis (aka Genesis), "Intelligent Design", supposes we exist in our current state because Somebody designed us this way. As such, we are no longer subject to evolutionary constraints. It's simple enough to claim God designed homosexuals the same way He did everything else. Of course, the intelligent design crowd is too homophobic to ever entertain that homosexuals are the result of God's will.

I find it funny. Creationists have too much baggage to argue that particular weak spot in evolution.

Of course, there are explainations compatible with evolution. Homosexuality could be recessive, it could be non-genetic, incomplete, or selection could be overruled by societal demands. I hear societal stigmas have lead to a lot of homosexuals having families (Ted Haggard anyone?). If that's really the case, there's another irony. Making homosexuality a social stigma actually increases it's prevalence in the human gene pool, as insecure men crank out the kids to demonstrate their heterosexuality. Good stuff.

Anyway, the above arguments are so rife with assumptions, that they're obviously silly. But they are silly in an interesting way, and the more general question of how people become chemically attracted to others is worth more study. Genetic profiling and molecular mechanisms would make for some fascinating publications. I'm totally out of my league here, but I believe on a percentage basis there are more gay men than gay women. That's common for genetic traits that are X-linked. As the X chromosme is the one that determines gender, it would at least be an obvious place to start looking.

Labels: , , , ,

Marketing Science to the Southern Baptists

This makes me wince. Via Sullivan, check out this quote from Albert Mohler, president of The Southern Baptist Theological Seminary.

"If a biological basis is found, and if a prenatal test is then developed, and if a successful treatment to reverse the sexual orientation to heterosexual is ever developed, we would support its use as we should unapologetically support the use of any appropriate means to avoid sexual temptation and the inevitable effects of sin."


So on a professional level, I'm happy to see these nuts are devolping an interest in science. On an ethical level, the bigotry is painful. And on a scientific level...why on Earth would it have to be a prenatal test? People aren't sexually active until years and years after they're born...

...unless your plan is to never have them be born...

Labels: , ,

Saturday, March 03, 2007

More on the prosecutor purge

Maybe you haven't been following this story. When the Patriot Act was renewed late last year there was a clause slipped into the bill the the Attorney General would have the power to appoint interim replacements for US district attorneys for up to 120 days without congressional approval.

On the surface this makes basic political sense. The Republican congress, just before it lost control of the legislature transfered some power to the executive, where Republicans still have control. That's not how checks and balances are suppoed to work...but so far it's kinda par for the course.

They then set about using this power, by purging 8-10 district attorneys. All of these attorneys were appointed by Bush and the saying goes they "serve at the president's will" so if the Pres decides to can them, that's hunkie-dory. I guess there's a minor scandal in that the administration initially claimed they were canned for performance reasons, but now it looks like they've come clean and are saying it's for political reasons.

Part of this new truth campaign is because four of these attorneys are scheduled to testify to congress this Tuesday. One attorney believes he has been fired because he did not indict a Democratic lawmaker before elections. Evidently, he was called by two members of congress and urged to indict before election. He didn't do it - and two months later was fired. He's about to testify to Congress on Tuesday. Another DA was responsible for the conviction of Former Republican "Duke" Cunningham, who is currently in jail for corruption. So a pattern is emerging wherein the administration is firing DA's who prosceute Republicans or do not indict Democrats.

The good news is the administration has finally learned that it's not the action that burns you, it's the cover up. So now they're claiming it has political motivations. They're probably going to run some partial-truth cop-out like they're trying to deepen the bench of judicial nominees. As I say there is some partial truth there and it might be enough to keep Congress and the Press off their backs for what's really a vindictive and corrupt purge of people who were actually doing their jobs.

But that's not really the story. The president could have fired the DA's without changing the Patriot Act (and who exactly made that change anyway?). By firing ten he would certainly affect the legal climate and send a message to all the DAs. But they went that extra step to get the law changed. Why? There's something more nefarious here - and that's the real story. The missing piece is the ability to appoint DAs without cnogressional approval. Who are they appointing and why? That's the key.

Oh, and let me just say that the Patriot Act was supposed to be for our national safety. Using that bill to work in riders for political machinations is disgusting. It's not a new low, but I don't think it's well known to the average American how much the administration is using 9/11 to screw the Constitution. It's time it became more well known.

On top of subpoenaing the fired attorneys, Congress should subpoena their replacements and ask them under oath whether they had any quid pro quo marching orders. The answers could be very interesting.

Labels: , , ,

Decaying journalism

You'd think this comes from the Onion.

CNN has a story about the Associated Press making an effort to not cover Paris Hilton news for a whole week. It's now news when Paris isn't making news? You gotta be kidding me.

Labels: , , , ,

Friday, March 02, 2007

That would be a problem

Alberto Gonzales, is Attorney General and former White House Counsel. Surely a man of such prestigious credentials would cover his ass better than to directly lie to Congress...right?

It's time for congress to get cracking with the subpoenas.

Labels: , ,

Stupid blogger shit

Switched to the new blogger last week.

The good news is I can add labels now.

The bad news is I missed the verification e-mail and couldn't post comments on anyone's blog for a full week until I figured out what happened.

Update: trying to make a label of "stupid" and it keeps autofilling "stupid headlines" I guess stupid is as stupid does or whatever. I'm reminded of my mom's inability to program the VCR...this shouldn't be happening to me at 30.

Labels: , ,