The pressure of chasing a target in One Day Internationals

I was looking at the average runs scored per over in One Day Internationals from 2009 onwards (data from cricsheet ). The data is presented in the graph below. What is striking is the difference in runs scored per over between the team batting first and second.

innruns

 

 

The  blue line shows the runs per over for the team batting first, and the red line for the team batting second. These figures are averaged over all ODIs from 2009 till the end of the recent Asia Cup. What you will notice is that the way you score runs in the first and second innings is different.

For the first part of the innings, till almost over 35, the team batting second scores much faster than the team batting first. Then somewhere around over 40, the two lines cross, And then the blue line pulls away from the red one – and really fast.

In the last over of the innings, for example, the team batting first is expected to score ten runs, while the team batting second is expected to score only eight and a half. In the forty fifth over, the team batting first scores seven runs on an average, while the chasing team only scores six!

The difference in scoring patterns is striking, and the only possible explanation is the pressure of chasing! When you have a target in mind, and you are chasing, you are unable to bat as freely as you do when you are setting a target. Consequently, you are not able to score as many runs!

The next question is if there is a variation across teams. Given below is the same graph as above, but plotted by batting team.

innrunbyteam

 

 

The graphs are smaller, so the gaps aren’t too visible, but if you look for a gap between the blue and red lines by team, you will find that the biggest gaps are for India, New Zealand and Australia! Sri Lanka and Pakistan seem to bat similarly, however, irrespective of whether they are setting a target or chasing!

 

 

Was the RR-CSK match on 12 May 2013 fixed?

The Justice Mudgal committee which looked into possible corruption in the Indian Premier League has mentioned that the game between Rajasthan Royals and Chennai Super Kings played in Jaipur on the 12th of May 2013 was possibly fixed. CSK, batting first, were 83 without loss in 11 overs, at which point their “mascot” (let’s call him that since his official status is unclear) Gurunath Meiyappan allegedly said that the team was unlikely to score over 140 (refer to the video with Gaurav Kalra and Sharda Ugra on Cricinfo). The team finished on 141, with Dwayne Bravo finishing with a quick 23 in 11 balls.

I have an algorithm similar to the WASP algorithm used in the recent New Zealand-India ODI series which I use to evaluate player performances in each game. For this particular game, the following table shows the batting ratings (according to this algorithm) for various players.

rrcsk1

You can notice that apart from Dwayne Bravo, all batsmen from Chennai Super Kings (look at the batting column) had a negative rating. The two players with the most negative batting ratings, you can see, are Ravindra Jadeja and M Vijay. The question is which of these two was more culpable for the innings slowdown in the latter half.

Our algorithm allows us to analyze performances in parts of innings, so let us break down the innings into two – before Mike Hussey got out (on 11.3 overs) and after. When did Vijay collect his -10 score?

mvijay

Vijay started slowly, getting to a cumulative -5.3 after four overs. Then, starting in the sixth over he started hitting out. By the time Hussey got out in the twelfth over, he was at 10.17. Raina and Dhoni both perished in the 13th over. At the end of that, Vijay was at a still respectable 8.49 (the wickets falling having evidently slowed him down). And then Ravindra Jadeja walked in.

For the next four overs, when Vijay was at the crease, he diminished his team’s chances of winning by 8%, 4.5%, 5.6% and 1% respectively (total of 19%). He then got out, and Bravo came in to make amends and take the team to 141. What of Jadeja?

rajadeja

It is interesting to note that Jadeja held steady while Vijay was slowing things down (overs 13 to 17), but once Vijay got out, he had two massively horrible 18th and 20th overs (he didn’t get to bat in the 19th, when Bravo took all the strike!).

Was it the handiwork of some particular bowler that Jadeja was quietened in overs 18 and 20? No! The following graph shows the over-wise performance of Chennai Super Kings (a negative number means Rajasthan Royals got the upper hand in that over). Colour of the bars vary by bowler. No one bowler did superlatively well for RR.

rrcsk2

The negatives in the 12th and 13th overs are on accounts of wickets falling. And then there is a series of negatives, with Vijay and Jadeja batting. Then Bravo comes in, gets himself a positive, but Jadeja continues to get really negative. And it’s not really one bowler who bowled superlatively well.

Draw your own conclusions.

 

 

 

Depression and playing out the overs

There are two ways to bat – you can either seek to score runs or you can seek to play out the overs. Some puritan fans of Test cricket argue that the latter is the more important skill – that you are not a good Test player unless you can play out the overs when required. However, cricket matches are won only when you score more runs than the other team, and so while playing out the overs is important at certain times in the match, the value of run-scoring ability should not be ignored.

