Saturday, January 18, 2020

Trump and opinion dynamics

The January 2020 issue of PhysicsWorld includes an article on 'The physics of public opinion', written by Rachel Brazil. The article focuses on the claim made by French physicist, Serge Galam, that Donald Trump's victory in the 2016 US Presidential election can be explained using his model of 'minority opinion spreading'.

Galam's work models how opinions evolve in a network of human agents. The idea is that an individual's beliefs can be changed by social interactions with people holding other beliefs. However, Galam also represents the fact that some people can be more stubborn in retaining their initial beliefs. In particular, he models the way in which an initial minority opinion can eventually become the majority opinion, if the proportion of stubborn people is larger in the initial minority group than it is in the initial majority group:

'An opinion that starts in the minority can quickly spread as long as it is above a base threshold...As few as 2% more stubborn agents on one side puts the tipping point at a very low value of around 17%, which leads to the unfortunate conclusion that to win a public debate, what matters is not convincing a majority of people from the start, but finding a way to increase the proportion of stubborn agents on your side.'

This is interesting work, but more problematic is Galam's attempt to use a variation on this theme to explain Trump's 2016 victory:

'In the case of the 2016 US presidential elections, Galam says the prevailing factor was peoples’ "frozen prejudices". He argues that Trump’s outrageous statements, though initially seen as repellent by most voters, managed to activate their hidden or unconscious prejudices. First, many Trump supporters shifted to Hillary Clinton, rejecting his statements with great outrage, leading to a decrease in support. But the initial outrage led to more public debates with an automatic increase in the number of local ties. At those points, “it’s like flipping a coin, but with a coin biased along the leading prejudice”, Galam says. Then many voters started to swing in favour of Trump.'

There are two problems with this. The first is the explanatory dependence upon the theoretical concept of 'frozen' or 'unconscious' prejudices. This sounds almost like a retreat into the mysterious world of Freudian psychoanalysis, with its array of unverifiable unconscious motives.

Moreover, the notion that there is some form of latent fascism or Nazism within society, just waiting for an opportunity to gain ascendancy, plays the role of a tribal myth within Progressive politics. The Enlightened Ones urge continual vigilance against this ever-present threat, and such appeals perform the function of enhancing group cohesion. Galam's work therefore falls into an extant genre of Progressive literature, which has flourished in the wake of the Brexit referendum and Trump's election victory. 

The second problem with Galam's proposal is that there is already an adequate and much simpler explanation: 

Trump won the 2016 election because a critical proportion of blue-collar voters rationally assessed their changing economic circumstances and prospects, and concluded that their interests were better represented by Trump than the Democrats.

Unfortunately, to accept this explanation would require those within Progressive politics to accept their own culpability in bringing Trump to power. Better, perhaps, to believe in the existence of sinister, hidden prejudices.

Indeed, if there's one phenomenon which does call out for an explanation within social physics, it's the very spread of Progressive politics and political-correctness in recent decades. Back in the 1980s, politically-correct opinions were minority opinions held only by vocal, stubborn and fanatical groups. Today, these ideas have spread to become mainstream within the professional middle-classes. 

Sadly, one suspects that those working in academia are prejudiced about the nature of prejudice.

Thursday, January 09, 2020

Formula One and Machine Learning

The power of Machine Learning, based upon artificial neural networks, has become all-too-obvious over the past decade. Early this year, it was announced in Nature that a Deep Learning algorithm, developed by Google Health, is better than human experts at identifying breast cancer in mammograms.

Naturally, there's also been much chatter in recent years about the potential use of such Artificial Intelligence (AI) in Formula One. For example, one can find Jonathan Noble's article, 'Why Artificial Intelligence could be F1's next big thing', on Autosport.com, apparently suggesting that AI could be used by both trackside engineers and those in race-support roles:

"Getting through the mountains of data generated in Formula 1 can be a 'needle in a haystack' process for teams searching for performance. There's technology on the way that could make a huge difference...The AI being talked about right now will be used at first to help better manage access to data. The computers will learn to know which data needs to be saved; which data needs to be prioritised so there can be rapid access to it. Plus it needs to be one step ahead and bring up data that is needed next."

Perhaps the idea is that if AI can spot patterns in a bunch of tits, then it could also be used by a bunch of tits to spot patterns in data. 

