SlideShare une entreprise Scribd logo
1  sur  25
Télécharger pour lire hors ligne
Stat310
 Random variables


   Hadley Wickham
1. Feedback
2. Recap
3. Introduction to random variables
4. Expectation
Feedback
Attending class

  Taking good notes

     Did homework

Did homework early

Reading through text

                       0   4   8   12   16   20
Attending class

        Taking good notes

           Did homework

      Did homework early

     Reading through text

                             0   4   8   12   16   20


               Read book

More work outside of class

   Start homework earlier
Examples

       Interactivity & Feedback

Clear presentation/explanations

                      Website

                  Powerpoints

                        Recaps

                                  0   5   10   15   20   25
Examples

       Interactivity & Feedback

Clear presentation/explanations

                      Website

                  Powerpoints

                        Recaps

                                  0   5   10   15   20   25


                       Accent

                       T shirts
Improvements
Board skills: mistakes, more details &
structure, straight lines
Pace: 5 good, 5 too fast, 2 too slow
Office hours. Homework answers online.
Connection to text/more practice.
Class mailing list / forums?
Notation
k
      xi
i=1
                         xi
           i∈{1,...,k}

                              xi
Recap

What is the law of total probability?
What is the multiplication rule?
What is Bayes rule?
Recap


A, B and C are independent events.
What is P(A ∪ B ∪ C)?
Random variables
Why?
Probability is a set function. Kind of tricky
to deal with. Easier to deal with functions
of numbers.
Want to ignore details of problem (e.g.
specific events) and focus on essence.
Real world ➙ mathematical world
Definition
A random variable is a function from the
sample space to the real line
Usually given a capital letter like X, Y or Z
The space (or support) of a random
variable is the range of the function
(analogous to the sample space)
(Usually just call the result a random variable)
Discrete vs.
         continuous
Space of X is countable =
can be mapped to integers =
discrete
Space of X is uncountable =
can be mapped to real numbers =
continuous
(We’ll focus on discrete to start with)
Example

Select a family at random and observe
their children. What is the sample space?
What random variables could we create
from this experiment?
Example

Pick someone at random out of this class.
Measure their height.
What random variables could we create
from this experiment?
Random variables

For a countable sample space, usually a
count. (But many things we could count)
For a uncountable sample space, usually
just the value. (Typically fewer logical
possibilities)
Random event   Random variable


  Anything        Numbers


               Probability mass
 Probability
                   function
Discrete pmf
f (x) > 0     ∀x ∈ S

      f (x) = 1
x∈S

P (X ∈ A) =             f (x)
                  x∈A
Example

• If X=1, f(x) = 0.9
• If X=2,3,4,5 or 6, f(x) = c/x
• (How to write and read more
  mathematically)
• Is this function is a pmf? What is c?
Why?

Once we have random variable + pmf, we
don’t need any more information about
the original experiment.
Means we can apply the same tools to
completely different types of experiments.
Example
Draw two cards (with replacement) out of
a shuffled pack. Let X be the number of
hearts and clubs. What is the pmf of X?
Pick two people at random. Let Y be the
number of males. What is the pmf of Y?
How are these pmfs related?
Expectation

E[u(X)] =             u(x)f (x)
                x∈S

 Summarises a function of a random
   number with a single number
W
                                            ha
                                              ta
                                          an     re
              Properties                     du c
                                               ?


                   E[c] = c
            E[cu(X)] = cE[u(X)]
E[au1 (X) + bu2 (X)] = aE[u1 (X)] + bE[u2 (X)]



          All conditions together imply
              E is a linear operator

Contenu connexe

Tendances

random variable and distribution
random variable and distributionrandom variable and distribution
random variable and distributionlovemucheca
 
Chapter 1 random variables and probability distributions
Chapter 1   random variables and probability distributionsChapter 1   random variables and probability distributions
Chapter 1 random variables and probability distributionsAntonio F. Balatar Jr.
 
Discrete Random Variables And Probability Distributions
Discrete Random Variables And Probability DistributionsDiscrete Random Variables And Probability Distributions
Discrete Random Variables And Probability Distributionsmathscontent
 
Probability Distributions for Discrete Variables
Probability Distributions for Discrete VariablesProbability Distributions for Discrete Variables
Probability Distributions for Discrete Variablesgetyourcheaton
 
