Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS6825: Probability An Introduction Definitions An experiment is the process of observing a phenomenon with multiple possible outcomes An experiment.

Similar presentations


Presentation on theme: "CS6825: Probability An Introduction Definitions An experiment is the process of observing a phenomenon with multiple possible outcomes An experiment."— Presentation transcript:

1

2 CS6825: Probability An Introduction

3 Definitions An experiment is the process of observing a phenomenon with multiple possible outcomes An experiment is the process of observing a phenomenon with multiple possible outcomes The sample space of an experiment is all possible outcomes The sample space of an experiment is all possible outcomes The sample space may be discrete or continuousThe sample space may be discrete or continuous An event is a set (collection) of one or more outcomes in the sample space An event is a set (collection) of one or more outcomes in the sample space

4 Presenting data Pie and bar charts Pie and bar charts Frequency diagram Frequency diagram Scatter diagram Scatter diagram Taken from “Multidimensional Representation of Concepts as Cognitive Engrams in the Human Brain “ Taken from “Multidimensional Representation of Concepts as Cognitive Engrams in the Human Brain “Multidimensional Representation of Concepts as Cognitive Engrams in the Human Brain Multidimensional Representation of Concepts as Cognitive Engrams in the Human Brain

5 Pie chart A Pie Chart is useful for presenting nominal data. A Pie Chart is useful for presenting nominal data. For each category we calculate the relative frequency of its occurrence.For each category we calculate the relative frequency of its occurrence. Then we take a circle and divide (slice) it proportionally to the relative frequency and portions of the circle are allocated for the different groupsThen we take a circle and divide (slice) it proportionally to the relative frequency and portions of the circle are allocated for the different groups

6 Example A manager of Athletics store has to decide, which brands to keep in the new season. 200 runners were asked to indicate their favorite type of running shoe. A manager of Athletics store has to decide, which brands to keep in the new season. 200 runners were asked to indicate their favorite type of running shoe.

7 Example: Pie chart for running shoes We can express this in words by saying the probability of Nike is 46% and the probability of Reebok is 18.5%

8 The probability of an event is the proportion of times the event is expected to occur in repeated experiments

9 Probability Properties The probability of an event, say event A, is denoted P(A). The probability of an event, say event A, is denoted P(A). All probabilities are between 0 and 1. All probabilities are between 0 and 1. (i.e. 0 < P(A) < 1) Sample Space – set of all possible events. In previous example Set = {Nike, Adidas, Reebok, Asic, Other} The sum of the probabilities of all possible outcomes (sample space) must be 1. Sample Space – set of all possible events. In previous example Set = {Nike, Adidas, Reebok, Asic, Other} The sum of the probabilities of all possible outcomes (sample space) must be 1. NOTE: it is possible to us a scale of 100% instead of 1 but, in statistics we use the scale of 1. NOTE: it is possible to us a scale of 100% instead of 1 but, in statistics we use the scale of 1.

10 What are the Probabilities P(Nike) = 46/100 =.46 P(Adidas) = 24.5/100 =.245 P(Reebok) = 18.5/100 =.185 P(Asics) = 6.5/100 =.065 P(Other) = 4.5/100 =.045

11 Assigning Probabilities Guess based on prior knowledge alone Guess based on prior knowledge alone Guess based on knowledge of probability distribution (to be discussed later) Guess based on knowledge of probability distribution (to be discussed later) Assume equally likely outcomes Assume equally likely outcomes Use relative frequencies Use relative frequencies

12 Guess based on prior knowledge alone Event B = {It rains Tomorrow} Weth R. Guy says “There is a 30% chance of rain tomorrow.” P(B) =.30 a priori Knowledge

13 What do to when no prior knowledge and no training data …..Assume equally likely outcomes

14 Use Relative Frequencies Gather training data to estimate probabilities….Flip a coin how many times get head versus tails. i.e. Take a bunch of images of the data and see what it means to be yellow for a banana?

15 Additional material…. Beyond the very beginning Beyond the very beginning

16 Complement* The complement of an event A, denoted by A, is the set of outcomes that are not in A A means A does not occur * Some texts use A c to denote the complement of A

17 Law of Complement P(A) = Probability of any event except A occurring = P(all Events) - P(A) = P(all Events) - P(A) = Sum(all events i P(i)) – P(A) = Sum(all events i P(i)) – P(A) = 1 – P(A) = 1 – P(A)

18 Union The union of two events A and B, denoted by A U B, is the set of outcomes that are in A, or B, or both If A U B occurs, then either A or B or both occur

19 Intersection The intersection of two events A and B, denoted by AB, is the set of outcomes that are in both A and B. If AB occurs, then both A and B occur

20 Addition Law P(A U B) = P(A) + P(B) - P(AB) (The probability of the union of A and B is the probability of A plus the probability of B minus the probability of the intersection of A and B)

21 Mutually Exclusive Events* Two events are mutually exclusive if their intersection is empty. Two events, A and B, are mutually exclusive if and only if P(AB) = 0

22 Addition Law for Mutually Exclusive Events P(A U B) = P(A) + P(B)

23 Conditional Probability The probability of event A occurring, given that event B has occurred, is called the conditional probability of event A given event B, denoted P(A|B)

24 Conditional Probability P(AB) P(AB) P(A|B) = -------- P(B) P(B)or P(AB) = P(B)P(A|B)

25 IndependenceIf P(A|B) = P(A) or P(B|A) = P(B) or P(AB) = P(A)P(B) then A and B are independent.

26 Independence Two events A and B are independent if P(A|B) = P(A) or P(B|A) = P(B) or P(AB) = P(A)P(B) NOTE: this is an assumption sometimes researchers make about their systems when they have no a priori knowledge to tell them differently. They do it as it makes math simpler. BE CAREFUL, it may be a WRONG Assumption!!! i.e. in motion tracking – person 1 leaves means nothing about person 2 leaving. They are independent….. But, is this true in practice?


Download ppt "CS6825: Probability An Introduction Definitions An experiment is the process of observing a phenomenon with multiple possible outcomes An experiment."

Similar presentations


Ads by Google