Sometimes, however, especially say when you are chasing a big fourth innings target on a nebulous wicket, you could decide to eschew any thoughts on run scoring and instead focus on hanging in there. You decide to devote all your energies to just “staying alive”, and just playing out the overs. In that sense, yes, playing out the overs without necessarily scoring runs can sometimes be a valid strategy.

However, you should notice that it remains a valid strategy only until the end of that particular Test match! Once the stumps are drawn at the end of the fifth day, with you hopefully still unbeaten and your team escaping with a draw, things are reset to zero! The next Test match is a whole new game, and you start off from zero, and you cannot afford to start that Test match batting the same way you did while you were trying to save the earlier match! You need to realize that you should include some run-scoring in your objective function, too!

Sometimes in life, when you are going through a tough phase for whatever reason, you might make a decision to “simply hang in there”. At these points in time, you don’t care whether you really achieve something in that time period – all you seek to do is to prevent further damage to yourself – this is similar to trying to play out the overs in a Test match.

I argue that this can be a viable strategy if and only if you decide to “play out the overs” until a fixed point in time! The difference between game and life is that game has a specified end-point. At four thirty on the final day, if you are still batting, the game is a draw, irrespective of whether you were one down or nine down! The next Test starts on a clean slate. This, however, doesn’t apply to life.

Life doesn’t have clear breakpoints like cricket does. And sometimes when you get yourself “nine down and far behind in terms of runs”, you find that you begin the “next Test match” (if you can divide life into discrete units called Test matches) at a disadvantage, and soon find yourself far behind and unable to cope.

Given that life doesn’t play out the same way as a game of cricket, you should use the strategy of “playing out the overs” only sparingly, and only when you see a clear “gamechanger moment” after which your equation is reset to zero! If you choose to overplay this strategy, however, not much good is going to come out of it.

So, what does depression have to do with all this? I’ve found depression to be a state of mind where you want to play out the overs even in situations where it is not the right thing to do (think, for example, of India’s third Test against the West Indies in Dominica in 2011). And soon you get into the state of mind of just playing out the overs that you lose all ambitions and hopes and desires for run-scoring. And soon you find yourself in a rut. And you decide to “play out” the rut by continuing to dig in. And that makes you sink deeper. It becomes harder to “play out” but now you know no other strategy, and soon get into a bad downward spiral.

If you find yourself “playing out the overs” way too often, it is an indication of trouble. It means that you are possibly exposing yourself to a downward spiral. And it is possible that you need help. The next time you get the desire of wanting to “play out the overs”, check if there is going to be an end to it, and implement the strategy if and only if you see a clear end.

Volleyball

It’s been over eight years since I last played the game, but if I were to pick one outdoor game in which I’m best at (relative to other games I’ve played) it’s volleyball. And when I say I’m best at that, it’s on a strict relative basis – in undergrad, I struggled to get into my hostel team (let alone college team). It just goes to show how bad I’ve been in other outdoor games! I’m a successful cricket and football-watcher, though!

The thing with volleyball is that my game runs counter to how i play other games, and my life in general. In general, I’m an extremely high-risk person – I’m not into adventure sports, though, but have a Royal Enfield motorcycle – I take chances where possible and go for the spectacular. It is hard for me to be “accurate” and “correct”, and given that I know that I’m prone to making mistakes I try to maximize the outputs from the times when I don’t make mistakes, and thus go on a high risk path.

So I’ve quit my job without something else in hand four times, now freelance as a management consultant, blog about every damn thing – things that have promises of big upsides, but also risks of downsides. It also reflects in how I sometimes talk to people – I sometimes try too hard to make an impression – which can potentially get me big returns, but end up saying something stupid at times, and end up sounding arrogant at other times. Those are risks I willingly take.

And this risky nature has reflected in most games I’ve played, also – again nothing in the recent past. In chess, I get bored of slow technical Carlsen-esque positions, and am prone to go on Morphy-esque attacks that can backfire spectacularly. Playing bridge, I finesse way more than I’m supposed to – making some otherwise unmakeable contracts, but going down in contracts I should have otherwise made.

Back in school, when we played cricket with rubber and tennis balls, I would bowl leg spin, and using a light bat, would try to hit every ball for four or six, rather than trying to bat steadily. And while playing basketball (my “second best” outdoor game, after volleyball) I have a propensity to go for long shots.