Continuous functions
Continuous functionsContinuous functions
Continuous functionssumanmathews
 
Discrete distributions: Binomial, Poisson & Hypergeometric distributions
Discrete distributions:  Binomial, Poisson & Hypergeometric distributionsDiscrete distributions:  Binomial, Poisson & Hypergeometric distributions
Discrete distributions: Binomial, Poisson & Hypergeometric distributionsScholarsPoint1
 
Applied Calculus: Continuity and Discontinuity of Function
Applied Calculus: Continuity and Discontinuity of FunctionApplied Calculus: Continuity and Discontinuity of Function
Applied Calculus: Continuity and Discontinuity of Functionbaetulilm
 
Geometric Distribution
Geometric DistributionGeometric Distribution
Geometric DistributionRatul Basak
 
Introduction to Probability and Probability Distributions
Introduction to Probability and Probability DistributionsIntroduction to Probability and Probability Distributions
Introduction to Probability and Probability DistributionsJezhabeth Villegas
 
4.1-4.2 Sample Spaces and Probability
4.1-4.2 Sample Spaces and Probability4.1-4.2 Sample Spaces and Probability
4.1-4.2 Sample Spaces and Probabilitymlong24
 
Mean of a discrete random variable.ppt
Mean of a discrete random variable.pptMean of a discrete random variable.ppt
Mean of a discrete random variable.pptccooking
 
Introduction to probability distributions-Statistics and probability analysis
Introduction to probability distributions-Statistics and probability analysis Introduction to probability distributions-Statistics and probability analysis
Introduction to probability distributions-Statistics and probability analysis Vijay Hemmadi
 
Liner algebra-vector space-1 introduction to vector space and subspace
Liner algebra-vector space-1   introduction to vector space and subspace Liner algebra-vector space-1   introduction to vector space and subspace
Liner algebra-vector space-1 introduction to vector space and subspace Manikanta satyala
 
Geometric probability distribution
Geometric probability distributionGeometric probability distribution
Geometric probability distributionNadeem Uddin
 

Tendances (20)

random variable and distribution
random variable and distributionrandom variable and distribution
random variable and distribution
 
Random Variable
Random VariableRandom Variable
Random Variable
 
Chapter 1 random variables and probability distributions
Chapter 1   random variables and probability distributionsChapter 1   random variables and probability distributions
Chapter 1 random variables and probability distributions
 
Discrete Random Variables And Probability Distributions
Discrete Random Variables And Probability DistributionsDiscrete Random Variables And Probability Distributions
Discrete Random Variables And Probability Distributions
 
Probability Distributions for Discrete Variables
Probability Distributions for Discrete VariablesProbability Distributions for Discrete Variables
Probability Distributions for Discrete Variables
 
Continuous functions
Continuous functionsContinuous functions
Continuous functions
 
Discrete distributions: Binomial, Poisson & Hypergeometric distributions
Discrete distributions:  Binomial, Poisson & Hypergeometric distributionsDiscrete distributions:  Binomial, Poisson & Hypergeometric distributions
Discrete distributions: Binomial, Poisson & Hypergeometric distributions
 
Applied Calculus: Continuity and Discontinuity of Function
Applied Calculus: Continuity and Discontinuity of FunctionApplied Calculus: Continuity and Discontinuity of Function
Applied Calculus: Continuity and Discontinuity of Function
 
Geometric Distribution
Geometric DistributionGeometric Distribution
Geometric Distribution
 
Moment Generating Functions
Moment Generating FunctionsMoment Generating Functions
Moment Generating Functions
 
Introduction to Probability and Probability Distributions
Introduction to Probability and Probability DistributionsIntroduction to Probability and Probability Distributions
Introduction to Probability and Probability Distributions
 
evaluating limits
evaluating limitsevaluating limits
evaluating limits
 
Limit of functions
Limit of functionsLimit of functions
Limit of functions
 
4.1-4.2 Sample Spaces and Probability
4.1-4.2 Sample Spaces and Probability4.1-4.2 Sample Spaces and Probability
4.1-4.2 Sample Spaces and Probability
 
Mean of a discrete random variable.ppt
Mean of a discrete random variable.pptMean of a discrete random variable.ppt
Mean of a discrete random variable.ppt
 
