SlideShare a Scribd company logo
1 of 8
Lecture 8: ODE-BVP
Qing Shao
CME-505
2022 Fall
Statistics for Data Analysis
• Merriam-Webster Definition
A branch of mathematics dealing with the collection, analysis,
interpretation, and presentation of masses of numerical data
• Questions that can be addressed
• What is the most likely value of a measured quantity?
• How certain are we of a measured value?
• How many measurements would be needed to improve certainty?
• Are two measurements actually different from each other?
• Derived based on probability, which only really applies to
many repeated measurements
• Often the goal is
measured value ± uncertainty
Randomness and Statistical Measures
• In experiments, we assume errors are independent and identically
distributed so analysis can be done
• Some quantities can be calculated directly from observed set of n
values {xi}
• Mean (numpy.mean)
𝑥 =
𝑖=1
𝑛
𝑥𝑖 /(𝑛)
• Variance
𝜎2 =
𝑖=1
𝑛
(𝑥𝑖−𝑥)2 /(𝑛 − 1)
• Standard deviation = s (numpy.std)
• Standard error
𝑆𝐸 =
𝜎
𝑛
Normal Distribution
• There are many functions that describe the distribution of expected
observations
• For continuous variable, probability of observing value x between xa
and xb is given by p = 𝑥𝑎
𝑥𝑏
𝑓 𝑥 𝑑𝑥
• Many exist (log-normal, Weibull, etc.)
• The most relevant to experiments:
normal distribution  random
variation about mean
• Gaussian describes distribution
𝑓 𝑥 =
1
2𝜋𝜎
exp −
(𝑥−𝑥)2
2𝜎2
Confidence Intervals (a range of
estimates for an unknown variable)
• The actual confidence interval depends on the number of trials (n)
and how sure we want to be (CI)
• We select confidence interval (CI) (default = 95%), meaning that we
want there to be a 95% chance of actual value being in that interval
• Alpha (a) = 1-CI (0.05 here)
• Confidence interval is found using the t-statistic, which is tabulated as
a function of a and degrees of freedom (n-1 for us)
• Use a/2 because t-statistic applies to one side of distribution
• In Scipy, scipy.stats.t.ppf(p,nu)
• https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.t.ht
ml
Look up df
Look up a
Multiple Variables and Covariance
• Many experiments depend on multiple variables
• Covariance is a measure of how uncertainties are related
𝜎2(𝑥, 𝑦) =
𝑖=1
𝑛
(𝑥𝑖−𝑥)(𝑦𝑖−𝑦) /(𝑛 − 1)
• If s(x,y) = 0, uncertainties are not directly related (although variables
still might be)
• If there is no covariance, uncertainty in a measured quantity can be
propagated to derived quantities
• It can be shown mathematically that the variance of z, which is a
function of N variables xi without covariance, is given by:
Error Propagation Formulas
• The relationship on the last slide leads to error propagation formulas

More Related Content

Similar to Statistics for Data Analysis - ODE - BVP .pptx

Similar to Statistics for Data Analysis - ODE - BVP .pptx (20)

Intro to data science
Intro to data scienceIntro to data science
Intro to data science
 
Introduction to sampling
Introduction to samplingIntroduction to sampling
Introduction to sampling
 
presentation_statistics_1448025870_153985.ppt
presentation_statistics_1448025870_153985.pptpresentation_statistics_1448025870_153985.ppt
presentation_statistics_1448025870_153985.ppt
 
week6a.ppt
week6a.pptweek6a.ppt
week6a.ppt
 
Presentation1
Presentation1Presentation1
Presentation1
 
Dr.Dinesh-BIOSTAT-Tests-of-significance-1-min.pdf
Dr.Dinesh-BIOSTAT-Tests-of-significance-1-min.pdfDr.Dinesh-BIOSTAT-Tests-of-significance-1-min.pdf
Dr.Dinesh-BIOSTAT-Tests-of-significance-1-min.pdf
 
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
 
BIIntro.ppt
BIIntro.pptBIIntro.ppt
BIIntro.ppt
 
Stats chapter 10
Stats chapter 10Stats chapter 10
Stats chapter 10
 
evaluation and credibility-Part 1
evaluation and credibility-Part 1evaluation and credibility-Part 1
evaluation and credibility-Part 1
 
1. complete stats notes
1. complete stats notes1. complete stats notes
1. complete stats notes
 
POINT_INTERVAL_estimates.ppt
POINT_INTERVAL_estimates.pptPOINT_INTERVAL_estimates.ppt
POINT_INTERVAL_estimates.ppt
 
Statistics-2 : Elements of Inference
Statistics-2 : Elements of InferenceStatistics-2 : Elements of Inference
Statistics-2 : Elements of Inference
 
LR 9 Estimation.pdf
LR 9 Estimation.pdfLR 9 Estimation.pdf
LR 9 Estimation.pdf
 
Spsshelp 100608163328-phpapp01
Spsshelp 100608163328-phpapp01Spsshelp 100608163328-phpapp01
Spsshelp 100608163328-phpapp01
 
lecture-2.ppt
lecture-2.pptlecture-2.ppt
lecture-2.ppt
 
COM 201_Inferential Statistics_18032022.pptx
COM 201_Inferential Statistics_18032022.pptxCOM 201_Inferential Statistics_18032022.pptx
COM 201_Inferential Statistics_18032022.pptx
 
9618821.pdf
9618821.pdf9618821.pdf
9618821.pdf
 
9618821.ppt
9618821.ppt9618821.ppt
9618821.ppt
 
Machine learning mathematicals.pdf
Machine learning mathematicals.pdfMachine learning mathematicals.pdf
Machine learning mathematicals.pdf
 

Recently uploaded

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
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
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 

Recently uploaded (20)

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
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
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 

Statistics for Data Analysis - ODE - BVP .pptx

  • 1. Lecture 8: ODE-BVP Qing Shao CME-505 2022 Fall
  • 2. Statistics for Data Analysis • Merriam-Webster Definition A branch of mathematics dealing with the collection, analysis, interpretation, and presentation of masses of numerical data • Questions that can be addressed • What is the most likely value of a measured quantity? • How certain are we of a measured value? • How many measurements would be needed to improve certainty? • Are two measurements actually different from each other? • Derived based on probability, which only really applies to many repeated measurements • Often the goal is measured value ± uncertainty
  • 3. Randomness and Statistical Measures • In experiments, we assume errors are independent and identically distributed so analysis can be done • Some quantities can be calculated directly from observed set of n values {xi} • Mean (numpy.mean) 𝑥 = 𝑖=1 𝑛 𝑥𝑖 /(𝑛) • Variance 𝜎2 = 𝑖=1 𝑛 (𝑥𝑖−𝑥)2 /(𝑛 − 1) • Standard deviation = s (numpy.std) • Standard error 𝑆𝐸 = 𝜎 𝑛
  • 4. Normal Distribution • There are many functions that describe the distribution of expected observations • For continuous variable, probability of observing value x between xa and xb is given by p = 𝑥𝑎 𝑥𝑏 𝑓 𝑥 𝑑𝑥 • Many exist (log-normal, Weibull, etc.) • The most relevant to experiments: normal distribution  random variation about mean • Gaussian describes distribution 𝑓 𝑥 = 1 2𝜋𝜎 exp − (𝑥−𝑥)2 2𝜎2
  • 5. Confidence Intervals (a range of estimates for an unknown variable) • The actual confidence interval depends on the number of trials (n) and how sure we want to be (CI) • We select confidence interval (CI) (default = 95%), meaning that we want there to be a 95% chance of actual value being in that interval • Alpha (a) = 1-CI (0.05 here) • Confidence interval is found using the t-statistic, which is tabulated as a function of a and degrees of freedom (n-1 for us) • Use a/2 because t-statistic applies to one side of distribution • In Scipy, scipy.stats.t.ppf(p,nu) • https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.t.ht ml
  • 7. Multiple Variables and Covariance • Many experiments depend on multiple variables • Covariance is a measure of how uncertainties are related 𝜎2(𝑥, 𝑦) = 𝑖=1 𝑛 (𝑥𝑖−𝑥)(𝑦𝑖−𝑦) /(𝑛 − 1) • If s(x,y) = 0, uncertainties are not directly related (although variables still might be) • If there is no covariance, uncertainty in a measured quantity can be propagated to derived quantities • It can be shown mathematically that the variance of z, which is a function of N variables xi without covariance, is given by:
  • 8. Error Propagation Formulas • The relationship on the last slide leads to error propagation formulas