What sets volleyball apart is that my game completely runs counter to who I am. In volleyball I’m a solid player – don’t spike too much (can’t jump!!), but can set spikes well, block well and can lead a team well from the back line. In fact, my best volleyball games have been those when the team has had to carry some weak links, and I’ve led from the centre of the back line, lending solidity and helping build up attacks. It definitely doesn’t reflect what I’m like otherwise.

But volleyball has also been the game where I’ve had a large number of spectacular failures. At every level I’ve played, I’ve had some responsibility thrust upon me, and I’ve buckled under the pressure. It’s volleyball that comes to mind every time I let down people’s trust because I do badly a something I’m supposed to be good at.

1. Voyagers versus pioneers, 1999: This was the school inter-house tournament. We go two sets up. They win the next two. Down to the decider. We lead 14-13, and its our turn to serve. Our captain purposely messes up our rotation such that I can serve (I had a big serve – one attacking aspect of my volleyball). The serve clips the net on its way across (back then, a let was a foul serve in volleyball). We lose.

2. NPS Indiranagar versus NPS Rajajinagar, 1999: Then I get selected to represent my school. I’m on the bench, and am subbed in right on time to serve. I decide to warm up with an underarm serve (before I start unleashing my overarm thunders). Hit it into the net. Opponent’s serve comes to me and I receive it badly. Get subbed out.

3. G block versus F block, 2004-05: Semi finals of the IIMB inter-hostel championship. We have two big spikers, two decent lifters and defenders (including me) and two who had never played volleyball in their lives, but were chosen on the basis of their physical fitness alone. Down to third set (best of three). We lead 25-24 (new scoring system). I’m playing right forward. Ball comes across the net. All I need to do is to set it up for a big spike, but I decide to spike it directly myself. And miss. Then I serve on the next match point. Decide to go for a safe serve, gets returned. We lose.

4. Section C versus Section A, 2004-05: Again similar story. I don’t remember the specifics of this, but again it was heartbreak, and I think I missed my serve on match point.

I guess you get the drift..

Twitter Peek-a-boo-boo

So I must confess that for the last one week I’ve been cheating. I’d made a grand statement here a couple of weeks back about being off twitter, and how it was giving me so much time. After that post, however, for a variety of reasons I logged on to twitter. And I’m not sure I want to return to it as yet.

The first time I returned to twitter was during Rahul Gandhi’s interview with Arnab Goswami last week. It was a fairly hilarious interview so I was interested in knowing what people were saying. I didn’t cheat fully that day – I used the otherwise rarely used twitter tab on my flipboard to see what people were saying.

The next morning, one of my election pieces got published in Mint. I have a mechanism where any post I put on any of my three blogs gets automatically posted on twitter. This, however, doesn’t work for things I put on Mint, and that needs publicity. And so I decided to log on for just one tweet.

While I was at it, I also happened to check my mentions and messages. There were lots of them. Just one tweet announcing my temporary absence hadn’t been seen by enough people, I think – there were lots of mentions and messages. To each of the messages, I replied with my email ID mentioning I’m not on twitter any more, and to not contact me there henceforth. I also spent a lot of time replying to some mentions. It must’ve been hilarious for those people to get the replies after so long. So I logged on, replied, posted my tweet about my piece and logged off. I saw some 10-20 tweets before I did that, and I thought I was missing something. I logged on again on Thursday to tweet another piece I’d written for Mint.

 

Again I tweeted, read a few tweets and disappeared. Felt happy being back again and thought I should prepare for a good limited comeback. I would only log on through the browser – no apps – and not use it on my mobile devices, I thought. However, I decided i’d give it a full month of absence before coming back.

That full month ended on Saturday.

When there is an event that makes you happy, you want to talk to other people who are feeling similarly. So I logged on to twitter yesterday as soon as Karnataka had won the Ranji trophy. And jai happened.

So it seems Narendra Modi was giving a speech somewhere at the same time, and my timeline was flooded with tweets about every word he said, and analyzing them. Offenders were on both sides – some gloating over Modi, others bitching about him. It was horrible.

And then I realized that the forthcoming elections are among the most polarized in India’s history. And this is the first national elections since everyone got on to twitter. I realized that the longer I stayed on twitter the more I would be subjected to such tripe. And I logged off.

I have made a mental note that when I do start my limited comeback on twitter, I should first unfollow all these political types. The problem is how fine I draw the filter – there are some people who mostly tweet political stuff. They can be safely unfollowed. There are trolls who tweet stuff just to draw attention. They can be unfollowed too. But what about those people who mostly tweet useful stuff but go into a frenzy during an event? What does one do about those? Until I have an answer to that I’ll delay my comeback.