Introduction to probability distributions-Statistics and probability analysis
Introduction to probability distributions-Statistics and probability analysis Introduction to probability distributions-Statistics and probability analysis
Introduction to probability distributions-Statistics and probability analysis
 
Inverse functions
Inverse functionsInverse functions
Inverse functions
 
Liner algebra-vector space-1 introduction to vector space and subspace
Liner algebra-vector space-1   introduction to vector space and subspace Liner algebra-vector space-1   introduction to vector space and subspace
Liner algebra-vector space-1 introduction to vector space and subspace
 
Discrete probability distributions
Discrete probability distributionsDiscrete probability distributions
Discrete probability distributions
 
Geometric probability distribution
Geometric probability distributionGeometric probability distribution
Geometric probability distribution
 

En vedette

Probability and statistics(assign 7 and 8)
Probability and statistics(assign 7 and 8)Probability and statistics(assign 7 and 8)
Probability and statistics(assign 7 and 8)Fatima Bianca Gueco
 
Applications of chemistry in everyday life
Applications of chemistry in everyday lifeApplications of chemistry in everyday life
Applications of chemistry in everyday lifeJerome Bigael
 
The different Biomolecules
The different BiomoleculesThe different Biomolecules
The different BiomoleculesJerome Bigael
 
Supernovae & the First Stars in the Universe
Supernovae & the First Stars in the UniverseSupernovae & the First Stars in the Universe
Supernovae & the First Stars in the UniverseMonash University
 
Stellar evolution 2015
Stellar evolution 2015Stellar evolution 2015
Stellar evolution 2015Paula Mills
 
Nucleosynthesis
NucleosynthesisNucleosynthesis
Nucleosynthesisluna1411
 
Nucleosynthesis
NucleosynthesisNucleosynthesis
Nucleosynthesisluna1411
 
Stellar Nucleosynthesis by Tarun P. Roshan,
Stellar Nucleosynthesis by Tarun P. Roshan, Stellar Nucleosynthesis by Tarun P. Roshan,
Stellar Nucleosynthesis by Tarun P. Roshan, CHSTRIVER
 
Formation of Light and Heavy Elements
Formation of Light and Heavy ElementsFormation of Light and Heavy Elements
Formation of Light and Heavy ElementsJerome Bigael
 
STATISTICS AND PROBABILITY (TEACHING GUIDE)
STATISTICS AND PROBABILITY (TEACHING GUIDE)STATISTICS AND PROBABILITY (TEACHING GUIDE)
STATISTICS AND PROBABILITY (TEACHING GUIDE)PRINTDESK by Dan
 

En vedette (13)

Probability and statistics(assign 7 and 8)
Probability and statistics(assign 7 and 8)Probability and statistics(assign 7 and 8)
Probability and statistics(assign 7 and 8)
 
Real statistics
Real statisticsReal statistics
Real statistics
 
Stellar evolution
Stellar evolutionStellar evolution
Stellar evolution
 
Applications of chemistry in everyday life
Applications of chemistry in everyday lifeApplications of chemistry in everyday life
Applications of chemistry in everyday life
 
The different Biomolecules
The different BiomoleculesThe different Biomolecules
The different Biomolecules
 
Supernovae & the First Stars in the Universe
Supernovae & the First Stars in the UniverseSupernovae & the First Stars in the Universe
Supernovae & the First Stars in the Universe
 
Stellar evolution 2015
Stellar evolution 2015Stellar evolution 2015
Stellar evolution 2015
 
Stars - Stellar Evolution
Stars - Stellar EvolutionStars - Stellar Evolution
Stars - Stellar Evolution
 
Nucleosynthesis
NucleosynthesisNucleosynthesis
Nucleosynthesis
 
Nucleosynthesis
NucleosynthesisNucleosynthesis
Nucleosynthesis
 
Stellar Nucleosynthesis by Tarun P. Roshan,
Stellar Nucleosynthesis by Tarun P. Roshan, Stellar Nucleosynthesis by Tarun P. Roshan,
Stellar Nucleosynthesis by Tarun P. Roshan,
 
Formation of Light and Heavy Elements
Formation of Light and Heavy ElementsFormation of Light and Heavy Elements
Formation of Light and Heavy Elements
 
