Skip to content

Commit ef03faf

Browse files
committed
docs: documentation and ci/cd and apply Black formatter.
1 parent 76610d9 commit ef03faf

17 files changed

Lines changed: 607 additions & 507 deletions

File tree

.github/workflows/statistics.yaml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,21 @@ on:
77
branches: [ main ]
88

99
jobs:
10-
spell_check:
10+
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: check out repo
13+
- name: Check Repository
1414
uses: actions/checkout@v4
15-
- name: spell check
15+
- name: Spell Check
1616
uses: rojopolis/spellcheck-github-actions@0.45.0
17-
with:
17+
with:
18+
task_name: English
1819
output_file: spellcheck-output.txt
20+
- name: Install Pipenv
21+
run: python -m pip install pipenv
22+
- name: Install Dependencies
23+
run: pipenv sync --system -d
24+
- name: Style Check
25+
run: black --check .
26+
- name: Run Tests
27+
run: pytest

.spellcheck_exceptions_dictionary.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ trinomial
9595
sentential
9696

9797
# technology
98+
pytest
9899
ary
99100
forall
100101
forallx
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
def central tendency:
2+
- formal: ???
3+
4+
- in words: ???
5+
6+
- plain english: ???
7+
8+
- intuition:
9+
given:
10+
6 plants with heights:
11+
4, 3, 1, 6, 1, 7
12+
then:
13+
How tall are your plants, given as one number?
14+
Ans: average of the heights | typical number | middle number | center number | frequent number
15+
i.e. The central tendency of the numbers.
16+
17+
- properties:
18+
- common central tendency measures (KhanAcademy):
19+
1. Arithmetic Mean = Sum of all numbers/Number of numbers.
20+
NB: Human constructed definition we've found useful(unlike the
21+
circumference of circle, π, etc which exist in the mathematical universe)
22+
23+
(4 + 3 + 1 + 6 + 1 + 7)/6 = 22/6 = 3*4/6 = 3*2/3 NB: In mixed number form
24+
25+
NB: Used frequently
26+
Key: If the total quantity was distributed evenly in the dataset,
27+
the Mean is the quantity that each "position(i.e. index 0,1,2,...n)" would have (KhanAcademy).
28+
29+
2. Median = Middle number in the ordered(ascending) version of the dataset.
30+
algorithm:
31+
If odd number count, take middle number
32+
Else even number count, take Arithmetic Mean of the two middle numbers
33+
34+
35+
1, 1, 3, 4, 6 ,7
36+
∴ Median = (3 + 4)/2 = 7/2 = 3*1/2
37+
38+
0, 7, 50, 10000, 100000
39+
∴ Median = 50
40+
41+
NB: Useful when some large number might skew the Arithmetic Mean
42+
43+
3. Mode = Most frequent number in the dataset.
44+
algorithm:
45+
count occurrences of each number
46+
find number with highest occurrence count
47+
if no single number has the highest frequency, then
48+
the dataset has no mode
49+
50+
1, 1, 3, 4, 6, 7
51+
∴ Mode = 1
52+
53+
1, 6, 3, 9, 8
54+
∴ Mode = None
55+
56+
- examples: ???
57+
58+
- use cases: ???
59+
60+
- proof: ???
61+
62+
References:
63+
- KhanAcademy. https://www.khanacademy.org/math/cc-sixth-grade-math/cc-6th-data-statistics/mean-and-median/v/statistics-intro-mean-median-and-mode.
64+
- KhanAcademy. https://www.khanacademy.org/math/cc-sixth-grade-math/cc-6th-data-statistics/mean-and-median/a/calculating-the-mean.

0_elementary/1_models.txt

Lines changed: 0 additions & 47 deletions
This file was deleted.

0_elementary/2_problems.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

Pipfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ name = "pypi"
66
[packages]
77
numpy = "*"
88
matplotlib = "*"
9+
graphviz = "*"
910

1011
[dev-packages]
1112
pyspelling = "*"
1213
ipykernel = "*"
14+
pytest = "*"
15+
black = "*"
1316

1417
[requires]
1518
python_version = "3.13"

0 commit comments

Comments
 (0)