Skip to content

Commit 578a735

Browse files
authored
Merge branch 'canbula:master' into master
2 parents 1847653 + 1916330 commit 578a735

File tree

8 files changed

+21
-1
lines changed

8 files changed

+21
-1
lines changed

LectureNotes.pdf

27.1 KB
Binary file not shown.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Statistics
22
Repository for Statistics course given by Assoc. Prof. Dr. Bora Canbula
3-
at Computer Engineering Department of Manisa Celal Bayar University.
3+
at Computer Engineering Department of Manisa Celal Bayar University (MCBU).
44

55
# Course Information
66
We are going to learn both the mathematical foundations and real-world applications of the statistics and the probability in this course. Focus of this course will be to provide the required background for a data science / machine learning course. Python is preferred as the programming language for the applications of this course.

Week01/info_emin_ulguc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
student_id = "230316012"
2+
full_name = "Emin Ülgüç"

Week01/info_gulcin_gunduz.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
student_id = "230316068"
2+
full_name = "Gülçin Gündüz"

Week01/info_halil_kafadar.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
student_id = "240315008"
2+
full_name = "Halil Kafadar"

Week01/info_yasin_buyuktepe.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
student_id = "230315029"
2+
full_name = "Yasin Büyüktepe"

Week02/weighted_enes_yigit.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import random
2+
3+
def weighted_srs(data, n, weights, with_replacement=False):
4+
if with_replacement:
5+
return random.choices(data, weights=weights, k=n)
6+
return random.sample(data, k=n, counts=weights)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import random
2+
def weighted_srs(data, n, weights, with_replacement=False):
3+
if with_replacement or weights:
4+
return random.choices(data, weights=weights, k=n)
5+
else:
6+
return random.sample(data,n)

0 commit comments

Comments
 (0)