{"uid":"cap_QxXtywv7K06pcc8puVfGn","slug":"minia2a-r-squared-calculator-0c3457e2","name":"minia2a R-Squared Calculator","description":"R Squared","url":"https://minia2a.uk/x402/rSquared?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"type":{"type":"string"},"method":{"type":"string"},"bodyType":{"type":"string"},"queryParams":{"type":"object"}}},"output":{"type":"object","properties":{"type":{"type":"string"}}}}},"responseSchema":{"type":"json","example":{"ok":true},"answerAt":"result"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VxullWoPfgHx1jJv-Wk3M","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the R-squared (coefficient of determination) statistical measure for a given dataset","exampleAgentPrompt":"Can you calculate the R-squared value to see how well my regression model fits the data? I have observed values [1, 2, 3, 4, 5] and predicted values [1.1, 1.9, 3.2, 3.8, 5.1].","exampleUseCases":[{"title":"Regression model goodness-of-fit check","prompt":"I just ran a linear regression and got these observed and predicted values — can you compute the R-squared so I know how well the model fits?"},{"title":"ML model evaluation in a pipeline","prompt":"As part of evaluating my machine learning model, calculate the R-squared score between the actual sales figures and the model's predictions for last quarter."},{"title":"Statistical reporting for a school project","prompt":"I need the coefficient of determination (R-squared) for my statistics homework — my observed values are [10, 20, 30] and predicted are [12, 19, 31]. Can you get that for me?"}],"resultDescription":"Returns the R-squared (coefficient of determination) value, a number between 0 and 1 (or negative if the model is worse than a horizontal baseline) indicating how well the model explains variance in the dependent variable.","failureModes":["Missing or malformed input data arrays returns an error","Mismatched lengths between observed and predicted arrays may cause a computation error","Non-numeric values in input arrays will likely result in a failure response","Empty input arrays may return an error or undefined result"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call R-squared computation without setting up a local statistical library or data science environment. Ideal for lightweight agent workflows that need a single statistical metric on demand.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:40:59.427Z","isFirstParty":false,"canonicalSlug":"minia2a-r-squared-calculator-0c3457e2"}