# What the site measures: outcomes and their denominators, route targets and their comparison groups, the # bonding-encounter contexts, the stages of the route map, the filter presets and the minimum-run thresholds. # analysis/stats/site_stats.py reads this file and writes data/public/stats.json, which the page only displays. # # Conditions: {field: value} means equal; {field: {in: [...]}}, {field: {not: value}}, {field: {exists: true}} # (not blank), {any: [condition, ...]} (at least one). Several fields in one condition must all hold. version: 1 colours: [Red, Green, Orange, Brown, Blue, Black] # Outcomes for the factor tables and models: who could have had the outcome (denom), and the outcome (event). outcomes: blue_meadow: label: Blue appears in the meadow denom: { branch: "Passed the Red: meadow" } event: { saw_blue_meadow: true } shadow: label: Shadow option appears at the tree denom: { hour: Tree, branch: { exists: true } } event: { saw_shadow: true } bond_blue_meadow: label: Bond, given you approached the meadow Blue denom: { branch: "Passed the Red: meadow", enc_Blue: { in: ["Bonded!", "Incinerated"] } } event: { enc_Blue: "Bonded!" } reach_hour: label: Survive to the hour (tree/valley choice) denom: {} event: { hour: { in: [Tree, Valley] } } # one more outcome per colour: "Run ends bonded to ", among runs that reached the hour bonded_outcome: label: Run ends bonded to {colour} denom: { hour: { in: [Tree, Valley] } } event: { outcome: Bonded, outcome_color: "{colour}" } # Factors compared in the factor tables (each answer against the other answers to the same question) factors: [company, direction, first_sighting, scream, resolution, combat_first, post_path, hour, wing, squad, attempt_group, source, goal, sighting_action, combat_second, malek_intent] # Route targets: the outcome (event) and which runs could have reached it at all (pool) targets: bond_Blue: { label: Bond Blue, colour: Blue, event: { outcome: Bonded, outcome_color: Blue }, pool: { hour: Valley } } bond_Black: { label: Bond Black, colour: Black, event: { outcome: Bonded, outcome_color: Black }, pool: { hour: Tree } } see_Blue: { label: Meet a Blue (meadow), colour: Blue, event: { saw_blue_meadow: true }, pool: { branch: "Passed the Red: meadow" } } see_shadow: { label: Get the tree shadow, colour: Black, event: { saw_shadow: true }, pool: { hour: Tree, branch: { exists: true } } } bond_Red: { label: Bond Red, colour: Red, event: { outcome: Bonded, outcome_color: Red }, pool: { hour: { in: [Tree, Valley] } } } bond_Green: { label: Bond Green, colour: Green, event: { outcome: Bonded, outcome_color: Green }, pool: { hour: Tree } } bond_Orange: { label: Bond Orange, colour: Orange, event: { outcome: Bonded, outcome_color: Orange }, pool: { hour: { in: [Tree, Valley] } } } bond_Brown: { label: Bond Brown, colour: Brown, event: { outcome: Bonded, outcome_color: Brown }, pool: { hour: { in: [Tree, Valley] } } } bond_any: { label: Bond any dragon, colour: null, event: { outcome: Bonded }, pool: { hour: { in: [Tree, Valley] } } } # Bonding encounters: which recorded attempt (column) belongs to which in-game encounter (where) encounters: - { context: "Red (tree, descend quickly)", colour: Red, column: enc_Red, where: { hour: Tree, branch: "Descend quickly: Red" } } - { context: "Green (two Greens)", colour: Green, column: enc_Green, where: { hour: Tree, any: [ { branch: "Descend slowly: two Greens" }, { branch: "Descend quickly: let the Red pass" } ] } } - { context: "Blue (shadow)", colour: Blue, column: enc_Blue, where: { hour: Tree, branch: "Shadow (rare)" } } - { context: "Black (shadow)", colour: Black, column: enc_Black, where: { hour: Tree, branch: "Shadow (rare)" } } - { context: "Red (valley)", colour: Red, column: enc_Red, where: { hour: Valley, branch: Valley Red } } - { context: "Orange (meadow)", colour: Orange, column: enc_Orange, where: { hour: Valley, branch: "Passed the Red: meadow" } } - { context: "Brown (meadow)", colour: Brown, column: enc_Brown, where: { hour: Valley, branch: "Passed the Red: meadow" } } - { context: "Blue (meadow)", colour: Blue, column: enc_Blue, where: { hour: Valley, branch: "Passed the Red: meadow" } } # The route map's columns, in order. "chance": steps the game rolls, not the rider. stages: - { key: company, label: Company } - { key: direction, label: Direction } - { key: first_sighting, label: First sighting, chance: true } - { key: cadet, label: Cadet encounter } - { key: post_path, label: Fork in the road } - { key: hour, label: After an hour } - { key: encounter, label: Encounter, chance: true } - { key: end, label: Outcome } # Filter presets: the page shows one at a time (no statistics are computed in the browser) presets: all: { label: All runs, filters: { source: all, goal: all, excludeFlagged: false } } form: { label: Form submissions only, filters: { source: form, goal: all, excludeFlagged: false } } bulk: { label: Bulk logs only (imports), filters: { source: bulk, goal: all, excludeFlagged: false } } not_chasing: { label: Not chasing Blue/Black, filters: { source: all, goal: exclude_rare, excludeFlagged: false } } chasing: { label: Chasing Blue/Black, filters: { source: all, goal: only_rare, excludeFlagged: false } } unflagged: { label: Rows without data-quality flags, filters: { source: all, goal: all, excludeFlagged: true } } # Minimum runs a full route needs before it is ranked (q-values are corrected within each threshold) route_thresholds: [5, 10, 20, 30] rare_goals: [Blue, Black, Blue or Black]