Friday, March 9, 2012

My tribute to Rahul Dravid: What if he debuted with Sachin

Rahul Dravid decided to call it a day and thus comes the end of an illustrious career. A lot has been written and more will be written in days to come, but those who have witnessed Rahul's batting know that no amount of runs can do justice to the man and his career. I often take the refuge of 'numbers' when it comes to define a career because memory gets clouded and lot of prejudices enter in our evaluation. 

This is specially true in the case of Rahul who all through his career remained in the shadow of Sachin Tendulkar. They say that he did not mind that, but what choice did he have when the whole country decided to remain mesmerized with Sachin (for few reasons of course).

Dravid's first test match somehow defined his career. A glorious knock of 95 at the Lords on his debut, but Ganguly another debutant scored a century and took all the limelight. This has been the fate of Rahul all through career. Judgement of Indian cricket masses is strongly clouded by their emotions and not one really pays attention to numbers. For some reason we treat Zaheer Khan a great bowler (in Indian context of course) but we forget to compare his record with Javagal Srinath, who is not considered a great bowler.  

So I tried to look through the number again compared Rahul Dravid with our benchmark of greatness Sachin Tendulkar when they played together. I hate to bring this comparison by just numbers so I made some graphics. I asked a simple question: when Sachin and Rahul batted together in an innings in a test match who scored more runs. I do not want to calculate averages, that tells nothing, I will only give you the raw data in a pictorial manner so you can judge with less emotions and more objectivity. Here is how to read the figure
Sachin Tendulkar vs Rahul Dravid.
Rahul is marginally better if at all when they play together.


Panel A: Innings by innings runs scored by Sachin Tendulkar. The dark line is smoothed version of the same data. 
Panel B: Innings by innings runs scored by Rahul Dravid. The dark line is smoothed version of the same data. 
Panel C: Probability distribution of runs scored by Sachin (brown line) and Rahul (blue line). This graph shows the probability of scoring some number  of runs in an innings. It turns out that there is no difference between the two when they batted in the same innings. Moreover, it is all noise, as the distribution is an exponential (thick gray line), characteristic of a class of stochastic processes (Poisson Process).  
Panel D: Scatter plot of runs scored by Sachin (Y-axis) and Rahul (X-axis) when they played together. If the point is above the gray line then Sachin scored more runs, if it is below the gray line Rahul scored more runs. It turns out that Rahul outscored Sachin 130 times while Sachin outscored Rahul 118 times. But there is not much difference in the runs they scored:  Rahul (12981) scored 395 runs more than Sachin  (12586). Ideally we would want that both score together but that was so rare.
Panel E: The scatter data in panel D is presented as probability in pseudocolors. 
Panel F: Innings by inning difference in the score of Rahul and Sachin. Positive number means Rahul scored more and negative number means Sachin scored more. 
Panel G: The distribution of run difference shown in panel E is a gaussian noise. 
Panel H: Autocorrelation of run scoring by Sachin (brown line) and Rahul (blue line). Once again, as revealed by panel C, the run scoring by the two players is a stochastic process. Although for Rahul there is some increased chance of repeating his performance (failure or success) every 5 matches (I am not sure if it is significant). 

What does this analysis tell us? Because I considered the matches when they played together, I automatically corrected by all the conditions, bowlers (they bat at no. 3 and 4) and other effects. SO when we look this analysis I do not see any difference between Sachin and Rahul. If I have to chose perhaps I will go for Rahul given that he scored 395 more runs. But I may not play them together because chances that they both will score good amount of runs is rather rare.

This great similarity between the two giants of Indian cricket and or World Cricket in 2000s makes me ask why Rahul remained in Sachin's shadow? What if Rahuls had debuted slightly before Sachin Tendulkar, would be worshipping Rahul and not Sachin? 

Perhaps Sachin is so popular for his early start and his explosive batting in limited over cricket, something Rahul was never allowed play like Sachin. I will do that analysis some other day. But here is a humble request, please, respect Rahul for what he has achieved, his numbers tell a very good story and they very conclusively say if at all Rahul Dravid is better than Sachin Tendulkar. Rahul is a humble man when he says that the next generation is well equipped, we all know the vacuum he is leaving at the number 3.

right arm over
Arvind

Wednesday, February 8, 2012

The myth of bowling in the right areas

Whenever a bowler is hit for a boundary modern cricket commentators shower all kinds of cliches to describe the shot and when they seem to return to their senses, they make a sorry remark on the bowler that he should be bowling in the right areas. With batting dominating, 'bowling in the right areas' is becoming the new cliche contemporary cricket commentary. It certainly gives the impression that the commentator knows what these so called right areas are. But unfortunately, they never make any sensible suggestion, so I assume that like the poor bowler and his captain, they also do not have any idea of where the 'right area' might be on the pitch. 
Ranji invented leg-glance to deal with the leg-side bowling
Lets try to narrow down on these 'right areas' by first isolating the bad areas and start with the 'bad line to bowl'. Down the leg side is never considered good. This is simple because a slight error and the delivery will be a wide. Traditionally, umpires do not give LBW to balls pitching outside or even in the line of the leg stump. Finally, there may still be some stigma of the bodyline series. Then too much outside of the off stump is also not good, because it gives enough room to the batmen to play the shot. Moreover, the batsmen can decide to leave the ball. So unless the bowler can move the ball in, there is not much point bowling outside the off stump.

Next, the length of the ball. Bowling too full or too short is bad. Usually they recommend 'good length' which is something like two third of the length of the pitch. Short balls without much pace only invite well executed pull shots. Too full is rather easy to play if it is not combined with swing.

So, is that it then, that bowl around the off-stump at about two-third of the length, the so called 'corridor around the off and the middle stump'. But I am sure all bowlers know this. This is what they practice. This is what the coaches train for.

However, it is not true that a ball bowled in the 'right areas' is going to give you a wicket or at least will trouble the batsman every time you bowl it. Evidently, balls pitched well within the 'right areas' are smacked for easy boundaries and at times even balls pitched in the so called 'bad areas'  get you a prized wicket. In fact, I did a little survey myself on the hawk-eye data that is available for some matches on cricinfo website to confirm this.

