Public
Edited
May 6, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
sigmasqrt = math.sqrtm(covarianceMatrix)
Insert cell
Insert cell
Insert cell
Insert cell
middleBluePoint = thepoints[ri];
Insert cell
mutable ri = 42;
Insert cell
Insert cell
height = 400
Insert cell
width = 400
Insert cell
Insert cell
stdDevX = math.sqrt(120);
Insert cell
stdDevY = math.sqrt(120);
Insert cell
covXY = correlationFactor * stdDevX * stdDevY;
Insert cell
covarianceMatrix = [
[stdDevX * stdDevX, covXY],
[covXY, stdDevY * stdDevY]
];
Insert cell
det = covarianceMatrix[0][0] * covarianceMatrix[1][1] - covarianceMatrix[0][1] * covarianceMatrix[1][0];
Insert cell
inverseMatrix = [
[covarianceMatrix[1][1] / det, -covarianceMatrix[0][1] / det],
[-covarianceMatrix[1][0] / det, covarianceMatrix[0][0] / det]
];
Insert cell
Insert cell
math = require('mathjs@9')
Insert cell
Insert cell
MHED_points@4.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more