Announcement

Collapse
No announcement yet.

Formula for QB Rating

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Formula for QB Rating

    Does anybody know the formula the game uses for QB Rating?

    I'm working on some things for the website and used the formula here:

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

    but the results don't match those in game. I've looked at various calculators, but can't find the formula that the game uses.

  • #2
    Actually, I'm fairly certain that it uses the NFL formula, although there are some unusual roundings at times that might throw the calculations off by .1 or so. I'd just use the NFL formula.

    Comment


    • #3
      Originally posted by SkyDog
      Actually, I'm fairly certain that it uses the NFL formula, although there are some unusual roundings at times that might throw the calculations off by .1 or so. I'd just use the NFL formula.
      Thats what I thought, but it was off by 10. I then plugged in the formula on ESPN and it was also off. I must be doing something wrong in my math somewhere.

      Comment


      • #4
        Originally posted by camulos
        Originally posted by SkyDog
        Actually, I'm fairly certain that it uses the NFL formula, although there are some unusual roundings at times that might throw the calculations off by .1 or so. I'd just use the NFL formula.
        Thats what I thought, but it was off by 10. I then plugged in the formula on ESPN and it was also off. I must be doing something wrong in my math somewhere.
        dumbass.
        Wilmington Wildcats- 2057-
        Seattle Pilots- 2017-2041
        Washington Bats - 1979-2013

        Comment


        • #5
          Originally posted by dieselboy
          dumbass.
          If you're so smart, tell me where I screwed up :D
          Code:
          	#### Calculates QB Rating if player has a passing attempt
          	if($row['SUM(PassAttempts)'] > 0) {
          	$qbrcomp = ((($row['SUM(PassCompletions)']/$row['SUM(PassAttempts)'])*100)-30)/20;
          	if($qbrcomp > 2.375){
          		$qbrcomp = 2.375;
          	}
          	if&#40;$qbrcomp < 0&#41; &#123;
          		$qbrcomp = 0;
          	&#125;
          	$qbryard = &#40;&#40;$row&#91;'SUM&#40;PassYards&#41;'&#93;/$row&#91;'SUM&#40;PassAttempts&#41;'&#93;&#41;-3&#41;/4;
          	if&#40;$qbryard > 2.375&#41;&#123;
          		$qbryard = 2.375;
          	&#125;
          	if&#40;$qbryard < 0&#41; &#123;
          		$qbryard = 0;
          	&#125;
          	$qbrtd = &#40;&#40;$row&#91;'SUM&#40;TDPasses&#41;'&#93;/$row&#91;'SUM&#40;PassAttempts&#41;'&#93;&#41;*100&#41;/5;
          	if&#40;$qbrtd > 2.375&#41;&#123;
          		$qbrtd = 2.375;
          	&#125;
          	if&#40;$qbrtd < 0&#41; &#123;
          		$qbrtd = 0;
          	&#125;
          	$qbrint = &#40;9.5-&#40;&#40;$row&#91;'SUM&#40;INTThrown&#41;'&#93;/$row&#91;'SUM&#40;PassAttempts&#41;'&#93;&#41;*100&#41;&#41;/4;
          	if&#40;$qbrint > 2.375&#41;&#123;
          		$qbrint = 2.375;
          	&#125;
          	if&#40;$qbrint < 0&#41; &#123;
          		$qbrint = 0;
          	&#125;
          	$qbrating = &#40;$qbrcomp+$qbryard+$qbrtd+$qbrint&#41;/0.06;
          	&#125;
          	else &#123;
          	$qbrating = 0;
          	&#125;
          	### End QB Rating

          Comment


          • #6
            nevermind...see below.

            Comment


            • #7
              Code:
              	#### Calculates QB Rating if player has a passing attempt
              	if&#40;$row&#91;'SUM&#40;PassAttempts&#41;'&#93; > 0&#41; &#123;
              	$qbrcomp = &#40;&#40;&#40;$row&#91;'SUM&#40;PassCompletions&#41;'&#93;/$row&#91;'SUM&#40;PassAttempts&#41;'&#93;&#41;*100&#41;-30&#41;/20;
              	if&#40;$qbrcomp > 2.375&#41;&#123;
              		$qbrcomp = 2.375;
              	&#125;
              	if&#40;$qbrcomp < 0&#41; &#123;
              		$qbrcomp = 0;
              	&#125;
              	$qbryard = &#40;&#40;$row&#91;'SUM&#40;PassYards&#41;'&#93;/$row&#91;'SUM&#40;PassAttempts&#41;'&#93;&#41;-3&#41;/4;
              	if&#40;$qbryard > 2.375&#41;&#123;
              		$qbryard = 2.375;
              	&#125;
              	if&#40;$qbryard < 0&#41; &#123;
              		$qbryard = 0;
              	&#125;
              	$qbrtd = &#40;$row&#91;'SUM&#40;TDPasses&#41;'&#93;/$row&#91;'SUM&#40;PassAttempts&#41;'&#93;&#41;*20;
              	if&#40;$qbrtd > 2.375&#41;&#123;
              		$qbrtd = 2.375;
              	&#125;
              	if&#40;$qbrtd < 0&#41; &#123;
              		$qbrtd = 0;
              	&#125;
              	$qbrint = &#40;2.375-&#40;&#40;$row&#91;'SUM&#40;INTThrown&#41;'&#93;/$row&#91;'SUM&#40;PassAttempts&#41;'&#93;&#41;*0.25&#41;&#41;;
              	if&#40;$qbrint > 2.375&#41;&#123;
              		$qbrint = 2.375;
              	&#125;
              	if&#40;$qbrint < 0&#41; &#123;
              		$qbrint = 0;
              	&#125;
              	$qbrating = &#40;$qbrcomp+$qbryard+$qbrtd+$qbrint&#41;/0.06;
              	&#125;
              	else &#123;
              	$qbrating = 0;
              	&#125;
              	### End QB Rating

              Comment


              • #8
                hehe thanks

                Comment


                • #9
                  That didn't actually work, did it?

                  Comment


                  • #10
                    The code I originally posted worked already. I was just giving diesel a hard time.

                    Comment

                    Working...
                    X