STATISTICS AND PROBABILITY (TEACHING GUIDE)
STATISTICS AND PROBABILITY (TEACHING GUIDE)STATISTICS AND PROBABILITY (TEACHING GUIDE)
STATISTICS AND PROBABILITY (TEACHING GUIDE)
 

Similaire à Introduction to random variables

Lesson 21: More Algebra
Lesson 21: More AlgebraLesson 21: More Algebra
Lesson 21: More AlgebraKevin Johnson
 
1 Excel Basics & Diff Error Prop
1 Excel Basics & Diff Error Prop1 Excel Basics & Diff Error Prop
1 Excel Basics & Diff Error PropBrucePhebus
 
Deep Learning: Introduction & Chapter 5 Machine Learning Basics
Deep Learning: Introduction & Chapter 5 Machine Learning BasicsDeep Learning: Introduction & Chapter 5 Machine Learning Basics
Deep Learning: Introduction & Chapter 5 Machine Learning BasicsJason Tsai
 
Stochastic Processes Homework Help
Stochastic Processes Homework HelpStochastic Processes Homework Help
Stochastic Processes Homework HelpExcel Homework Help
 
SOFIE - A Unified Approach To Ontology-Based Information Extraction Using Rea...
SOFIE - A Unified Approach To Ontology-Based Information Extraction Using Rea...SOFIE - A Unified Approach To Ontology-Based Information Extraction Using Rea...
SOFIE - A Unified Approach To Ontology-Based Information Extraction Using Rea...Tobias Wunner
 
Calculus - Functions Review
Calculus - Functions ReviewCalculus - Functions Review
Calculus - Functions Reviewhassaanciit
 
Analysis with an introduction to proof 5th edition lay solutions manual
Analysis with an introduction to proof 5th edition lay solutions manualAnalysis with an introduction to proof 5th edition lay solutions manual
Analysis with an introduction to proof 5th edition lay solutions manualPatrick492
 
Discrete Mathematics - All chapters
Discrete Mathematics - All chapters Discrete Mathematics - All chapters
Discrete Mathematics - All chapters Omnia A. Abdullah
 
GDSC SSN - solution Challenge : Fundamentals of Decision Making
GDSC SSN - solution Challenge : Fundamentals of Decision MakingGDSC SSN - solution Challenge : Fundamentals of Decision Making
GDSC SSN - solution Challenge : Fundamentals of Decision MakingGDSCSSN
 
20130928 automated theorem_proving_harrison
20130928 automated theorem_proving_harrison20130928 automated theorem_proving_harrison
20130928 automated theorem_proving_harrisonComputer Science Club
 
Solutions manual for analysis with an introduction to proof 5th edition by lay
Solutions manual for analysis with an introduction to proof 5th edition by laySolutions manual for analysis with an introduction to proof 5th edition by lay
Solutions manual for analysis with an introduction to proof 5th edition by layteckli
 
NCE, GANs & VAEs (and maybe BAC)
NCE, GANs & VAEs (and maybe BAC)NCE, GANs & VAEs (and maybe BAC)
NCE, GANs & VAEs (and maybe BAC)Christian Robert
 
Machine Learning
Machine LearningMachine Learning
Machine LearningAshwin P N
 
R. Bartle, D. Sherbert - Instructors Manual - Introduction to Real Analysis-J...
R. Bartle, D. Sherbert - Instructors Manual - Introduction to Real Analysis-J...R. Bartle, D. Sherbert - Instructors Manual - Introduction to Real Analysis-J...
R. Bartle, D. Sherbert - Instructors Manual - Introduction to Real Analysis-J...ArnavBishnoi2
 
R. Bartle, D. Sherbert - Instructors Manual - Introduction to Real Analysis-J...
R. Bartle, D. Sherbert - Instructors Manual - Introduction to Real Analysis-J...R. Bartle, D. Sherbert - Instructors Manual - Introduction to Real Analysis-J...
R. Bartle, D. Sherbert - Instructors Manual - Introduction to Real Analysis-J...ArnavBishnoi2
 

Similaire à Introduction to random variables (20)

Lesson 21: More Algebra
Lesson 21: More AlgebraLesson 21: More Algebra
Lesson 21: More Algebra
 
