Presentation is loading. Please wait.

Presentation is loading. Please wait.

Probability, Sampling, and Inference Q560: Experimental Methods in Cognitive Science Lecture 5.

Similar presentations


Presentation on theme: "Probability, Sampling, and Inference Q560: Experimental Methods in Cognitive Science Lecture 5."— Presentation transcript:

1 Probability, Sampling, and Inference Q560: Experimental Methods in Cognitive Science Lecture 5

2 What is Probability? Relationship between samples and populations: Used to predict what kind of samples are likely to be obtained from a population

3 Defining Probability Probability = proportion of outcome. Probability of A = Given an outcome A: Number of outcomes classed as A Total number of outcomes Examples: coin toss deck of cards

4 Probability Notation Probability of outcome A = p(A) Examples: Probability of “king” = p(king) = 4/52. Probabilities can be expressed as fractions, decimals, or as percentages. 4/52 = 0.0769 = 7.69%

5 Probability and Random Sampling For a random sample these two conditions must be met: 1. Each individual has an equal chance of being selected. 2. If more than one individual is selected, there must be constant probability for each selection. (requires sampling with replacement) Explanation…

6 Location of Scores in a Distribution X values are transformed into z-scores, such that … 1.The sign (+, -) indicates location above or below the mean. 2.The number indicates distance from the mean in terms of the number of standard deviations. IQ scores: =100, =10

7 z = X -   deviation score standard deviation = z = X -   X =  + z

8 Standardizing a Distribution What effects does this z-score transformation have on the original distribution? 1.Shape: stays the same! Individual scores do not change position. 2.Mean: z-score distribution mean is always zero! 3.Standard deviation: z-score distribution standard deviation is always 1! z-Score transformation is like re-labelling the x-axis …

9 Standardizing a Distribution Let’s do a z-score transformation:X: 0, 6, 5, 2, 3, 2 X X-μ X 2 0 6 5 2 3 2

10 Standardizing a Distribution Let’s do a z-score transformation:X: 0, 6, 5, 2, 3, 2 X X-μ X 2 0 -3 6 3 5 2 2 -1 3 0 2 -1

11 Standardizing a Distribution Let’s do a z-score transformation:X: 0, 6, 5, 2, 3, 2 X X-μ X 2 0 -3 0 6 3 36 5 2 25 2 -1 4 3 0 9 2 -1 4

12 Standardizing a Distribution Let’s do a z-score transformation:X: 0, 6, 5, 2, 3, 2 X X-μ X 2 z 0 -3 0 6 3 36 5 2 25 2 -1 4 3 0 9 2 -1 4 μ = 3 σ = 2

13 Standardizing a Distribution Let’s do a z-score transformation:X: 0, 6, 5, 2, 3, 2 X X-μ X 2 z 0 -3 0 -1.5 6 3 36 1.5 5 2 25 1 2 -1 4 -0.5 3 0 9 0 2 -1 4 -0.5 μ = 3 σ = 2

14 Standardizing a Distribution Let’s draw frequency distribution graphs:

15 Probability and Frequency Graphs Example: For the population of scores shown below, what is the probability in a random draw of obtaining a score greater than 4? p(X>4) =

16 The Normal Distribution Diagram:

17 The Normal Distribution Proportions of areas within the normal distribution can be quantified using z-scores:

18 The Normal Distribution Note: The normal distribution is symmetrical. This means that the proportions on both sides of the mean are identical. Note: All normal distributions have the same proportions. This allows us to solve problems like the following: Body height has a normal distribution, with = 68, and = 6. If we select one person at random, what is the probability for selecting a person taller than 80?

19 The Normal Distribution A graphical representation of the same problem:

20 The Unit Normal Table Given the standard proportions of normal distributions we can give probabilities for z-scores with whole number values. But what about fractional z-scores? That’s what the unit normal table is all about … Or, plenty of online calculators: http://www.stat.tamu.edu/~west/applets/normaldemo.html

21 The Unit Normal Table How the table is organized:

