Psychology 202a Advanced Psychological Statistics September 22, 2015.

13
Psychology 202a Advanced Psychological Statistics September 22, 2015

Transcript of Psychology 202a Advanced Psychological Statistics September 22, 2015.

Page 1: Psychology 202a Advanced Psychological Statistics September 22, 2015.

Psychology 202aAdvanced Psychological

Statistics

September 22, 2015

Page 2: Psychology 202a Advanced Psychological Statistics September 22, 2015.

The Plan for Today

• Wrapping up conditional distributions.

• Random variables and probability distributions.

• Continuous random variables.

• Rules for combining probabilities.

• (Bayes’ theorem.)

Page 3: Psychology 202a Advanced Psychological Statistics September 22, 2015.

New concept: random variables

• Review definition of variables and distributions

• New kind of variable:– imaginary– a set of values that could occur– random variable

Page 4: Psychology 202a Advanced Psychological Statistics September 22, 2015.

Distribution of a random variable

• Just as variables have distributions, so do random variables.

• The distribution of a random variable is the set of values that could occur if we were to observe the variable…

• …together with the long run relative frequencies with which those values would occur.

Page 5: Psychology 202a Advanced Psychological Statistics September 22, 2015.

Probability distributions

• This special type of imaginary distribution is called a probability distribution.

• Definition: A probability distribution is the set of values that could occur for a random variable, together with the long-run relative frequencies with which they do occur when that random variable is actually observed.

Page 6: Psychology 202a Advanced Psychological Statistics September 22, 2015.

Frequentist approach

• long-run relative frequency = probability

• The law of large numbers:– If a random process is observed repeatedly,

the proportion of times a particular outcome of that process occurs approaches the probability of the outcome as the number of repetitions becomes large.

Page 7: Psychology 202a Advanced Psychological Statistics September 22, 2015.

More detail on the frequentist approach

• Just as relative frequency observed in the long run is probability...

• ...descriptive statistics observed in the long run become parameters of the probability distribution,

• ...and graphics observed in the long run become pictures of the probability distribution.

Page 8: Psychology 202a Advanced Psychological Statistics September 22, 2015.

Some technical matters

• A well-defined outcome of a random variable is called an event.

• Random variables may be continuous or discrete.

• The probability of any particular outcome for a continuous random variable is zero.

• In such cases, events must be described in terms of ranges of possible values.

Page 9: Psychology 202a Advanced Psychological Statistics September 22, 2015.

Bernoulli trials: the simplest possible random variable

• On each repetition, one of two discrete values may occur, and the probability of each is the same on each trial.

• Examples:– tossing a coin– rolling a die– choosing a random person and observing that

person’s sex

Page 10: Psychology 202a Advanced Psychological Statistics September 22, 2015.

Bernoulli processes

• The name for that type of random variable is Bernoulli random variable or Bernoulli process.

• Think about the example of tossing a fair coin.

• digression on document camera and in R

Page 11: Psychology 202a Advanced Psychological Statistics September 22, 2015.

Recapping types of distributions• So far, we have discussed two types of

distributions• Distributions:

– Values that a variable takes on, with frequencies (or relative frequencies) of those values

• Probability distributions:– Values that a random variable could take on,

together with probabilities of those values

Page 12: Psychology 202a Advanced Psychological Statistics September 22, 2015.

Similarities

• We’ve seen that the same ways of thinking can help us understand the shape of both types of distribution.

• The trick to understanding probability distributions is to apply those ways of thinking to what would happen in the long run.

Page 13: Psychology 202a Advanced Psychological Statistics September 22, 2015.

Continuous random variables

• Examples:– Normal distribution– Uniform distribution

• New terminology: probability density function (abbreviated “pdf”)

• Investigating some properties of the uniform distribution