From inside the teams, the arrival of the Machine Learning advocates sometimes resembles a flock of seagulls swooping noisily from one landfill site to another, seeking easy pickings from the technically clueless decision-makers, squawking and chirping happily about 'convolutional neural networks', and 'GPUs running in the cloud' as they descend upon unwitting mechanical engineers and aerodynamicists.

Perhaps Formula One needs to carefully scrutinise some of the claims made by the Machine Learning (ML) community, particularly vis-a-vis its capabilities in the fields of forecasting and data-mining. A recent paper published in PLoS by Makridakis, Spiliotis, and Assimakopoulos compares the performance of ML algorithms, versus standard statistical methods, for making future predictions from time-series data. The aggregated errors were quantified using two measures, symmetric Mean Absolute Percentage Error (sMAPE), and the Mean Absolute Scaled Error (MASE). Unfortunately for the Machine Learning advocates, the statistical methods had the lowest error levels, as represented in the chart below.   


So, good news if you're an F1 engineer: you can cling onto your Excel spreadsheets for at least a little longer. Or better still, learn to use the statistical package R.

As Makridakis et al justifiably assert, "the importance of objectively evaluating the relative performance of the ML methods in forecasting is obvious but has not been achieved so far raising questions about their practical value to improve forecasting accuracy and advance the field of forecasting. Simply being new, or based on AI, is not enough to persuade users of their practical advantages over alternative methods."

Also provided in the paper by Makridakis et al is a useful table (below), which can be used as a guide to distinguish those applications where Machine Learning is demonstrably powerful (games, image and speech recognition), from those applications where it isn't (currently) the right tool for the job.


Machine Learning advocates can be expected to thrive in an environment lacking technically knowledgeable management. Coincidentally, there are two articles on Autosport.com extolling the virtues of Artificial Intelligence, the aforementioned 'Why Artificial Intelligence could be F1's next big thing', and 'The dangerous AI tool that could dominate F1'. In the latter, Serguei Beloussov, boss of Acronis, asserts: "In F1, there are ultimately three areas that you can apply machine learning - one is the race strategy, [the others are claimed to be logistics/operations and design]. There is some advantage, but not so much - because a race is a highly random activity, so it is relatively difficult to make a sustainable project because there is a lot of randomisation."

Now, Serguei is right about the difficulty of applying Machine Learning to race strategy, but he's completely misunderstood the principal reason. The problem is not the random element, and indeed, the random element (safety-cars and suchlike) is not the factor which dominates the logic of F1 race-strategy. 

To the disappointment of many, F1 race-strategy is a perturbation of deterministic logic: when teams devise their race strategies, they do the deterministic calculations involving tyre-compound offsets, tyre-degradation, pit-losses, fuel-consumption and so forth, and then apply perturbations to the timing of pitstops based on game-theoretic considerations of undercuts and overcuts, and the importance of hedging against (or catching) safety-car and virtual safety-car periods. There's a random element, but it's not the dominant element.

No, what makes Machine Learning so difficult (at present) to apply to F1 race strategy is the fact that F1 is a game in which the rules are constantly changing. The sporting and technical regulations are constantly changing from one year to the next, altering the rules on starting tyre-sets, how many tyre compounds are available or need to be used, how difficult overtaking is, whether refuelling is permitted etc.; moreover, the performance characteristics of the tyres change from one race to the next, and the compounds and construction change from one year to the next. It's much more difficult to train an artificial neural network when the past data is, like this, essentially a collection of similar, but different games. 

For example, you might try and estimate the overtaking difficulty at Paul Ricard based upon one year of data, without taking into account the fact that there was a headwind down the Mistral on that particular weekend, or the fact that the DRS effect was much stronger/weaker under the set of aero regulations in force that year; there might even have been a higher level of tyre degradation that year, which can have a disproportionate effect on traction, reducing the overtaking difficulty more than the pure lap-time deficit alone would indicate.

So, whilst it's difficult to see a long-term future in which all aspects of F1 activity are not influenced by artificial intelligence, in the short and medium-term, perhaps it's best to employ standard engineering practice: look at the nature of the problem, and choose the right tool for the job, rather than grabbing a sexy new tool and trying to find an application for it.