22 1.Symmetrical (only positive z-scores are tabulated). 2.Proportions are always positive. 3.Section > 50% = “body” 4.Section < 50% = “tail” 5.Body+tail = 1.00 (100%). In a graph: “area greater than” = “area to the right of” “area smaller than” = “area to the left of” Things to remember when using the unit normal table:

23 From Specific Scores to The Unit Normal Table You are asked a probability associated with a specific X value (as opposed to a z-score). Example: For a normal distribution with =500 and =100, give the probability of selecting an individual whose score is above 650. (= proportion of individuals with a score above 650.) Procedure to do this: …

24 From Specific Scores to The Unit Normal Table 1.Make a rough sketch ( and ). 2.Locate and mark specific score X. 3.Shade appropriate proportion. 4.Transform X value into z-score. 5.Look up value for proportion in unit normal table (using z-score). Follow this procedure:

25 Probability from the Unit Normal The math section of the SAT has a  = 500 and  = 100. If you selected a person at random: a)What is the probability he would have a score greater than 650? b)What is the probability he would have a score between 400 and 500?

26 The Binomial Distribution

27 “binomial” = “two names” Variable exists in two categories only… heads – tails true – false Probabilities for each outcome are often known… p(heads) = 0.5 p(tails) = 0.5 Question of interest: how often does an outcome occur in a sample of observations.

28 The Binomial Distribution Notation: 1.Two categories: A, B 2.Probabilities: p = p(A), q = p(B). Note: p+q = 1.00. 3.Number of observations in the sample: n 4.Variable X is number of times that A occurs in the sample. Note: X ranges between 0 and n. The binomial distribution shows the probability associated with each value X from X=0 to X=n.

29 The Binomial Distribution Table of outcomes: X = Number of heads. Toss 1Toss 2X HeadsHeads2 HeadsTails1 TailsHeads1 TailsTails0 p(X=2) = ¼ p(X=1) = ½ p(X=0) = ¼

30 The Binomial Distribution Draw the binomial distribution:

31 Class experiment: Toss a coin 16 times, count the number of heads.

32 Shape of the binomial distribution for large numbers of trials: n=2 n=8 n=16n=64

33 The Binomial Distribution The binomial distribution tends to approximate the normal distribution, as n gets large, or more precisely, as pn and qn are greater than 10. Then the normal distribution will have approximately:  = pn  = npq This means that, given p, q and n, we can directly derive z-scores: z = X – pn npq

34 The Binomial Distribution An example graph: Using a balanced coin, what is the probability of obtaining more than 30 heads in 50 tosses?

35 The Binomial Distribution p = 0.5 q = 0.5 n = 50 X = 30 Probability is.0793

36 The Binomial Distribution A friend bets you that he can draw a king more than 8 times in 20 draws (with replacement) of a fair deck of cards, and he does it. Is this a likely outcome, or should you conclude that the deck is not “fair” p =.077 q =.923 n = 20 X = 8

37 The Binomial Distribution Probability is ~0 p =.077 q =.923 n = 20 X = 8

38 The Binomial Distribution Baby sea turtles hatch on land and have to quickly make it to the ocean before they are picked off by birds. A baby sea turtle has a 1/8 chance of making it to the water safely. If a mother lays 100 eggs (and they all hatch), what is the probability that more than half the hatchlings making it to the ocean safely? p = 0.125 q = 0.875 n = 100 X = 50

39 The Binomial Distribution Probability is close to zero p = 0.125 q = 0.875 n = 100 X = 50

40 Statistical Significance It is very unlikely to obtain an individual from the original population who has a z-score beyond  1.96 Less that 5% of any population fit into this area under the curve Therefore, we will define an event as “unlikely due to chance” or statistically significant if it has a less than 5% chance of occurrence in a normal population. Our card magician was “unlikely” but our coin flip could still be explained by chance (p not <.05)


Download ppt "Probability, Sampling, and Inference Q560: Experimental Methods in Cognitive Science Lecture 5."

Similar presentations


Ads by Google