P(-0.3<x<2.1)
x = np.linspace(-0.3,2.1) prob1 = stats.norm.cdf(x,loc=0,scale=1) output=round(prob,6) print(output)
from scipy.stats import norm prob0 = norm.cdf(-0.3) prob1 = norm.cdf(2.1) output=round((prob1-prob0), 6) print(output)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)