Applying linear regression to estimate coefficients
1 view (last 30 days)
Show older comments
According to the question that I attached it is asked to linearize a group of data and applying linear regression.
So I have written this code below:
c=[0.5 0.8 1.5 2.5 4]
k=[1.1 2.5 5.3 7.6 8.9]
A=[length(c) sum(c);sum(c) sum(c.^2)];
C=[sum(k);sum(c.*k)];
B=inv(A)*C
and the output is:
B =
0.9757
2.2066
So I have found the a0 and a1 values.(estimated linear func:a0+a1=y)
I think I have linearized(?), what method should I use to create a function estimates kmax and cs values?
thank you so much!
0 Comments
Answers (0)
See Also
Categories
Find more on Descriptive Statistics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!