# Question:Fit some points into a least square equation

## Question:Fit some points into a least square equation

Maple
Hello! I would like to know if there is a way that Maple finds the equation on its own. I have a table of x values and y values and after plotting them I would like to find a trend line by least square. Xvalues:=[20.82761236,23.06898987,21.41835472,22.7379797,6.324860738,21.32784529,22.02579406,7.346997047, 10.05506885,19.39510411,22.78221757,22.60507436,23.81275938,24.44016307,24.35400056,6.147652308,13.72891369,25.06130326,4.55594785,21.73407994,4.890286005,9.474073496,15.85375943,22.78221757,21.50872941,1.81036147,13.31506818,12.55717259,32.19164083,20.0694043]: Yvalues:=[11.5,11.7,11.8,11.9,1.5,12.8,12.2,3.75,5.71,12.3,13.2,12.7,12.6,8.92,8.93,3.04,8.13,10.2,2.59,12.7,2.62,5.6,8.33,11.8,12,1.96,7.53,6.33,10.3,11.1]: points:={seq([Xvalues[T],Yvalues[T]],T=1..30)}: with(plots): graph_points:=pointplot(points,style=POINT,color=blue):display(graph_points); Thank you, nevulosa
﻿