Category Archives: Uncategorized

Covid-19 update

Covid-19 top 25!

I have created a daily updating web page with infection rates for the countries in the top 25 of total infections diagnosed, as well as Canadian provinces. Data are from Du and Gardner (see their Lancet publication here) but are ‘scraped’ automatically from their data on GitHub so that I don’t have to update it manually every day. However, this data source is not entirely up to date, so I am adding newer data sources over time, as well as doing some validation work, so bookmark it, sucka!

A halt to the NHL season

Professional sports leagues are shutting down. If the NHL cancels the season altogether, this means that fans of the Edmonton Oilers can confidently say that their team will not not make the playoffs this year! Go Oilers!

The Coronavirus blues

Coronavirus blues

On Losers

What is a loser?

In the traditional sense of the word, a loser is simply someone that has not won. This is a descriptive and sometimes useful definition, but of course ‘loser’ is often used to imply a pathology of failure–someone who never wins, who can’t succeed at anything, and that we as a society don’t value.

I am not satisfied with this definition, so I offer an alternative:

Loser: a person for whom success is uncorrelated or negatively correlated with demonstrable merit.

Using this definition, a person can be a loser in two ways:

  1. A person with great potential that is wasted.
  2. A person with great success due to something other than demonstrated merit.

Both 1 and 2 require a little explanation. First, consider the concept of wasted potential. To waste potential means failing to live up to what one could have done had they tried. Trying and failing doesn’t make someone a loser. A loser is anyone who doesn’t make use of the talents they have due to things like fear of failure, sloth, or sense of entitlement.

Second, consider the concept of merit. Merit is ability, skill or talent (inherited or not) that is relevant to success. A great hockey player that records a best selling album of mediocre country music is a loser in the country music domain. His success in hockey doesn’t demonstrate his merit in other areas. So the hockey player is a loser in one domain and not a loser in the other. For merit to be meaningful, it has to be linked to success.

Why should you accept my definition?

  1. Calling someone a ‘loser’ in the traditional sense is to ignore important many uncontrollable factors that contribute to failure and lack of success–like bad-luck. People should not be held responsible for bad luck. Bad luck doesn’t make a person a loser.
  2. Undeserved success is economically inefficient. Merit-less success rewards people based on attributes that are not relevant to the creation of value. Labelling people with unmerited success as ‘losers’ is a way of knocking them off their roost (at least verbally), and perhaps making way for those more deserving of praise.
  3. Fear of being thought of as a ‘loser’ in the traditional sense may discourage risk-taking. The world benefits from some risk-taking; it doesn’t make sense to condemn people for trying and failing. Trying and failing is taking one for the team. By my definition, trying and failing doesn’t make someone a loser.
  4. If you accept my definition, you won’t know whether a person is a loser or not unless you get to know them, and compare their success against their merit. Nobody is a loser by default.

Here are some examples to help illustrate the meaning and usefulness of this term.

At least two of Donald Trump’s children are clearly losers (Jr. and Ivanka). As far as I am aware, they have not been tested in this world, yet they seem to wield great power and reap the rewards of financial success. They did not ‘make it’ in business or politics or anything in a way that demonstrates a competence commensurate with their positions. Losers.

Many elected officials are losers. People do not win elections by demonstrating an ability to craft useful legislation or make good decisions. They win through a mix of spectacle, popularity contests and back stabbing. The higher you go in political rank, the more likely you are a loser. So yah, Justin Trudeau is probably a a loser. On the one hand, he did earn his seat in Montreal through by hustling door-to-door, shaking hands, kissing babies and so on. On the other hand, as Prime Minister of Canada he is clearly the beneficiary of his father’s name and wealth. Sorry J.T., you’re a loser.

Dictators are always losers; their power is not commensurate with demonstrated abilities in governing. They are usually good at employing violence, bullying and other skills best suited for other kinds of occupations.

Big lottery winners are all losers. Nobody that wins the lottery wins because of merit, just dumb luck. Lottery losers are losers too (in the traditional sense), so it would seem that playing the lottery is for losers.

Athletes are pretty well never losers; sports are great at demonstrating merit. People don’t win at sports by luck alone; any sport that you can win based on luck alone isn’t a sport. People who try and lose at sports aren’t losers either. To paraphrase 90% of the high school gym teachers who ever lived: the only losers are those who don’t try!

