{"slug":"saylorinnovations-com-api-stats-regression-ea715e","title":"Linear regression on two lists","host":"saylorinnovations.com","method":"GET","resource":"https://saylorinnovations.com/api/stats/regression","category":"other","description":"Linear regression on two lists - slope, intercept, r, r-squared, standard errors, p-value, 95% slope interval, equation and a prediction for a new x","price_listed":0.01,"price_asked":null,"state":"no_terms","state_label":"Answers HTTP 404 without x402 payment terms","checks_7d":1,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"predict_x":"6","x":"1,2,3,4,5","y":"2,4,5,4,5"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET","POST","PUT","PATCH","DELETE","HEAD"],"type":"string"},"queryParams":{"properties":{"predict_x":{"description":"optional x to predict y for","type":"string"},"x":{"description":"Comma-separated x values, 3-500","type":"string"},"y":{"description":"Comma-separated y values, same count as x","type":"string"}},"required":["x","y"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"equation":{"type":"string"},"intercept":{"type":"number"},"intercept_std_error":{"description":"Intercept std error","type":["number","null"]},"interpretation":{"description":"Plain-language reading of the result","type":"string"},"n":{"type":"number"},"prediction":{"type":["object","null"]},"r":{"type":"number"},"r_squared":{"description":"R squared","type":"number"},"residual_std_error":{"description":"Residual std error","type":"number"},"slope":{"type":"number"},"slope_95_ci":{"description":"Slope 95 ci","type":"array"},"slope_p_value":{"description":"Slope p value","type":"number"},"slope_std_error":{"description":"Slope std error","type":["number","null"]},"slope_t":{"description":"Slope t","type":["number","null"]},"source":{"description":"Data source the values come from","type":"string"}},"required":["n","slope","intercept","r_squared"],"type":"object"},"type":{"const":"json","type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-18","reachable":true,"status":404,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":219,"error":null}],"description_full":"Linear regression on two lists - slope, intercept, r, r-squared, standard errors, p-value, 95% slope interval, equation and a prediction for a new x","last_updated":"2026-10-17T10:23:30.873Z","schemes":["exact"]}