Skip to content

calculations.matches_3_odds_inplay_draw

Per-event aggregates for the draw in-play odd: max/min (with minute & score), plus count, first, last, mean and standard deviation across minutes.

flowchart LR
i1[/calculations.inplay_1_by_minute/] --> me[/calculations.matches_3_odds_inplay_draw/]
me --> mart[/mart.matches/]
click i1 "/calculations/inplay_1_by_minute/" "Open"
click mart "/mart/matches/" "Open"
ColumnDescriptionFormula
event_idBet365 event identifier.passthrough
event_dateEvent date.passthrough
event_partition_keyClickHouse partition key.passthrough
max_draw_odd_minute_idMinute of max draw odd (latest on tie).dense_rank() over (partition by event_id order by draw_odd DESC, minute_id DESC) = 1
max_draw_odd_short_scoreScore at that minute.tied row
max_draw_oddMax draw odd in-play.tied row
min_draw_odd_minute_idMinute of min draw odd (latest on tie).dense_rank() over (partition by event_id order by draw_odd, minute_id DESC) = 1
min_draw_odd_short_scoreScore at that minute.tied row
min_draw_oddMin draw odd in-play.tied row
odds_inplay_count_drawNumber of minute rows.count(*) over (partition by event_id)
odds_inplay_first_drawEarliest draw odd.first_value(draw_odd) over (partition by event_id order by minute_id)
odds_inplay_last_drawLatest draw odd.first_value(draw_odd) over (partition by event_id order by minute_id desc)
odds_inplay_avg_drawMean draw odd.avg(draw_odd) over (partition by event_id)
odds_inplay_std_drawStDev across minutes.STD(draw_odd) over (partition by event_id)