In case you were wondering, Hal R. Varian writes how the stock market does better under Democrats than Republicans.