print('Hello world!')
from scipy.stats import norm

# 標準正規分布の平均と標準偏差
mu = 0
sigma = 1

# aの値を設定
a = 2

# P(0 ≤ X ≤ a) の確率を計算:P(-∞ ≤ X ≤ 0)=0.5を引く
probability = norm.cdf(a, mu, sigma)-0.5

# P(0 ≤ X ≤ a) の確率を表示
print(f'{probability:.04f}')

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: