Big O Magnitude Notation: Difference between revisions

From Rest of What I Know
Created page with "Like Big O Unit Notation, Big O Magnitude Notation refers to a notation used to express orders of magnitude. == Formal Definition for Functions == A function <math>f(n) = O(10^k)</math> if <math>\exists n_0 \in \mathbb{R+}</math> such that <math>\forall n \geq n_0 : 10^k \leq f(n) < 10^{k+1}</math> == Formal Definition for Random Variables == Colloquially, one can say a random variable <math>X = O(10^k)</math> if its probability distribution function has meas..."
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
== Formal Definition for Functions ==
== Formal Definition for Functions ==


A function <math>f(n) = O(10^k)</math> if <math>\exists n_0 \in \mathbb{R+}</math> such that <math>\forall n \geq n_0 : 10^k \leq f(n) < 10^{k+1}</math>
A function <math>f(n)=O(10^k)</math> for some fixed <math>k \in \mathbb{Z+}</math> if <math>\exists n_0 \in \mathbb{R+}</math> such that <math>\forall n \geq n_0 : 10^k \leq f(n) < 10^{k+1}</math>


== Formal Definition for Random Variables ==
== Formal Definition for Random Variables ==


Colloquially, one can say a random variable <math>X = O(10^k)</math> if its probability distribution function has measure zero outside of <math>[10^k, 10^{k+1}]</math>
A random variable <math>X = O(10^k)</math> if <math>P[10^k \leq X < 10^{k+1}] = 1</math>.
 
[[Category:Concepts]]

Latest revision as of 00:24, 29 August 2024

Like Big O Unit Notation, Big O Magnitude Notation refers to a notation used to express orders of magnitude.

Formal Definition for Functions[edit]

A function for some fixed if such that

Formal Definition for Random Variables[edit]

A random variable if .