home / season_31_matches

up_on_the_roof_loadouts (view)

10 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: Wins, Losses, Winrate

Loadout Games Wins Losses Winrate Pickrate WinRate_LowerBound_95CI
MonkeyVillage, SniperMonkey, SuperMonkey 71 55 16 77.46% 3.04% 67.75%
DartlingGunner, MonkeyVillage, SuperMonkey 99 60 39 60.61% 4.24% 50.98%
BananaFarm, TackShooter, WizardMonkey 120 71 49 59.17% 5.14% 50.37%
IceMonkey, MonkeyVillage, SuperMonkey 27 16 11 59.26% 1.16% 40.73%
GlueGunner, MonkeyVillage, TackShooter 121 60 61 49.59% 5.18% 40.68%
SniperMonkey, SpikeFactory, WizardMonkey 25 14 11 56.00% 1.07% 36.54%
BananaFarm, DartlingGunner, SuperMonkey 35 16 19 45.71% 1.50% 29.21%
BananaFarm, SniperMonkey, WizardMonkey 46 20 26 43.48% 1.97% 29.15%
NinjaMonkey, SniperMonkey, WizardMonkey 22 11 11 50.00% 0.94% 29.11%
BananaFarm, BoomerangMonkey, SpikeFactory 20 10 10 50.00% 0.86% 28.09%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

CREATE VIEW up_on_the_roof_loadouts AS 
WITH up_on_the_roof AS
    (SELECT *
    FROM matches
    WHERE map = 'up_on_the_roof')
SELECT Loadout,
       Games,
       Wins,
       Losses,
       printf('%.2f%%', WR * 100)                                          AS Winrate,
       printf('%.2f%%', PR * 100)                                          AS Pickrate,
       printf('%.2f%%', (WR - 1.96 * SQRT((WR * (1 - WR)) / Games)) * 100) AS WinRate_LowerBound_95CI
FROM (SELECT Loadout,
             Games,
             Wins,
             Losses,
             CAST(Wins AS REAL) / Games AS WR,
             CAST(Games AS REAL) / (
                 (SELECT COUNT(*)
                  FROM up_on_the_roof) * 2)    AS PR
      FROM (SELECT Loadout,
                   SUM(Win) + SUM(NOT Win) AS Games,
                   SUM(Win)                AS Wins,
                   SUM(NOT Win)            AS Losses
            FROM (SELECT printf('%s, %s, %s', lt1, lt2, lt3) AS Loadout,
                         playerLeftWin                       AS Win
                  FROM up_on_the_roof
                  UNION ALL
                  SELECT printf('%s, %s, %s', rt1, rt2, rt3) AS Loadout,
                         NOT playerLeftWin                   AS Win
                  FROM up_on_the_roof)
            GROUP BY Loadout)
      WHERE Wins >= 10
        AND Losses >= 10)
WHERE Wins >= 10 AND Losses >= 10 AND LENGTH(WinRate_LowerBound_95CI) = 6
ORDER BY WinRate_LowerBound_95CI DESC;
Powered by Datasette · Queries took 554.204ms