Docsity

Probability - Introduction to Cryptography - Lecture Notes, Study notes of Cryptography and System Security

Toggle sidebar
bg1
Recommended Reading.
•
Cormen, Leiserson, Rivest, Stein.
Introduction to Algorithms
(2nd ed), Appendix C & Ch. 5.
•
Goldreich, 1.2.
1 Review of Probability
1.1 Probability spaces
A
probability space
is a nite or countable set
S
together with a function
Pr : S→[0,1]
such
that
Px∈SPr[x]=1
. In this course, the probability space will not always be specied explicitly.
Consider the following example:
•
Alice ips 100 fair coins
A∈ {0,1}100
.
•
Bob ips 100 fair coins
B∈ {0,1}100
.
•
Carol chooses with probability
3/4
Alice's coin tosses (
C=A
), with probability
1/4
Bob's
coin tosses (
C=B
).
•
Eve gets
E=A⊕B
(bitwise XOR).
Here, the underlying probability space is
S={0,1}100 × {0,1}100 × {a, b}
. For any triplet
(x, y, z)
,
Pr[(x, y, z)] =
The source of the randomness is all the coin tosses of the involved parties or the random choices
made.
An
event
is a subset of the probability space. The probability of an event
T
is dened to be
Pr [T]def
=Px∈TPr [x]
, but often can be computed more directly.
Example:
1.2 Random variables
Random variables
are functions, not necessarily real-valued, on the probability space. In our exam-
ple, we can consider the following random variables:
•A
, Alice's coin tosses (which is just the rst coordinate for an element of the probability space)
•ZA
, the number of zeroes obtained by Alice
1
pf3

Partial preview of the text

Download Probability - Introduction to Cryptography - Lecture Notes and more Study notes Cryptography and System Security in PDF only on Docsity!

Recommended Reading.

  • Cormen, Leiserson, Rivest, Stein. Introduction to Algorithms (2nd ed), Appendix C & Ch. 5.
  • Goldreich, Ÿ1.2.

1 Review of Probability

1.1 Probability spaces

A probability space is a nite or countable set S together with a function Pr : S → [0, 1] such that

x∈S Pr[x] = 1. In this course, the probability space will not always be specied explicitly. Consider the following example:

  • Alice ips 100 fair coins A ∈ { 0 , 1 }^100.
  • Bob ips 100 fair coins B ∈ { 0 , 1 }^100.
  • Carol chooses with probability 3 / 4 Alice's coin tosses (C = A), with probability 1 / 4 Bob's coin tosses (C = B).
  • Eve gets E = A ⊕ B (bitwise XOR).

Here, the underlying probability space is S = { 0 , 1 }^100 × { 0 , 1 }^100 × {a, b}. For any triplet (x, y, z),

Pr[(x, y, z)] =

The source of the randomness is all the coin tosses of the involved parties or the random choices made. An event is a subset of the probability space. The probability of an event T is dened to be

Pr [T ] def =

x∈T Pr [x], but often can be computed more directly. Example:

1.2 Random variables

Random variables are functions, not necessarily real-valued, on the probability space. In our exam- ple, we can consider the following random variables:

  • A, Alice's coin tosses (which is just the rst coordinate for an element of the probability space)
  • ZA, the number of zeroes obtained by Alice
  • ZA + ZB , the number of zeroes obtained by Alice and Bob together

The random variables X and Y are said to be independent if :

∀x, y, Pr[X = x & Y = y] = Pr[X = x] · Pr[Y = y].

Examples:

Random variables X 1 ,... , Xk are independent if

∀x 1 ,... , xk, Pr[X 1 = x 1 &X 2 = x 2 & · · · & Xk = xk] = Pr[X 1 = x 1 ] · Pr[X 2 = x 2 ] · · · Pr[Xk = xk].

Not the same as pairwise independence! Example:

1.3 Expectation of a random variable

The expectation of a real-valued random variable X is dened as: (^) E[X] =

x Pr[X^ =^ x]^ ·^ x. We have the property of linearity: E[X^ +^ Y^ ] = E[X] + E[Y^ ] E[cX] =^ c^ ·^ E[X]^ for any constant c

Note that (^) E[XY ] = E[X] · (^) E[Y ] if X and Y are independent, but not in general. Examples:

  • (^) E[ZA]
  • (^) E[Z A^2 ]

1.4 Markov's inequality

If X is a non-negative real-valued random variable, we have:

Pr[X ≥ t] ≤ E[

X]

t

If X has a small expectation, we have a bound on how often the random variable can get large. Example: