Skip to content

Instantly share code, notes, and snippets.

View tsutarou10's full-sized avatar
🏠
Working from home

Tatsuro Miyazaki tsutarou10

🏠
Working from home
View GitHub Profile
@tsutarou10
tsutarou10 / berbernoulliDistribution.py
Created August 18, 2017 01:12
ベルヌーイ分布
#coding: utf-8
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.mlab as mlab
def bern(x,p):
return pow(p,x) * pow(1-p,1-x)
if __name__ == "__main__":