home / season_30_matches

up_on_the_roof_loadouts (view)

10 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: Games, Losses, Pickrate

Loadout Games Wins Losses Winrate Pickrate WinRate_LowerBound_95CI
BombShooter, MonkeyVillage, SpikeFactory 35 24 11 68.57% 1.64% 53.19%
GlueGunner, MonkeyVillage, TackShooter 116 67 49 57.76% 5.43% 48.77%
DartMonkey, MonkeyVillage, SuperMonkey 28 18 10 64.29% 1.31% 46.54%
MonkeyVillage, SniperMonkey, SuperMonkey 78 44 34 56.41% 3.65% 45.41%
IceMonkey, MonkeyVillage, SuperMonkey 25 15 10 60.00% 1.17% 40.80%
BananaFarm, SniperMonkey, WizardMonkey 33 19 14 57.58% 1.54% 40.71%
DartlingGunner, MonkeyVillage, SuperMonkey 73 38 35 52.05% 3.41% 40.59%
Alchemist, GlueGunner, NinjaMonkey 40 22 18 55.00% 1.87% 39.58%
BananaFarm, TackShooter, WizardMonkey 97 47 50 48.45% 4.54% 38.51%
Alchemist, NinjaMonkey, SpikeFactory 25 12 13 48.00% 1.17% 28.42%

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