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..."
 
Added page description via AutoDescriptor bot
 
(6 intermediate revisions by one other 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:\mathbb{R} \to \mathbb{R}</math> is considered to be <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>.
 
 
{{#seo:|description=Explains the formal definition of Big O Magnitude Notation, a notation used to express orders of magnitude for functions and random variables.}}
 
[[Category:Concepts]]

Latest revision as of 07:45, 30 August 2025

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 f: is considered to be f(n)=O(10k) for some fixed k+ if n0+ such that nn0:10kf(n)<10k+1

Formal Definition for Random Variables[edit]

A random variable X=O(10k) if P[10kX<10k+1]=1.