Skip to main content
Engineering LibreTexts

7.1: Contextual background resulting in histogram

  • Page ID
    122621
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)
    1. Types of probability
      1. Rudimentary version is percentage of occurrences of particular events relative to total possible events
        • Examples
          Exercise \(\PageIndex{auto}\)

          Probability of drawing 7 of spades

          Answer

          1 out of 52

          Exercise \(\PageIndex{2}\)

          Probability of drawing 7 of ANY suit

          Answer

          4 of 52; equivalently 1 of 13

          Exercise \(\PageIndex{3}\)

          Outcome for rolling of single die

          Answer

          1 of 6

          Exercise \(\PageIndex{4}\)

          Probability of rolling doubles on pair of dice

          Answer

          6 of 36 or equivalently 1 of 6

          Exercise \(\PageIndex{5}\)

          Likelihood of going to jail in game of Monopoly

          Answer

          (1 of 6)\(^3\) or 1 of 216

      2. Combination of sets of outcomes
        1. Union and intersection -- adding of new events that overlap \(\ldots\) but must eliminate repeat counts
        2. Conditional probability -- likelihood given prior event occurrence (i.e. quarantine following international travel)
          • Not applicable to independent random data
        3. Permutation - \(n\) different outcomes taken \(m\) at a time
          1. Use of factorial function ! \[ P^{n}_{m} = \frac{n!}{(n-m)!} \]
          2. Order of events matter in this scenario
        4. Combination - \(n\) different outcomes taken \(m\) independently ordered times
          1. Reduces number of possibilities \[ C^{n}_{m}= \frac{n!}{m!(n-m)!}\]
          2. Exercise \(\PageIndex{6}\)

            How many ways can one create a sandwich combination?

            • List of original options: 2 patties, 1 cheese, lettuce, tomato, special sauce, middle bread ...
            • Pairing options together: proteins, veggies, condiments, containment, other
            Answer

            Add texts here. Do not delete this text first.

    2. Representing statistical information
      1. Sample versus population
        1. Population is the whole/complete collection (i.e. Census 2020)
        2. Sample is subset of the selected elements of the population
        3. Creates different variables with unique identifiers
          Definition: True versus sample
          True Value Sample statistics (with inference of "true")
          \(x' =\) true mean of whole population \(\bar{x} =\) calculated mean from sample dataset
          \(\sigma^{2} =\) true variance \(S_{x}^{2} =\) sample variance
      2. Histogram representation
        1. Scatter of data counts as function of another variable
          1. Uniform bin widths standard for statistical analysis
          2. non-uniform bins show equal probability, but changing ranges
          3. number of bins are user specified for representation
        2. Uniform width histogram procedure
          1. Determine total range \(x_{range} = x_{max}-x_{min}\)
          2. Select \(k\) number of intervals
          3. Define interval width \(\Delta x = x_{range}/k\)
          4. count occurrences \(n_{j}\) of data in each \(\Delta x\)
          5. Verify sum of \(n_{j}\) equals \(N\) samples
          6. Plot \(n_{j}\) versus the midpoint of each \(\Delta x\) section
        3. Change which parts for uniform height? (leave for homework assignment)
      3. Frequency distribution
        1. Same as histogram but scale \(n_{j}/N\)
        2. Creates dimensionless term rather than integer count
        3. As \(N\rightarrow \infty\) and \(\Delta x \rightarrow 0), the discrete device changes to continuum of probability density function (pdf)
        4. Can use continuous form \(p(x)\) (probability as function of value or range) for further characterization
    3. Probability Density Function
      1. Distribution of values for a random variable \(x\)
      2. Probability that a specific value \(x^{*}\) occurs is \(p(x^{*})\)
        1. Positive value \(p(x) >0\) everywhere
        2. Sum of all probability is unity \[ \int_{-\infty}^{+\infty}p(x) dx = 1 \] indicating that area under the pdf must equal 1
      3. Relates to probability distribution function by integrating to limits
        1. Summing probability over a range \[ P\left[x_{0} \leq x \leq x^{*}\right] = \int_{x_{0}}^{x^{*}} p(x) dx \] Recall that \(x_{0}\) and \(x^{*}\) are specific fixed values while \(x\) is the variable of integration
        2. From plotting, the \(p(x)\) will always be positive, less than 1, but its slope will have positive and negative features
        3. Plots of \(P\left[x_{0} \leq x \leq x^{*}\right]\) always have positive slope but bounded by 0 and 1

    7.1: Contextual background resulting in histogram is shared under a CC BY-NC 4.0 license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?