Posts

15) Vector Norms

Vector Norms Vector Norms: Measuring Vector Magnitude 1. What is a Vector Norm? A vector norm is a function that assigns a positive length to a vector, measuring its size. Real-World Meaning Physics: The norm of velocity gives the speed of an object. Machine Learning: Norms measure distances between data points. Optimization: Used in gradient descent to control updates. 2. Types of Vector Norms (a) Euclidean Norm (L2 Norm) Measures straight-line distance. ||v||₂ = sqrt(v₁² + v₂² + ... + vₙ²) Real-World Use: GPS Navigation: Finding shortest distance. Physics: Computing magnitudes of forces. (b) Manhattan Norm (L1 Norm) Sum of absolute values of vector components. ||v||₁ = |v₁| + |v₂| + ... + |vₙ| Real-Worl...

14) Cramer's Rule

Cramer's Rule - Solving Systems of Equations Cramer's Rule - Solving Systems of Linear Equations 1. Understanding Cramer's Rule Cramer’s Rule is used to solve systems of n linear equations with n unknowns using determinants. It applies only when the determinant of the coefficient matrix is nonzero. 2. Step-by-Step Algorithm Step 1: Compute det(A) Find the determinant of matrix A . If det(A) = 0 , the system has no unique solution. Step 2: Construct Matrices A_1, A_2, ... For each variable, replace the corresponding column of A with the right-hand side values ( B ). Step 3: Compute Determinants Find det(A_1), det(A_2), ... for each modified matrix. Step 4: Compute Solutions Use the formula: x_i = det(A_i) / det(A) 3. Real-World Applications Com...

13) Determinants and their applications

Determinants & Their Applications Determinants & Their Applications 1. What is a Determinant? A determinant is a scalar value computed from a square matrix. It encodes important information about the matrix and the linear transformation it represents. Essentially, the determinant tells us: Volume Scaling Factor: How much the transformation scales area (2D), volume (3D), or higher-dimensional “volume.” Invertibility: A matrix is invertible if and only if its determinant is non-zero. Real-World Meaning: When you apply a transformation like rotating, scaling, or shearing to a shape, the determinant tells you how the area or volume changes. For example, a determinant of 2 means the area is doubled. In physical systems, a non-zero determinant ensures that a system of equations (e.g., forces in equilibrium) has a unique solution. 2. How to Compute...

12) Markov Chain

Markov Chains Explained Markov Chains Explained 1. What is a Markov Chain? A Markov Chain is a mathematical system that undergoes transitions from one state to another based on certain probabilities. Its key property, known as the Markov Property , is that the future state depends only on the current state, not on the sequence of events that preceded it. Real-World Examples: Weather Prediction: Tomorrow’s weather depends only on today’s, not on the entire past week. Stock Market Trends: A stock's price tomorrow depends on today's market condition. Google PageRank: The probability of moving from one webpage to another depends on the current browsing behavior. 2. Components of a Markov Chain A Markov Chain consists of the following key components: States: The possible conditions or positions of the sy...

11) Principal Component Analysis

Principal Component Analysis (PCA) Principal Component Analysis (PCA) 1. Why Do We Need PCA? Problem: High-dimensional data is hard to visualize and process. Some dimensions contain redundant or irrelevant information. Real-World Example: In face recognition, a raw image has thousands of pixels, but PCA helps extract the most informative patterns. 2. What PCA Does PCA transforms data into a new coordinate system where the first principal component captures the most variance. Real-World Example: In stock market analysis, PCA finds underlying trends affecting multiple stocks. 3. Steps of PCA Step 1: Standardize the Data Formula: X_scaled = (X - μ) / σ Example: Standardizing height and weight ensures fair comparison. Step 2...

10) Single Value Decomposition

