{"ok":true,"data":{"tool":{"slug":"linear-regression-calculator","name":"Linear Regression Calculator","section":"calculators","category":"Math","subcategory":"Geometry","url":"/calculators/geometry/linear-regression-calculator/","status":"live","api_mode":"not_available","webmcp_mode":"navigate_only","processing_mode":"client-side","privacy_mode":"no-data-stored","summary":"Fit a least-squares line to paired x and y observations and make a prediction.","input_schema":{"type":"object","properties":{"x_values":{"type":"string","description":"Enter the x values used by this tool."},"y_values":{"type":"string","description":"Enter the y values used by this tool."},"prediction_x":{"type":"number","description":"Enter the x value to predict used by this tool."}},"required":["x_values","y_values","prediction_x"],"additionalProperties":false},"output_schema":{"type":"object","properties":{"equation":{"type":"string","description":"Regression equation produced by the tool."},"slope":{"type":"number","description":"Slope produced by the tool."},"intercept":{"type":"number","description":"Intercept produced by the tool."},"r_squared":{"type":"number","description":"R-squared produced by the tool."},"predicted_y":{"type":"number","description":"Predicted y produced by the tool."},"points":{"type":"array","description":"Regression points produced by the tool."}},"additionalProperties":false},"examples":[{"title":"Linear Regression Calculator example","description":null,"input":{"x_values":"1, 2, 3, 4, 5","y_values":"2.1, 4.2, 5.8, 8.1, 10.2","prediction_x":6},"output":{"equation":"y = 2.01x + 0.05","slope":2.0099999999999997868371792719699442386627197265625,"intercept":0.05000000000000000277555756156289135105907917022705078125,"r_squared":0.99735854645999999501526644962723366916179656982421875,"predicted_y":12.1099999999999994315658113919198513031005859375,"points":[{"x":1,"y":2.100000000000000088817841970012523233890533447265625,"fitted_y":2.060000000000000053290705182007513940334320068359375,"residual":0.040000000000000000832667268468867405317723751068115234375},{"x":2,"y":4.20000000000000017763568394002504646778106689453125,"fitted_y":4.07000000000000028421709430404007434844970703125,"residual":0.13000000000000000444089209850062616169452667236328125},{"x":3,"y":5.79999999999999982236431605997495353221893310546875,"fitted_y":6.0800000000000000710542735760100185871124267578125,"residual":-0.2800000000000000266453525910037569701671600341796875},{"x":4,"y":8.0999999999999996447286321199499070644378662109375,"fitted_y":8.089999999999999857891452847979962825775146484375,"residual":0.01000000000000000020816681711721685132943093776702880859375},{"x":5,"y":10.199999999999999289457264239899814128875732421875,"fitted_y":10.0999999999999996447286321199499070644378662109375,"residual":0.1000000000000000055511151231257827021181583404541015625}]}}],"capability":null}},"meta":{"api_status":"preview","execution":"unavailable"},"request_id":"2afe162ef627a905ac4a65d5"}