And when I logged on yesterday, there were a few tweets about the Ranji trophy victory that made me happy. The one that made me happiest was this one:

 

 

Sangakkara and the IPL Auction

Sri Lankan cricketer Kumar Sangakkara has decided to not participate in this year’s IPL auction. In the opinion of this blog, this is an extremely smart decision, for Sri Lankan cricketers are unlikely to be available for a large part of this year’s IPL, thanks to their tour of England starting in May. Let me explain.

The IPL Auction is a strange beast. Each team has a salary cap, and players are auctioned across teams such that a team spends no more than its salary cap (in total). Now, in case a player is not available for a particular part of the tournament (due to a clash in schedules due to international commitments, essentially), the fees paid to the player is pro rated according to the number of matches for which he is available. However, while calculating the team’s salary cap, the player’s full season salary will be counted.

For example, if Sangakkara were to participate in the auction, and win a salary of Rs.5 Crore. Now, if he is available for only 40% of his team’s games, he would be paid Rs. 2 Crore. However, when his team’s total salary is determined, the full amount of Rs 5 Crore is taken into account.

Assuming that the salary cap is the real reason as to why teams don’t bid too much for a player (as opposed to capacity to pay), teams will not want to let go of a large amount of their salary cap for a player who is unlikely to be available for the full tournament. Thus, if Sangakkara were to enter the IPL Auction this year, he is likely to be undervalued, and hence he has decided to not take part in the IPL at all.

What Sangakkara is betting on is that in the auction teams will have a short-term perspective, and will be looking at only this year’s commitments in order to determine a player’s availability . Ideally, since the auctions are for purchase of a player for three years, teams should be taking into account the tours scheduled for the IPL seasons of those years (the gap in India’s schedule will show when the IPL will take place, and a player belonging to any country that has cricket scheduled at that time according to this chart will not be available for the IPL). However, perhaps due to the uncertainty in next year’s schedules (thanks to the proposed ICC revamp), teams are only going to take into account this year’s commitments in order to guide their bidding.

Sangakkara has said that he plans to take part in next year’s IPL, and he hopes for a much better valuation then compared to this year, for he will be free of international commitments. Given that the salary cap for the teams increases by only 5% (Rs. 3 Crore) next year, what he will be banking on is that teams might release some high value players they will be employing this year.

Tailpiece: Given that the English domestic calendar invariably clashes with the IPL, English Test players are going to be forever undervalued in the IPL. At least they should be if teams are intelligent about their bidding.

Tailpiece2: Samit Patel and Alex Hales have a deal with their county Nottinghamshire that they will be allowed to play in the IPL only if they can get a fee of USD 400000 (INR 2.5 Crore). They have both put their base prices as Rs. 2 Crore. It will be interesting to see if and how teams go about picking them!

 

Who should the IPL franchises retain?

I have a proprietary algorithm for evaluating cricket matches. This algorithm analyzes matches ball-by-ball and then computes the “impact” of each player on the game, in terms of both batting and bowling.

I’ve been intending to do this for a while now but I finally got down to calculating the impact of different players in the past editions of the IPL, and who it makes sense for franchises to retain (incidentally, today is the last day for franchises to announce to the IPL who the players are who they are going to retain).

Let us go franchise by franchise and see who the best players are. The numbers in the brackets represent the impact of each player according to my proprietary system.

1. Chennai Super Kings

By a long way, their two best players are MS Dhoni (3.53) and Ravindra Jadeja (3.46). Interestingly, the primary reason for the latter’s high score is his batting  (2.86)- he has been bowling well, too (0.6), but it is his batting that has had significant impact.

These two are followed some distance behind by Raina (2.02) and the now retired Mike Hussey (1.75). Ashwin is some way behind at 0.7 (his bowling is at 1 and batting at 0.33; the algorithm tends to unfairly penalize bowlers for their batting abilities, or the lack of it).

Chennai have already made their decision on who to retain. They are going to retain Dhoni, Jadeja, Raina, Ashwin and Dwayne Bravo. The last is a bit of a puzzle, at -1.09. His batting has been excellent – he has contributed 1.52 but his bowling has been utter crap at 2.61. CSK would do well to use him as a batsman only

2. Delhi Daredevils

