home / season_27_matches

salmon_pool_loadouts (view)

11 rows

✖

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: Losses

Loadout Games Wins Losses Winrate Pickrate WinRate_LowerBound_95CI
BananaFarm, DartMonkey, SpikeFactory 74 52 22 70.27% 2.24% 59.86%
BananaFarm, MonkeyAce, MonkeySub 35 25 10 71.43% 1.06% 56.46%
BananaFarm, BombShooter, MonkeySub 179 111 68 62.01% 5.42% 54.90%
DartlingGunner, MonkeyVillage, SuperMonkey 49 33 16 67.35% 1.48% 54.22%
Alchemist, MonkeyBuccaneer, SpikeFactory 848 487 361 57.43% 25.70% 54.10%
BananaFarm, Druid, MonkeySub 97 57 40 58.76% 2.94% 48.97%
DartMonkey, GlueGunner, MonkeySub 29 19 10 65.52% 0.88% 48.22%
BananaFarm, EngineerMonkey, MonkeyAce 80 43 37 53.75% 2.42% 42.82%
BananaFarm, MonkeySub, SuperMonkey 28 17 11 60.71% 0.85% 42.62%
BananaFarm, DartlingGunner, SuperMonkey 25 15 10 60.00% 0.76% 40.80%
BananaFarm, TackShooter, WizardMonkey 31 16 15 51.61% 0.94% 34.02%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

CREATE VIEW salmon_pool_loadouts AS 
WITH salmon_pool AS
    (SELECT *
    FROM matches
    WHERE map = 'salmon_pool')
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 salmon_pool) * 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 salmon_pool
                  UNION ALL
                  SELECT printf('%s, %s, %s', rt1, rt2, rt3) AS Loadout,
                         NOT playerLeftWin                   AS Win
                  FROM salmon_pool)
            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 527.618ms
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows