Skip to content

Commit e2d20db

Browse files
committed
uniform
1 parent d89f277 commit e2d20db

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

14.poisson_distribution.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Poisson Distribution
22

33
'''
4+
Ek specific time me kisi bhi event ki hone ke chanse ko nikalne ke liye poisson distribution ka use hota hai.
5+
46
Jab koi din me 2 bar khana kha raha hai to kya probability banti hai ki wo din me 3rd time khana kahayega ya nahi?
57
68
random me possion method me follow hone wale arguments:

15.uniform_distribution.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Uniform Distribution or Rectangular Distribution
2+
3+
'''
4+
Imp points:
5+
6+
1. yaha par har ek event ke hone ki same probability hoti hai.
7+
2. uniform method ke arg:
8+
a = lower bound (0.0)
9+
b = upper bound (1.0)
10+
size = matrix size
11+
'''
12+
13+
from numpy import random as r
14+
import seaborn as sns
15+
import matplotlib.pyplot as plt
16+
17+
# uniformMatrix = r.uniform(0.2,0.4,size=(10))
18+
uniformMatrix = r.uniform(size=(10))
19+
print('\n\n',uniformMatrix,'\n')
20+
21+
sns.distplot(r.uniform(size=(1000)), hist=False)
22+
23+
plt.show()

0 commit comments

Comments
 (0)