Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
daslu committed Dec 29, 2024
1 parent f3b3029 commit a550ab9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions notebooks/noj_book/linear_regression_intro.clj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
[fastmath.random :as rand]
[scicloj.tableplot.v1.plotly :as plotly]))

;; ## Simple Linear Regrssion
;; ## Simple Linear Regression

;; Let us start with the basic model of a straight-line fit, where points $(x,y)$ are
;; assumed to have a relationship where $y$ can be predicted as $$y=ax+b.$$
Expand Down Expand Up @@ -159,7 +159,7 @@ simple-linear-data-model
;; We can use Tableplot to visualize the regression model
;; as and additional layer.
;; Behind the scenes, it uses Fastmath `lm` by default, so
;; the result should be compatibile.
;; the result should be compatible.

(-> simple-linear-data
plotly/layer-point
Expand All @@ -176,7 +176,7 @@ simple-linear-data-model

;; ## Multiple linear regression

;; Linear dependency on a few variables can be estimatd the same way.
;; Linear dependency on a few variables can be estimated the same way.

(def multiple-linear-data
(let [rng (rand/rng 1234)
Expand Down Expand Up @@ -233,7 +233,7 @@ simple-linear-data-model
;; ## Example: Predicting Bicycle Traffic

;; Following the Python Data Science Handbook, we will look into predicting
;; the daily number of bicycle trips across Fremob Bridge in Seattle.
;; the daily number of bicycle trips across Fremont Bridge in Seattle.
;; We can use the information of weather, season, day of week, etc.

;; ### Reading and parsing data
Expand Down Expand Up @@ -332,7 +332,7 @@ totals-with-day-of-week
(tc/select-columns ds-mod/inference-column?))

;; The binary columns are collinear (sum up to 1),
;; but we will avoide the intercept.
;; but we will avoid the intercept.
;; This way, the interpretation of each coefficient is the expected
;; bike count for the corresponding day of week.

Expand Down

0 comments on commit a550ab9

Please sign in to comment.