linear regression
古いコメントを表示
i have a table of data
X = 1,2,3,4,5,6,7,8,9
Y= 4 5 6 9 8 7 4 1 2
how can i plot these points without having a line then using linear regression to find the uncertainty with a 95% confidence interval and plot that?
採用された回答
その他の回答 (2 件)
Richard Willey
2012 年 5 月 14 日
Alternatively, if you have the 12a version of Statistics Tbx
X = [1,2,3,4,5,6,7,8,9];
Y = [4 5 6 9 8 7 4 1 2];
myFit = LinearModel.fit(X,Y);
plot(myFit)
Maria Ghani
2022 年 10 月 19 日
0 投票
i need to run regression to get coeffecient between two variables x, y . my data set is daily from 1995 to 2022 . i need monthly coeffecient between two variables . what command should i need to write please anyone help. my dat afile is attached for detail information. x regress y but how i can get for every month ?
thanks in advance
1 件のコメント
Image Analyst
2022 年 10 月 19 日
If you have any more questions, then attach your data and code to read it in with the paperclip icon, in a brand new discussion thread (not here), after you read this:
カテゴリ
ヘルプ センター および File Exchange で Linear and Nonlinear Regression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!