Current location - Training Enrollment Network - Mathematics courses - How to solve the confidence interval with MATLAB
How to solve the confidence interval with MATLAB
The confidence interval is very wide. . What kind of question are you talking about? Let me give a small example of linear regression: given a set of values of x 1, x2, y, determine the coefficient of function y=a*x 1+b*x2+c, and give the corresponding confidence interval. Programming matlab >>x1= [3.916.67 5.33 5.56 6.127.925.82 5.54 5.59 6.126.68 6.93]'; x2 =[9.43 14.5 15.8 19.8 17.4 23.8 3 1.6 37. 136.4 32.2 36.6 4 1.3]'; X=[ones( 12, 1) x 1,x2]; y =[280 338 405 432 452 582 596 602 606 62 1629 656]'; & gt& gt[B, BINT, r, RINT, STATS]= regressive(Y, x) and output the results after running, where bint =-70.4914 240.7456-1.054153.774.