Thursday, April 7, 2016

New paper draft on terror monitoring

Sometimes, a day can feel like a month. Sometimes, years can feel like pfff. And sometimes, decades cannot be felt :).

In any case, it is time to announce the follow-up to my prior work on terrorism monitoring. Linky to the paper for those who are interested.

This is a long overdue work (as are most things in my life) on non-parametric approaches to terror monitoring. It builds on some reverse majorization theory to generate functionals for monitoring terror signatures. The good part of the deal is that the scheme is "practical," within the confines of keeping things real and simple. The bad part of the deal is it can be used for monitoring all things under the sun, and hence can be easily misused. The ugly part of the deal is whether it will ever be used, anywhere. But in any case, the job is done, well or not!

Labels: ,

Saturday, March 9, 2013

Impressions: How to Lie with Statistics

I just finished reading the old classic "How to Lie with Statistics" (Linky), a good basic intro to statistics for non-statisticians. It is not a sophisticated text, and meant for people from all walks of life to get a simple hold on basic statistical maladies.

The book starts with the premises that: "The secret language of statistics, so appealing in a fact-minded culture, is employed to sensationalize, inflate, confuse, and oversimplify. Statistical methods and statistical terms are necessary in reporting the mass data of social and economic trends, business conditions, "opinion" polls, the census. But without writers who use the words with honesty and understanding and readers who know what they mean, the result can only be semantic nonsense.", and "A well-wrapped statistic is better than Hitler's "big lie"; it misleads, yet it cannot be pinned on you." In this direction, the book illustrates and explores issues in biased sampling, systematic/interviewer bias in opinion polls, the empirical meaning of probability as the frequency of occurrences of the said event, convergence issues, missing p-values in some of the grand claims in media, going from statistical mean to realization values, misleading graphics, unmarked axes, missing ranges/spreads instead of a single mean value, strawman arguments, fudging figures to report one's point-of-view, how so much sensationalism is tied to politicking, misleading comparisons in the before-and-after genre, disease/epidemic statistics, etc.

The grand-daddy of them all is the classical post hoc fallacy (Linky): attributing the wrong meanings to certain statistics by not understanding the difference between correlation and causation. For example, the standard fare, the smoking and low grades example, could be read as "smoking causes poor grades," or "poor grades cause people to smoke," or with no relations either way. Choose the one that pleases your ideology, agenda and propaganda intent! One would assume that anyone attaching strong causative attributions would bring in solid evidence (and if they cannot, one would hope that they would remain agnostic), but in this world of 140 character attention span, even good old statisticians fudge data. Lamentable, but a sad nature of the game that is life! While good intentions may make good people to make unneeded causative attributions, statistically it is still a falsity.

I would leave it to the reader's imagination for the wide variety of stories that Darrell Huff describes. But being a book from the 1950s, the book illustrates, even today, far more about the US of the 50s than people could care to see. Here are some of my impressions, not necessarily statistical, but impressions in any case:
1) Today, a mean stands for the arithmetic mean unless explicitly stated otherwise. It is rather difficult to visualize readers confusing the mean for the median or the mode. Surprisingly, this was how it was in the 50s as the three terms were often used interchangeably, possibly because of the new-found fancies for the Gaussian distribution where these three quantities coincide. It must be noted that a mean is preferred in scenarios where the upper and lower range of the variables are comparable, whereas the median is preferred in scenarios with outliers/extreme outliers, while mode can do what neither can in the case of categorical variables.

2) The Democrat-Republican divide we see today in American politics in terms of the lower middle-class and poor being the captive votebank of the Democrats, and the upper middle-class and the rich elites being the captive votebank of the Republicans seemingly stretches to the 30s with the Roosevelt vs Landon vote. In fact, Literary Digest's famous flop-show due to biased sampling (Linky) beats the Dewey-Truman spectacle (Linky) by a mile in terms of remarkable statistical lessons from the 20th century.

