# The Spectre of Math

## November 4, 2016

### Save Euro, vote Trump!

Filed under: Economics,Politics,Uncategorized — jlebl @ 3:35 am

Reading the news [1], I thought of one possible beneficiary of a Trump win.  Since most people seem to think (I’d say correctly) that the US economy will be a lot weaker and unpredictable in case of a Trump win, dollar is probably going to lose value.  One of the main things that we (US) export is the dollar, as countries buy dollars as the world’s main reserve currency.  But with Trump in the white house, euro will look more appetizing as a reserve currency.

A similar thing could probably be said about brexit, which made the pound less appetizing, though dollar is far more of an important foe for euro.  GPB went from $1.5 a year ago to$1.2 today.

So Trump is our gift to Europe.  We are such good friends we are willing to shoot ourselves in the foot (or worse), to help you.  Make Europe Great Again!  On the other hand apparently peso is suffering even more than dollar in case of Trump win …

## October 27, 2016

### Obama/Romney vote share versus teacher salaries, or don’t tell me that Republicans and Democrats are the same.

Filed under: Economics,Politics,Teaching — jlebl @ 7:12 pm

I  spent a few minutes after lunch while procrastinating from grading, putting together the following data.  First I took the states by the 2012 Obama minus Romney vote share in percent by state [1], and then teacher salaries by state [2]. Then I ran linear regression on the sucker.  R2 is not a shabby 0.347.  See here:

One thing you can read off the graph for example is that: Each 1 percent of vote flipped from Republicans to Democrats gives teachers a $682 yearly pay raise. Of course I am greatly simplifying 🙂 But the trendline is clearly there. See the full spreadsheet, if you want to see and play with the whole data, though I didn’t really clean it up much. I’m sure someone already did this somewhere… ## December 3, 2014 ### Grossly violating elections Filed under: Politics — jlebl @ 5:07 pm Russia reports gross violations in Moldova elections [1]. And Russia knows all about grossly violating elections… ## November 26, 2014 ### Law of large numbers: idiots, monkeys, CEOs, politicians, and nuclear war Filed under: Economics,Mathematics,Politics — jlebl @ 1:26 am Something that seems to be ignored by many people is the law of large numbers. Suppose you take an action that has 99% rate of success. That’s 1% chance failure. Tiny! Well do it enough times, and failures will happen. Given enough candidates with 1% chance of winning, one of them will win. Then everybody is surprised (but shouldn’t be). Suppose that in the 435 seats for congress, there were all candidates that according to polls had 99% chance to win, and there was always a second candidate with 1% chance of winning. I would expect 4or 5 of the underdogs to win. If they didn’t we were wrong about the 99%. Or how about entrepreneurs. Suppose you take 100 idiots. They each get a totally whacky idea for a new business that has 1% chance of success. One of them will likely succeed. Was it because he was smart? No, there was enough idiots. We should not overvalue success if we do not know how many other similar people failed, and how likely was success. What if you have a person who started two businesses that had 1% chance of success. Was that person a genius? Or did you just have 10000 idiots. You have surely heard that giving typewriters to monkeys will eventually (if you have enough monkeys and time) will produce works of Shakespeare. Does this mean that Shakespeare was a monkey? No. There weren’t enough idiots (or monkeys) trying. Plus the odds of typing random sentences, even if they are grammatically correct, and ending up with something as good as Shakespeare are astronomically low. Shakespeare was with a very very very high degree of confidence not a monkey. I can’t say the same for Steve Jobs. The chance of Jobs having been a monkey are still somewhat smaller than your general successful CEO. Think of the really important decisions that a CEO has to make, there aren’t that many. If we simplified the situation and went simply with yes/no decisions on strategic things, there are a few in the lifetime of a company. Most decisions are irrelevant to the success, and they even out: make a lot of decisions that make a small relative change and you will likely be where you started (again law of large numbers). But there are a few that can make or break a company. Given how many companies go bust, clearly there are many many CEOs making the wrong make or break decisions. So just because you hired a CEO and he made a decision to focus on a certain product and drop everything else, and you made it big. Does it mean your CEO was a genius? Flipping a coin then gives you 50% chance of success too. Same with stock traders. Look and you will find traders whose last 10 bets were huge successes. Does it mean that they are geniuses? Or does it simply there are lots of stock traders that make fairly random decisions and some of them thus must be successful. If there are enough of them, there will be some whose last 10 bets were good. If it was 10 yes/no decisions, then you just need 1024 idiots for one of them to get all of them right. They don’t have to know anything. Let’s take a different example, suppose you find someone that out of a pool of 100 stocks has for the last 3 years picked the most successful one each year. This person can be a total and complete idiot as long as there were a million people making those choices. The chance of that person picking the right stock this year is most likely 1 in 100. Don’t believe people trying to sell you their surefire way to predict the stockmarket, even if they are not lying about their past success. OK. More serious example of law of large numbers: Suppose your country does a military operation that has 99% chance of success and 1% chance of doom to your country. Suppose your country keeps doing this. Each time, it seems it is completely safe. Yet, eventually, your country will lose. You start enough wars, even with overwhelming odds. Your luck will run out. Statistically that’s a sure thing. If you want your country to be around in 100 years, do not do things that have even an ever so tiny chance of backfiring and dooming that country to failure. You can probably guess which (rather longish) list of countries that I am thinking of, which with good odds won’t be here in 100, 200, or 500 years. Let’s end on a positive note: With essentially 100% probability humankind will eventually destroy itself with nuclear (or other similarly destructive) weapons. There seem to be conflicts arising every few decades that have a chance of deteriorating into nuclear war. Small chance, but positive. Since that seems likely to me to repeat itself over and over, eventually one of those nuclear wars will start. It can’t quite be 100%, since there is a chance that we will all die in some apocalyptic natural disaster (possibly of our own making) rather than nuclear war. Since there is also a small chance that everybody on earth gets a heart attack at the same exact time. Even if we make sure we don’t do anything else dangerous (such as nuclear weapons), civilization will end one day with a massive concurrent heart attack. ## August 9, 2014 ### Numbers again Filed under: Politics — jlebl @ 4:43 pm I like to get fake enraged when people get caught up in very silly misunderstanding of numbers. And often this misunderstanding is used by politicians, extremists, and others to manipulate those people. The most recent and prominent example is the Israel-Gaza conflict. The story is that Hamas rockets are endangering Israeli lives. OK, yes they do, but you have to always look at the scale. Since 2001 (so in the last 13 years), there have been 40 deaths in Israel from Gaza cross border rocket and mortar fire [1]. 13 of those are Soldiers, and one could make the case that those were military targets, but let’s ignore that and count 40. Of those fatalities, 23 happened during one of the operations designed to remove the rocket threat. One could argue (though I won’t, there won’t be a need) that without those operations, only 17 Israelis would have died. OK, so 40 people in 13 years. That’s approximately 3 deaths per year. When I recently read an article about toxicity of mushrooms [2], the person being interviewed (the toxicologists) made an argument that mushroom picking in Czech is not dangerous, only 2-3 deaths per year (and vast majority of Czechs will go mushroom picking every year, even we do when we’re over there, it’s a Czech thing). Clearly it is not enough to worry the toxicologists. And Czech is about the same size as Israel in terms of population. When my granddad (a nuclear physicist) with his team computed the number of new cancers due to Chernobyl in Czech after the disaster, they predicted 200 a year. Trouble was they couldn’t verify it, because 200 a year gets hidden in the noise. In a country of 10 million, if we take 80 year lifespan, 125000 people will die every year of various causes, a large proportion of them to cancer (many of them preventable cancer that the state does not try to prevent since it would mean unpopular policies). So 3 deaths a year is completely lost in the noise. So if Israel would spend the money it spends on fighting Hamas, even if we buy into the propaganda that this will defeat Hamas, if it would spend the money on an anti-smoking campaign, it would likely save far more Israeli lives every year. Another statistic to look at is car accidents: In Israel approximately 263 people died on the road in one year. So your chances of dying in a car accident are almost 100 times larger. In fact, death by lighting in the US average at 51 per year [4]. Rescaling to Israel (I could not find Israel numbers) you get about 1.4 a year. That’s only slightly less than what Hamas kills in a year. In fact it’s about how many civilians they kill. So your chances as an Israeli civilian of being killed by a rocket or mortar are about the same as being killed by lightning. Not being struck by lightning by the way, because only 1 in 5 (approximately) of those struck die. So your chances of being struck by lightning are bigger, let’s say approx 6-7 people in Israel will get struck by lightning every year. An argument could be made that most Israelis killed were in Sderot (I count 8), so your chances of being killed there are bigger (and correspondingly, your chances of being killed by a Hamas rocket based on current data if you are in say Tel Aviv are zero). Anyway, 8 in 13 years is about 0.6 a year in Sderot. Rescaling (based on population) the car deaths to estimate the number of deaths per year in Sderot we get approximately 0.8 deaths per year in Sderot. So your chances of dying in a car crash are higher, even if you live in Sderot (your chances of dying from cancer are much much higher). The politicians supporting Israel’s actions often don’t worry about logical contradictions stemming from the above facts. When Bloomberg visited Israel he lambasted the fact that some airlines stopped flying to Tel-Aviv on rocket fears. He said that he never felt safer there. Well, if he never felt safer, why is Gaza being bombed? None of this in any way is an apology for Hamas. Hamas is a terrorist organization that aims to kill civilians. But Hamas is almost comically incompetent at doing so. If it weren’t a sad thing, we ought to laugh at Hamas. Anyway, clearly an incompetent murderer is till a murderer if he manages to kill even one person. The question is, what lengths should you go to to apprehend him. Now the costs. Gaza has 1.8 million people. One should expect about 20-30 thousand natural deaths per year. This year, Israel kills 2000 Gazans. So very approximately about 1 in 10 to 1 in 15 Gazans that dies this year will die at Israel’s hands. Now think what that does to the ability of Hamas, or even far more radical groups to recruit. My grandmother grew up in the post WWII years, so she has not lived through WWII as an adult, yet she harbored deep hatred of all Germans. This was common in Europe. People used to hate each other, and then every once in a while they would attempt to kill each other. If you are on the receiving side of the killing (and only your relatives get killed), you are very likely to have this deep hatred that could very well be used by extremists (think back to the Balkans and especially Bosnia). It takes generations to get rid of it. I don’t resent the Poles or the Ukrainians even though I had Galitian Jewish ancestors that probably had no love for either. But 70 years ago, these three groups managed to literally destroy the whole region by killing each other (well the Germans and Russians helped greatly in the endeavor). There is probably very few people in the region whose family actually comes from there. The point is, that the cost of the operation, besides the moral outrage of killing thousands of people, is pushing back the date that Israel can live in peace with its neighbors. Another cost to Israel is the rise of anti-semitism. Just like violent actions by muslim extremists created a wave of anti-muslim sentiment in the West, violent acts by Israel will only strenghten anti-semitic forces. You are giving them perfect recruiting stories. If they had any doubts, they don’t have them now. Maybe as a positive aspect, it will justify Israeli contention that hatred of Israel is based on anti-semitism, since by creating anti-semitic sentiment, yes, more of it will be. The fact that the deputy speaker of parliament in Israel calls for conquest of Gaza are forcefully removing the Gazans into “tent camps” and them out of Israel [5], does not help. Maybe he should have called it “final solution” to the problem. Surely there would be no problem with that phrase. Another thing about numbers is that Israel depends on America giving it cover (and weapons). Israel does not realize that american opinion is shifting (in part due to its own actions, in part since these things always shift in time). See [6]. Basically once the young of today will be the older folks of tomorrow, Israel won’t be seen the way it is now. It might be that US will also shift towards some other group as being important in american politics. Given the growth in the Latino population, it should be clear that Israel will at some point stop being the priority for many politicians. Given that we will also approach the world oil peak, and that us oil will once again start running out once we’ve fracked out what we could frack out, oil will become again more important. And Israel does not have oil. Israel is religiously important, but recall that Americans are mostly protestant Christians, not Jews, so it’s not clear where that will go (looking at history of that relationship is not very encouraging). A large percentage of Americans thinks the world is only a few thousand years old and the end of times will come within their lifetime and the battle of Armageddon will come, and blah blah blah. Who knows what that does to long term foreign policy. Remember I am talking about decades not years. One should worry about what happens in 20, 30, 40 years. You know, many of us will still be around then, so even from a very selfish perspective, one should plan 40 years ahead. Let alone if one is not a selfish bastard. Then finally there is this moral thing about killing others … Let’s not get into morals of the situation, that’s seriously f@#ked up. ## July 24, 2014 ### News … Filed under: Politics — jlebl @ 4:29 pm Interesting reading and comparison of news regarding Ukraine and Gaza. So apparently according to Russian media, people in the west have bad opinion of Russia only because the west has had a long lived fascist hatred of Russians. According to Israeli media, the rest of the world (except US) has a low opinion of Israel only because they are all anti-Semite. It can’t be because anything we do or say, because we are perfect: even our farts do not smell [citation needed]. Rather interestingly [1], fewer (almost by half) Russians view Israel negatively percentagewise than do Americans. So Americans are almost twice as anti-Semitic as Russians (this might be news to Jews living in Russia). If negative opinion of a country was purely based on racism, then it means that racists are able to distinguish between for example North and South Koreans. Also South Koreans are really really racist, and they really really irrationally hate the North Koreans. Essentially as much as Egyptians irrationally hate Israelis. By the way notice that the survey asked if the country (not its people) has a positive influence on the world, but we are assuming I guess (at least in Russian and Israeli media) that nobody can tell the difference between the country and its citizens. Also the French and the Germans seem to really really love each other. I mean … get a room you two. I mean the French and the Germans have always liked each other. Good thing the survey did not ask about Belgians, because those guys are terrible, we all hate the Belgians. An interesting piece of information from that study is that Nigerians pretty much have a positive view of the world. Most countries they overwhelmingly love. And even Israel and North Korea manage to get over half of Nigerians to like them. They aren’t too crazy about Iranians and Pakistanis, but it’s not too bad either. It must be wonderful to live in the world of simple explanations that always seem to indicate that the group you belong to is somehow superior to others, and others simply hate you because you are so good. I think we had a word for that … ## April 16, 2014 ### Putin vs. Godwin Filed under: Politics — jlebl @ 5:18 am I call Godwin’s law on Russia. So, by the rules of Usenet, Russia has lost the argument. I think the security council should adopt Godwin’s law. Any time you call anyone a Nazi during an argument, you lose your veto power for that issue. ## February 27, 2014 ### Numbers Filed under: Economics,Politics — jlebl @ 12:43 am When reading news, one should do some quick calculations to test for ridiculousness. It really makes reading news far funnier. Let us look at the 19 billion dollar deal where Facebook bought WhatsApp. It is especially hilarious if we interpret this as how much do we as a society value WhatsApp versus some other things. These are based on just quick googling, but they are for just eyeballing the thing, not to be taken exactly. 1) Minimum wage hike. There are about 3.6 million people at or below mimimum wage [1] (2012 data). If we suppose that they would work 250 days a year for 8 hours a day, the current$2.85 proposed hike ($10.10-$7.25) would amount to $2.85 \times 8 \times 250 \times 3,600,000 = 20,520,000,000$.   So about the same.  Facebook could have paid everyone on minimum wage the hike for a year.  But of course I’ve overestimated I doubt everyone on minimum wage works 8 hours a day 5 days a week.