On the other hand, super famous actors and musicians are all kind of losers. We may love them, but demonstrating merit in the acting/music industries is pretty tricky. I firmly believe that any rock ‘n’ roll orchestra that is filthy, insanely successful in money and fame should be viewed with suspicion. Sure, Nickelback has sold millions of records, but they are clearly losers.

Mark Zuckerberg, Bill Gates, Steve Jobs, Jeff Bezos: mostly losers. They all have demonstrated some merit, but it is pretty weakly correlated with their success. Check out a recent computer simulation that makes this point beautifully. If they were multi-millionaires, they may not have been losers. But as billionaires, losers they be.

Doctors make a lot of money, and are highly regarded culturally, but most aren’t losers. Doctors are under close professional scrutiny, and it takes a lot of work to enter the profession–most of them have to work their butts off to get into and out of medical school, especially these days. People who are bad at these jobs don’t keep them for very long. Doctors are not losers. Of course, most people in health care aren’t losers. They have tough jobs and neither their pay or cultural success is excessive. The same can be said about school most teachers.

However, many University professors are kind of losers. Universities are not good at getting rid of under-performers, and success (in terms of salary and reputation) usually goes up over time irrespective of merit. There is evidence that the research system as a whole is not always great at allocating success (see the same simulation above). I’ll fully acknowledge that I am probably at least 37.5% loser (+/- 20% 19 times out of 20).

Conclusions: we’re mostly not losers

Most regular folks with jobs, and/or families and/or that contribute to their communities are not losers. In fact, 80-90% of the human population are probably not losers. Your neighbour who keeps you up at night with his banjo music and pool parties? Sorry, he’s probably not a loser, just annoying.

Post script

My younger brother is in a hard working rock ‘n’ roll orchestra who slave away for the love of it, so obviously they are not losers. Here is the video from their most recent album, Loser Delusions:

Parity in hockey: a simulation

I wrote a bit of R code to explore the ‘parity question’ in the NHL; specifically, if all teams were more or less equal, what would we expect to see in terms of regular season point totals? You can find the code for generating a hockey schedule here and the simulation code here.

The scheduler is just a dirty optimizing algorithm that I came up with that is probably inferior to what the NHL uses, but it seems to work. You can set the schedule parameters and it seems to work fairly well provided the inputs result in a feasible solution; for example, don’t lower the max games too much or it won’t be able to solve. I had to create the scheduler to generate a realistic play schedule that the hockey simulator could use.

For a given schedule, the hockey simulator plays a season of hockey and sums up point totals. For the purpose of this experiment, I assume that all teams have an equal chance of winning. If a team loses, they have a x% chance at getting a loser point (by default, this is set at 11%).

I then run the simulation many times. One way to investigate the results is to plot out the distribution of top regular season team (the team with the most points). Here is a histogram of the maximum point totals over 1000 simulations:

How does this compare to real data? Well, it depends on the season, but generally speaking, the best teams in the real world do better than the best teams in the simulation. This suggests that the NHL has not yet reached the point of real parity. The far left values on the figure below tell us the mean, range (95%) and maximum (of the maximum points) over 1000 simulations. Tampa Bay outperformed the parity simulation even after 1000 simulations–suggesting that their regular season performance in 2018/2019 was far from a matter of luck.

Nevertheless, imagine if 2018/2019 Tampa Bay was an anomaly, and the trend of real NHL point maximums continues downward–where the best regular season team gets point totals that approach 107 or so in a few years. At that point, it might suggest that the NHL has reached some level of true parity, where the vagaries of year-to-year luck (like injuries) will play an increasingly large role in determining the success of a team, rather than true superiority of skill and tactics on the ice.

Game theory and the Brexit crisis

Here is a very short, fairly non-technical description of the Brexit crisis seen through the game theory lens.

