experiments

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-experiments"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/6af814d4-70c1-4363-8381-689a51668c4d/social-card.svg?v=3e7ae33eec8b" alt="experiments" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/experiments/meta-analysisScope experiment:read

Meta-analysis of one metric's relative lift across concluded experiments (the shipped winner, else the best variant of each), pooled by inverse variance with fixed and random effects.

Parameters

project_idstringpathrequired
metricstringqueryrequired
alphanumberquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/experiments/meta-analysis?metric=<metric>"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "experiments": [
    {
      "experiment_id": "string",
      "name": "string",
      "relative_lift": 0,
      "se": 0,
      "variant": "string"
    }
  ],
  "fixed": {
    "ci_high": 0,
    "ci_low": 0,
    "effect": 0,
    "p_value": 0,
    "se": 0
  },
  "i2": 0,
  "metric": "string",
  "q": 0,
  "q_p_value": 0,
  "random": {
    "ci_high": 0,
    "ci_low": 0,
    "effect": 0,
    "p_value": 0,
    "se": 0
  },
  "tau2": 0
}
Schema
experimentsMetaRow[]required
Show child parameters
experiment_idstringrequired
namestringrequired
relative_liftnumberrequired
senumberrequired
variantstringrequired
fixedPooledEffect
Show child parameters
ci_highnumberrequired
ci_lownumberrequired
effectnumberrequired
p_valuenumberrequired
senumberrequired
i2number
metricstringrequired
qnumber
q_p_valuenumber
randomPooledEffect
Show child parameters
ci_highnumberrequired
ci_lownumberrequired
effectnumberrequired
p_valuenumberrequired
senumberrequired
tau2number
400
404
POSThttps://lucidace.com/v1/projects/{project_id}/experiments/powerScope experiment:read

Parameters

project_idstringpathrequired

Request body

application/json
absoluteboolean
alphanumber
baselinenumberrequired
daily_trafficnumber
daysnumber
Reverse power over a duration: units per variant = days x daily_traffic x fraction / variants.
kindstring
proportion (default) or mean; anything else is a 400.
proportion | mean
mdenumber
Relative effect (0.05 = +5%) unless absolute is set. Ignored in reverse mode.
powernumber
sdnumber
Standard deviation, required for mean.
traffic_fractionnumber
units_per_variantinteger
Reverse power (P-M6): the units per variant available; the response gives the MDE.
variantsinteger
{
  "absolute": true,
  "alpha": 0,
  "baseline": 0,
  "daily_traffic": 0,
  "days": 0,
  "kind": "proportion",
  "mde": 0,
  "power": 0,
  "sd": 0,
  "traffic_fraction": 0,
  "units_per_variant": 0,
  "variants": 0
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/experiments/power" \
  -H "Content-Type: application/json" \
  -d '{"absolute":true,"alpha":0,"baseline":0,"daily_traffic":0,"days":0,"kind":"proportion","mde":0,"power":0,"sd":0,"traffic_fraction":0,"units_per_variant":0,"variants":0}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "duration_days": 0,
  "mde_absolute": 0,
  "mde_relative": 0,
  "sample_size_per_variant": 0
}
Schema
duration_daysinteger
Present when daily_traffic was given.
mde_absolutenumber
Reverse mode: smallest detectable change, in metric units and relative to the baseline.
mde_relativenumber
sample_size_per_variantintegerrequired
400
404
GEThttps://lucidace.com/v1/projects/{project_id}/experiments/programScope experiment:read

Program analytics over concluded (stopped or shipped) experiments with a results snapshot: win rate, top and bottom primary-metric lifts and the annualized, coverage-adjusted impact of every shipped experiment (`diff * daily units / traffic share * 365`).

Parameters