This is a team that has performed rather badly in the last bunch of IPLs, so they might be expected to dispense with some players. Virender Sehwag (3.14), though, has performed exceptionally in the rot, though this season’s domestic performance (or the lack of it) might go against him. Next is the injury-prone Irfan Pathan (1.72). Shahbaz Nadeem is a surprise package at 1.56. I wouldn’t expect them to retain anyone.

Umesh Yadav (-1.77) and Mahela Jayawardene (-2.33) have been especially poor performers

3. Kings XI Punjab

Another franchise that didn’t do particularly well in the last set of IPLs. David Miller (2.05) was their standout performer, followed by Gurkeerat Singh (1.24), Shaun Marsh (1.11) and Praveen Kumar (1.02). The latter two are highly injury prone and they may not want to part with a large part of their budget for the yet uncapped Gurkeerat. So if you expect them to retain any players, it would only be Miller.

At the other end, Parvinder Awana (-1.92) has been the standout performer.

4. Kolkata Knight Riders

Sunil Narine (4.48) and Gautam Gambhir (4.22) tower over the rest. Following them are Shakib al Hasan (1.63) and Iqbal Abdulla (1.13). One would expect them to hold on to the first two (Narine and Gambhir) and try to use their trump card to match a price for Shakib.

Jacques Kallis performed particularly badly (-2.81) and is unlikely to be retained.

5. Mumbai Indians

If you were to rank all players in descending order of impact, the standout player across teams would be Harbhajan Singh (5.04; 3.64 bowling, 1.41 batting). Despite his axing from the national team, one would expect him to be retained by the franchise. He is followed some way behind by Lasith Malinga (2.01), Kieron Pollard (1.97; with 3.05 in batting and – 1.09 in bowling) and Rohit Sharma (1.74). One would expect all of those three to be retained. Dinesh Karthik at 1.31 might also be retained, for they will only need to give up Rs. 4 Crore from their salary cap  to get him.

6. Rajasthan Royals

If one goes by the gossip, the Royals are expected to retain a large number of players. They are the “moneyball” team of the IPL. They don’t spend too much on salary but try to get otherwise undervalued players to play for them.

Brad Hodge (1.91) has been their star performer but his age might go against him – they might prefer to match him using their trump card. They are expected to retain Shane Watson (1.55 with 3.83 batting and -2.28 bowling), though. Stuart Binny at 1.34 is also a good bet to be retained.

Interestingly, the system shows a negative impact for the otherwise highly rated Sanju Samson (-0.17)! He is, however, another player they might retain.

7. Royal Challengers Bangalore

The Royal Challengers have already made their decision – they will retain Chris Gayle (4.93; with 6.51 batting and -1.58 bowling), AB de Villiers (3.12) and Virat Kohli (1.95 with 2.22 batting and -0.27 bowling). The one highly rated player they are not retaining is Zaheer Khan (3.69). Khan has been exceptional considering that his partners in the RCB pace attack are Vinay Kumar (-3.59), RP Singh (-2.83) and Abhimanyu Mithun (-1.69).

Their only other highly rated bowler is Murali Kartik (1.05). They will need to completely rebuild their bowling attack in order to compete this IPL

8. Sunrisers Hyderabad

Dale Steyn (3.43) is the standout performer and they would do well to retain him. The next best is Shikhar Dhawan, who is some distance away at 0.72. Given the paucity of quality Indian players, though, they might end up retaining Dhawan also.

I’m willing to share the full results of my analysis. Do reach out to me if you want to play around with it and I’ll send it to you. And let me know what you think of these ratings.

Spending on Indian Players in IPL Auctions

In the first IPL Auction in 2008, teams spent an average (median) of 47% of their overall spend on Indian players, the rest going to foreign players. By the time of the auction in 2011, however, they had wisened up to the fact that only four foreigners can play in the eleven, and the average (median) spend on Indian players went up to 65%.

How did different teams fare on this count? The following graph describes this (I’m generally not a big fan of “dodged” bar graphs but couldn’t think of a better way of representing this data. If you have any ideas, do let me know).

foreignspend

 

As you can see in this graph, most teams significantly increased their spending on Indian players. The only teams that failed to do so were Deccan Chargers (who performed really badly and then dropped out of the IPL), Kings XI Punjab (performed badly all three seasons) and Rajasthan Royals (who built their team around “uncapped” Indian players who were not part of the auction).

It will be interesting to see what this ratio is like in the following auction.

 

 

 

 

 

 

 

 

 

Analyzing the IPL Auction Rules – 1

