09 March 2013

Me Talk Gooder [update]

Professor Henry Higgins, through many trials and tribulations, eventually taught Eliza Doolittle how to speak the King's English. Through sheer luck, I've found a professor willing to take on (to what full extent, I don't yet know) the NoSql crowd. And his second installment.
While I'll be the first to admit that I use colorful language and metaphors, my perspectives typically come straight out of Distributed Systems 101. Half the reason why I started this blog is that there is a big discrepancy between what people who have studied distributed systems know, and what is being said in the marketing materials of various vendors.

Boy howdy. The NoSql folks just want to talk their own Pig Latin dialect.

[update]
Oh well. Upon further investigation, the professor asserts that he (and minions) have made a better NoSql datastore.

[update, 1]
Have none of these folks read, at least, Gray & Reuter (really, Weikum & Vossen)? Too mathy, I suppose. The Dark Ages, redux.

08 March 2013

Good News, Bad News

It's the nature of (semi-)democratic politics for those parties out of power to complain that Good News isn't really (for some conspiracy that *they* would never engage in) so Good, and that Bad News (ditto) is really worse. And so it is today. The monthly jobs report was released earlier today. If not already, certainly by the end of the day, the Republicans/Libertarians/Free Market Capitalists will be crying foul.

Let's have a look at some numbers.

The headline grabber is that the "official" unemployment rate for February was 7.7%, which was last the case just before Obama was inaugurated: December, 2008. Non-farm payrolls were up more than predicted, 165-170K predicted with 236K reported. So, all is good, yes? Well, may be not.

As stated a few times here: these numbers come from sample surveys, not censuses, and the "official" unemployment rate has been, and continues to be, criticized as too positive. The "official" number is called U-3, and it is down .6 point YoY. U-6, the most encompassing measure is down from 15.0 to 14.3, .7 point, but a much lower percentage improvement. The ratio of employed to population (an arguably more accurate measure) is the same at 58.6%. So, how did the rate go down? The measured labor force decreased by about 2,000,000. Ain't algebra fun?

You can peruse Table B-1 for clues to where the jobs are growing (hint: it ain't those who live in 90210 land). The right wingers should be happy. Hated Gummint employment is down, again.

Is the situation any better? The global numbers say no. Wall Street has been hogging the trough of QE money, with little effect on Main Street. Those with a Left Wing agenda, and those who've seen the movie before, said from the outset that Obama's stint in the White House wouldn't help much if the only lever used was monetary policy. Monetarism, when it isn't used to actively punish Main Street, ends up punishing Main Street anyway, since it is a matter of pushing a string. That can't work. As the Prosperity Through Austerity folks in Europe are demonstrating, efforts to force the victims of the Great Recession to suffer even larger losses only leads to greater concentration of wealth, and thus power.

The numbers tell the story. And the story is that those out of power have managed, in part because those in power are feckless, to increase the pressure on the necks of the 99%. Makes one wonder whether quants have devolved to being mouthpieces, just as economists did some decades ago.

05 March 2013

Hickey & Boggs

Some years after the end of "I Spy", Culp and Cosby made a noir film, called "Hickey & Boggs". I remember seeing it, but nothing about it beyond the noir feel of the film, particularly the ending. WikiPedia has more info. Which brings us, mnemonically, to the Higgs Boson. While not quite so noir, also mysterious. If you're not addicted to right wing anti-intellectualism, head to today's NY Times Science Times, which is a Tuesday section, normally devoted to various news of science. Not this week. The entire section, seven of eight pages (the last page is always the astronomical data), tells the story of the Higgs Boson.

There's a sidebar, which has this tidbit:
If that should happen -- tomorrow or billions of years from now -- a bubble would sweep out through the universe at the speed of light, obliterating the laws of nature as we know them.

The quote refers to a discovery made around 1998, that not only was the universe expanding which had been known since the understanding of red-shift by Hubble in 1929, but the expansion is accelerating. This discovery led to the "creation" of dark matter and dark energy, which are the assumed source of the energy necessary to motivate the acceleration. At the macro-level, Newton's laws are still true, so an accelerating universe requires a power source, and rather massive at that.

The accepted theory has been that dark matter/energy acceleration is sufficient to overcome gravity forever, so the universe will sort of end with stars dying as isolated islands out of sight of each other. There is no big crunch and a recycled big bang. The Higgs Boson, if it's really the way it looks, means that we don't end with the cold, empty space, but a slurpy. Call it the Big Bubble.

04 March 2013

Seven Percent Solution

Nicholas Meyer wrote a Sherlock Holmes book, which became a movie. The point of the story was that Holmes was addicted to cocaine (a 7% solution), and sought out Freud to be cured. He was, and returned to playing his violin as amusement. Violin Memory, SSD maker FOTM, has been making bits of noise now and again for the last few years. They're, may be, going the IPO route; stories have been appearing for some months. Today brings yet another story, this time that Violin and Toshiba, their NAND supplier, are preparing to take on EMC/Fusion-io in a cage match.
"The old approach of disk storages has a zone of waste; you have to pay for much more capacity than you really need to get the performance you want," Basile said. "Our systems reduce that zone of waste."

Now, that could mean Violin is aiming to educate clients in the Normal Forms, and thus smaller data footprints. A quick search came up with this older piece, that kinda, sorta alludes to that.
At the heart of DataQuick's business lies a series of SQL Server 2000/2005/2008 databases composed of aggregated, standardized, and normalized public real estate information from across every region of the United States.

Normalization is your best friend.

03 March 2013

Seeing the Trees for the Forest

A three-peat of grist for both the quant and macro-policy mills, all in today's NY Times (that's a surprise). Both versions of this endeavor have mentioned the importance of the Bretton Woods agreement to both the growth of the US economy, and thence its collapse post-OPEC oil embargoes. That's covered in a book review relating how Bretton Woods got done.
America was unscathed at home and far stronger in 1945 than in 1941. Owner of the bulk of the world's gold bullion, a stunning 20,000 metric tons, the United States wanted to emerge from World War II with fixed conversion rates assured by a dollar tied to gold. And it went without saying that it was bent on becoming the globe's financial capital.

In other words: the USofA ran international finance. One effect was to create a blue collar middle class, never seen before in human history, which supported not only production domestically, but provided a market for the rebuilding economies of both the Allies and the Axis Powers. We gave with one hand (Marshall Plan), and taketh away with the other (Bretton Woods).
Although America's global dominance has long since melted away, no substitute is yet strong enough to shove the dollar aside, in part because of Bretton Woods.

Next, The Great Divide, a continuing series muses on the notion of consumption versus capital. I don't agree with much of the argument, but it's impossible to ignore this:
A consumption bias, economists argue, is not a bad thing, as it leads to cheaper goods for Americans. And after all, someone has to do the consuming -- otherwise, whom would the Germans and Chinese export to?

Of course, no one.

Which leads to Friedman's take on a climate change report. I've been unable to track down reporting I read ages ago, which asserted that the dissolution of the USSR wasn't Gorbachev's policy, but rather a rebellion driven by extended crop failures. This always made more sense. Now, we have reporting that crop failures motivated revolts in Arabia.
The numbers tell the story: "Bread provides one-third of the caloric intake in Egypt, a country where 38 percent of income is spent on food," notes Sternberg. "The doubling of global wheat prices -- from $157/metric ton in June 2010 to $326/metric ton in February 2011 -- thus significantly impacted the country's food supply and availability." Global food prices peaked at an all-time high in March 2011, shortly after President Hosni Mubarak was toppled in Egypt.

Consider this: The world's top nine wheat-importers are in the Middle East: "Seven had political protests resulting in civilian deaths in 2011," said Sternberg. "Households in the countries that experience political unrest spend, on average, more than 35 percent of their income on food supplies," compared with less than 10 percent in developed countries.

Everything is linked: Chinese drought and Russian bushfires produced wheat shortages leading to higher bread prices fueling protests in Tahrir Square. Sternberg calls it the globalization of "hazard."

For the macro-policy folks: it's the distribution. For the quants: policy trumps data every time; more specifically policy responses to bad things happening in the world. Whether climate change is a perpetual Black Swan herd (yes, I just looked it up) or not, quants need look out the window to know what's going on.

Or not. Phil Factor relates:
I remember when a 'rocket scientist' friend of mine in the City of London worked out, a while ago, that the price of sugar futures contracts correlated directly with the weather in Chicago.
...
Why? Chicago was the center of the bulk of sugar futures trading, at the time. The traders merely looked out of the windows and reacted instinctively.

There be dragons.

02 March 2013

Mr. Bayes, Tear Down This Strawman!

A long time ago, in a city far, far away, I worked in a unit of four folks dedicated to quants. We were named The Office of Analytic Methods, a small outpost in a small Federal agency on E st NW DC. Among the four was a Ab.D. in stats who talked much of Bayes. Now, this was at a time when stat packs ran only on mainframes, and had names such as SPSS, SAS, BMDP, PSTAT. I'd wager that no one has heard of the last two. I was of the frequentist mind (as such are called today), and viewed Bayesian methods as shown, on occasion, in the preamble to this endeavor (cite long lost, and from memory):
If you're so sure of your prior, then just state your posterior and be done with it.

The Bayesian approach asserts that one should start with an assertion of some parameter's value, then collect some data, and finally see whether this data is reason enough to change one's initial assertion. That is the prior. The result when one is done is the final answer, and is called the posterior.

Being somewhat open minded, I decided to have a new look at Bayes, and therefore got "Doing Bayesian Data Analysis: A Tutorial with R and BUGS". It's been highly reviewed, and has all those cute doggies on the cover (not explained, either). The first half of the book is built on Bernoulli and binomial distribution; a lot of coin flipping. Chapter 11 gets to the heart of the matter, "Null Hypothesis Significance Testing" (NHST, for short). Those who embrace Bayes (nearly?) universally object to usual statistical testing and confidence interval estimation, because they're based on testing whether values equal, as assumed. This is the Null Hypothesis: that two means are equal, for example. We assume that two samples (or one sample compared to a known control) have the same value for the mean, and set about to test whether the data support that equality. Depending on what the data say, we either accept or reject the null hypothesis. We don't get to say that the true mean (in this example) is the sample mean if we reject the null hypothesis. This lack of specificity bothers some. Bayesians say we can do better.

The NHST amounts to proof by contradiction, an age old maths proof method, but strongly objected to by Bayesians.
This chapter explains some of the gory details of NHST, to bring mathematical rigor to the preceding comments and to bring rigor mortis to NHST.

The crux of his argument is that a sample will accept or reject the null hypothesis, depending on the sampling plan. He puts a sinister spin on this fact:
We have just seen that the NHST confidence interval depends on the covert intentions of the experimenter.

That word, "covert" and similar, appears with some frequency in the discussion. In one sense, the NHST does accept in one case and reject in the other, but there's nothing covert going on. What happens is that one framing of the question is binomial, while the other is negative binomial. Since the distributions differ, the test, using the same data, can give different results. In the strawman presented, it does. Of course.

Later, he constructs a real strawman. He tells a tale of flipping flat-head nails.
We flip the nail 26 times, and find it comes up heads 8 times. We conclude, therefore, that we cannot reject the null hypothesis the nail can come up heads or tails 50/50. Huh? This is a nail we're talking about. How can you not reject the null hypothesis?

Think about that for a second. He's morphing a null hypothesis regarding a coin, asserted to be symmetrical in three dimensions and of homogeneous density, with a nail which has neither characteristic. This is flippin' silly.

So, I remain a frequentist.

01 March 2013

Stuffing the Corporate Mattress

In an earlier post, I mentioned that US corporations are sitting on something just south of $2,000,000,000,000. This matters, because it demonstrates that corporations have all the money they need to invest in physical plant and equipment. The shibboleth of government deficits stealing money from the hungry capitalists is bunk (well, if it's a shibboleth, *it is* bunk). So, what's been the history of capital investment, and profit/retained earnings? Is the current crop of Daddy Warbucks more, or less, biased toward purely fiduciary activities as against physical investment?

Where's the data?

I haven't yet found a time series of corporate profit and physical investment (and likely won't) here's a snippet from Bloomberg, not your average left wingnut organ.
Corporations are holding more than $1.7 trillion in liquid assets, reflecting uncertainty over future policies. They're investing in capital projects only 80 percent of their available internal funds, according to data compiled by Bloomberg. Though that figure is up about one-third from late-2009, that ratio has been below 80 percent only once since the end of 1958.

American capitalists still view profit as declining wages. Killing the middle class is quite the same as killing the golden goose. In past times, even Henry Ford understood this. That such behaviour leads to Depression doesn't get through; or may be it does. If you're sitting on $1.7 trillion, Dee Flation is your best buddy.