Published
Edited
Nov 9, 2020
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
rmse = {
const a = []
for(let i = 0; i < 128; i = i + 1){
const x = pirates[i].SO
const y = pirates[i].HR
const yhat = slope*x + intercept
const diff = y - yhat
const sqDiff = diff*diff
a.push(sqDiff)
}
return math.sqrt(d3.mean(a))

}
Insert cell
Insert cell
Insert cell
Insert cell
.13*1000 - 4
Insert cell
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