Skip to content

Instantly share code, notes, and snippets.

View vvanirudh's full-sized avatar
💭
I may be slow to respond.

Anirudh Vemula vvanirudh

💭
I may be slow to respond.
View GitHub Profile
import matplotlib.pyplot as plt
import numpy as np
from scipy.stats import norm
plt.rcParams["figure.figsize"] = (5,2)
fig, ax = plt.subplots()
pdf = lambda x: 0.7 * norm.pdf(x, 0.5, 0.1) + 0.3 * norm.pdf(x, 1, 0.1)
dx = 1e-2
import matplotlib.pyplot as plt
import numpy as np
from scipy.stats import norm
import math
plt.rcParams["figure.figsize"] = (5,2)
fig, ax = plt.subplots()
pdf = lambda x: 0.7 * norm.pdf(x, 0.5, 0.1) + 0.3 * norm.pdf(x, 1, 0.1)