Skip to content

Instantly share code, notes, and snippets.

View vioquedu's full-sized avatar

Eduardo Vioque vioquedu

  • Basel
View GitHub Profile
{
"Resources": {
"VPCFARGATE": {
"Type": "AWS::EC2::VPC",
"Properties": {
"CidrBlock": "10.0.0.0/16",
"InstanceTenancy": "default",
"EnableDnsSupport": "true",
"EnableDnsHostnames" : "true"
}
@vioquedu
vioquedu / water_proportion.py
Last active June 6, 2020 18:08
Medium example of Bayes' theorem
# Number of elements in the grid
N_grid = 100
# Define the grid
p_grid = np.linspace(0, 1, N_grid)
# Define the prior
prior = np.concatenate([np.repeat(0, int(N_grid/2)), np.repeat(2, int(N_grid/2))])
# Define the likelihood