Stats Exam Prep. Dr. Lin Lin. WARNING The goal of this workshop is to go over some basic concepts in probability and statistic theories required for IS.

Slides:



Advertisements
Similar presentations
Day 16 More on conditional probability, independence and total probability formula.
Advertisements

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
0 0 Review Probability Axioms –Non-negativity P(A)≥0 –Additivity P(A U B) =P(A)+ P(B), if A and B are disjoint. –Normalization P(Ω)=1 Independence of two.
CHAPTER 13: Binomial Distributions
Mathematics in Today's World
SI485i : NLP Day 2 Probability Review. Introduction to Probability Experiment (trial) Repeatable procedure with well-defined possible outcomes Outcome.
McGraw-Hill Ryerson Copyright © 2011 McGraw-Hill Ryerson Limited. Adapted by Peter Au, George Brown College.
Dependent and Independent Events. If you have events that occur together or in a row, they are considered to be compound events (involve two or more separate.
1 Conditional Probability When do you think the probability of snow is higher, in September or February? February, at least in Nebraska, right?
Probability Probability Principles of EngineeringTM
Statistics: Intro Statistics or What’s normal about the normal curve, what’s standard about the standard deviation, and what’s co-relating in a correlation?
1 Econ 240A Power Three. 2 Summary: Week One Descriptive Statistics –measures of central tendency –measures of dispersion Distributions of observation.
1 Econ 240A Power Three. 2 Summary: Week One Descriptive Statistics –measures of central tendency –measures of dispersion Exploratory data Analysis –stem.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
Chapter 6 Probabilit y Vocabulary Probability – the proportion of times the outcome would occur in a very long series of repetitions (likelihood of an.
Chapter 6 Probability.
Probability.
1 CY1B2 Statistics Aims: To introduce basic statistics. Outcomes: To understand some fundamental concepts in statistics, and be able to apply some probability.
Aim: Final Review Session 3 Probability
QA in Finance/ Ch 3 Probability in Finance Probability.
Slide 1 Definition Figures 3-4 and 3-5 Events A and B are disjoint (or mutually exclusive) if they cannot both occur together.
5.1 Basic Probability Ideas
Probability Denoted by P(Event) This method for calculating probabilities is only appropriate when the outcomes of the sample space are equally likely.
Probability.
Binomial Distributions Calculating the Probability of Success.
Chapter 19 For Explaining Psychological Statistics, 4th ed. by B. Cohen 1 A dichotomous outcome is one that has only two possibilities (e.g., pass or fail;
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 13, Slide 1 Chapter 13 From Randomness to Probability.
1 Chapters 6-8. UNIT 2 VOCABULARY – Chap 6 2 ( 2) THE NOTATION “P” REPRESENTS THE TRUE PROBABILITY OF AN EVENT HAPPENING, ACCORDING TO AN IDEAL DISTRIBUTION.
Probability Distributions. Essential Question: What is a probability distribution and how is it displayed?
Probability Section 7.1.
Probability Distributions
PROBABILITY CONCEPTS Key concepts are described Probability rules are introduced Expected values, standard deviation, covariance and correlation for individual.
Rev.F081 STA 2023 Module 4 Probability Concepts. Rev.F082 Learning Objectives Upon completing this module, you should be able to: 1.Compute probabilities.
Binomial Probability Distribution
LECTURE 14 TUESDAY, 13 OCTOBER STA 291 Fall
Independence and Bernoulli Trials. Sharif University of Technology 2 Independence  A, B independent implies: are also independent. Proof for independence.
Copyright © 2010 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
Dr. Ahmed Abdelwahab Introduction for EE420. Probability Theory Probability theory is rooted in phenomena that can be modeled by an experiment with an.
Copyright © 2010 Pearson Education, Inc. Chapter 6 Probability.
Probability Section 7.1. What is probability? Probability discusses the likelihood or chance of something happening. For instance, -- the probability.
Probability THEORETICAL Theoretical probability can be found without doing and experiment. EXPERIMENTAL Experimental probability is found by repeating.
Slide 14-1 Copyright © 2004 Pearson Education, Inc.
Copyright © 2010 Pearson Education, Inc. Unit 4 Chapter 14 From Randomness to Probability.
5.1 Probability in our Daily Lives.  Which of these list is a “random” list of results when flipping a fair coin 10 times?  A) T H T H T H T H T H 
5.1 Randomness  The Language of Probability  Thinking about Randomness  The Uses of Probability 1.
From Randomness to Probability Chapter 14. Dealing with Random Phenomena A random phenomenon is a situation in which we know what outcomes could happen,
Independent Events Lesson Starter State in writing whether each of these pairs of events are disjoint. Justify your answer. If the events.
Warm up Decide if the following represent permutations or combinations. Then calculate the desired results. 1. How many different four digit numbers can.
What is the probability of two or more independent events occurring?
CHAPTER 10: Introducing Probability ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture Presentation.
STROUD Worked examples and exercises are in the text Programme 29: Probability PROGRAMME 29 PROBABILITY.
LECTURE 16 TUESDAY, 20 OCTOBER STA 291 Fall
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
Copyright © 2010 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
PROBABILITY! Let’s learn about probability and chance!
AP Statistics From Randomness to Probability Chapter 14.
From Randomness to Probability
Warm-up How many digits do you need to simulate heads or tails (or even or odd)? 2) To simulate an integer % probability of passing or failing?
Dealing with Random Phenomena
Probability II.
From Randomness to Probability
From Randomness to Probability
From Randomness to Probability
Lecture 11 Sections 5.1 – 5.2 Objectives: Probability
CSCI 5832 Natural Language Processing
Experimental Probability Vs. Theoretical Probability
Probability Probability Principles of EngineeringTM
From Randomness to Probability
Concepts of Computation
Presentation transcript:

Stats Exam Prep. Dr. Lin Lin

WARNING The goal of this workshop is to go over some basic concepts in probability and statistic theories required for IS 665 The goal of this workshop is to go over some basic concepts in probability and statistic theories required for IS 665 It is NOT to help you pass the exam It is NOT to help you pass the exam NO EXAM QUESTIONS will be covered here NO EXAM QUESTIONS will be covered here

Probability how likely Probability is the measure of how likely something will occur. It is the ratio of desired outcomes to total outcomes. – P(event) = (# desired events) / (# total events) Probabilities of all outcomes sums to 1.

BEFORE Probability We need to learn to count the number of possible events We need to learn to count the number of possible events Exercise I: How many different five-digit numbers exist? Exercise I: How many different five-digit numbers exist? How did you get the answer? How did you get the answer?

BEFORE Probability Exercise II: How many different five-digit numbers WITHOUT 0 exist? Exercise II: How many different five-digit numbers WITHOUT 0 exist? How did you get the answer? How did you get the answer?

BEFORE Probability Exercise III: US phone number is in the format of Exercise III: US phone number is in the format of (###) – ### - #### – The first digit cannot be zero – There cannot be a “ ” number – How many numbers are possible? How did you get the answer? How did you get the answer?

BEFORE Probability Exercise IV: let’s make a three-digit number. There is only one rule: no two digits could be identical. How many numbers could we make? Exercise IV: let’s make a three-digit number. There is only one rule: no two digits could be identical. How many numbers could we make? How did you get the answer? How did you get the answer?

BEFORE Probability Exercise V: Exercise V: You could rearrange these shapes anyway you want. However, You could rearrange these shapes anyway you want. However, cannot be on either side. How many different ways could cannot be on either side. How many different ways could we have? we have? How did you get the answer? How did you get the answer?

Probability Example If I roll a number cube, there are six total possibilities. (1,2,3,4,5,6) If I roll a number cube, there are six total possibilities. (1,2,3,4,5,6) Each possibility only has one outcome, so each has a PROBABILITY of 1/6. Each possibility only has one outcome, so each has a PROBABILITY of 1/6. For instance, the probability I roll a 2 is 1/6, since there is only a single 2 on the number cube. For instance, the probability I roll a 2 is 1/6, since there is only a single 2 on the number cube.

Practice heads If I flip a coin, what is the probability I get heads? tails What is the probability I get tails? Number of desired outcomesnumber of possible outcomes Remember the equation? Number of desired outcomes divided by number of possible outcomes

Answer P(heads) = 1/2 P(tails) = 1/2 If you add these two up, you will get 1, which means the answers are probably right.

Answer Let’s make it harder – assuming that the coin is not fair, and P(H) = 0.6 What is the chance of getting a tail in one flip?

Bernoulli Trial In the theory of probability and statistics, a Bernoulli trial (or binomial trial) is a random experiment with exactly two possible outcomes, "success" and "failure", in which the probability of success is the same every time the experiment is conducted. So it is basically coin-flipping with a p of not necessarily 0.5

independent Two or more independent events If there are two or more independent events, you need to consider if it is happening at the same time (and) or one after the other (or).

And multiply joint probability If the two events are happening at the same time, you need to multiply the two probabilities together. This probability is called joint probability Usually, the questions use the word “and” when describing the outcomes. P(A & B) = P(A)*P(B)

Joint Probability Just a fancy way of saying “AND” Just a fancy way of saying “AND” ◦ p(I will listen to Backstreet Boys Today) = 0.8 ◦ p(I will eat at Subway today) = 0.7 What is the probability that I will listen to Backstreet Boys AND eat at Subway? What is the probability that I will listen to Backstreet Boys AND eat at Subway? ◦ 0.7 * 0.8 = 0.56? WHEN EVENT A AND B ARE INDEPENDENT: WHEN EVENT A AND B ARE INDEPENDENT: ◦ P(A&B) = P(A) * P(B)

Or add If the two events are happening one after the other, you need to add the two probabilities. Usually, the questions use the word “or” when describing the outcomes. P(A or B) = P(A) + P(B)

Practice If I roll a number cube and flip a coin: – What is the probability I will get a heads and a 6? – What is the probability I will get a tails or a 3? How did you get them?

Answers P(heads and 6) = 1/2 x 1/6 =1/12 P(tails or a 5) = 1/2 + 1/6 = 8/12 = 2/3

Summary: Independent Events One event has no influence on the outcome of another event If events A & B are independent then P(A&B) = P(A)*P(B) P(A or B) = P(A) + P(B) Coin flipping if P(H) = P(T) =.5 then P(HTHTH) = P(HHHHH) =.5*.5*.5*.5*.5 =.5 5 =.03

Summary: Independent Events Coin flipping if P(H) = P(T) =.5 then P(HTHTH) = P(HHHHH) =.5*.5*.5*.5*.5 =.5 5 =.03 What if P(H) = 0.6 (Bernoulli trial)? – What is P(HTHH)? – What is P(at least one head in five trials)?

if you are flipping a coin and it has already come up heads 6 times in a row, what are the odds of an 7 th head?.5 Is P(10H) = P(4H,6T)?

Next year the economy will experience one of three states: a downturn, stable state, or growth. The following probability matrix displays joint probabilities of a bond default and the economic state: For example, the joint probability that the economy is stable and the bond defaults is 1.0%; the unconditional probability that the economy will be stable is 50.0% = 49.0% + 1.0%. What is the chance of the bond default? What is the chance of an economy downturn?

Next year the economy will experience one of three states: a downturn, stable state, or growth. The following probability matrix displays joint probabilities of a bond default and the economic state: For example, the joint probability that the economy is stable and the bond defaults is 1.0%; the unconditional probability that the economy will be stable is 50.0% = 49.0% + 1.0%. Knowing that the bond survived, what is the chance that economy is stable?

Conditional Probability Concern the odds of one event occurring, given that another event has occurred P(A|B)=Prob. of A, given B

Examples P(Professor Lin walks in without a Pepsi in his hand) = 0.1 HOWEVER… P(Professor Lin walks in without a Pepsi in his hand | you promise to give me $1,000,000 if I do so) = 1 !! What changed my behavior?

P(B|A) = P(A&B)/P(A) if A and B are independent, then P(B|A) = P(A)*P(B)/P(A) = P(B) Conditional Probability (cont.)

The Chain Rule What if A and B ARE dependent of each other? What if A and B ARE dependent of each other? ◦ p (I am teaching IS 665 today) = 1/7 ◦ p (I am eating at Subway today) = 0.7 What is the chance that I am teaching 665 today and eating at Subway? What is the chance that I am teaching 665 today and eating at Subway? ◦ p (I am teaching IS 665 today & I am eating at Subway today) = 0! WHY? WHY? ◦ Because to teach 665, I have NO TIME to eat at Subway! ◦ In other words, these two events are dependent

The Chain Rule What is the chance that I am teaching 665 today and eating at Subway? What is the chance that I am teaching 665 today and eating at Subway? ◦ p (I am teaching IS 665 today & I am eating at Subway today) = p (I am eating at Subway today | I am teaching 665) * p (I am teaching 665) = 0 * 1/7 = 0 To put it (semi) formally: To put it (semi) formally: ◦ P(A & B) = P (A | B) * P (B) = P(B | A) * P(A)

The Bayes Rule The Chain Rule Shows us: The Chain Rule Shows us: ◦ P(A & B) = P (A | B) * P (B) = P(B | A) * P(A) P (A | B) = P(B | A) * P(A) / P(B) !!! This is the Bayes Rule

The Bayes Rule P(B | A) = P(B) * P (A | B) / P (A)

Exercise If we observe that the bond has defaulted, what is the (posterior) probability that the economy experienced a downturn? a. 0.60% b % c % d %

Exercise If it is snowing, there is a 80% chance that class will be canceled. If it is not snowing, there is a 95% chance that class will go on. Generally, there is a 5% chance that it snows in NJ in the winter. If we are having class today, what is the chance that it is snowing?

Distribution How to Read a Histogram

Normal Distribution Watch the demo

Regression

Regression VariableEstimateStd. Errort valuePr(>|t|) (Intercept)5000XXX edu_level1000XXX IQ50XXX experience300XXX gender-2000XXX 0.300

What is Regression, anyway? Number of nights I illegally parkedChance that I will get a ticket y = x InterceptCoefficient If I parked illegally 6 nights in a row, how likely am I to get a ticket?

P value P value

What is Regression, anyway? You now know how to interpret a regression model You now know how to interpret a regression model But how do we build one? But how do we build one? – That will be covered in IS 665