3) The book stresses the simple statistical intuition that preciseness in terms of statistical quantities goes hand-in-hand with "cooking the books." This is a very important lesson for today's big data applications that are over-hyped, oversold, and oversimplified. While notwithstanding the fact that data mining and analytics can indeed bring in some benefits to a priori (non-quantitative) formulations, expecting precise answers with high-dimensional data mining and model fitting is just that: a big fat joke sold in search of Series B or C funding from gullible VCs or grant funds from well-meaning philanthropists or agenda-driven organizations.

4) In terms of medical treatments, we hear nuggets of truism perpetuated by the foibles of the irrational human mind under suffering, pain and angst: "The guilt does not always lie with the medical profession alone. Public pressure and hasty journalism often launch a treatment that is unproved, particularly when the demand is great and the statistical background hazy." "As Henry G. Fulsen, a humorist and no medical authority, pointed out quite a while ago, proper treatment will cure a cold in seven days, but left to itself a cold will hange for a week." This reminds me of the Tamiflu scam and the associated famous Cochrane Review (Linky). In the genre of statistical mis-statements, let me add one more: Tamiflu is not efficacious and is over-expensive at 30$ a cycle; that comes with the firm backing of a sample-size of two! With the Cochrane Review, one could have made the sample-size two thousand and not at all be surprised :).

5) In the same vein is the section on the remarkable irrationality of humans on accident statistics that even the educated sound statistically stupid at times. As mentioned in one of my earlier posts, traffic accidents kill more people in India than a terror attack could or a nuclear accident might. Yet, we have more educated people fighting against nuclear plants in India today than about road safety guidelines. The less said about the business of terrorism, the better. Terrorism is business not only for the terrorists, but also the counter-terrorists. That is a truism!

6) On truisms, some simple (yet profound!) facts that are made in the book include: i) Nearly everybody could be below average, ii) It is dangerous to mention any subject having high emotional content without hastily saying where you are for or agin it, iii) A difference is a difference only if it makes a difference, iv) The fact is that, despite its mathematical base, statistics is as much an art as it is a science. A great many manipulations and distortions are even possible within the bounds of propriety. And so on.

7) Even popular best-sellers of the 50s liberally used the word "Negroes" to describe African-Americans, without any sense of compunction and/or morality. The simple fact is that treating fellow citizens as second-class for a loooong time cannot go hand-in-hand with claims to being extraordinarily exceptional. And sadly, the impact of American exceptionalism on the emerging Indian consciousness of today cannot do any overall good for India of tomorrow except to browbeat and forget history as it happened, and replace it with a pithy 140 character land of milk, honey and dreamz unlimited-type summation.

7b) On  that note, a better appreciation of the universal adult franchise that is a part and parcel of the Indian Constitution can be had when one realizes that India is perhaps one of the few countries in the world that started off with universal suffrage right from the day the first (and only!) Constitution got promulgated. The world's self-appointed greatest democracy did not. Nor did the UK or much of Europe, Asia, Africa, or the Americas. In fact, women first got the right to vote in New Zealand bang at the turn of the 20th century. The sad story around the Indian neighborhood of discrimination against fellow citizenry and the associated woes can be well-understood when one compares the Indian model and puts that side-by-side against the competing ones in the neighborhood. All that does not discount the simple fact that India still needs to compare itself with India of yesterday and not with some utopia from elsewhere. In that direction, the distance to cover is still and will remain unlimited.

8) And finally, the moral of the story, as I see it: Being the home of fundamental innovations and seminal contributions in large scale sampling techniques (Linky), it is remarkable that Indians still cannot "predict" their electoral outcomes with a measure of accuracy that is acceptable under the constraints that go with the multitudinous cacophony that is Indian democracy. In contrast, India apes the US in not being the land of the brave and the home of the free, but in being the land of the gruff and the home of the fluff.

Labels: ,

Monday, February 25, 2013

A Model for Violence

There are many models in the literature for violence, terrorism, militancy, and insurgency -- even for those specializing on India-centric matters. I am not the first person to deal with these things, nor am I well versed with the inter-disciplinary literature in this arena. Having read a bit, however, I do have my hypotheses and claims. I believe it would be a good idea to jot down these ideas before refining them into something that is useable in some form.

My brief claim is that while religion or language or ethnicity could be a source of many problems in India, just the fact that someone is from a religion/language/ethnicity that is different from the numerically majority/preponderant one cannot (ideally!) cause problems. What could cause problems though is a contestation in the name of religion, language or ethnicity. In fact, a contestation of any type (including caste, socio-economic, supposed grievances from a bygone era, a steady isolation in terms of belonging, etc.) that creates and propagates a sense of alienation (which I like to term as the "Otherness" factor) of the minority community(ies) from the majority, and the majority from the minority, and the back and forth between these two interdependencies is more likely to be a source for insurgency.

Violence comes from being cornered or perceptions of being cornered in one's own imagined homeland, not from just merely existing. This kind of contestation would probably be able to explain better the recent Bodo-Bengali-Bangladeshi violence in Assam as it seemed to suggest a zero-sum game fight for resources, animated by contested identities that go a long time in the past. In more detail, if you asked me what factors could be associated with a higher likelihood of violence, I would pick five:
1) A certain "Otherness" factor that makes a subset of the people alienate themselves from the mainstream. Day-to-day transactions between the mainstream and the subset can both aid in reinforcement of the "Otherness" factor as well as embrace and co-opt the community by making them feel comfortable with the mainstream. Such a factor could be linguistic, religious, cultural, socio-economic, regional, [whatever]. But one definitely needs a difference in terms of outlook before such differences can be exploited.

2) Differences alone are not sufficient. Such differences have to find an outlet via some ideology. The ideology could be as good as the Justice Party-Self Respect Movement-Dravida Kazhagam which became co-opted over time into the mainstream, or it could be exclusive religious, socialist, or different hues of theoretical communist egalitarianism. In short, the Intentions of the sub-group make a big difference in channelizing their anger. If the Intention is to just attain political mobility (like the Yadavs of Uttar Pradesh or the Scheduled Castes of Uttar Pradesh or the non-Brahmin vs. Brahmin struggle for limited resources in the then Madras state) rather than avenge the wrongs of past deeds (Bhumihars vs. Thakurs in Bihar), the whole setup could be different.

3) What aids revolutionary Intentions to form is a differential literacy rate between males and females. There is a high correlation between a big gap in the male to female literacy differential and violence. For whatever good or bad reason, the southern states of India have by chance or pure luck reduced this differential. It is catching up in the North, albeit slowly for my comfort. While I have not collected enough data to feel comfortable with my hypothesis, here are my first observations: (http://dharma-yuddham.blogspot.com/2012/04/two-education-related-statistics.html. See also two related posts connected from this post with a bit more data.). 

4) Again, Intentions need to be channelized. That is when a community arms itself to the teeth and develops Capabilities that can seriously harm the State/establishment. Capabilities do not stand alone, they go with other factors that mutually reinforce each other.

5) To sustain the Capabilities, a group needs Finances. This could be sourced from outside or from hooking up to the usual drug trade/hawala/charity networks.

I am pretty sure I am missing many other attributes that determine violence. But a general model that flows like "Otherness --> Formation of Contested Identity --> Intentions to Hurt --> Capabilities to Harm --> Sustaining Capabilities" looks like a natural model for how terrorism/violence happens than by any other justification. I am not saying that other factors such as geography or isolation of terrain have no correlation to all this, geography indeed is responsible for some sort of Indivisible Otherness, but geography alone is not sufficient. We need so many other factors to form a feared terrorist/insurgent/violent outfit (especially in India) that needs careful study.

PS: On that count, the situation is ripe in TN for the Otherness factor, which has already been firmly ensconced in the mindset of the polity, to take a dramatic shift. Propaganda movies about alienation do not help this matter either. There are many situations in India where violence is avoided by pure luck or by accidents of history. Why does one need an accident of history when a reality-based nuanced understanding of the landscape is sufficient? For the policy wonks at the South Block, I would appeal to put their ears firmly to the ground and hear the churnings. Of course, such churnings are not exclusive to TN, but a need for those churnings in TN today are a bit groundless and a small shift can make giant differences. In other places, a small shift often means a small change in reality.