Singular Value Decomposition (SVD) Singular Value Decomposition (SVD) 1. What is SVD? Singular Value Decomposition (SVD) is a matrix factorization technique that breaks down a matrix into three special matrices: A = U Σ Vᵀ U : Orthogonal matrix (left singular vectors) Σ : Diagonal matrix (singular values) Vᵀ : Orthogonal matrix (right singular vectors) Real-World Meaning: SVD extracts important features from data and is widely used in machine learning, image processing, and recommendation systems. 2. Structure of SVD Components If A is an (m × n) matrix: U (m × m): Represents variance in row space. Σ (m × n): Contains singular values (importance of components). Vᵀ (n × n): Represents variance in column space. Real-World Meaning: Like breaking down an im...

9) Diagonalization

Diagonalization Explained Diagonalization: Breaking Matrices into Simpler Forms 1. What is Diagonalization? Diagonalization is the process of converting a square matrix A into a diagonal matrix D using a transformation matrix P such that: A = P D P -1 2. Why is Diagonalization Useful? Simplifies Matrix Operations: Makes computing powers of A easier. Speeds Up Computations: Important in physics, AI, and finance. Uncovers Hidden Structures: Helps in dimensionality reduction. 3. Steps to Diagonalize a Matrix Find Eigenvalues: Solve det(A - λI) = 0. Find Eigenvectors: Solve (A - λI)x = 0. Form Matrices P and D: P contains eigenvectors, D contains eigenvalues. 4. Conditions for Diagonalizability A matrix is diagonalizable if it has n linearly independent eigenvectors. If eigenvectors are dependent, the matrix is not diagonalizable. ...

8) Eigenvalues and Eigenvectors

Eigenvalues and Eigenvectors Eigenvalues and Eigenvectors 1. What are Eigenvalues and Eigenvectors? When a linear transformation is applied to a vector, some vectors only scale without changing direction. These special vectors are called eigenvectors , and the scaling factor is called the eigenvalue . Mathematical Definition A v = λ v Where A is a square matrix, v is an eigenvector, and λ is the eigenvalue. Real-World Meaning Physics: Eigenvectors represent stable states (e.g., vibration modes in mechanics). Machine Learning: PCA finds important patterns using eigenvectors. Computer Graphics: Used in transformations like shearing and rotations. 2. How to Compute Eigenvalues and Eigenvectors To find the eigenvalues of a matrix A , solve the characteristic equation: det(A - λI) = 0 Steps: Compute A - λI , where I is the identity matrix. Solve det(A - λI) = 0 to find eigenvalues λ . For each λ , solve (A - λ...

7) Transformation Over Time

Transformations Over Time Transformations Over Time 1. What Does “Over Time” Mean? When we apply a transformation repeatedly or continuously over time, the result is a dynamic system . The transformation evolves based on time ( t ) or steps ( n ). Example: Rotating a shape frame by frame in an animation. Example: A car moving along a curved path using translations and rotations. 2. Linear Transformations Over Time A linear transformation over time follows the equation: v t+1 = A v t where: v t is the vector at time t . A is the transformation matrix. v t+1 is the transformed vector at t+1 . Example: Scaling Over Time A = [ 2 0 ] [ 0 2 ] Applying it repeatedly leads to exponential growth : v1 = A v0, v2 = A v1, v3 = A v2 3. Continuous Transformations (Differential Equations) Some transformations happen smoothly over time and are described by differential equations : d v / dt = ...

6) Transformation Types

