B
B
bpGusar2019-01-23 17:01:08
JavaScript
bpGusar, 2019-01-23 17:01:08

How to calculate the start and end points of the regression line, which should be set at the beginning and end of the chart (see screenshot)?

5c4873806a834605837370.jpeg
the left and right ends of the line should continue to the edges of the graph. I can't figure out what formula to use for this.
chart is built in js with chart.js

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Skusnov, 2019-01-23
@AlexSku

The line is y = ax+b, where the parameters are found from minimizing the sum of squared differences (y - Yi).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question