Onboarding A/B test results with chi-squared p-value
GET /api/v1/ux/ab-tests/{test_id}/results
GET
/api/v1/ux/ab-tests/{test_id}/results
UX-01: Return per-variant metrics plus the significance decision. p_value is exposed as chi_squared_p_value to match the UX-01 acceptance criterion language; the underlying math is a two-proportion z-test which is mathematically equivalent to chi-squared on a 2x2 table.
Authorizations
Parameters
Path Parameters
test_id
required
string format: uuid
Responses
200
Successful Response
Response body for GET /api/v1/ux/ab-tests/{test_id}/results.
p_value from the underlying two-proportion z-test is renamed
to chi_squared_p_value here per UX-01 acceptance criteria.
object
significant
required
boolean
status
required
string
test_id
required
string format: uuid
variants
required
Array<object>
Per-variant view for the results endpoint.
object
completion_rate
required
number
name
required
string
observations
required
integer
successes
required
integer
variant_id
required
string format: uuid
422
Validation Error
object
detail
Array<object>
object
ctx
object
input
loc
required
Array
msg
required
string
type
required
string