Docsity

Notes on Probability for Computer Scientist | CSE 2400, Study notes of Statistics

Partial preview of the text

Download Notes on Probability for Computer Scientist | CSE 2400 and more Study notes Statistics in PDF only on Docsity!

Applied Statistics:^ Probability

Probability for Computer Scientists This material is provided for the educational useof students in CSE2400 at FIT. No further useor reproduction is permitted.^ Copyright G.A.Marin, 2008,

All rights reserved.

Applied Statistics:^ Probability

Motivation: Here are some things I’ve done with prob/stat in my career: ˆ^ Helped Texaco analyze seismic data to find new oilreserves. ˆ^ Helped Texaco analyze the bidding process foroffshore oil leases. ˆ^ Helped US Navy search for submarines anddevelop ASW tactics. ˆ^ Helped US Navy evaluate capabilities of futureforces. ˆ^ Helped IBM analyze performance of computernetworks in health, airline reservation, banking,and other industries. ˆ^ Evaluated new networking technologies such asIBM’s Token Ring, ATM, Frame Relay… ˆ^ Analyzed meteor burst communications for USgovernment (and weather and earthquakes...)

Applied Statistics:^ Probability

Suggestions on how to study ˆ^ Do NOT bring a computer to class.

It distracts you. ˆ^ Watch, listen and take notes the old fashioned way (penciland paper).^

For example, write: slide 7 geom series??Writing notes/questions actually helps you pay attention. ˆ^ As soon after class as possible review the slides covered inclass and your class notes.

Do not go to the “next” slide until you understand everything on the current slide.^ ^ Can’t understand something? Ask next class period or come to myoffice hours. In the words of Jerry McGuire: “Help

me^ to help^ you .”

^ Answer all points you raised in your notes. Look things up on the web. ˆ Read the material in the text that corresponds to the slidescovered.^ The syllabus gives you a good indication of where to look. ˆ Work a few homework problems

each night (when homework is assigned).^ ^ Can’t work one or two of these problems? Come to my officehours. “Help

me^ to help^ you .”  It is much, much worse to come two days before 15 problemsare due and say “I can’t do any of these.”

I will help you with some of the work, but it’s like trying to learn a musicalinstrument just by watching me play it.)

Applied Statistics:^ Probability

Introduction to Mathcad ˆ^ Mathcad is computational software by Mathsoft Engineering andEducation, Inc. ˆ^ It includes a computational engine, a word processor, and graphingtools. ˆ^ You enter equations “almost” as you would write them on paper.They evaluate “instantly.” ˆ^ You MUST use Mathcad for all homework in this class. Send yourmathcad worksheet to

[email protected]

BEFORE class time on the due date. “I could not get a Mathcad terminal” is NO EXCUSE.^ ^ Name the worksheet HomeworknFirstnameLastname.xmcd^ ^ The letter n represents the number of the assignment.^ ^ The “type” .xmcd is assigned automatically.^ ^ If you do not follow the instructions, you will receive a zero for thehomework assignment. ˆ Mathcad is available (at no charge) in Olin EC 272. ˆ Tutorial and help are included with the software; resources arealso available at mathcad.com. ˆ Mathcad OVERVIEW is next. ˆ Note: Homework 1 is on the web site.

Applied Statistics:^ Probability

Review:

Gauss Sum

When Carl Freidrich Gauss, 1777 – 1855, was in the 3

rd^ grade he was asked

to compute the sum 1+2+3+…+100. He quickly obtained the followingformula:^ Young Gauss reasoned that if he wrote two of the desired sums as follows:^ S=1^ +^2 +^

3 +^ …^ +^99

+^100 S=100+ 99 +^ 98 + …

+^1 +^1

then clearly 2S =^

and S =

100101 100(101)=∑^1^ i = In general,

100(101)^ 5, 050.=^2 ( )

n^1 n n +. k =∑^21 k^ =

Applied Statistics:^ Probability

Definition of Infinite Series Sum

1

1 i= Begin with the series

and define the partial sums

, for^

1, 2,....

The series^ is said to converge to

if lim^. Example: The geometric series

has the partial sums

n i^

n^ i i^

i nn i n S^ a^

S^ a^ n S^

s^ S^ s p^