project_idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/experiments/program"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "experiments": [
    {
      "ci_high": 0,
      "ci_low": 0,
      "coverage": 0,
      "daily_units": 0,
      "diff": 0,
      "experiment_id": "string",
      "good": true,
      "impact": {
        "launch_daily_units": 0,
        "per_year": 0,
        "per_year_high": 0,
        "per_year_low": 0
      },
      "lift_se": 0,
      "metric": "string",
      "metric_id": "string",
      "name": "string",
      "relative_lift": 0,
      "significant": true,
      "status": "string",
      "variant": "string",
      "winner": "string"
    }
  ],
  "summary": {
    "bottom": [
      {
        "ci_high": 0,
        "ci_low": 0,
        "coverage": 0,
        "daily_units": 0,
        "diff": 0,
        "experiment_id": "string",
        "good": true,
        "impact": {
          "launch_daily_units": 0,
          "per_year": 0,
          "per_year_high": 0,
          "per_year_low": 0
        },
        "lift_se": 0,
        "metric": "string",
        "metric_id": "string",
        "name": "string",
        "relative_lift": 0,
        "significant": true,
        "status": "string",
        "variant": "string",
        "winner": "string"
      }
    ],
    "concluded": 0,
    "impact_by_metric": {},
    "losses": 0,
    "shipped": 0,
    "shipped_wins": 0,
    "top": [
      {
        "ci_high": 0,
        "ci_low": 0,
        "coverage": 0,
        "daily_units": 0,
        "diff": 0,
        "experiment_id": "string",
        "good": true,
        "impact": {
          "launch_daily_units": 0,
          "per_year": 0,
          "per_year_high": 0,
          "per_year_low": 0
        },
        "lift_se": 0,
        "metric": "string",
        "metric_id": "string",
        "name": "string",
        "relative_lift": 0,
        "significant": true,
        "status": "string",
        "variant": "string",
        "winner": "string"
      }
    ],
    "win_rate": 0,
    "wins": 0
  }
}
Schema
experimentsProgramEntry[]required
One row per concluded experiment (primary metric), newest first.
Show child parameters
ci_highnumber
ci_lownumber
coveragenumberrequired
Share of the eligible audience the experiment covered (traffic_pct / 100).
daily_unitsnumberrequired
diffnumber
Absolute per-unit difference and its interval.
experiment_idstringrequired
goodbooleanrequired
The change is in the metric's good direction.
impactLaunchImpact
Show child parameters
launch_daily_unitsnumberrequired
Units per day the launch reaches.
per_yearnumberrequired
per_year_highnumber
per_year_lownumber
lift_senumber
Standard error of the relative lift, from the snapshot interval.
metricstringrequired
metric_idstringrequired
namestringrequired
relative_liftnumber
significantbooleanrequired
statusstringrequired
stopped | shipped.
variantstringrequired
Shipped variant (or the best non-control variant) versus control.
winnerstring
summaryobjectrequired
Program roll-up.
Show child parameters
bottomProgramEntry[]required
Show child parameters
ci_highnumber
ci_lownumber
coveragenumberrequired
Share of the eligible audience the experiment covered (traffic_pct / 100).
daily_unitsnumberrequired
diffnumber
Absolute per-unit difference and its interval.
experiment_idstringrequired
goodbooleanrequired
The change is in the metric's good direction.
impactLaunchImpact
lift_senumber
Standard error of the relative lift, from the snapshot interval.
metricstringrequired
metric_idstringrequired
namestringrequired
relative_liftnumber
significantbooleanrequired
statusstringrequired
stopped | shipped.
variantstringrequired
Shipped variant (or the best non-control variant) versus control.
winnerstring
concludedintegerrequired
impact_by_metricobjectrequired
Sum of the yearly launch impact of shipped experiments, per primary metric name.
lossesintegerrequired
shippedintegerrequired
shipped_winsintegerrequired
Shipped experiments whose shipped variant was a significant win.
topProgramEntry[]required
Largest and smallest relative lifts (at most 5 each).
Show child parameters
ci_highnumber
ci_lownumber
coveragenumberrequired
Share of the eligible audience the experiment covered (traffic_pct / 100).
daily_unitsnumberrequired
diffnumber
Absolute per-unit difference and its interval.
experiment_idstringrequired
goodbooleanrequired
The change is in the metric's good direction.
impactLaunchImpact
lift_senumber
Standard error of the relative lift, from the snapshot interval.
metricstringrequired
metric_idstringrequired
namestringrequired
relative_liftnumber
significantbooleanrequired
statusstringrequired
stopped | shipped.
variantstringrequired
Shipped variant (or the best non-control variant) versus control.
winnerstring
win_ratenumber
winsintegerrequired
Concluded experiments whose primary metric moved significantly in its good direction.
404
GEThttps://lucidace.com/v1/projects/{project_id}/experiments/surrogatesScope experiment:read

Parameters

project_idstringpathrequired
limitintegerquery
cursorstringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/experiments/surrogates"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "data": [
    {
      "coef": [
        0
      ],
      "cohort_event": "string",
      "created_at": "2024-01-01T00:00:00Z",
      "created_by": "string",
      "horizon_days": 0,
      "id": "string",
      "n": 0,
      "name": "string",
      "outcome_metric_id": "string",
      "r2": 0,
      "resid_var": 0,
      "ridge": 0,
      "short_days": 0,
      "surrogate_metric_ids": [
        "string"
      ],
      "train_days": 0,
      "trained_at": "2024-01-01T00:00:00Z",
      "updated_at": "2024-01-01T00:00:00Z"
    }
  ],
  "next_cursor": "string"
}
Schema
dataobject[]required
Show child parameters
coefarray
[intercept, b_1, ..., b_k]; null until trained.
cohort_eventstringrequired
created_atstringrequired
created_bystring
horizon_daysintegerrequired
idstringrequired
ninteger
namestringrequired
outcome_metric_idstringrequired
r2number
resid_varnumber
ridgenumberrequired
short_daysintegerrequired
surrogate_metric_idsstring[]required
train_daysintegerrequired
trained_atstring
updated_atstringrequired
next_cursorstring
404

Updated