Probability


The probability of an event is its likelihood to occur, expressed as a real number from \(0\) (impossibility) to \(1\) (absolute certainty). Counting techniques can be applied to calculate the probability of a random event. A probability distribution associates outcomes with probabilities.

Discrete probability is the probability of an event in a sample space that is either finite or countably infinite. For a set to be countably infinite, a bijection must exist between it and \(\mathbb{Z}\). Otherwise, it's uncountably infinite.

The set of all binary strings, \(B^*\), and the set of all rational numbers, \(\mathbb{Q}\), are examples of countably infinite sets.

The sample space of throwing a dart at a target, where the outcome is the exact position of the dart on the target as an ordered pair of two real numbers, \(\mathbb{R} \times \mathbb{R} = \mathbb{R}^2\), is an example of an uncountably infinite set. If the ordered pairs consisted of integers, the sample space would have been \(\mathbb{Z} \times \mathbb{Z} = \mathbb{Z}^2\), a countably infinite set.

Logic & Proofs
IntegerRational numberInequalityReal numberTheoremProofStatementProof by exhaustionUniversal generalizationCounterexampleExistence proofExistential instantiationAxiomLogicTruthPropositionCompound propositionLogical operationLogical equivalenceTautologyContradictionLogic lawPredicateDomainQuantifierArgumentRule of inferenceLogical proofDirect proofProof by contrapositiveIrrational numberProof by contradictionProof by casesSummationDisjunctive normal form
Set Theory
SetElementEmpty setUniversal setSubsetPower setCartesian productStringBinary stringEmpty stringSet operationSet identitySet proof
Functions
FunctionFloor functionCeiling functionInverse function
Algorithms
AlgorithmPseudocodeCommandAsymptotic notationTime complexityAtomic operationBrute-force algorithm
Relations
RelationReflexive relationSymmetric relationTransitive relationRelation compositionEquivalence relationEquivalence class
Number Theory
Integer divisionLinear combinationDivision algorithmModular arithmeticPrime factorizationGreatest common divisorLeast common multiplePrimality testFactoring algorithmEuclid's theoremPrime number theoremEuclidean algorithm
Induction
Proof by inductionFibonacci sequenceProof by strong inductionWell-ordering principleSequenceFactorialRecursive definition
Combinatorics
Rule of productRule of sumBijection rulePermutationCombinationComplement ruleExperimentOutcomeSample spaceEventProbabilityProbability distributionUniform distributionMultisetSixfold wayInclusion-exclusion principlePigeonhole principle
Graph Theory
GraphWalkSubgraphRegular graphComplete graphEmpty graphCycle graphHypercube graphBipartite graphComponentEulerian circuitEulerian trailHamiltonian cycleHamiltonian pathTreeHuffman treeSubstringForestPath graphStarSpanning treeWeighted graphMinimum spanning treeGreedy algorithmPrim's algorithm
Recursion
RecursionRecursive algorithmCorrectness proofDivide-and-conquer algorithmSorting algorithmMerge sort