Squiggle Hub

Politics

Updated

a = 0.5 // EU
x = lognormal({mean: 0.18+a, stdev: 0.34}) - a // EU Correlation

u0 = cdf(x, 0) // Probability that EU correlation is negative
u0pt5 = cdf(x, 0.5) - cdf(x, 0) // Probability that EU correlation is between 0 and 0.5
u1 = cdf(x, 1) - cdf(x, .5) // Probability that EU correlation is between 0.5 and 1
u1plus = 1 - cdf(x, 1) // Probability that EU correlation is between 0.5 and 1

b = 0.5 // China
Updated
/*
Describe your code here
*/

a = normal(2, 5)
Updated
/*
Assessing how Trump's second election affects US innovation prospects
*/

// Using values from here: https://docs.google.com/document/d/1Mfwr9K8vVAczjl5yx8oWtaX6ufkQqYNfPo4MrYk76TQ/edit?usp=sharing

// Outcome probabilities
// These will be normalized later

dem_win = normal(0.525, 0.04)