2) NASA budget is about 16 billion in 2013 [2].  So WhatsApp is actually worth more than all that NASA does in a year.

3) Nominal GDP [3].  Czech Republic is about $196 billion. Ten WhatsApps is the GDP of the whole country of 10 million people (where WhatsApp has 55 employees, so 10 of them have 550 employees). Jamaica has nominal GDP of$13 billion or so.  WhatsApp is way more than that.  OK, you say, that’s just one year.  Suppose that WhatsApp (what it does) works out to working for 5 years before it becomes obsolete.  That’s 3.8 billion per year.  The GDP of Cayman Islands is $3.3 billion. And that’s where Facebook is taking its profits to avoid paying taxes [4]. 4) The University of California budget for 2013-2014 is$6.2 billion [5].  WhatsApp would fund the UC for 3 years.  WhatsApp apparently produces so much good for our society that it equals about the output of the entire UC system for 3 years.

## November 8, 2012

### Economy and elections

Filed under: Economics,Politics — jlebl @ 6:55 pm

I have a theory as to why did the economy improve over this summer and into the fall, which led to Obama winning the election. I bet a part of this was the money spent on the campaigns. That was 2 billion dollars that went to very targeted places like Ohio. No wonder economy in Ohio is doing quite well. If it weren’t for the election, Sheldon Adelson would not spend 100 million on random stuff over the period, he would sit on the money. This way he spent it to elect Romney improving the economy in battlegound states which led to Obama winning.

Yes it is a bit of a stretch, but it should not be totally dismissed. Apparently the campaigns spent approximately 190 million just in Ohio [1]. That means that GDP of Ohio went up by 0.04 percent just because of the election (the GDP is 477 billion [2]). That’s not much but it’s not negligible. Also note that it wasn’t spread out over the whole year it was rather concentrated. Further note that state spending is 26 billion [2], so this is 0.73 percent of what the state spends in a given year. If the state gets say 5 percent of that money in various taxes (just pulling a number out of a hat; a reasonable estimate in my layman opinion based on state budget versus GDP) that would mean approximately 10 million extra tax revenue for the state. Not at all bad.

So, Sheldon Adelson was really rooting for Obama! Sneaky way to do it too.

## April 23, 2012

### CS costs too much

Filed under: Economics,Mathematics,Politics — jlebl @ 1:35 pm

Apparently computer science is not too interesting and costs too much.  $1.7 mil at University of Florida apparently. So obviously we cut it, so that the athletic department (costing$99 mil) can get an extra \$2 mil a year.  It’s obvious where our priorities are as a society.  Even if nothing got cut, 1.7 vs 99 is pretty bad.

Next Page »

Create a free website or blog at WordPress.com.