So if you have played cricket at any serious level you know that in reality there are no right areas.  Once a batsman knows what the bowler is going to do, he can execute any shot on any delivery. So the biggest enemy of the bowler is to become predictable.

Along the same lines, there is no perfect ball which can give you a wicket every time you bowl it. You may get some success on few occasions but soon batsmen will have a strategy to play that ball for maximum score. The innovation of leg-glance by Ranjit Sinhji was first such instance and development of a number of new shots in recent times, including the 'switch-hit', gives clear indications that batsmen can come up with an antidote to any delivery given some time. 
Glenn surprised everyone. 
He bowled not just in the corridor 
but in the corridor of uncertainly


So in my experience the 'right bowling areas' is a myth created by our modern cricket commentators, who want to sound educated in cricket. The biggest enemy of a bowler is the monotony of his bowling, no matter how elegant it appears from the commentary area. The biggest ally a bowler can have in the middle of the bowling spell is the variability and a sense of surprise in his bowling. 


Unfortunately, this part of bowling never makes it to the statistics and we think that Glenn McGrath was a great bowler because he consistently bowled in the corridor of the uncertainty, but I think you should watch him again. And not just Glenn, pick videos of any successful bowler and you will find 'unpredictability' was the main weapon in their armor.

right arm over
Arvind

Tuesday, January 3, 2012

Making of a Test bowler: Time it takes to find your feet

Interesting times are back in Cricket. Debutant bowlers since September 2011 have surprised the batmen and as many as six new entrants (four of those are fast bowlers) have started their careers with a five fours. In fact the 12 debutant bowlers of in 2011 have shared as many as 18 five fors. Although data is not sufficient, but this new breed of bowlers seem to bring a hope that finally balance between the ball and the bat will be restored (see Number Game). What is really encouraging is that six of these new bowlers are less than 22 years of age. So I think there are interesting times ahead for Test Cricket where runs will not be easy, or at least that what I would like to happen.


To appreciate the importance these superb performances by the debutant bowlers we (together with Ajit Padmanabhan) looked at the probability to take a certain number of wickets in first four innings. To this end we looked at the bowlers who took at least 200 wickets and bowled at least 71 inning (otherwise the great Clarrie Grimmett would be left out and we dont want that). This way we have 57 bowlers for this analysis.


So we asked how these obviously successful bowlers performed early on in their career. In the figure below we have the probability of taking a certain number of wickets in first four innings of a bowler who finished his career with at least 200 wickets (left panel). The probability to take a certain number of wickets decreases as we increase the wickets count. This decrease is almost linear. But more data may change the picture. The figure also shows that for some of the very successful bowlers the probability to take five wickets or more is only 7% (right panel). This really reveals how amazing  the success of the class of 2011 has been.
Figure 1. Left: Probability of taking a certain number of wickets in the first, second, third and forth career inning of a bowler. The linear decay of the probability traces shows how difficult it is to take more wickets in a test innings.
Right: Probability of taking 'n' or more wickets in the first four career innings. The dark line in both panels is average of the four innings. It turns out that there is only 7% chance to take five of more wickets in your first four outings as a Test bowler. Data taken from cricinfo. 


How much time you want to invest in a new bowler
In cricket early success or failure is no predictors of long term success. So how much time a team should invest in a bowler if he is not responding. We turned to the  numbers of the bowlers who took at least 200 wickets and extended our previous analysis. This time we averaged the innings by innings wickets of these bowler in the 200+ club. It turns out that, when averaged over 57 bowlers, it takes about 10 innings before the bowlers reach their steady state of taking on average 1.5 wickets per inning. 


Figure 2. Evolution of a Test bowler. The probability distribution shown in the figure 1 is color coded and shown for first 71 innings of 57 bowlers who have taken at least 200 wickets. Dark colors mean less probability and other way around for bright colors. The thick blue line is the mean of the probability distributions. The slow rise of the blue line indicates that test bowlers take some time to find their feet at the highest level of Cricket. After about 10 innings the line hovers around 1.5 indicating that after that bowlers stats dont vary much. It also shows that even the very successful bowlers on average take only about 2 wickets per innings. This consistent with the fact that most teams field 4-5 bowler who fight to take 10 wickets.
So we argue that the teams should look into their bowlers at least for 5 test matches before giving up on them. By the same token if a bowlers has not reached his steady state of 1.5 wickets by the fifth match, there is a little chance for him, statistically speaking.


right arm over
Arvind

PS: I was helped by Ajith Padmanabhan in collection and analysis of the data.



Saturday, August 13, 2011

The great indian batting line up of 2000s

India boast about their great batting line which is studded with Virender Sehwag (Runs: 7694, Avg. 52.69, 100s: 22, 50s: 27), Rahul Dravid (Runs: 12616, Avg. 52.56, 100s: 34, 50s: 60), Sachin Tendulkar (Runs 14851, Avg. 56.25, 100s 51, 50s 60) , Sourav Ganguly (Runs: 7212, Avg. 42.17, 100s: 16, 50s: 35), VVS Laxman (Runs: 8302, Avg.: 46.64, 100s: 16, 50s: 54).


In the 2000s India routinely fielded at least three of these five players in their batting line up and on occasions they all played. So I looked into the data when at least 3, 4 or all five played in a match and checked how much they each scored. Specifically I was interested in knowing when they all got to bat (three, four or five of them), did they all manage to score at least 50. The only way a team can benefit from its stars is if they all bat well together, otherwise individual stars are not enough to brighten the prospects of a team (of course Lara can do but even he managed to win only few Test matches on his own).

In the three figures below I have separated the data into first and second innings of Indian batting. This does not refer to the innings in the match. The gray boxes means that the corresponding player played in the match but did not get to bat in that innings. Light blue box means that the corresponding player made less than 50 runs and dark blue color means that the player made more than 50 runs. 

For collaborative batting efforts we are interested in knowing how often and how regularly at least three of then scored 50+ score in the same inning. The number are shown on the right of each subplot.