Labels: ,

Sunday, July 8, 2012

New paper draft on models for terrorist activity

For those interested, I have uploaded my first take on a model for terrorist activity and methodologies to detect spurts/downfalls based on this model Linky. This is the draft version of the QMDNS talk mentioned here: Linky. A bit overdue... As is usual, feedback will be much appreciated.

In terms of India, the more relevant question is what does such a model mean for the maoist menace? Surely, detecting spurts in the activity in the past is not a difficult exercise if the model is reasonably accurate. But can new spurts be predicted (still under the assumption that the model is accurate)? Is the model accurate? Good questions all, for which I need better data. In any case, some answers will follow in September :).

Labels: ,

Friday, April 27, 2012

Upcoming talk

On my upcoming talk at QMDNS (Linky)...

Title: Modeling and Detection of Sudden Spurts in the Activity Profile of Terrorist Groups

Abstract: The main focus of this work is to detect sudden spurts in the activity profile of a terrorist group and track it over a period of time. Towards this goal, a $d$-state hidden Markov model (HMM) that captures the strength of the group and thus its activity profile is developed. The simplest setting of $d = 2$ corresponds to the case where the strength is coarsely quantized as Active and Inactive, respectively. Two strategies for spurt detection and tracking are developed here: a model-independent strategy that uses the exponential weighted moving-average (EWMA) filter to track the strength of the group as measured by the number of attacks perpetrated by it, and a state estimation strategy that exploits the underlying HMM structure. The EWMA strategy is robust to modeling uncertainties and errors, and tracks persistent changes (changes that last for a sufficiently long duration) in the strength of the group. On the other hand, the state estimation strategy tracks even non-persistent changes that last only for a short duration at the cost of learning the underlying model. Case studies with real terrorism data from open-source databases are provided to illustrate the performance of the two strategies.

Short Summary: Existing work on activity profile modeling fall under three categories: i) classical time-series techniques of fitting trend, seasonality and stationary components, ii) a technique that goes by the name group-based trajectory analysis (derived primarily from statistical methods in sociology research) where terrorism trends with similar developmental paths are identified, and iii) self-exciting point process models. The first method has been around from the early 80s in different forms, the second method corresponds to early 2000s when many open-source terrorism databases came into the picture, while the third method is rather recent. Of these, the third method is the most exciting (pardon the pun!) as it allows the full-blown hammer of spatio-temporal point process techniques combined with statistical methodologies in hypothesis testing, inferencing, parametric and non-parametric methods, etc. In some sense, this modeling method has been motivated by similar trends in gang warfare, seismology, epidemiology, etc., where self-exciting models have really pushed the frontiers of statistical inferencing. In terms of negatives, the model has too many parameters that have to be learned for all these inferencing techniques to work nicely.

My work is motivated by two central issues. One, terrorism (despite the huge media attention) is a rare phenomenon with data-collection a painful manual exercise (despite the rise of many open-source databases). Thus, parsimonious models driven by simplistic hypotheses make really good sense in this business. Two, while self-exciting models make perfect sense for gang warfare where revenge attacks can be nicely modeled as self-excited and in seismology where aftershocks are driven by primary shocks, it is not clear if this is the best framework to be used for terrorism modeling. In this context, I propose an alternate HMM framework where the hidden states model certain qualitative attributes of the terrorist group which could undergo a shift over time and thus drive the activity profile in different ways. I show via statistical techniques that this model is a good competitor for self-exciting models and has the added advantages of being described by few parameters (four, in the simplest non-trivial setting), and being motivated by a simpler set of hypotheses on the bare basics of how terrorism works. To rephrase Peter Diggle, at the end of the day, the objectives of a statistical analysis should be determined by the objectives in collecting a certain dataset under question. To address this issue, I show that the proposed approach detects and tracks spurts in the activity profile that can be easily identified with certain geopolitical realities. This is done with data on FARC, Shining Path and the Indian Maoists.

Labels: ,