odota / core

Open source Dota 2 data platform
https://www.opendota.com
MIT License
1.52k stars 303 forks source link

Picks: above/below the average? #908

Closed TrentBartlem closed 8 years ago

TrentBartlem commented 8 years ago

(This only makes sense for dyads or triads)

So, the 10th most common dyad right now is Pudge / Slark with a pick rate of 2.73%.

Given the monad data, would it be possible to state whether this is expected given the pick rates of Pudge and Slark, or whether this is something that is unusual? I.e. if there's a Pudge on the team, do people pick Slark instead of another hero or vice versa, and thus make that combo more common than you'd expect to see based on monad pick rates?

I think this should show some insight - for instance, for dyads, the most common pairs with Omni are:

OD is 14th-most popular yet the duo is picked a lot more often than Omni/LC (who is 3rd most popular and thus what you'd expect to see above OD just based on LC's massive 25% pick rate), so having a column to show that this is noteworthy would be good.

howardchung commented 8 years ago

Yeah, this has been requested. Would the mean of the single pick rates be accurate, or does it need to be weighted somehow?

same question for winrates.

TrentBartlem commented 8 years ago

Actual Invoker = 31.81% Actual LC = 25.73% Actual Invoker/LC = 4.38%

So, more like pickRateA x pickRateB / 2 (half the time they will be picked on opposite sides)

(for trios, it is possibly pickA x pickB x pickC / 3 (if those 3 heros are picked in a game, only 2 of the 6 combinations will have them on the same side?)

That calculates to: 4.09%. I'm still dubious about how I arrived at that figure, so I'd appreciate someone who knows statistics chiming in :)

howardchung commented 8 years ago

Looks good for picks. How about the win rate?

TrentBartlem commented 8 years ago

That's more likely to be a straight average of the two.

howardchung commented 8 years ago

implemented http://colab-sbx-244.oit.duke.edu:5000/picks/3

TrentBartlem commented 8 years ago

Nice. Is it possible to hide those columns for Monads, since they're not really useful?

The left-aligned bar chart doesn't really work for +/- values - is it possible to have positive values be in green from the centre of the div to the right edge, and negative values be in red from the centre back to the left edge?

howardchung commented 8 years ago

Could hide them but it's also good to be consistent across the pages.

Yeah I know the bars don't work well for negative values. It would require some custom code to handle that though. A simpler alternative is just not to have bars for that column.