When at least three of them played together only in 11.43% cases all three managed to score 50+ runs, which is clearly a small fraction. Even more surprising is the fact that only 25% times two of the three made 50+ scores. These number drop in the second inning when only in 6% cases all three made 50+ scores.

Performance of five most successful modern Indian batsmen when at least three of them played together.

When at least four of them played together, in the first innings they never made 50+ score together (figure below). In 31% cases two of them managed to get 50+ in the first inning. The second innings remained a solo performance case when in 41% cases at least one scored a 50+.

Performance of five most successful modern Indian batsmen when at least four of them played together.
When all the five played together, media boasted about the strength of the Indian batting but never did all five made 50+ together. Playing all of them at the same time meant that at least two of them scored 50+ in about 40% cases in the first innings. Second innings again showcased individual performances.

Performance of five most successful modern Indian batsmen when all five played together.

This analysis shows that even though India has produced some very good batsmen in last two decades or so, but then have only rarely clicked together. I am not asking all of them to score runs in the same match but it is expected that at least three of the five score in the same inning, and unfortunately this has happened only 3% times in the first inning and 12% times in the second innings... but certainly only often enough that India could really exploit the batting abilities of these genius who as of now seem to like to work alone....to increase their individual scores and records...

right arm over
Arvind

Thursday, August 11, 2011

Fall of wicket and the Nelson effect in cricket

In cricket there is a superstition including many others, that at the score of 111 or its multipels there is an increased chance of fall of wicket. The number 111 is called the 'Nelson Figure' in cricket. The legend says that in the World War II there was a army officer  Lord Nelson who lost one arm, one leg and one eye. I am not sure whether this office played cricket or was related to cricket in some way but his situation became an expression in cricket to show score of 111. The famous umpire David Shepherd made this number even more special by his one leg jump when the score reached 111.

In the third test match between India and England on the second day, when Cook and Strauss were trouncing the hapless Indian bowling attack there was a discussion on cricinfo about probability of fall of wicket on 111. So I looked in to the partnership data over last 1950 test matches.

The score at the fall of first wicket seems to follow an exponential distribution. The figure below shows that probability to score a certain score before the loss of first wicket. The different lines show this distribution for different innings (top plot). This figure shows that there is a about 0.6% chance that the wicket will fall at the score of 50.
Fraction to score a certain number of runs before the fall of first wicket.

Because of the nature of data it makes sense to plot these graphs in a log-linear plot (lower-plot). In such plots a straight line indicates an exponential distribution. The pale blue line corresponds to an exponential function. Largely the nature of exponential does not change with inning and the behavior remains similar.

Therefore, there is no data that suggests that there an increased chance for the fall of the first wicket at 111.

Next, we can look for runs scored for each wicket in different innings in the same way. In the figure below I chose the log-linear representation because that more revealing. Different colors belong to different wickets with first wicket being blue and 10th wicket being the red line. Different subplots are for different innings.

Inning by inning fraction of fall of wickets as a function of runs scored.

Naturally the lines have a higher slope for lower order wickets but largely the distribution is exponential. That is that fall of wicket, when looked over all the matches, all the conditions, all bowler and batsmen, turns out to be a random process. Exponential distribution is a simplification and more sophisticated distributions can be used to better describe this phenomenon. Maybe I will do it some other time, when I am sitting in a boring lecture, like now...

see also
http://en.wikipedia.org/wiki/Nelson_%28cricket%29

Wednesday, May 4, 2011

Greatness of Sachin Tendulkar lies in his longevity

What makes Sachin Tendulkar a truly great player? There is no objective answer to this question. Every cricketer and cricket fan will have their own answers and augments.  In this age of data we have a better chance to identify components of Sachin's greatness. Below I provide one such analysis.

I have plotted few descriptors of batting for 50 top run getter in both Test matches and ODIs. The seven descriptors I am using are
Not Out [panel A]
Cumulative Runs [panel B]
Highest Score [panel C]
Batting Average [panel D]
Centuries [panel E]
Fifties [panel F]
Zeros [panel G]

Specifically I am interested in knowing if there is any correlation between any of the above descriptors and number of matches played. It is kind of obvious that if you are a batsman then more matches you play more runs and centuries you will get. 

In the two figures below the top one belongs to ODI matches and the lower one belongs to Test matches. Each player is marked with a colored circle. The color for each player is mentioned on the far right.

Indeed cumulative Runs scored has a correlation of 0.89 (ODI) and 0.84 (Test) with number of matches played [panels B in the figures below].
Same holds for number of 50s with a correlation of 0.74 (ODI) 0.89 (Tests) [panels F in the figures below].

In test matches even number of 100s scored is highly correlated with number of matches (correlation 0.84).  This is not so true for ODI (correlation 0.57). This analysis shows that Sachin's centuries in test matches are more or less predicted by his longevity. However, his count of ODI centuries is indeed a signature of his class and greatness.

The analysis also shows that in ODIs there is a weak but significant correlation between longevity and batting average. Similar trend is seen in Test matches but that more because of Sir Don Bradman.

Other descriptors are not correlated with longevity.

In both the pictures Sachin's stats are marked with a green circle and a small blue circle. For a comparison in test matches I have marked Don Bradman with a blue circle.

In summary, Sachin's runs and centuries and fifities in Test matches and runs and fifties in the ODIs are just a simple case of statistics. Any of the player shown in the figure would have matched that feat. Sachin's true brilliance shows up in the fact that he has scored so many centuries in ODIs.

Overall, this data suggests that largely Sachin's greatness is nothing but his longevity.




right arm over
Arvind

Saturday, May 15, 2010

Duckworth-Lewis Calculation Graphs for Different Duration Matches

I think one the best things to have happened to cricket in 1990s was the development of a rule to update the target score should there be an interruption and team batting cannot have full set of overs. Even more remarkable was that ICC who has a reputation for choosing wrong options always, accepted this rule. This rule was devised by two statisticians Frank Duckworth and Tony Lewis and appropriately named after them.

According to Duckworth and Lewis, cricket is about using resources (overs and wickets) to achieve a target set by an opposition who batted first. Therefore, in case of an interruption, both overs and wickets should be considered. 

