Published
Edited
Oct 5, 2019
Insert cell
md`# Prediction Analysis Tests`
Insert cell
Insert cell
nonMarketPointScore = new predictionAnalysis.PredictionResolutionGroup({
agentPrediction: { data: 0.375, dataType: "percentage" },
marketPrediction: undefined,
resolution: { data: false, dataType: "binary" }
}).pointScore("NonMarketScore")
Insert cell
marketPointScore = new predictionAnalysis.PredictionResolutionGroup({
agentPrediction: { data: 0.375, dataType: "percentage" },
marketPrediction: { data: 0.275, dataType: "percentage" },
resolution: { data: false, dataType: "binary" }
}).pointScore("MarketScore")
Insert cell
marketPointScoreDist = new predictionAnalysis.PredictionResolutionGroup({
agentPrediction: {
data: { xs: [1, 2, 3, 4, 5], ys: [.1, .2, .3, .4, 0.8] },
dataType: "floatCdf"
},
marketPrediction: {
data: { xs: [1, 2, 3, 4, 5], ys: [.1, .1, .1, .1, .99] },
dataType: "floatCdf"
},
resolution: {
data: { xs: [1, 2, 3, 4, 5], ys: [.1, .2, .3, .4, 0.8] },
dataType: "floatCdf"
}
}).pointScore("MarketScore")
Insert cell
marketPointScoreDist2 = new predictionAnalysis.PredictionResolutionGroup({
agentPrediction: {
data: { xs: [1, 2, 3, 4, 5], ys: [.1, .2, .3, .4, 0.8] },
dataType: "floatCdf"
},
marketPrediction: {
data: { xs: [1, 2, 3, 4, 5], ys: [.1, .11, .12, .13, .99] },
dataType: "floatCdf"
},
resolution: {
data: 3.0,
dataType: "floatPoint"
}
}).pointScore("MarketScore")
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