home / season_32_matches

precious_space_loadouts (view)

7 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: Wins

Loadout Games Wins Losses Winrate Pickrate WinRate_LowerBound_95CI
BananaFarm, Druid, MonkeySub 36 24 12 66.67% 3.31% 51.27%
BananaFarm, DartlingGunner, NinjaMonkey 74 46 28 62.16% 6.81% 51.11%
BananaFarm, BombShooter, MonkeySub 213 117 96 54.93% 19.61% 48.25%
BananaFarm, TackShooter, WizardMonkey 44 25 19 56.82% 4.05% 42.18%
BananaFarm, IceMonkey, MonkeySub 22 12 10 54.55% 2.03% 33.74%
BananaFarm, DartlingGunner, SuperMonkey 30 12 18 40.00% 2.76% 22.47%
DartlingGunner, MonkeyVillage, SuperMonkey 39 14 25 35.90% 3.59% 20.84%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

CREATE VIEW precious_space_loadouts AS 
WITH precious_space AS
    (SELECT *
    FROM matches
    WHERE map = 'precious_space')
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 precious_space) * 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 precious_space
                  UNION ALL
                  SELECT printf('%s, %s, %s', rt1, rt2, rt3) AS Loadout,
                         NOT playerLeftWin                   AS Win
                  FROM precious_space)
            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 186.689ms