SlideShare a Scribd company logo
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

More Related Content

What's hot

Discrete Random Variables And Probability Distributions
Discrete Random Variables And Probability DistributionsDiscrete Random Variables And Probability Distributions
Discrete Random Variables And Probability Distributionsmathscontent
 
Statistics and probability
Statistics and probability   Statistics and probability
Statistics and probability Muhammad Mayo
 
random variable and distribution
random variable and distributionrandom variable and distribution
random variable and distributionlovemucheca
 
Discrete Probability Distributions
Discrete Probability DistributionsDiscrete Probability Distributions
Discrete Probability Distributionsmandalina landy
 
Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor Mohd. Noor Abdul Hamid
 
Inverse functions
Inverse functionsInverse functions
Inverse functionsPLeach
 
Exponential Functions
Exponential FunctionsExponential Functions
Exponential Functionsitutor
 
Math functions, relations, domain & range
Math functions, relations, domain & rangeMath functions, relations, domain & range
Math functions, relations, domain & rangeRenee Scott
 
Basic Concept Of Probability
Basic Concept Of ProbabilityBasic Concept Of Probability
Basic Concept Of Probabilityguest45a926
 
Basic Calculus 11 - Derivatives and Differentiation Rules
Basic Calculus 11 - Derivatives and Differentiation RulesBasic Calculus 11 - Derivatives and Differentiation Rules
Basic Calculus 11 - Derivatives and Differentiation RulesJuan Miguel Palero
 
Uniform Distribution
Uniform DistributionUniform Distribution
Uniform Distributionmathscontent
 
8.1 intro to functions
8.1 intro to functions8.1 intro to functions
8.1 intro to functionsBarbara Knab
 
Math presentation on domain and range
Math presentation on domain and rangeMath presentation on domain and range
Math presentation on domain and rangeTouhidul Shawan
 
Discrete random variable.
Discrete random variable.Discrete random variable.
Discrete random variable.Shakeel Nouman
 
Rational functions
Rational functionsRational functions
Rational functionszozima
 
Continuity of a Function
Continuity of a Function Continuity of a Function
Continuity of a Function Vishvesh Jasani
 

What's hot (20)

Discrete Random Variables And Probability Distributions
Discrete Random Variables And Probability DistributionsDiscrete Random Variables And Probability Distributions
Discrete Random Variables And Probability Distributions
 
Statistics and probability
Statistics and probability   Statistics and probability
Statistics and probability
 
random variable and distribution
random variable and distributionrandom variable and distribution
random variable and distribution
 
Discrete and Continuous Random Variables
Discrete and Continuous Random VariablesDiscrete and Continuous Random Variables
Discrete and Continuous Random Variables
 
Inverse functions
Inverse functionsInverse functions
Inverse functions
 
Discrete Probability Distributions
Discrete Probability DistributionsDiscrete Probability Distributions
Discrete Probability Distributions
 
Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor
 
Inverse functions
Inverse functionsInverse functions
Inverse functions
 
Exponential Functions
Exponential FunctionsExponential Functions
Exponential Functions
 
Math functions, relations, domain & range
Math functions, relations, domain & rangeMath functions, relations, domain & range
Math functions, relations, domain & range
 
Basic Concept Of Probability
Basic Concept Of ProbabilityBasic Concept Of Probability
Basic Concept Of Probability
 
Basic Calculus 11 - Derivatives and Differentiation Rules
Basic Calculus 11 - Derivatives and Differentiation RulesBasic Calculus 11 - Derivatives and Differentiation Rules
Basic Calculus 11 - Derivatives and Differentiation Rules
 
Uniform Distribution
Uniform DistributionUniform Distribution
Uniform Distribution
 
8.1 intro to functions
8.1 intro to functions8.1 intro to functions
8.1 intro to functions
 
7 functions
7   functions7   functions
7 functions
 
Math presentation on domain and range
Math presentation on domain and rangeMath presentation on domain and range
Math presentation on domain and range
 
Intro to probability
Intro to probabilityIntro to probability
Intro to probability
 
Discrete random variable.
Discrete random variable.Discrete random variable.
Discrete random variable.
 
Rational functions
Rational functionsRational functions
Rational functions
 
Continuity of a Function
Continuity of a Function Continuity of a Function
Continuity of a Function
 

Viewers also liked

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
 
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
 
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
 

Viewers also liked (14)

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
 
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
 
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)
 

Similar to 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
 
Linear Programming- Leacture-16-lp1.pptx
Linear Programming- Leacture-16-lp1.pptxLinear Programming- Leacture-16-lp1.pptx
Linear Programming- Leacture-16-lp1.pptxSarahKoech1
 
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
 

Similar to 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
 
Linear Programming- Leacture-16-lp1.pptx
Linear Programming- Leacture-16-lp1.pptxLinear Programming- Leacture-16-lp1.pptx
Linear Programming- Leacture-16-lp1.pptx
 
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...
 

More from 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
 

Recently uploaded

How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleCeline George
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticspragatimahajan3
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonSteve Thomason
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersPedroFerreira53928
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17Celine George
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345beazzy04
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxJenilouCasareno
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTechSoup
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resourcesdimpy50
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringDenish Jangid
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfbu07226
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportAvinash Rai
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsCol Mukteshwar Prasad
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptSourabh Kumar
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online PresentationGDSCYCCE
 

Recently uploaded (20)

How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 

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