Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
By Mathcad Staff
Least Squares Error
About this worksheet:
This worksheet using PTC Mathcad shows you how to fit a set of sample data by using the Least Squares Error (LSE) method to minimize the sum of squares error function normalized by a weighting function.
This worksheet shows you how to create a sample data set and add some noise using the "rnd" function. By doing this you can create an unweighted fitting function. You can then define a weighted function which is used in the sum of squares error function, SS. You can use the "minimize" function to fit the unknown parameters and to minimize the SS error function.
Step by step notation, all sample data and solutions, and formulas and equations are provided as an example to aid you in solving.
Download and explore this worksheet yourself! You can download a free lifetime copy of PTC Mathcad Express and get 30 days of full functionality.