I start with some assumptions about the strategic payoffs (not in standard form for those acquainted with game theory) of the EU-UK Brexit negotiations. The payoffs tells us the net benefit from the possible strategic outcomes of the Brexit negotiations. Here we assume four strategic outcomes based on two decisions from two parties: offer a compromise
Brexit deal or do not offer a compromise Brexit deal. I use ‘UK’ to stand in for the United Kingdom, and ‘EU’ to stand in for the European Union. The smaller the number (in brackets), the lower (and worse) the payoff (e.g., -10 is worse than -7). Here is a payoff table:

  1. No compromises (no-deal Brexit): -10 (UK), -10 (EU)
  2. Deal with UK compromising: -8 (UK), -5 (EU)
  3. Deal with EU compromising: -5 (UK), -8 (EU)
  4. Deal with both parties compromising: -7 (UK), -7 (EU)

The exact numbers don’t matter for these purposes, simply their relative sizes. What this payoff table says is that a no-deal Brexit is the worst situation for both parties (both get -10). It’s hard to know if this is true in the real world, but it does not seem unreasonable. It also tells us that we have two ‘pure strategy’ Nash equilibria: #2 (UK compromise, No EU compromise) and #3 (No UK compromise, EU compromise). These are equilibria because if forced into one of these two situations, neither party would be better off opting out. For example, say the US forced the #3 deal somehow (the UK does not compromise, but the EU does). Once that agreement is in place, the UK is not better off by switching its position from no-deal to deal, since switching would result in a worse payoff of -7 (#4). Similarly, the EU does not benefit from switching from deal to no-deal, since that would result in a worse payoff of -10 (#1).

Unfortunately, there is no easy way to ‘force’ a deal, so we get a standoff; both parties seem to be waiting for the other to compromise. We also have a deadline; if a deal is not made before October 31, 2019 , then #1 happens by default. Both parties know that a no-deal Brexit is the worst-case scenario, but do not seem compelled to give an inch. This is not a surprise for game theorists because unlike #2 and 3, #1 and #4 are not the same kind of equilibria. If both parties were somehow nudged into a #4 deal, for example, they both would have an incentive to defect to another option that has a higher payoff–where they do not compromise but the other side does. In this standoff, #1 may not be a desirable strategy, or optimal in any sense, but could still happen if a deal isn’t struck by the deadline.

Does Boris Johnson have a way out?

Boris Johnson, the current British PM has been a belligerent on the question of Brexit, and has made a number of decisions that signal preparation for a no-deal Brexit–promising money to help mitigate the financial consequences, and shutting down debate in Parliament. To many, this may seem like insanity (particularly if the no-deal Brexit really is the worse case scenario), but it could also be a clever strategy.

Boris Johnson and some kid

Once elected as PM, Johnson may have reasoned that if he can create a ‘credible threat’ of a no-deal Brexit, he will force the EU to compromise and solve the deadlock. He can create this credible threat by seeming to proactively remove #2 and #4 from the list of negotiating options (leaving only #1 and #3). He did this by reducing opposition debate in the House of Commons through parliamentary prorogation. This was a rare parliamentary maneuver (though not unfamiliar to Canadians), that could have been intended to signal that a compromise deal (that would require Parliamentary discussion) is now impossible. Once a British compromise deal is removed as a possibility, then the EU would have no choice but to compromise themselves, leading to agreement #3. This is because if the UK doesn’t compromise, the EU would be worse off with a no-deal Brexit (-10) (#1).

So Johnson’s quick work to prorogue Parliament may have been a tactic to convince the EU that the UK was creating a situation where no-deal was inevitable, thereby forcing their hand…

Another layer in the game…

However, now with the recent no-confidence vote in British Parliament, the threat of no UK compromise suddenly seems less credible. The British Parliament has changed its signal, effectively saying that they do not want a no-deal Brexit (or, for many, that they don’t want Brexit at all, and are trying to force conditions that will roll back the plan altogether).

In response to this, Johnson is pushing for an election. Why might he be doing this? Well, it is possible that the EU might also see an election as a credible threat of no compromise, particularly if it looks like Johnson might win with more support than his government currently has. Once an election is underway, there will be no government to negotiate with the EU, and less time to come up with a compromise deal acceptable to the UK parliament. It’s risky for Johnson–his government could easily lose an election. Nevertheless, if the election creates the credible threat of no-deal Brexit, he might again provoke some EU concessions.

It’s hard to know definitively what is going to happen in the short or long term. It’s also possible that there is no actual strategic intent here–maybe Johnson is just bluffing his way through this without much thought. What is clear, however, is that game theory gives us some language for understanding possible ways to think about the problem, and perhaps anticipate how the future will unfold…