home / season_29_matches

up_on_the_roof_loadouts (view)

10 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: Games, Wins, Pickrate

Loadout Games Wins Losses Winrate Pickrate WinRate_LowerBound_95CI
MonkeyVillage, SniperMonkey, SuperMonkey 58 39 19 67.24% 2.89% 55.16%
GlueGunner, MonkeyVillage, TackShooter 89 54 35 60.67% 4.44% 50.53%
BombShooter, MonkeyVillage, SpikeFactory 63 39 24 61.90% 3.14% 49.91%
DartlingGunner, MonkeyVillage, SuperMonkey 85 48 37 56.47% 4.24% 45.93%
BananaFarm, TackShooter, WizardMonkey 80 40 40 50.00% 3.99% 39.04%
Alchemist, MonkeyVillage, NinjaMonkey 35 19 16 54.29% 1.74% 37.78%
BananaFarm, SniperMonkey, WizardMonkey 28 15 13 53.57% 1.40% 35.10%
IceMonkey, MonkeyVillage, TackShooter 24 13 11 54.17% 1.20% 34.23%
MonkeyVillage, TackShooter, WizardMonkey 26 12 14 46.15% 1.30% 26.99%
SniperMonkey, TackShooter, WizardMonkey 26 11 15 42.31% 1.30% 23.32%

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 525.163ms