27 March 2014

Barkeep, There's Water in the Whiskey!!

Every now and again, and today was one of those nows, some sports pundit will trot out the tried and true, "X is horrible today compared to 19XX because of all that player dilution". And blah, blah, blah. Baloney.

Take baseball, please.

In 1950 there were 16 teams with 25 player rosters. My calculator tells me that there were 400 major leaguers that year.

So.

In 2010 there were 30 teams (still are, of course). That's 750 major leaguers.

Since 1950 we have: bigger, stronger, faster athletes; orthopedic surgeries; safer equipment; and so on.

In 1950 the ratio of ball players to population was: 400/151,000,000 or .0000026
In 2010 the ratio of ball players to population was: 750/308,000,000 or .0000024

Or, just by simple inspection, the number of ball players per person *is less now* than in 1950. So shove it. And, that assumes that all 750 are native born Americans. Baloney to that, too.

I wonder how many certified Sabermetricians have ever bothered to figure that out?

Baseball may be lousy today compared to what some imagine it was like in 19XX, but player dilution ain't why.

26 March 2014

Core of the Apple

In a piece about Facebook's Oculus buy, one Richard Beales states, for the first time I can recall seeing from a mainstream pundit, Apple's situation. I'll take credit for pointing this out some time ago:
... what Apple's iPhone did for smartphones: combine available technologies into a package that's both user-friendly and a revelation for those that try it.

Recall, Apple had cornered the supply of capacitive screens?
Apple has access to new component technology months or years before its rivals. This allows it to release groundbreaking products that are actually impossible to duplicate. Remember how for up to a year or so after the introduction of the iPhone, none of the would-be iPhone clones could even get a capacitive touchscreen to work as well as the iPhone's? It wasn't just the software - Apple simply has access to new components earlier, before anyone else in the world can gain access to it in mass quantities to make a consumer device. One extraordinary example of this is the aluminum machining technology used to make Apple's laptops - this remains a trade secret that Apple continues to have exclusive access to and allows them to make laptops with (for now) unsurpassed strength and lightness.

Apple, in order to start a growth spurt while iPhone goes into global replacement mode (and while carriers, at one and the same time, move to no contract, no phone, plans) has to A) figure out which of the existing platforms it can bling up and B) corner the bling-ish hardware for said device. One has to wonder whether it was really Steve who divined the various products?

25 March 2014

Not a Joe Sixpack

Joe Conway sent out an email to the PL/R group announcing a PL/R chapter. It's not very long, and it's rather expensive. The book is pre-order at Amazon for the better part of $180. Since ecology isn't of interest, I'll skip it. Fact is, Joe's documentation has always seemed sufficient. One must needs be familiar with Postgres, of course.

OTOH, it is a Good Thing to find PL/R appearing in texts. Today wildlife, tomorrow Wall Street!!

9 to 5

It is reported today that MicroSoft is ending support for Office 2003, commonly used with XP. As you read the comments, those that paid for O2003 have little use for subscribing to O365, since it doesn't do anything needed and costs moolah. Welcome to the Good Enough World (actually, happened in word processing at least 2 decades ago).

In the past, MicroSoft has changed file formats to spike others reading/writing the document files. That should be the next step. MicroSoft (not the only ones, alas) have taken the Gillette model (give away the razor and sell the blades) that further step by not giving away the razor. Makes one almost yearn for indentured servitude.

22 March 2014

Dumb Jocks

I had been mulling over writing this all up, under the title "What's a Quintillion Among Friends", but it's only a bunch of college basketball games and not worth the effort to get the number exactly right. Nah, ain't worth it. BUT...

Two things happened.
1) I saw Nate Silver bloviating, on Olbermann IIRC, and he didn't scotch the 9.2 quintillion number
and
2) I caught a bit of the intermission shows on one of the networks, IIRC it was TNT, and one of the jocks, again IIRC, Kenny Smith made the salient point

That salient point is that the 9.2 quintillion numbers results from, as Kenny (I think, as they were all screaming at each other at once) said, coin flips across all 64 teams. And that's baloney. That number is 2^63: all permutations all games. So not happening. But all the reporting repeats that number. If Silver gainsayed it, I missed it in his interview.

By sometime last night, all the ESPN and Buffett brackets had been torpedoed. Lots of double digit seeds had won their games. Not going to buy my Caribbean Island. And so the discussion ensued.

Not all permutations can occur. There are 4 sets of 16, which if you treat each as permutations of coin flips (2^15) is 32,768 outcomes. Now, if you treat the sets as independent, that would be to the fourth power, and thus about 1.1 quintillion. Again, too many possibilities, since what one wants is the distinct number of binary trees.

Stackoverflow has discussion of binary trees, this one, at least not couched in March Madness terms. What a relief. But this could easily be wrong, too, since it is a calculation of root to branch tree building, and would thus have to account for each region having 16 different starting nodes (in this upended view).

If you do Catalan numbers, for 16 seed region, pivot on 16, then multiply be 4 regions, you get 615,506,319,360. Not sure that's quite right, since it doesn't account for the Final Four? Anyway.

Too early in the morning, and only because the dogs insist they have to poo, to work out such a meaningless number.

21 March 2014

Boots and Pants

There's a new Maxwell GEICO commercial out, of which I've only seen the last few seconds, where Maxwell is sitting by the pool (beach?) in a deck chair, phone in lap. He's jiggling his trotters whilst looking dreamily at the phone and chanting "boots and pants and boots and pants". I haven't the foggiest what that means. Probably some Angry Birds replacement.

But all is not a waste of time. The bit of schtick reminded me of Apple's hiring of that Burberry marketing exec a few months back. Remember that? At the time, I wrote that persuading the 1% to have lots of Burberry coats, each appropriate to its own occasion, was a bunch easier than convincing them to have lots of iPhones, one for each occasion. Then the iWatch rumoring went into high gear.

May be not so pointless, after all. "Coats and watches and coats and watches..." A watch is mostly fashion accessory, leastly utilitarian device. One might say the something of the same for today's smartphone. What percent of its use time is devoted to making phone calls? 10%? 1%? Still and all, there's not much traction to be had convincing folks to have more than one. Hell, with the rise of the phablet, Apple's going to face (if not already) the prospect of folks having one phablet over having an iPhone and iPad.

Watches, on the other hand, can be owned multiply and still make some sense. A sport watch, a dress watch, an old clunker in the desk for when you forget your office watch. And so on. The 1% are always open to the Stuyvesant scam. Hiring a coat hawker begins to make sense. Now, that means, of course, that Apple goes the way of multiple versions of iWatch, at the same time, a tack not taken with previous devices. We'll see.

18 March 2014

Normal Is So Overrated

R-bloggers had this post linked (the title block is worth the visit). Hmmm... F# talking to R? And F# talks to SQL Server?

So, that got me to the F# post, which in turn gets one to the R Type Provider.

As mentioned a few times, it would be a Good Thing if SQL Server offered the equivalent of PL/R. I'm 100% Ubuntu these days, so it wouldn't help me directly, but a, somewhat inelegant, way to get there would be connect to both R and SQL Server in a F# session/program? I didn't find a C# equivalent (the R Provider appears to be F# specific).

Following some links landed me here (the original author), and the question was asked:
This is great. Can you use the RProvider from C#?

[ Don says - no, C# doesn't support type providers ]

Too bad.