General Discussion

General DiscussionPossible Bug Calculating KDA

Possible Bug Calculating KDA in General Discussion
dead and gone

    I'm quite certain that the KDA is usually calculated by adding all your kills+assists divided by your deaths for all games combined for that hero, as opposed to a KDA average in each game. This doesn't seem to be the case for one of my heroes.

    In my Bristleback games I've gone 14-0-9 and 6-1-16, which should be a KDA of 45. Instead, it is listed as 22.5, which is an average of the two KDA's (23kda+22kda / 2 games = 22.5). Is this a bug, or is there a reason behind this calculation?

    Edit: The Dotabuff system adds a 1 in games where you have 0 deaths, so in my two games it is dividing by 2 deaths instead of just the 1. This should be a simple fix in terms of coding.

    Example: http://i.imgur.com/QTwEgCG.png

    Ce sujet a été édité
    Vroksnak

      and u care why?

      dead and gone

        I'm just bringing it up in case it is a bug so that it can be fixed. It's certainly not a big issue.

        Polkadot Piranha

          Your KDA is your average KDA per game, and it always divides your Kills and Assists by at least 1, or some such.

          Totentanz to The King: M ...

            Pretty much attention whoring about his "awesome" stats.

            SalaciousCrome

              Did you not do maths in school?

              This is not meant as a mean thing but seriously, use critical thinking to think about why that could be. Your KDA is averaged its not a total how would making it a total help in anyway towards this statistic.

              ...come on, take some time to think about things before making a forum post. I could save you a lot of time and is also good for self development to figure shit out for yourself.

              EDIT: Just noticed some irony between this post and your current name.

              Ce commentaire a été édité
              dead and gone

                I'm actually an Applied Math major in a top 10 university. I just realized what the mistake is. The Dotabuff system adds a 1 in games where you have 0 deaths, so in my two games it is dividing by 2 deaths instead of just the 1 (since you can't divide by 0). This should be a simple fix in terms of coding.

                It is not an average of your KDA in each game. Otherwise, you could go 0-50-0 and 5-1-1, and your KDA would be listed as 3 instead of .117

                Jesus, why are all of you so hostile. Calm down.

                SalaciousCrome

                  Could I have a link to this top 10 university please just for reasons....

                  Also this is how KDA is calculated.

                  float(int(k) + int(a)) / float(d)

                  Ce commentaire a été édité
                  dead and gone

                    I go to Johns Hopkins University, which is ranked 5th in statistics.

                    rambosalad

                      There is no bug. The only necessary change in the calculation code is to leave KDA undetermined for a hero you have not yet died with, instead of adding +1 death to games where you have 0 deaths. Once you die with the hero, then you can calculate overall kda.

                      Ce commentaire a été édité
                      dead and gone

                        My Venomancer KDA based on totals: 2.16
                        My Venomancer KDA based on average KDA for each game: 2.61
                        My Venomancer KDA given by DOTABUFF: 2.16

                        Edit: That's what I'm suggesting rambosalad. The current system adds a death in games where you have 0 deaths, so it's not an accurate representation of your KDA. Yes, I realize it's not that big of a deal, but if there is a problem with such an easy fix, why not bring it up?

                        Edit 2: In response to a couple of the members:

                        Sam Fuckin' Peckinpah: It's the only hero that I have played with more than once that includes a game with 0 deaths, which is why I noticed this miscalculation. My motive isn't for people to notice my stats - I would post more if those were my motives (this is my first post). And at least I don't post dumb threads complaining like a child about my teammates like I've seen you doing.

                        Havoc Badger: Before going on a rant and basically calling me stupid, take a second to use "critical thinking." There is no need to be so hostile, especially given that you clearly did not think anything through before posting. Take your own advice.

                        Ce commentaire a été édité
                        SalaciousCrome

                          This has nothing to do with your original query....you were wanting a total of your KDA and not an average, what is the issue now?

                          8-0-16 = 24 KDA
                          8-1-16 = 24 KDA

                          I fail to see where the issue is and someone who does applied maths and John Hopkins should not be struggling to understand this concept.

                          http://en.wikipedia.org/wiki/Division_by_zero

                          dead and gone

                            In your instance, the actual KDA should be 48. You have a total of 48 kills+assists and only one death. The dotabuff system is of totals, so it should list 48 and not the 24 that it would list (which is clearly wrong).

                            I understand that they add the 1 death in order to calculate your KDA if you haven't died, but they shouldn't carry over that "death" when calculating your KDA in other games.

                            Are you typically this stupid? Simple addition and division too much for you to handle?

                            Edit: Taking your example, the current system says these two are equivalent:

                            8-0-16 = 24 KDA
                            8-1-16 = 24 KDA

                            8-1-16 = 24 KDA
                            8-1-16 = 24 KDA

                            Do you see the difference?

                            Ce commentaire a été édité
                            Sir

                              I will let you in on a secret Kda means nothing

                              Z__

                                ^
                                Now calculate the KDA of both matches. It should be (8+16+8+16)/1+0
                                Instead of that, dotabuff calculates (8+16+8+16)/1+1, while the last 1 is not real, dragging your kda down.

                                Phenomenal

                                  They add +1 to your deaths, because they cant calculate KDA if you have 0 deaths (it would be infinite). That's all.

                                  dead and gone

                                    I understand that as I stated above, but I'm bringing it up because it can be fixed with conditional coding. Shouldn't be too hard.

                                    Ce commentaire a été édité
                                    SalaciousCrome

                                      It's not dragging your KDA down it is just how you guys are calculating it.....

                                      Get the KDA of each individual game and average the KDA's as a total number, this is the correct way to do it and the correct way dotabuff does it.

                                      ----------------------------------

                                      Sum total kills and assists and divide them by a sum of deaths to get KDA averages which is how you people are working this out which is totally wrong. I just....don't even know what to say here, think I am going to take a break from dotabuff for awhile this is just too much trying to explain this to you people.

                                      dead and gone

                                        It's not how I'm working it out - it's how Dotabuff calculates it. Just calculate any of your KDA's and you'll see Dotabuff does it by totals. As I posted above, here's an example:

                                        My Venomancer KDA based on totals: 2.16
                                        My Venomancer KDA based on average KDA for each game: 2.61
                                        My Venomancer KDA given by DOTABUFF: 2.16

                                        Jesus, you are actually stupid. Please take a break - you need it.

                                        Edit: The hilarious thing is we've spoonfed him several examples and he still doesn't understand, and to top it all off he still thinks he's right.

                                        Those 4,692 games could have been better spent collecting a real education.

                                        And here's a visual for our "special" friend: http://i.imgur.com/QTwEgCG.png

                                        Ce commentaire a été édité
                                        MadBeast

                                          Havoc just shut up, you've been proving to have wrong in the whole topic and still you bring your bad education here, what a jerk.

                                          Ce commentaire a été édité
                                          himself

                                            It's not average. back when I started Dota 2 (and sucked) I played Puck occasionally.

                                            I died 0 times in the first few games. Dotabuff said my KDA was 132. Thus it is (or at least was) not the average. For the sake of not dividing by 0 (as he said earlier) they just add 1 if you have 0 deaths.

                                            .moochi

                                              Since when did KDA matter in DOTA? This isn't C.O.D

                                              dead and gone

                                                It doesn't, but there's a mistake and it should be relatively easy to fix. Why not bring it up? KDA mattering or not mattering isn't the issue.

                                                Would you rather I post another "my teammates suck, i'm so good" threads that flood this forum every day?

                                                Ce commentaire a été édité
                                                allidoiswynn

                                                  KDA basically is a number which defines how many assists and/or kills you have per life

                                                  "14-0-9 and 6-1-16"

                                                  You died once and therefor you are on your second life

                                                  meaning (23+22)/2

                                                  dead and gone

                                                    That's not correct. The way Dotabuff calculates KDA is (average kills per game + average assists per game) / average deaths per game. Go to this page: http://dotabuff.com/players/133212901/heroes?metric=impact

                                                    See how they all match up perfectly? Now look at this: http://i.imgur.com/QTwEgCG.png

                                                    Ce commentaire a été édité
                                                    himself

                                                      That is your KDA.

                                                      Notice that it is your KDA per half-death there.

                                                      epsik-kun

                                                        I'm amazed by the fact how stupidly stubborn people can be. How various bullshit like:
                                                        "KDA means nothing", "you can't divide by zero", "you calculate KDA wrong"
                                                        are fucking related to a fucking bug report?!

                                                        dead and gone

                                                          Discodude: KDA is an indicator of Kills + Assist PER 1 death.

                                                          I even did the math - you guys surely must be trolling at this point.

                                                          Wink

                                                            If you have 0 deaths in a match, the KD is still divided by 1, so your overall KDA may be lower than the numbers proposed

                                                            dead and gone

                                                              Yes, but as stated previously, they keep that 1 "death" when calculating future KDA.

                                                              Edit: It's fine if they divide by 1 so they can display your KDA if you haven't died in your only match with a hero, but they shouldn't be adding that "death" in your total if you play more with that hero. That additional "death" is why you see the mathematical error in the image I posted.

                                                              Ce commentaire a été édité
                                                              Bone Chilling

                                                                Amazing how harsh people can react. The op proved his point so many times in this thread, it's just amazing how persistent he is.

                                                                Quick maffs

                                                                  jesus the guy was just asking a legit question and nerds already freaked out

                                                                  SalaciousCrome

                                                                    It's because the original question has already been answered he just doesn't like the answer.

                                                                    crumbling

                                                                      Proper thread OP.

                                                                      Havoc Badger: You're fucking autistic.

                                                                      Yoichi Isagi | Blue Lock

                                                                        KDR = Kill death ratio.. the amount of kills per death.. KDA = kill death & assist ratio.. the amount of kills & assist per death. Remember Dota 2 counts KDA not KDR. U want KDR go back to CoD or BF4.

                                                                        Numberwang

                                                                          ^well seeing as he wasn't asking for that your comment has no relevance

                                                                          dead and gone

                                                                            At least some people can read and understand basic math.

                                                                            Ce commentaire a été édité
                                                                            Yoichi Isagi | Blue Lock

                                                                              He's pretty dumb.. first game.. 23kda.. 2nd game... 22kda... 1+1=2 games. Thats's 2 Games... 23+22/2 what u know? it's 22.5 motha fawker.

                                                                              dead and gone

                                                                                Jesus christ... just go up and read some of the posts (if you're capable, that is).

                                                                                The dotabuff system doesn't average KDA per game. Otherwise people could go 0/50/0 and 5/1/1 and their KDA would be 3 instead of .117

                                                                                It's (average kills + average assists per game) / average deaths per game. So it's (10+12.5)/.5 = 45.

                                                                                How are so many of you this dumb?

                                                                                Ce commentaire a été édité
                                                                                epsik-kun

                                                                                  Dude, you shoulld stop repeating yourself over and over again. Retards do not learn through repetition.

                                                                                  Szotyi3

                                                                                    Not sure if ICOLLECT getting trolled, or we have some russians here.

                                                                                    yiran

                                                                                      ?

                                                                                      jimmydorry

                                                                                        It is surely trolling if they are responding without reading your posts.

                                                                                        epsik-kun

                                                                                          @Szotyi3
                                                                                          We sure have at least one.

                                                                                          dead and gone

                                                                                            I think for most people they just haven't bothered to read most of the posts.

                                                                                            As for Havoc, he's probably genuinely on the lower end of the intelligence spectrum, but at this point is going overboard to mask his stupidity with trolling.

                                                                                            Camcorder

                                                                                              Our KDA calculation over a set of 1..N records is:

                                                                                              (avg(k) + avg(a))/max(avg(d),1.0)

                                                                                              where all division is floating point. You are correct in that there's a minimum of 1 death applied, however it is not applied per-match, rather as a minimum threshold at the time of the calculation.

                                                                                              For your Bristleback, that works out as:

                                                                                              (10.0+12.50)/max(0.5,1.0) = 22.50/1.0 = 22.5

                                                                                              Hopefully that clears up some confusion here.

                                                                                              Socram

                                                                                                That minimum threshold at the time of the calculation is a little weird if you have a value between 0 and 1... are you fearing inflated values?
                                                                                                It's a lot better than a minimum of 1 per match as suspected by LVP, though ;-)

                                                                                                Ce commentaire a été édité