Published
Edited
Sep 17, 2021
2 forks
Insert cell
Insert cell
viewof intercept = Inputs.range([0,200],{step:.1,label:"intercept"})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
points = [
[0,intercept],
[40,intercept]
]
Insert cell
Insert cell
Insert cell
Yhat = X.map(d => intercept)
Insert cell
differences = X.map((d,i) => Y[i] - Yhat[i])
Insert cell
squares = differences.map(d => d*d)
Insert cell
mse = d3.mean(squares)
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more