S ∞ =^

= =^ →∞∞

=^ = = ∑^

∑ ∑^

1 1 2

, for^ 1, 2,....^1 1- By division we know that

1

...^. 1

1-

By definition the sum of the infinite geometric series is lim

lim^.^1 1 If^ 1, then the above limit is

.^1

n^ i i n

n n p^ n n nn n p^ p^ p^

p^ S p

pS p

p^

p

=

=^ = + →∞ →∞ =^ +^ +^ +^ +^

= −

=^ −

<^

−

∑

Applied Statistics:^ Probability

Try these

i 101 ⎛ ⎞( ) a ∑⎜ ⎟ 2 ⎝ ⎠ 0 i = i 101 ⎛ ⎞( ) b ∑⎜ ⎟ 2 ⎝ ⎠ 2 i = i ∞ 1 ⎛ ⎞( ) c ∑⎜ ⎟ 2 ⎝ ⎠ 0 i = i ∞ 1 ⎛ ⎞( ) d ∑⎜ ⎟ 2 ⎝ ⎠ 5 i =

Applied Statistics:^ Probability

Power SeriesDefinition: A power series is a function of a variable (say^ (^ )^0

) and has the form

( )^

, where the^ are constants and

is also a constant. In this form the series is said to be "centered"

i i i i

z

P z^ c^ z^ a^

c^

a

at the value^. Convergence: One of the following is true:Either (1) the power series converges only for

, Or (2) the power series converges absolutely for all

, Or (3) there is a positive number

a z a = z R such that the series converges absolutely for^ and diverges for

.^ is called the radius of convergence. z^ a^ R^

z^ a^ R^ R −^ <^

−^ >

Applied Statistics:^ Probability

Review:

Other Useful Series Exponential function: The sum of squares: Binomial sum: Geometric sum:

1 n + n 1 z − kz = ∑ 1 z − 0 k =

Applied Statistics:^ Probability

Review:

Binomial Coefficients^111121133114641 …

Pascal’s triangle:^ n=0^ n=1^ n=2^ ⇒^ n=3^ n=4^ …

!^ (^ ( )

1)^ (^ 1) where^!^

!^!^ (^ k 1)^1 n^ n^ n

n n^ n^

k k^ k^ n^ k^ k

k k ⎛^ ⎞^

−^ −^ + =^ =^ =⎜ ⎟ −^

− ⎝^ ⎠

(^3) ⎛ ⎞ ⎜ ⎟ (^2) ⎝ ⎠ " " (^3 3) ( ) 2 2 3

3 2 2 3 3 3 3

3 3 3 0 1 2

3 x^ y^ x^ x y

xy^ y^ x^

x y^ xy^ y ⎛^ ⎞^ ⎛^ ⎞^ ⎛^ ⎞^

⎛^ ⎞ ⇒^ +^ =^ +^

+^ +^ =^

+^ +^ + ⎜^ ⎟^ ⎜^ ⎟^ ⎜^ ⎟^

⎜^ ⎟ ⎝^ ⎠^ ⎝^ ⎠^ ⎝^ ⎠^

⎝^ ⎠

Applied Statistics:^ Probability

Logarithms

log^10 b^10 Conversion formula: log

. log Any base may be used in place of 10.

aa = b

Applied Statistics:^ Probability

Log Function (Base 10)

Applied Statistics:^ Probability

Logarithmic Identities

Applied Statistics:^ Probability

Notation, notation, notation ˆ^ Learning math in many ways is like learning a new language.You may understand a concept but be unable to write itdown.^ You may not be able to read notation that representsa simple concept. ˆ^ The only way to tackle this “language barrier” is throughrepetition until the notation begins to look “friendly.” ˆ^ You must try writing results yourself (begin with blankpaper) until you can recall the notation that expresses theconcepts.^ ^ Copy theorems from class or from the text until you canrewrite them without looking at the material and youunderstand what you are writing. ˆ^ Probability and statistics introduce their own notation to bemastered. ˆ^ If you begin tonight, and spend time after every class, youcan learn this new language. ˆ^ If you wait until the week before the test, it will be muchlike trying to learn Spanish, or French, or English in just afew nights (1 night??).

It really can’t be done.