Lesson 1: Functions
Lesson 1: FunctionsLesson 1: Functions
Lesson 1: Functions
 
1 Excel Basics & Diff Error Prop
1 Excel Basics & Diff Error Prop1 Excel Basics & Diff Error Prop
1 Excel Basics & Diff Error Prop
 
Stochastic Processes Homework Help
Stochastic Processes Homework Help Stochastic Processes Homework Help
Stochastic Processes Homework Help
 
Deep Learning: Introduction & Chapter 5 Machine Learning Basics
Deep Learning: Introduction & Chapter 5 Machine Learning BasicsDeep Learning: Introduction & Chapter 5 Machine Learning Basics
Deep Learning: Introduction & Chapter 5 Machine Learning Basics
 
Stochastic Processes Homework Help
Stochastic Processes Homework HelpStochastic Processes Homework Help
Stochastic Processes Homework Help
 
SOFIE - A Unified Approach To Ontology-Based Information Extraction Using Rea...
SOFIE - A Unified Approach To Ontology-Based Information Extraction Using Rea...SOFIE - A Unified Approach To Ontology-Based Information Extraction Using Rea...
SOFIE - A Unified Approach To Ontology-Based Information Extraction Using Rea...
 
C2.0 propositional logic
C2.0 propositional logicC2.0 propositional logic
C2.0 propositional logic
 
Calculus - Functions Review
Calculus - Functions ReviewCalculus - Functions Review
Calculus - Functions Review
 
dma_ppt.pdf
dma_ppt.pdfdma_ppt.pdf
dma_ppt.pdf
 
Analysis with an introduction to proof 5th edition lay solutions manual
Analysis with an introduction to proof 5th edition lay solutions manualAnalysis with an introduction to proof 5th edition lay solutions manual
Analysis with an introduction to proof 5th edition lay solutions manual
 
CDT 22 slides.pdf
CDT 22 slides.pdfCDT 22 slides.pdf
CDT 22 slides.pdf
 
Discrete Mathematics - All chapters
Discrete Mathematics - All chapters Discrete Mathematics - All chapters
Discrete Mathematics - All chapters
 
GDSC SSN - solution Challenge : Fundamentals of Decision Making
GDSC SSN - solution Challenge : Fundamentals of Decision MakingGDSC SSN - solution Challenge : Fundamentals of Decision Making
GDSC SSN - solution Challenge : Fundamentals of Decision Making
 
20130928 automated theorem_proving_harrison
20130928 automated theorem_proving_harrison20130928 automated theorem_proving_harrison
20130928 automated theorem_proving_harrison
 
Solutions manual for analysis with an introduction to proof 5th edition by lay
Solutions manual for analysis with an introduction to proof 5th edition by laySolutions manual for analysis with an introduction to proof 5th edition by lay
Solutions manual for analysis with an introduction to proof 5th edition by lay
 
NCE, GANs & VAEs (and maybe BAC)
NCE, GANs & VAEs (and maybe BAC)NCE, GANs & VAEs (and maybe BAC)
NCE, GANs & VAEs (and maybe BAC)
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 
R. Bartle, D. Sherbert - Instructors Manual - Introduction to Real Analysis-J...
R. Bartle, D. Sherbert - Instructors Manual - Introduction to Real Analysis-J...R. Bartle, D. Sherbert - Instructors Manual - Introduction to Real Analysis-J...
R. Bartle, D. Sherbert - Instructors Manual - Introduction to Real Analysis-J...
 
R. Bartle, D. Sherbert - Instructors Manual - Introduction to Real Analysis-J...
R. Bartle, D. Sherbert - Instructors Manual - Introduction to Real Analysis-J...R. Bartle, D. Sherbert - Instructors Manual - Introduction to Real Analysis-J...
R. Bartle, D. Sherbert - Instructors Manual - Introduction to Real Analysis-J...
 

Plus de Hadley Wickham (20)

27 development
27 development27 development
27 development
 
27 development
27 development27 development
27 development
 
24 modelling
24 modelling24 modelling
24 modelling
 
23 data-structures
23 data-structures23 data-structures
23 data-structures
 
Graphical inference
Graphical inferenceGraphical inference
Graphical inference
 
R packages
R packagesR packages
R packages
 
