Skip to content

Commit 22955f7

Browse files
authored
added 2 definitions
1 parent 87c4373 commit 22955f7

2 files changed

Lines changed: 93 additions & 0 deletions

File tree

D/med.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
layout: definition
3+
mathjax: true
4+
5+
author: "Joram Soch"
6+
affiliation: "BCCN Berlin"
7+
e_mail: "joram.soch@bccn-berlin.de"
8+
date: 2020-10-15 10:53:00
9+
10+
title: "Median"
11+
chapter: "General Theorems"
12+
section: "Probability theory"
13+
topic: "Measures of central tendency"
14+
definition: "Median"
15+
16+
sources:
17+
- authors: "Wikipedia"
18+
year: 2020
19+
title: "Median"
20+
in: "Wikipedia, the free encyclopedia"
21+
pages: "retrieved on 2020-10-15"
22+
url: "https://en.wikipedia.org/wiki/Median"
23+
24+
def_id: "D101"
25+
shortcut: "med"
26+
username: "JoramSoch"
27+
---
28+
29+
30+
**Definition:** The median of a sample or random variable is the value separating the higher half from the lower half of its values.
31+
32+
<br>
33+
1) Let $x = \left\lbrace x_1, \ldots, x_n \right\rbrace$ be a [sample](/D/samp) from a [random variable](/D/rvar) $X$. Then, the median of $x$ is
34+
35+
$$ \label{eq:med-samp}
36+
\mathrm{median}(x) = \left\{
37+
\begin{array}{cl}
38+
x_{(n+1)/2} \; , & \text{if} \; n \; \text{is odd} \\
39+
\frac{1}{2}(x_{n/2} + x_{n/2+1}) \; , & \text{if} \; n \; \text{is even} \; ,
40+
\end{array}
41+
\right.
42+
$$
43+
44+
i.e. the median is the "middle" number when all numbers are sorted from smallest to largest.
45+
46+
<br>
47+
2) Let $X$ be a continuous [random variable](/D/rvar) with [cumulative distribution function](/D/cdf) $F_X(x)$. Then, the median of $X$ is
48+
49+
$$ \label{eq:med-rvar}
50+
\mathrm{median}(X) = x, \quad \mathrm{s.t.} \quad F_X(x) = \frac{1}{2} \; ,
51+
$$
52+
53+
i.e. the median is the value at which the CDF is $1/2$.

D/mode.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
layout: definition
3+
mathjax: true
4+
5+
author: "Joram Soch"
6+
affiliation: "BCCN Berlin"
7+
e_mail: "joram.soch@bccn-berlin.de"
8+
date: 2020-10-15 11:10:00
9+
10+
title: "Mode"
11+
chapter: "General Theorems"
12+
section: "Probability theory"
13+
topic: "Measures of central tendency"
14+
definition: "Mode"
15+
16+
sources:
17+
- authors: "Wikipedia"
18+
year: 2020
19+
title: "Mode (statistics)"
20+
in: "Wikipedia, the free encyclopedia"
21+
pages: "retrieved on 2020-10-15"
22+
url: "https://en.wikipedia.org/wiki/Mode_(statistics)"
23+
24+
def_id: "D102"
25+
shortcut: "mode"
26+
username: "JoramSoch"
27+
---
28+
29+
30+
**Definition:** The mode of a sample or random variable is the value which occurs most often or with largest probability among all its values.
31+
32+
<br>
33+
1) Let $x = \left\lbrace x_1, \ldots, x_n \right\rbrace$ be a [sample](/D/samp) from a [random variable](/D/rvar) $X$. Then, the mode of $x$ is the value which occurs most often in the list $x_1, \ldots, x_n$.
34+
35+
<br>
36+
2) Let $X$ be a [random variable](/D/rvar) with [probability mass function](/D/pmf) or [probability density function](/D/pdf) $f_X(x)$. Then, the mode of $X$ is the the value which maximizes the PMF or PDF:
37+
38+
$$ \label{eq:mode-rvar}
39+
\mathrm{mode}(X) = \operatorname*{arg\,max}_x f_X(x) \; .
40+
$$

0 commit comments

Comments
 (0)