Common Transformation Types and Their Formulas Common Transformation Types and Their Formulas 1. Scaling Transformation Scaling changes the size of an object by multiplying each coordinate by a scale factor. In 2D, a scaling transformation can be represented by the following matrix: S = [ [sx, 0], [0, sy] ] Where sx and sy are the scaling factors for the x and y axes, respectively. Real-World Meaning: Scaling is used in image resizing, zooming in/out on maps, or adjusting the size of objects in computer graphics. Algorithm Steps: Multiply the x-coordinate by sx . Multiply the y-coordinate by sy . Reconstruct the vector with the new coordinates. 2. Rotation Transformation Rotation turns an object around a fixed point (usually the origin) by a given angle θ . In 2D, the rotation matrix is: R(θ) = [ [cos(...

5) Linear Transformations

Linear Transformations Linear Transformations 1. What is a Linear Transformation? A linear transformation is a function that maps vectors from one vector space to another while preserving vector addition and scalar multiplication. Real-World Meaning: Image Processing: Transforming an image (scaling, rotating, shearing). Computer Graphics: Converting 3D objects into 2D projections. Physics: Changing reference frames in mechanics or relativity. 2. Properties of Linear Transformations A function T: V \to W is a linear transformation if it satisfies: Additivity: T(u + v) = T(u) + T(v) Homogeneity: T(c v) = c T(v) Real-World Meaning: Resizing an image: A transformation that doubles the size of an image maintains proportionality. Rotating a figure: The shape stays the sa...

4) Vector Spaces

Vector Spaces with Real-World Context Vector Spaces with Real-World Context 1. Definition of a Vector Space A vector space is a set of vectors that can be added together and multiplied by scalars, following specific rules (axioms). These properties allow vectors to be manipulated in a consistent way. Real-World Example: Geometric Space: Any position or direction in a 2D or 3D world can be represented as a vector. Function Spaces: The set of all polynomials with real coefficients forms a vector space. 2. Properties of a Vector Space (Axioms) Addition Properties: u + v = v + u (Commutativity) (u + v) + w = u + (v + w) (Associativity) v + 0 = v (Zero Vector Exists) v + (-v) = 0 (Additive Inverse Exists) Scalar Multiplication Properties: c (d v) = (cd) v (Associativity of Scalar Multiplication) c (u + v) = c u + c v (Distributivity of Scalar over Vector Add...

3) Fundamentals of Vectors

Fundamentals of Vectors Fundamentals of Vectors 1. Definition of a Vector A vector is a mathematical object that has both magnitude (size/length) and direction . They allow us to describe relationships and movements in ways scalars cannot. Real-World Examples: Velocity: Speed with direction (e.g., 60 km/h east). Force: A push or pull applied in a direction. Electric Fields: Represented as vectors at every point in space. 2. Notation of Vectors Vectors can be represented in different forms: Column Form: \mathbf{v} = \begin{bmatrix} v_1 \\ v_2 \end{bmatrix} Unit Vector Notation: \mathbf{v} = v_1 \mathbf{i} + v_2 \mathbf{j} + v_3 \mathbf{k} Graphical Representation: Drawn as an arrow in a coordinate plane. 3. Types of Vectors ...

2) Prerequisites for understanding vectors

Prerequisites for Understanding Vectors (with Real-World Meaning) Prerequisites for Understanding Vectors 1. Numbers and Arithmetic Natural Numbers (ℕ): Counting numbers (1, 2, 3, ...). Real-World Meaning: Used in everyday counting—like the number of books on a shelf or apples in a basket. Integers (ℤ): Includes negative numbers (-2, -1, 0, 1, 2, ...). Real-World Meaning: Represent situations like temperatures (below zero), financial debts, or elevations above and below sea level. Rational Numbers (ℚ): Fractions and decimals. Real-World Meaning: Used in measurements and everyday situations like recipes or sharing a pizza equally. Real Numbers (ℝ): Continuous values including π and √2. Real-World Meaning:...

1) Introduction to Vectors

Introduction to Vectors (with Real-World Meaning) Introduction to Vectors What is a Vector? A vector is a mathematical object that represents both magnitude and direction . Unlike scalars , which only describe size (e.g., temperature, mass, speed), vectors describe quantities that involve movement, force, or multi-dimensional data . Real-World Meaning: In physics, when you push an object, the force applied has both strength (magnitude) and direction. In navigation, your movement is defined by how far and in which direction you go. Robots use vectors to determine precise movements, and in data science, vectors combine features like height, weight, and age into a single data point. Vector Spaces & Their Importance A vector space is a collection of vectors that follow specific rules for addition and scalar multiplication. These spaces allow for the representation and manipulation of...