Public
Edited
Feb 4, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {toc} from "@mbostock/toc"
Insert cell
Insert cell
Insert cell
Insert cell
import {addColumn} from "@observablehq/excel-add-columns"
Insert cell
optimjs = require('optimization-js@1.5.0/dist/optimization.js')
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
reserve_threshold = 0.575 // threshold to obtain the auction with lowest reserve prices
Insert cell
yaxislabel = {if (settings[2]){return "log-likelihood"}else{return "average probability for a single observation"}}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data_high = ebaydata.filter(d => d.ReservePriceFrac > reserve_threshold)
Insert cell
Insert cell
Insert cell
y = Array.from(d3.map(data, d => d.NBidders))
Insert cell
y_high = Array.from(d3.map(data_high, d => d.NBidders))
Insert cell
mle = d3.mean(y)
Insert cell
mle_high = d3.mean(y_high)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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