So finally after a really long delay the rules for the IPL Auction 2014 are out. Each franchise has the option of retaining up to five players, with additional “trump cards” that allow them to match the price of a winning bid in the auction for players that were part of their teams in the earlier IPLs.

At the outset, the rules of the auction look loaded towards teams that already have strong squads and want to retain as many players as they can – for example, given the rules of the auction, a team can retain up to 6 players from their existing squads, and this significantly biases the auction in favour of teams that want to retain players.

Looking a bit deeper, though, it is clear that this luxury of retention comes at a price. For example, irrespective of what the team negotiates with its number one player, Rs. 12.5 Crore (125 million), or a little more than 20% of the cumulative salary cap will be debited from the team’s account. For the next player, Rs. 9.5 Crore (95 million) will be debited. There is a sliding scale and the fifth player a team retains will cost them Rs. 4 Crore in terms of their budget.

The question is if this pricing is appropriate – is charging 20% of the team budget for the number one player enough compensation for the benefit the team gets by way of retention? Is charging two thirds of the total salary cap (Rs. 39 Crore) enough for retention of five players?

At first look, this pricing looks appropriate – after all, why would someone want to forego two thirds of their auction kitty for keeping just five players, when the total squad size is 16 to 27? However, looking at the previous auctions tells a different story.

The two graphs here shows the proportion of total auction money spent by each team on each player in the last two auctions. The graph might appear complicated so let me explain. For each team, I ordered players bought in the auction in the descending order of price. Then I looked at how much the top player cost as a proportion of the total money spent at the auction. Then, how much the top two players cost and so on.

ipl08

 

ipl11

 

 

 

 

 

(click on images for full size. For the 2008 auction, marquee players have been included in the analysis)

In the 2008 auction, teams spent between 60 and 85% of their budgets in order to select their five most expensive players, with a median of 72%. In the 2011 auction, teams spent between 65 and 90% of their budgets for their top five players (takes into account retained players), and the median spend was 71%. 

Given that the “top 5” players for each team cost them upwards of 70% of their total budgets in the last two auctions, charging teams only Rs. 39 Crore (65%) for retaining five players is blatantly unfair, and biased towards the teams that want to retain. Also, considering that retained players are “known devils”, there is more value for money for teams from retained players. So in the ideal case, the fee for retaining 5 players should have been definitely upwards of 75% of the total budget (Rs. 45 Crore).

The following table helps to show the undervaluation of each retained player:

costmatrix

 

The second and third columns in the above table shows the median percentage of total budget teams spent in order to buy their top N players. The last column shows what percentage of their budget they would have to spend if they are to retain players in the auction.

The message for teams is clear: retain as much as you can. It is cheaper to retain your top players rather than building a new team from the available pool. The challenge, however, is to negotiate a good price with these players.

PS: I have a solution that can help teams plan their auction strategy. If you are an IPL team and you are interested in this, contact me through the contact form.

 

Sehwag versus Tendulkar

Though he hasn’t formally retired yet, given that he is hopelessly out of form, one can probably conclude that Virender Sehwag is unlikely to play for India again, and hence it is time to pay tribute.

I have developed a little visualization where I plot the trajectories of a batsman’s innings based on his past records. There are basically two plots – in the first, I track the expected number of runs he would have scored as a function of the number of balls he has faced. In the second, I plot the probability of the batsman still batting as a function of the number of balls faced.

I’ve created an interactive visualization using the Shiny Server plugin for R, on a little Digital Ocean server that I’ve leased. In this application, you can compare the innings trajectories of different players in different formats. I have taken my raw ball by ball data for this application from cricsheet and have analyzed and visualized the data using R.

Having built this “app”, I was playing around with random combinations of players and formats, and soon started comparing Sachin Tendulkar with Virender Sehwag. Medium-timers like me might remember that back when Sehwag started out in the early 2000s, he was called “the clone” for his batting style was extremely similar to that of Sachin Tendulkar. That they are both short and chubby also helped fuel this comparison. One thing that sets Sehwag apart, though, is his sheer pace of scoring, especially in Test matches.

So while playing around with the “app”, when I loaded Sehwag and Tendulkar together, I noticed one interesting thing – Sehwag in Test matches plays exactly like how Tendulkar plays in ODIs, and Sehwag in ODIs plays like Tendulkar does in T20s (data includes IPL  games). Check out the graphs for yourselves!

srtvssehwag1

srtvssehwag2

 

I’m not sure how much load my small server can take so I’m not putting the link to the app here. However, if you think you’ll find this interesting and will want to play with it, write to me and I’ll send you the link.