.. title: Engineering Probability Class 8 Mon 2021-02-22
.. slug: class08
.. date: 2021-02-22
.. tags: class
.. link: 
.. description: 
.. type: text
.. has_math: true

.. sectnum::
.. contents:: Table of contents::
..


Leon-Garcia chapter 2 ctd
-------------------------

2.6.4 p63 Geometric probability law
===================================

#. Geometric probability
   
   a. Repeat Bernoulli experiment until 1st success.
   #. Define outcome to be # trials until that happens.
   #. Define q=(1-p).
   #. :math:`p(m) = (1-p)^{m-1}p = q^{m-1}p`  (*p* has 2 different uses here).
   #. :math:`\sum_{m=1}^\infty p(m) =1`
   #. Probability that more than K trials are required = :math:`q^K`.

#. Example: probability that more than 10 tosses of a die are required to
   get a 6 = :math:`\left(\frac{5}{6}\right)^{10} = 0.16`

#. Example 2.43 p64: error control by retransmission.  A sent over a noisy
   channel is *checksummed* so the receiver can tell if it got mangled,
   and then ask for retransmission.  TCP/IP does this.

   *Aside:* This works better when the roundtrip time is reasonable.
   Using this when talking to Mars is challenging.

   
2.6.5 p64 Sequences, chains, of *dependent* experiments
=======================================================

#. Sequences, chains, of *dependent* experiments
   
   a. This is an important topic, but mostly beyond this course.
   #. In many areas, there are a sequence of observations, and the
      probability of each observation depends on what you observed before.
   #. It relates to **Markov chains**.
   #. Motivation: speech and language recognition, translation, compression
   #. E.g., in English text, the probability of a *u* is higher if the previous
      char was *q*.
   #. The probability of a *b* may be higher if the previous char was *u*
      (than if it was *x*), but is lower if the previous two chars are
      *qu*.
   #. Need to look at probabilities of sequences, char by char.
   #. Same idea in speech recognition: phonemes follow phonemes...
   #. Same in language understanding:  verb follows noun...

#. Example 2.44, p64.

#. Example 2.45, p66.


   
Probability in the real world - enrichment
------------------------------------------

`2020 U.S. Presidential Nomination Market <https://iemweb.biz.uiowa.edu/markets/nomination2020.html>`_


Review
------

#. From a deck of cards, I draw a card, look at it, put it back
   and reshuffle.  Then I do it again.  What's the probability that exactly one of
   the 2 cards is a heart?

#. From a deck of cards, I draw a card, look at it, put it back and reshuffle.  I keep repeating this.  What's the probability that the 2nd card is the 1st time I see hearts?

#. Text problem 2.62 page 88.

#. Problem 2.76.

#. Problem 2.126 page 95.
      

Wikipedia
---------

Wikipedia's articles on technical subjects can be excellent.   In fact, they often have more detail than you want.   Here are some that are relevant to this course.   Read at least the first few paragraphs.

#. https://en.wikipedia.org/wiki/Outcome_(probability)
#. https://en.wikipedia.org/wiki/Random_variable
#. https://en.wikipedia.org/wiki/Indicator_function
#. https://en.wikipedia.org/wiki/Gambler%27s_fallacy
#. https://en.wikipedia.org/wiki/Fat-tailed_distribution
#. https://en.wikipedia.org/wiki/St._Petersburg_paradox

   
Two types of testing errors
---------------------------

#. There's an event A, with probability P[A]=p.

#. There's a dependent event, perhaps a test or a transmission, B.

#. You know P[B|A] and P[B|A'].  
   
#. Wikipedia:

   a. https://en.wikipedia.org/wiki/Type_I_and_type_II_errors
   #. https://en.wikipedia.org/wiki/Sensitivity_and_specificity
   
#. Terminology:

   a. *Type I error*, *False negative*.
   #. *Type II error*, *false positive*.
   #. *Sensitivity*, *true positive proportion*.
   #. *Selectivity*, *true negative proportion*.    
      
   

   
	
Xkcd comic
----------

`Frequentists vs. Bayesians <https://xkcd.com/1132/>`_
	
