-
Hi, quick mockup:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Plot is not replacing a statistics package—this mark only does linear regression for the sake of visualization, and does not expose its coefficients. (And in fact, it computes its parameters in pixel space, so it would not be very useful to expose them anyway. Only the coefficient of determination R² would be what you expect, if the scales are linear.) We recommend using specialized packages when you want to compute statistics. There are plenty of them, check out for example https://simple-statistics.github.io/ and https://github.com/nshiab/simple-data-analysis I can share examples of how to import them in Observable Framework. |
Beta Was this translation helpful? Give feedback.
-
alright, very clear. thanks.
thanks! |
Beta Was this translation helpful? Give feedback.
alright, very clear. thanks.
But in that case I might as well pull the regression from DuckDB (where the data lives anyway) instead of pulling in another lib in javascript. (although it did get fidgety dealing with the timestamps)