Published
Edited
Oct 19, 2020
Fork of Template
3 forks
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{
const arr = []
for(let i = 0; i < 127; i = i + 1){
const x = phillies[i].yearID - 1900
const y = phillies[i].HR
const yhat = intercept
const diff = y - yhat
const sqDiff = arr.push(diff*diff)
}
return Math.sqrt(d3.mean(arr))
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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