Probability and Matrix Operations Study Guide

Introduction to Probability

  • Definition of Probability: Probability is a measure of the likelihood of a random phenomenon or chance behavior. It describes the long-term proportion with which a certain outcome will occur in situations with short-term uncertainty.
  • Example Simulation: Flipping a coin 100100 times.     * Process: Plot the proportion of heads against the number of flips.     * Repeat the simulation to observe behavior.
  • Long-term Predictability: Probability deals with experiments that yield random short-term results or outcomes, yet reveal long-term predictability. The probability of an outcome is defined as the long-term proportion with which that certain outcome is observed.
  • The Law of Large Numbers: As the number of repetitions of a probability experiment increases, the proportion with which a certain outcome is observed gets closer to the probability of the outcome.
  • Acknowledgements: Materials adapted from www.math.kent.edu/~honli/.../chap05_01.ppt and www.vipbg.vcu.edu/.../Matrix_Algebra.ppt.

Probability Experiments and Sample Spaces

  • Experiment: In probability, an experiment is any process that can be repeated in which the results are uncertain.
  • Simple Event: A simple event is any single outcome from a probability experiment. Each simple event is denoted as eie_i.
  • Sample Space (SS): The sample space of a probability experiment is the collection of all possible simple events. It is essentially a list of all possible outcomes of the experiment.
  • Event (EE): An event is any collection of outcomes from a probability experiment.     * An event may consist of one or more simple events.     * Events are denoted using capital letters, such as EE.     * Notation: The probability of an event is denoted as P(E)P(E), which represents the likelihood of that event occurring.

Properties of Probabilities

  • The Probability Scale: The probability of any event EE, P(E)P(E), must be between 00 and 11 inclusive (0 < P(E) < 1).
  • Impossible Events: If an event is impossible, the probability of the event is 00.
  • Certain Events: If an event is a certainty, the probability of the event is 11.
  • Sum of Sample Space: If a sample space S=e1,e2,,enS = {e_1, e_2, \dots, e_n}, then the sum of the probabilities of all simple events must equal one: P(e1)+P(e2)++P(en)=1P(e_1) + P(e_2) + \dots + P(e_n) = 1.
  • Unusual Event: An unusual event is defined as an event that has a low probability of occurring.
  • Equally Likely Outcomes: An experiment has equally likely outcomes when each simple event has the exact same probability of occurring.

Computing Probability Using the Empirical Method

  • Empirical Probability Formula: The probability of an event EE is approximately calculated by the following ratio:     * P(E)number of times event E is observednumber of repetitions of the experimentP(E) \approx \frac{\text{number of times event E is observed}}{\text{number of repetitions of the experiment}}

The Addition Rule and Mutually Exclusive Events

  • Event Combinations:     * E and F: The event consisting of simple events that belong to both EE and FF.     * E or F: The event consisting of simple events that belong to either EE or FF or both.
  • Mutually Exclusive (Disjoint) Events: Events are called mutually exclusive or disjoint if the occurrence of one event precludes the occurrence of the other.     * Example 1: Two fair coins are tossed. Possible outcomes: HH,TH,HT,TT{HH, TH, HT, TT}. Define E=THE = {TH} and F=TTF = {TT}. These are disjoint.     * Example 2: Define E=TT,THE = {TT, TH} and F=TT,HHF = {TT, HH}. These are not disjoint because they share the outcome TTTT.     * Disjoint Definition: If events EE and FF have no simple events in common or cannot occur simultaneously, they are disjoint.
  • General Addition Rule: For any two events EE and FF:     * P(E or F)=P(E)+P(F)P(E and F)P(E \text{ or } F) = P(E) + P(F) - P(E \text{ and } F)
  • Addition Rule for Mutually Exclusive Events: If EE and FF are mutually exclusive:     * P(E or F)=P(E)+P(F)P(E \text{ or } F) = P(E) + P(F)     * Extension: If E,F,G,E, F, G, \dots are mutually exclusive, then P(E or F or G or )=P(E)+P(F)+P(G)+P(E \text{ or } F \text{ or } G \text{ or } \dots) = P(E) + P(F) + P(G) + \dots
  • Visual Representation: In a Venn diagram where the area of the entire region P(S)=1P(S) = 1, the overlap represents E and FE \text{ and } F.

Complements and Complement Rule

  • Complement of an Event: Let SS denote the sample space and EE denote an event. The complement of EE, denoted as Eˉ\bar{E}, consists of all simple events in the sample space SS that are not simple events in event EE.
  • Complement Rule: If EE represents any event and Eˉ\bar{E} represents its complement, then:     * P(E)=1P(Eˉ)P(E) = 1 - P(\bar{E})

Conditional Probability and Independence

  • Conditional Probability: The notation P(FE)P(F | E) is read as "the probability of event FF given event EE". It describes the probability of an event FF occurring given that event EE has already occurred.
  • Independence: Two events EE and FF are independent if the occurrence of event EE in a probability experiment does not affect the probability of event FF.
  • Dependence: Two events are dependent if the occurrence of event EE affects the probability of event FF.
  • Definition of Independent Events: Events EE and FF are independent if and only if:     * P(FE)=P(F)P(F | E) = P(F) OR P(EF)=P(E)P(E | F) = P(E)

