{"uid":"cap_qlB_XouJUO_eUIzI9tktN","slug":"deming-regression-errors-in-variables-line-fitting-53f70336","name":"Deming Regression (Errors-in-Variables) Line Fitting","description":"Fit paired measurement methods when both axes have stated measurement error.","url":"https://detect.halowerk.com/v1/F-TD2000-GEO-INDUSTRY-B001/paired-measurement-deming-errors-in-variables-line?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"artifact":{"type":"object","required":["deming"],"properties":{"deming":{"type":"object","required":["data","claim"],"properties":{"data":{"type":"object","required":["pairs","variance_ratio"],"properties":{"pairs":{"type":"array","items":{"type":"array","items":{"type":"number","maximum":1000000,"minimum":-1000000},"maxItems":2,"minItems":2},"maxItems":128,"minItems":3},"variance_ratio":{"type":"number","maximum":10000,"minimum":0.0001}},"additionalProperties":false},"claim":{}},"additionalProperties":false}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ISoQUVoDn2xf1_v4pXNq_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fits a Deming regression line to paired measurements where both X and Y axes have stated measurement error, using the specified variance ratio.","exampleAgentPrompt":"Fit a Deming regression line to these 20 paired measurement readings from two lab instruments — here are the (x, y) pairs, and I know the variance ratio between the two methods is 1.5.","exampleUseCases":[{"title":"Clinical lab method comparison","prompt":"I have 50 paired glucose measurements from two analyzers — the reference and the new device. The variance ratio between their measurement errors is 2.0. Can you fit a Deming regression line so I can see how well the two methods agree?"},{"title":"Instrument calibration validation","prompt":"We're calibrating two spectrometers against each other. I have 30 paired readings and the variance ratio is 0.5. Run an errors-in-variables regression to give me the slope and intercept of the best-fit line."},{"title":"Epidemiological biomarker method agreement","prompt":"We collected 45 paired biomarker measurements from two assays with a known variance ratio of 3.2. Fit a Deming errors-in-variables line to these pairs so we can assess method agreement."}],"resultDescription":"Returns the fitted Deming regression line parameters — including slope and intercept estimates — derived from the paired measurement data and variance ratio, accounting for measurement error on both axes.","failureModes":["Fewer than 3 data pairs provided — minimum is 3","Variance ratio outside allowed range (0.0001–10000)","Data values outside allowed range (-1,000,000 to 1,000,000)","More than 128 pairs supplied — maximum is 128","Malformed pairs (not exactly 2 numbers per pair)","Degenerate data (all x or y values identical, causing singular fit)","Missing required fields: pairs or variance_ratio"],"whenToPreferThis":"Use this endpoint when you need to compare two measurement methods and both have non-negligible measurement error — standard OLS regression is inappropriate in that case. Ideal for clinical chemistry method comparison, instrument calibration, and metrology tasks where the variance ratio between the two error sources is known or estimable. Prefer this over ordinary linear regression whenever error on the x-axis cannot be ignored.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T07:44:02.822Z","isFirstParty":false,"canonicalSlug":"deming-regression-errors-in-variables-line-fitting-53f70336"}