Regression Analysis of Based on Physics Experiment Data
Discuss the mathematical operations involved in the regression analysis of college physics ex-perimental data,and the programming of linear fitting,correlation analysis and other operations.Python is used in machine learning,big data and modeling.It has abundant libraries and professional data processing functions.It can perform numerical and symbolic calculation,drawing and animation,calculus,statistics and other operations.Python is good at all kinds of regression problems,with clear language logic and concise sentences,which improves the calculation speed and accuracy.Using the least squares method,SVD(singu-lar value decomposition),numpy,scipy and sklearn regression model,and gradient descent method,the linear regression model of thermoelectromotive force of copper-constantan thermocouple witch is linear with the tem-perature difference is fitted,and the Seebeck coefficient is calculated.The analytical solution of the least squares estimator may not work if the matrix is singular;SVD has better adaptability,improving calculation performance and may work better in many cases,for example mostly singular matrix.The gradient descent method has problem of slow convergence and converging to local optimal solutions,and takes many iterations;the linear_model of sklearn is useful and can be applied to many kinds of data processing
least squares estimategradient descent methodSVDlinear regression