The Multiplication Rule

  • General Multiplication Rule: The probability that two events EE and FF both occur is:     * P(E and F)=P(E)×P(FE)P(E \text{ and } F) = P(E) \times P(F | E)     * In words: The probability of EE and FF is the probability of event EE occurring times the probability of event FF occurring given that event EE has occurred.
  • Multiplication Rule for Independent Events: If EE and FF are independent:     * P(E and F)=P(E)×P(F)P(E \text{ and } F) = P(E) \times P(F)
  • Multiplication Rule for nn Independent Events: If events E,F,G,E, F, G, \dots are independent, then:     * P(E and F and G and )=P(E)×P(F)×P(G)×P(E \text{ and } F \text{ and } G \text{ and } \dots) = P(E) \times P(F) \times P(G) \times \dots

Matrix Operations: Addition and Subtraction

  • Matrix Addition Example 1:     * (1amp;2 3amp;4)+(5amp;6 7amp;8)=(6amp;8 10amp;12)\begin{pmatrix} 1 &amp; 2 \ 3 &amp; 4 \end{pmatrix} + \begin{pmatrix} 5 &amp; 6 \ 7 &amp; 8 \end{pmatrix} = \begin{pmatrix} 6 &amp; 8 \ 10 &amp; 12 \end{pmatrix}
  • Matrix Addition Example 2:     * A=(1amp;4 2amp;3)A = \begin{pmatrix} 1 &amp; 4 \ 2 &amp; 3 \end{pmatrix} and B=(5amp;8 6amp;7)B = \begin{pmatrix} 5 &amp; 8 \ 6 &amp; 7 \end{pmatrix}     * A+B=C(6amp;12 8amp;10)A + B = C \rightarrow \begin{pmatrix} 6 &amp; 12 \ 8 &amp; 10 \end{pmatrix}
  • Addition Conformability: To add two matrices AA and BB:     * The number of rows in AA must equal the number of rows in BB.     * The number of columns in AA must equal the number of columns in BB.
  • Matrix Subtraction Example 1:     * (5amp;6 7amp;8)(1amp;2 3amp;4)=(4amp;4 4amp;4)\begin{pmatrix} 5 &amp; 6 \ 7 &amp; 8 \end{pmatrix} - \begin{pmatrix} 1 &amp; 2 \ 3 &amp; 4 \end{pmatrix} = \begin{pmatrix} 4 &amp; 4 \ 4 &amp; 4 \end{pmatrix}     * Calculated as BA=CB - A = C.
  • Matrix Subtraction Example 2:     * (1amp;4 2amp;3)(5amp;8 6amp;7)=(4amp;4 4amp;4)\begin{pmatrix} 1 &amp; 4 \ 2 &amp; 3 \end{pmatrix} - \begin{pmatrix} 5 &amp; 8 \ 6 &amp; 7 \end{pmatrix} = \begin{pmatrix} 4 &amp; 4 \ 4 &amp; 4 \end{pmatrix} (Note: The visual indicates subtraction resulting in absolute values or specific element-wise differences as labeled in the slide).
  • Subtraction Conformability: Rules are identical to addition:     * Number of rows in AA = number of rows in BB.     * Number of columns in AA = number of columns in BB.

Matrix Operations: Multiplication

  • Multiplication Conformability: To multiply two matrices AA and BB (Regular Multiplication):     * The number of columns in AA must equal the number of rows in BB.     * Dimensions: If AA is (m×n)(m \times n) and BB is (n×p)(n \times p), the resulting matrix is (m×p)(m \times p).
  • General Multiplication Formula:     * Cij=k=1nAik×BkjC_{ij} = \sum_{k=1}^n A_{ik} \times B_{kj}
  • Step-by-Step Multiplication Example:     * Matrices: A=(5amp;6 7amp;8)A = \begin{pmatrix} 5 &amp; 6 \ 7 &amp; 8 \end{pmatrix} and B=(1amp;2 3amp;4)B = \begin{pmatrix} 1 &amp; 2 \ 3 &amp; 4 \end{pmatrix}.     * Step 1: Calculate C11C_{11};         * C11=(A11×B11)+(A12×B21)C_{11} = (A_{11} \times B_{11}) + (A_{12} \times B_{21})         * C11=(5×1)+(6×3)=5+18=23C_{11} = (5 \times 1) + (6 \times 3) = 5 + 18 = 23     * Step 2: Calculate C12C_{12};         * C12=(A11×B12)+(A12×B22)C_{12} = (A_{11} \times B_{12}) + (A_{12} \times B_{22})         * C12=(5×2)+(6×4)=10+24=34C_{12} = (5 \times 2) + (6 \times 4) = 10 + 24 = 34     * Step 3: Calculate C21C_{21};         * C21=(A21×B11)+(A22×B21)C_{21} = (A_{21} \times B_{11}) + (A_{22} \times B_{21})         * C21=(7×1)+(8×3)=7+24=31C_{21} = (7 \times 1) + (8 \times 3) = 7 + 24 = 31     * Step 4: Calculate C22C_{22};         * C22=(A21×B12)+(A22×B22)C_{22} = (A_{21} \times B_{12}) + (A_{22} \times B_{22})         * C22=(7×2)+(8×4)=14+32=46C_{22} = (7 \times 2) + (8 \times 4) = 14 + 32 = 46     * Final Resulting Matrix CC:         * C=(23amp;34 31amp;46)C = \begin{pmatrix} 23 &amp; 34 \ 31 &amp; 46 \end{pmatrix}