Exact D-L calculations often become very cumbersome. Thus, in absence of sophisticated computer, most teams in small league and friendly matches devise some ad-hoc rule. Here I show the graphs that can be used to estimate the modified target after an interruption. Originally the D-L method was developed for 50 overs matches, but usually in small leagues and friendly games, matches are shorter, therefore I estimated the D-L calculations for 20,30,40 and 50 over games.

How to read and use the graphs
x-axis is number of over remaining. The different colors of the lines refer to number of wickets fallen. So estimate the scaling factor to update the target, you need to know how many overs have been bowled (i.e. x-axis), how many wickets of the team batting second have fallen, color of the line. Corresponding to the number of wickets fallen and over bowled, y-axis give a fraction, by which you have multiply the original target to get the updated target.


Imagine, you are playing a 40 over game and set a target of 220, and rain stops the play at 25 over and the team chasing has lost 6 wickets. What should be D-L score of the team batting second to win the game? So we draw a vertical line at 15 over, and find out where does it cross the green line, from that crossing draw a horizontal line and find out what value it corresponds to on the y-axis. In this example we get 43.6 on y-axis. This means that the opposition should have scored 56.4 % runs i.e.  220 *(100 - 43.6) = 123 runs. This number would go up if they had lost one more wicket, to 142 and so on.

Enjoy your own simplified graphical D-L update rule, but I do wish that your games go on uninterrupted...

right arm over
Arvind

Tuesday, May 11, 2010

juggling with cricket balls

Two new players, Tilo and Matthews, of the Freiburg Nomads Cricket Club have found this new way to set their eyes on the ball...
Juggling with cricket balls

Saturday, May 1, 2010

How random was IPL2010: Effect of a wicket, six and four on scoring

Fall of a wicket is random process. Very best of the deliveries from the masters of the art of bowling, fail to claim a wicket while some novice can on his day (as they say) can claim wicket of a settled batsman of highest class. Similarly, there is no apparent pattern to scoring of a boundary (six or four).
But is this randomness just a hunch or experience. Is there data to support this claims of randomness in cricket. Because most of our experience is based on Limited over and TEST matches. If there is randomness in such longer version, perhaps there will be more randomness in T20 where everyone seems to be in a hurry.
The beauty of cricket is that it generates data and now equipped with technology, cricket.org is storing ball-by-ball commentary and other relevant data (e.g. ball speed, trajectory and so on)... cricket is wonderful and so is cricket.org.
The ball by ball commentary data is most accessible (also most systematic) for the recently concluded IPL2010. So I decided to check the  randomness hypothesis.

I focused on three events in the progression of a match. A wicket, four and six. These three events have most influence not only on the progress of the match but on the psyche of the bowler. A wicket in most cases brings a new batsman on strike. A four or a six is very effective way to get into the head of a bowler and unsettle him.
EFFECT of FALL of a WICKET
So lets see what happened when a wicket fell in T20 matches during the IPL2010. From the ball-by-ball commentary I extracted all the wickets that fell between second and 18th over. I also separated the analysis inning-wise. 

Once I knew when the wicket fell I extracted how many runs were scored just before and just after the wicket fell. This is plotted in the top panel (a) of the figure below. On the X-axis 'zero' marks the ball on which the wicket fell. Negative numbers on the x-axis marks the balls just before the wicket fell. Similarly, positive numbers on the x-axis marks the balls just after the wicket fell. On y-axis I plot average runs scored per ball. The two horizontal lines show average runs per ball in the two innings.

The plot shows that at least 6 balls before the fall of wicket, there was nothing unusual going on. Just out of blue the wicket fell. So indeed fall of a wicket is a random process in T20 matches of the IPL2010. There is no strategy that bowlers follow and weave a web to get the batsman out.

Once the wicket fell and new batsman came in and team perhaps went in some sort of safety mode. For about four balls after the fall of a wicket the effect can be felt (shaded in blue) and run rate dropped by at least 30%. The analysis also seem to suggest that the recovery from the fall of wicket was faster in second inning (the red line catches up faster).
Panels b and c show the actual distribution on runs scored on each ball before and after the fall of wicket (FOW). These distributions show that the reduction in the scoring rate for about 4 balls after the FOW, is due to reduced probability of fours and sixes on the post-wicket deliveries.