22 spam
22 spam22 spam
22 spam
 
21 spam
21 spam21 spam
21 spam
 
20 date-times
20 date-times20 date-times
20 date-times
 
19 tables
19 tables19 tables
19 tables
 
18 cleaning
18 cleaning18 cleaning
18 cleaning
 
17 polishing
17 polishing17 polishing
17 polishing
 
16 critique
16 critique16 critique
16 critique
 
15 time-space
15 time-space15 time-space
15 time-space
 
14 case-study
14 case-study14 case-study
14 case-study
 
13 case-study
13 case-study13 case-study
13 case-study
 
12 adv-manip
12 adv-manip12 adv-manip
12 adv-manip
 
11 adv-manip
11 adv-manip11 adv-manip
11 adv-manip
 
11 adv-manip
11 adv-manip11 adv-manip
11 adv-manip
 
10 simulation
10 simulation10 simulation
10 simulation
 

Dernier

GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxruthvilladarez
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 

Dernier (20)

GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 

Introduction to random variables

  • 1. Stat310 Random variables Hadley Wickham
  • 2. 1. Feedback 2. Recap 3. Introduction to random variables 4. Expectation
  • 4. Attending class Taking good notes Did homework Did homework early Reading through text 0 4 8 12 16 20
  • 5. Attending class Taking good notes Did homework Did homework early Reading through text 0 4 8 12 16 20 Read book More work outside of class Start homework earlier
  • 6. Examples Interactivity & Feedback Clear presentation/explanations Website Powerpoints Recaps 0 5 10 15 20 25
  • 7. Examples Interactivity & Feedback Clear presentation/explanations Website Powerpoints Recaps 0 5 10 15 20 25 Accent T shirts
  • 8. Improvements Board skills: mistakes, more details & structure, straight lines Pace: 5 good, 5 too fast, 2 too slow Office hours. Homework answers online. Connection to text/more practice. Class mailing list / forums?
  • 9. Notation k xi i=1 xi i∈{1,...,k} xi
  • 10. Recap What is the law of total probability? What is the multiplication rule? What is Bayes rule?
  • 11. Recap A, B and C are independent events. What is P(A ∪ B ∪ C)?
  • 13. Why? Probability is a set function. Kind of tricky to deal with. Easier to deal with functions of numbers. Want to ignore details of problem (e.g. specific events) and focus on essence. Real world ➙ mathematical world
  • 14. Definition A random variable is a function from the sample space to the real line Usually given a capital letter like X, Y or Z The space (or support) of a random variable is the range of the function (analogous to the sample space) (Usually just call the result a random variable)
  • 15. Discrete vs. continuous Space of X is countable = can be mapped to integers = discrete Space of X is uncountable = can be mapped to real numbers = continuous (We’ll focus on discrete to start with)
  • 16. Example Select a family at random and observe their children. What is the sample space? What random variables could we create from this experiment?
  • 17. Example Pick someone at random out of this class. Measure their height. What random variables could we create from this experiment?
  • 18. Random variables For a countable sample space, usually a count. (But many things we could count) For a uncountable sample space, usually just the value. (Typically fewer logical possibilities)
  • 19. Random event Random variable Anything Numbers Probability mass Probability function
  • 20. Discrete pmf f (x) > 0 ∀x ∈ S f (x) = 1 x∈S P (X ∈ A) = f (x) x∈A
  • 21. Example • If X=1, f(x) = 0.9 • If X=2,3,4,5 or 6, f(x) = c/x • (How to write and read more mathematically) • Is this function is a pmf? What is c?
  • 22. Why? Once we have random variable + pmf, we don’t need any more information about the original experiment. Means we can apply the same tools to completely different types of experiments.
  • 23. Example Draw two cards (with replacement) out of a shuffled pack. Let X be the number of hearts and clubs. What is the pmf of X? Pick two people at random. Let Y be the number of males. What is the pmf of Y? How are these pmfs related?
  • 24. Expectation E[u(X)] = u(x)f (x) x∈S Summarises a function of a random number with a single number
  • 25. W ha ta an re Properties du c ? E[c] = c E[cu(X)] = cE[u(X)] E[au1 (X) + bu2 (X)] = aE[u1 (X)] + bE[u2 (X)] All conditions together imply E is a linear operator