EFFECT of a SIX or FOUR
Similar to the analysis of the wickets, I estimated the number of runs scored just before a boundary shot of six (panel a in figure below) or four (panel b in figure below. In these figures '0' is ball on which a SIX or FOUR was hit, but I have set that value to 'zero'. The analysis suggests that a six is hit when run rate is slightly is higher than average run rate. This could be and effect of increase in the number of boundary shots. Perhaps, sixes are hit when bowlers are already down and because runs are coming easy, batsmen take risk and hence the aerial route. But the fact that the run rate does not differ much from just before the six, suggests that both bowler and batsman forget about proceeding of the previous ball.
The four is a pure random event. Unlike the six, a four is hit when run rate is higher than average. A four is not associated with an pre-four or post-four change in the game. Thus in T20 matches of IPL2010 a four was just another shot.

A quick summary
  1. Fall of wicket is a random process and post-wicket there is a lull in scoring that lasts about 4 deliveries. Second inning team recover faster from the jolt of a wicket.
  2. A six is hit (on average) when runs are coming easy and batsmen feel comfortable in playing risky shots.
  3. In the IPL-2010 matches a four was scored just as any run, of course probability of a four was smaller than that of TWO, ONE and a dot-ball.
Now if these results hold in longer matches, needs to be checked. cricket.org has the necessary data for both TEST and 50over games. Beyond sixes and fours, I would be very interested in the post-wicket effect. I would imagine that after a wicket teams would go in slow safety mode for longer that four balls. It would be the longest for TEST matches.

It was very frustrating to know that fall of a wicket is random process. I hope that at least some great master of the art of bowling, e.g. Shane Warne, Glenn McGrath, Anil Kumble, Murali do set up their wickets. This analysis is on my to do. Just that it is going to take a while to write a semi-smart routine to extract the relevant information. Wait for the next Saturday...


PS: I have to thank my lab mate Christian Garbers for extracting the commentary data from cricket.org.

PPS: The guys at cricket.org, if yo read this blog, could you devise a rule to automatically download the commentary data....

This is blog is now listed on http://cricket.superblogroll.com/

Tuesday, March 23, 2010

Question of Loyalties in IPL-- My Cricket Zen Moment

It is obvious to all those who know me that I do not approve the IPL in general, and the Twenty20 format cricket games, in particular. But it is the beauty of cricket that despite this absurdly reduced format, it still remains cricket. There are some differences, of course, for instance, (1) the balance between the ball and bat has further shifted in the favor of the bat, (2) chance plays far greater role than in longer forms, (3) there are no real ups and downs in a match and a couple of good overs for a team are enough to turn the flow of the game irreversibly.

Because IPL games are still cricket matches, because, cricket season in Germany is still few week away, (finally) because youtube offers free webcast of the IPL matches, I could not help watching the IPL matches over weekend.

While watching the matches I realized another change that IPL has brought in for me, which I might share with the Cricket purists.

I still follow all the international cricket [cricinfo is so generous and informative and updated] and I follow cricket with a clear bias, I always have a favorite team -- for all combinations of countries I have a favorite pre-decided e.g. India takes the precedence over all, and I do not like to see the Aussies win yet again.

But IPLis different, I do not have a favorite team, even though its in its third season -- maybe its a bit too early and I should wait until all the superstars of the longer forms of cricket retire. It is true that because I have my favorite players scattered in all the teams I cannot support any team in particular. I assume that most fans have same problem. Perhaps more teams in IPL-4 with 94 odd matches, fans will finally have to decide to follow one or two teams -- even an ardent fan cannot keep track of 94 games happening in less than two weeks.

Watching cricket, without loyalties was something new, and despite buffering issues on youtube webcast, I enjoyed it far more. There was no adrenaline flowing, thus, my head remained still on shoulders (like it should be in execution of a good drive) and I was able to appreciate the effort and skills of the players. My opinions about the game proceedings were more objective and even my predictions were more correct (have you tried the predictor feature on cricinfo -- its adds so much fun in following game over internet).

Overall it was my cricket Zen moment. And I have more clear plans for my weekends as long as the IPL3 runs. After that, our own cricket season starts...

In the meantime thank you very much cricinfo and youtube



Tuesday, March 16, 2010

The mongoose bat: Further unbalancing the contest between bat and ball

There is lot of talk going on about Matthew Hayden unveiling the so called 'Revolutionary Mongoose Bat' .

I remember, as a school boy, playing with such a bat for my village team. That was not a technological innovation for us, rather it was an improvisation -- a very good bat broke at the bottom and we did not have much money that we could discard the broken bat, so we chipped away the broken part, shaped the shoulders of the bat a bit to balance the weight and were left with a slightly shorter bat. And in retrospect, we had our own ingenious Mongoose bat. That bat became quite a favorite among the hard hitters in the team. However, even at the village level cricket it was clear that the shortened bat was not the best equipment to play the fast bowler bowling with new ball.

In our times anything that favors batsmen and in particular hard hitting batsmen is always welcome so in that sense it is not surprising that
such a bat has been approved for use in the international cricket.

In his first match of IPL-2010 Hayden was supposed to use it. As I read form the commentary on cricinfo that he wanted to start with conventional bat and then once settled, would bring on the 'revolutionary bat'.

I do not want to argue with such a strategy, but I have a couple of questions for the administrators of cricket.

Would they allow a bowler to pick up a ball in the middle of the match because the bowler thinks that with a slightly worn out ball he can get better spin (a spin bowler) or get more reverse swing (fast bowler) and so on... Hayden intending to change his bat to a different one in the middle of his inning is similar. But it is clear from the outset that bowlers will not be allowed to go for such a 'strategy'.

On related note, Hayden wants to use a bat that gives him a better hitting power, are we willing to give the bowlers a choice to chose a ball of his choice for instance one with slightly oval shape because that would swing more, or one with raised seam to get better movement off the seam...

Cricket is a contest between bat and ball and the rule makers and administrators of the game should be aware of this basic fact and follow it while making any policy decision.

There is lot of apprehension among the cricket fraternity about the survival of the game. If there is anything threatening cricket right now then it is biased approach of the rule makers and administrators, which is favors the batsmen more than the bowlers.

The Mongoose bat is yet another instance that reminds us of our bias against bowler and reminds that we should strive for equality of contest between bowler and batsmen else a batmen dominated game would no longer remain 'Cricket' as we have known it.

Sunday, August 2, 2009

Fatal Attraction with Twenty20 Cricket

Shorter the format of Cricket, more role random events play in determining the course of the game, rather than the skills of the players. For instance, in T20 it does not matter if you are a regular bowler or just some part-timer. We do know the difference between Glen McGrath and Ashish Nehra, but that difference was brought out by longer versions of Cricket (Tests and ODI).

Sports are great equalizers, players come from different backgrounds, and are treated alike (process of mixing) to find out a new order in the players (process of re-ordering), which is skill based not background based. And the players in the new order emerge as the Heroes and inspirations to others. It is absolutely important for a game to perform the two processes and provide heroes to the public, and thus to remain an important activity in the public opinion.

But every game has its own dynamics and every game needs some minimum amount of time to do the process of mixing and re-ordering. If two people compete for a very short duration, there is no way to determine who is better.

Imagine if tennis matches were to last for only game, instead of there/five sets, would we have great tennis players such as Bjorn Borg, Jimmy Connors, Pete Sampras, Andre Aagasi, Boris Becker, Roger Fedrer, Martina Navratilova, Steffi Graf. In all likelihood the answer is no...

Same applies to Cricket, if a game were to last for one over each (just because its short and will attarct more audience) would soon fall out the public imagination as it will not be able to find out the best among the better player. We can do the statistics to see if the Twenty20 has produced any hero who was not already considered a great in the longer form of the game. In fact all the most successful players of the Twenty20 cricket are excellent players of the longer form of cricket.

If a game is reduced to some arbitrary short duration, it will not be able to do mixing and re-ordering. How can it do it, if the inherent randomness are stronger than the players influence. In Engineering we call such a situation as low signal-to-noise-ratio (SNR).
If a game does not allow players sufficient time to really influence the course of the game, the game will be severely deprived of its heroes.

So in the shorter form of cricket (Twenty20) about which everyone (including the former players and administrators) so excited about, and suggesting that soon all forms of cricket be replaced by the 20 over format, in fact, is unlikely to produce Heroes and hence I conjecture would fall out of the public imagination.

It is possible a dis-interest in cricket triggered by the Twenty20 format, might bring back the longer forms of the game. However, Cricket is not an easy sports, it takes generation to develop a nurturing culture for Cricket.
There is a reason why ICC is struggling to generate interest in traditionally non-cricket playing nations about Cricket.

So,
in a more likely scenario current attraction with Twenty20 is in fact start of the eventual demise of Cricket. This time around there wont be any Ashes left this time around to play for.

Saturday, August 1, 2009

How To Save Test Cricket: Teach the audience

After the success (mainly monetary, at least that what was told) of IPL, everyone in the cricket world is discussing the future of cricket. The shortest form of cricket has presented the biggest threat to the cricket in its purest form that is the Test Cricket. Kevin Pietersen thinks that Test cricket would be dead in about 10 years. Brian Lara is more pessimistic and said that the game of Cricket it self would be dead in next five decades or so. Most former players think that 50 Over cricket would suffer most and perhaps would be the first victim of Twenty20 cricket. Not that Cricket players are know for their gray matter but their statements can definitely sway the opinion and the game can go their predicted way.

The lack of spectators, even in the international matches (primarily in Tests and also in Limited overs) led to the advent of 20 Over games in international cricket. The administrators argued that even the 50 over match lasts too long (and gets boring) and the game is not compatible with the fast paced age we are living in. They thought that reducing the overs would bring back spectators to the stadiums. I think it did happen to some extent but results are far from the expectations.

Why test cricket is losing its appeal
But is it true that spectator do not turn up because the game is too long and the do not find time to watch the matches? I do not agree.

I can safely cite my own example. My academic interests required me to spend long hour on my study desk, in my school and college days. But I still found time to watch Test matches, at least read about those and discuss the progress of the matches, and of course cricket statistics. As the pace of my life increased the access to technology also increased. So now I work even more than I used to in my college days, but I watch more cricket. Technology has tremendously helped me in saving time and use that to watch cricket.

I think that in this fast paced life, supported by technology, everyone has more time at hands. So I think people do have time to follow cricket matches even the Test matches.

The real reason
In my opinion the main reason Test cricket is losing its appeal is because we do not have people who can understand Test cricket properly.

As the game became popular, media interest increased and with that came the sponsors. Who very rightly chose to focus on the important but rather rare events in the match that is 6's and 4's and also wickets to some extent. The younger generation that grew up watching cricket on TV, assumed that cricket has to be all about boundary shots. This started a kind of a viscous circle. Cricket administrators started to go for batting friendly wickets, took away effective weapons from the bowlers and shortened the boundaries, thus, sent the message that cricket indeed is about 6s and 4s.

A potential solution to make test cricket appealing
Mathematics is very intensive and its not easy to appreciate its essence. But then we have a system to train students so that they can understand and appreciate the Maths.

Similarly, Test cricket is very intensive not only for the players but also for the audience. So it is important to train and teach the audience to appreciate Test Matches. Both media and the cricket administrators have an important role to prepare a generation of audience that can understand Test Cricket.

The cricket admin. should not fall for quick money that the shorter form of the game are bringing now. It may not last. Further ICC should expect to see the game spread out in non-cricketing countries in a matter of few years. ICC should realize and accept the fact that cricket grows slowly. Even a country like Bangladesh that has been playing cricket since very long, has failed to produce a good side so far. It takes at least two generations of players to establish a culture for the game than can generate cricket player that can shine at international level.

The media should not favor one form of the game over other, just because one form (Twenty20) is likely to bring more money. Good things in life go beyond money. The test match telecast on the TV should be informative to the audience and should go deeper than just showing the match. There should be a way to bring out the process that goes in the preparation of the Test Match. The so called highlights should not just contain the boundary shots and wickets. Certain singles and defensive shots are sometime more critical than boundaries. Further, the former players, together with the media, should make an effort to bring out the psychological aspect of the game.

Once we have an audience that can understand the game, no form of Cricket would fall short of audience.

Do we need test cricket
Opinion will divide on this question. Those of us who understand the subtleties of the game would very like to see the Test Cricket to live on. Those who think that action in cricket means 6's or 4's would like to see Test cricket make way for the shorter and more action-packed forms.

However, anyone who cares a bit about cricket would not want to see the greats of WG Grace, Jack Hobbs, Don Bradman, Gary Sobers, Sunny Gavaskar to go into obscurity. For that it is important that we teach the public how to appreciate cricket.

Here I would like to sound a warning that all forms of cricket feed on Test Cricket. If we do not have players of Test Match quality, we will not have good consistent players in the shorter forms of the game. Notice that it is the consistent players who eventually become HEROES. A game that cannot produce heroes will soon fall out of the public imagination.

Monday, June 22, 2009

Over by Over Bowling analysis of T20 Cricket World Cup

In this post I will analyze the over-by-over performance of the bowlers in terms of runs conceded and wickets taken, in the just concluded T20 world-cup.
In the figure below blue traces are for First inning, and red colors for the second inning. Just before the end of the first power play average runs increase followed by a relatively calm period from 6-15 overs. In last 5 over average run rates tend to increase (expectedly). There is a very interesting difference between the first inning and second inning in terms of average runs. In first inning there are significantly more runs scored in 16-17th overs. This indicates that on average the team batting first should win. When I checked this, I found that in first 18 matches, 9 teams won while batting first. But very surprisingly, in last 9 matches of the tournament, seven times the team batting first won.




The probability of fall of a wicket steadily increased as the matche progressed. Again in second inning there was a significantly greater chance of fall of a wicket in 3rd and 9th over.

Previously I found that in Indian Premier League average runs per over were very strongly correlated with the probability of a wicket in that over and in subsequent over.

The Essence of Good Bowlers -- Twenty20 Cricket WC Bowling Analysis

In this post I will analyze the performance of various bowlers in the just concluded Men's Twenty20 Cricket World Cup.
Ananth reported that in Indian Premier League 2009, it did not matter who the bowlers were. Part-timers performed just the same as the regular bowlers on average.

Being an bowler myself, I could not imagine how could a part-time bowler perform be considered same as a professional bowler. Does it mean that there is nothing in toiling for years to perfect deliveries. At the moment all factors indicate that T20 will become the format of choice for furture. But if the quality of a bowler is not relevant in this form of cricket, in all possibility the art of quality bowling would dies and there wont be any Ashes for the bowlers.


It is clear that there is a big difference between Glenn McGrath and say Ashish Nehra when we compare them in Test or limited over cricket matches. In this post I will try to identify the differences between specialist bowlers and part-timers.

Data
I took the bowling data from cricket.org. I extracted runs conceded and wickets taken by a bowler. Subsequently I divided all the bowlers used in the T20 world-cup in four groups according to the number of overs each bowler bowled. The four groups consists of bowlers who bowled (1) 1-5 overs (red), (2) 6-12 overs (orange) (3) 13-21 overs (pale blue) (4) 22-28 overs (blue). It is possible that some regular bowlers ended up in the 6-12 over group because their team made an early exist. I did not correct for this. However, in principle we can compare the performance of bowlers with 1-5 over with rest of the bowlers.


Hypothesis
Very naively I hypothesize (and you will agree with that) that a good bowler is more likely to bowl a good over and a bad over is a less likely event. On the other hand a part-time bowler is equally likely to bowl a good over and bad over. These differences may not be captured by average economy rate or strike rate of the bowlers, because the distribution of runs-per-over and wickets-per-over are likely to be skewed for specialist bowlers and, symmetric and wide for part-time bowlers.


Bowling performance distribution
In panel A below I show the mean economy rate of the bowlers in four different groups. The average values are indeed different but the standard deviation is too big and the differences are not significant. Similarly in panel B I show the probability of a wicket. Once again the group-4 is likely to take more wickets but the standard deviation is rather high and differences with respect to the first group (part-timers) are not significant.


So panels A and B show that first and second order moment (mean and standard deviation) of the wickets and run distribution are not informative in differentiating the quality of various bowlers.

A detailed look at the data in terms of the full distribution give a complete picture. In panel D I plotted the distribution of runs given in over by specialist bowlers (blue) and part-times (red). Now the differences are much more stark.
This figure also provides support for my hypothesis that a good bowler is more likely to bowl a good over than a bad one, and the distribution of the specialists is skewed with a fat-tail. As the quality of the bowlers declines (as indicated by their use in the tournament), the distribution becomes symmetric and broader such that bowers who bowed 1-5 overs are equally likely to bowl an maiden over and an over with 16 runs.


The differences between the distributions of the specialists and part-times bowlers' economy rate is very satisfying not just because it supports my hypothesis, but also because it gives a more quantitative way to differentiate the quality of bowlers.
There are sophisticated tools to differentiate distributions shown in panel D, but at the moment I have too few data. Later when I will have a bigger database I will be able to put numbers on quality of bowlers.
Cricket.org only recently has started to put the commentary of full matches, else it would have been indeed possible to provide a quantitative difference between Ashish Nehra and Glenn McGrath beyond the averages.

right arm over
Arvind



Thursday, June 18, 2009

Why Garry Sobers is better than Jacque Kallis -- Analysis of Test Cricketers

In my previous post I gave hints how one can estimate the quality of a player as a batsman, bowler or all-rounder. The idea is rather straightforward. Good batsmen will increase their cumulative runs at a much faster pace as a function of matches played, while bowler will increase their cumulative wickets at much faster pace. The Criterion So I looked into the data of about 400 players, for their total runs and wickets over their career. The plot is shown below. In panels A runs are plotted as a function of matches played. It turns out that the top 20% batsmen in the history of test cricket increased their runs at nearly 72 runs per match. Top 20% bowlers on the other hand increased their runs at about 10 runs per match. Similar trend is bowling data, where top 20% bowlers increase their wickets at 4.73 per match. So 72 runs per match and 4.7 wickets is a criteria to be a good bowler or batsman, respectively.  

What is an all-rounder These two numbers (72 for batting and 4.7 for bowling) also can allow us to suggest how close someone is close to be a good bowler and batsman simultaneously i.e. all-rounder. How do we check whether a player has been a more of a bowler or a batsman or both. In fact, by following careers of some players, like Steve Waugh who was considered as an all-rounder in his early days but ended his career as a batsman. Similarly Ravi Shastri. That is a player with good abilities with bat and ball, can switch roles very dynamically. So I thought to see the runs per match (run slope) and wickets per match (wicket slope), over a period of 10 matches. This window of 10 matches was slided by 3 matches to get another estimate. The sliding can also be done with 5 matches as many Test series are of that length, but then I consider the fact that an allrounder may not play full series due to injuries or such factors. With a window 10 matches which was slided by 3 matches, I calculated the run-slope and wicket-slope of 28 players. Average run-slope and average wicket-slope are plotted across each other. The players name is indicated in the figure. It is clear that Brian Lara, Ricky Ponting, Rahul Dravid, Sachin Tendulkar are right on the top, together with Sunny Gavaskar. This kind of plot also reveal similarity between Viv Richards, Alan Border and Javed Miandad. On the bowling side, that is in left-bottom corner, all usual suspects (Glen McGrath,Ambrose, Warne, Murali) are placed. Now the allrounders are in the middle of this plot, the likes of Imaran, Kapil, Botham, Daniel Vettori, Flintoff. I also added Vinno Mankad and Keith Miller to get a historical perspective. So indeed the good allrounders are those who maintain a good run-slope and wicket slope. What wait, what about Gary Sobers and Jacque Kallis?

 
The curious case of Sobers and Kallis 
In figure above Gary Sobers is placed slightly higher than Jacque Kallis. Both are great players and simple analysis indicates that Kallis is slightly better than Sobers. But in the figure above, subtle differences are accounted for and we see that Sobers was slightly better, both as a bowler and a batsman. To get a detailed look on this, I plotted the progression their cumulative wickets and cumulative runs in figure below. The red trace(Sobers) in both panels (A,B) is above Kallis (blue trace). Panels C and D show the run-slope and wicket slope for both in 10 match segments. An interesting picture emerges. Sobers leads Kallis on batting scale very early. Actually its the inning of 365 runs that gave Sobers an early surge in run-slope. Kallis was a bit slow in scoring runs early on. Both players did good with ball only in their mid-career i.e. around 40-60th matches and that improved their image as all-rounders.  

 From panels C and D in figure above we can safely conclude that in their mid-career both Kallis and Sobers were highly comparable, in fact, tended to be more like bowling all-rounders . Sobers started to be more of a bowler towards the end of his career as see by dip in red trace in panel D. Kallis is having a very good time with bat but struggling with ball of late. In general both Sobers and Kallis more or less all the time were in top 20% batter group, but only occasionally made it to 20% bowlers. These dynamic changes in the nature of performances over short periods of 10 matches in case of Kallis and Sobers prompted me to do make similar figures for Ian Botham, Imran Khan, Kapil Dev and Richard Hadlee. In the beginning of their respective career the four celebrated all-rounders were more or less alike, but then around 50th match Richard Hadlee outperforms his compatriots in batting!!. Just like the beginning all four all-rounders had similar decline in their batting and bowling towards the end. Kapil Dev observed a slower decline, which perhaps is the reason of his longevity. Again these four all-rounders were nearly always in top 20% bowlers but only occasionally in top 20% batsmen.

 

From an all-rounder to batsmen Further, I wanted to look at the career progression of Steve Waugh, Ravi Shastri and Sanath Jayasuriya. Steve Waugh was regarded as an all-rounder in the beginning. The analysis show that he had a start like that of Kallis and Sobers but he was far from the class of Imran/Botham/Kapil. His decline as a bowler and rise as a batsman is clearly visible in the red traces in panels C,D below. Towards the end he was a batsman, but you don't need to to bowl when Glen McGrath and Shane Warne are on your side. Similarly Ravi Shastri was a bowler of about average class in the beginning and ended as an average batsman and a poor bowler. Sanath Jayasuriya has interesting spell in his career when he was a good bowler, or a good batsman or both. Around the time of his 50th test match he was in the class of Sobers/Kallis, currently he is just a good batsmen. They way he is showing no signs of retirement, who know he may again return to his all-roudner status for a short time.
 

In all I think estimation of run-slope and wicket-slope in short duration is a very good indicator of the abilities of a player as an allrounder or batsman or a bowler. This analysis reveals that the four celebrated all rounders (Kapil/Imran/Botham/Hadlee) were in fact more bowlers who were very effective with bat. On the other hand Sobers and Kallis are more of batsmen who are really good with ball. right arm over Arvie PS: In the plots above I should have added the error-bars but I just wanted to keep the figures uncluttered, but if someone needs I can provide those.

Tuesday, June 9, 2009

Criterion to classify a player as a bowler, batsman or allrounder in Test Cricket



I once again took data from Anantha's blog where he is analyzing the runs and wickets from the Test players to identify player with best allrounder abilities (in terms of making runs and taking wickets).
He admits that there is some kind of arbitrariness in dividing the data in separate groups. There is more or less a continuum in the batting and bowling record of various test cricket players, as can be seen in the scatter plot shown below. In the figure below I plotted the runs scored by a player versus wickets take by that player. The color of the dots is the allrounder index defined by Anantha. Dark blue colors show low index (more bowler) and red-brown colors show larger index (more batsmen).
Here I propose an additional criterion to cluster the player in bowler or batsman group or in between (all rounder).
I hypothesize that bowlers are the ones who consistently increase their total wickets as a function of matches played as a greater pace than non-bowlers. The speed by which a player increases his total wickets can be captured by the slope of matches vs wickets curve. The slope will be highest for pure-bowlers group and smallest for pure-batsmen group. Similarly, the slope of matches versus total runs slope can be estimated to define a criterion to qualify a player as a batsman. The logic is same that pure batsmen tend to increase their aggregate runs as a faster rate than lesser batsmen. An all rounder candidate should obviously increase both runs and wickets with matches.

In panel A of the figure below, I plotted the number of wickets taken by various players as a function of number of matches they played. The color of the circles is defined by the player index (defined by Annanth), blue shades indicate low index and red shades mean a high index. Further I identified top 20% % bowlers (i.e. the players coded in blue shades) as defined by Ananth's criterion and fitted a line (blue) to those. The line has a slope of 4.73. Similarly, I identified top 20% batsmen (i.e. those with high player index -- red shaped) and fitted a line (orange) to estimate the slope of wickets as a function of matches. The 20% batsmen have a
slope of 0.3.
In the same vein, in panel B I plotted total runs scored with respect to matches played. Color-code for the circles is same as in panel A. Again I fitted straight lines through top batsmen and top bowlers. The batsmen tend to increase their aggregate runs with a slope of 72.67, while the top bowler increase their aggregate with a slope of 9.8. These two number could match with the average of average runs scored by batsmen and bowlers respectively.

These four slopes 4.73 and 0.3 (bowler criterion) and 72.67 and 9.8 (batsmen criterion) set the boundries to classify a player as bowler or batman or both.
We can study the developement of number of wickets and aggregate runs of a player as a function of matches played by him and the two slope (runs vs matches and wickets vs matches) will render him on some location in the two panels and would provide a more objective criterion to decide whether a player is more a bowler or a batsman or a candidate to be both.

In coming few I will analyze the pregression of Gary Sobers, Jacque Kallis, Imran Khan, Sid Barnes, Kapil Dev and Ian Botham to see where they fall in the above two plots.

right arm over
Arvind