SlideShare una empresa de Scribd logo
1 de 2
Matlab
all the terms should be dened, and anyone reading it
Law of Large Numbers and the Central Limit Theorem:
Generate N random variables that are uniformly distributed on [0,1] and nd the average (e.g., in
Matlab you can use sum(rand(1,N))/N). Is this number close to the expected value of a uniform
random variable? Plot this average versus N, and observe whether it converges to the expected
value. Now do the same as above, except we subtract the mean, and normalize with N instead of
N, so that you have sum(rand(1,N)-0.5)/sqrt(N). Do this many (say M) times, which will give
you M numbers at the end. What distribution should these number follow if N is large? Draw a
histogram of these M numbers using the hist command to get a clue. Comment on the reason.
What is the eect of N on your conclusion. Say, if N = 2 would this work? What about N = 10?
Solution
Matlab
all the terms should be dened, and anyone reading it
Law of Large Numbers and the Central Limit Theorem:
Generate N random variables that are uniformly distributed on [0,1] and nd the average (e.g., in
Matlab you can use sum(rand(1,N))/N). Is this number close to the expected value of a uniform
random variable? Plot this average versus N, and observe whether it converges to the expected
value. Now do the same as above, except we subtract the mean, and normalize with N instead of
N, so that you have sum(rand(1,N)-0.5)/sqrt(N). Do this many (say M) times, which will give
you M numbers at the end. What distribution should these number follow if N is large? Draw a
histogram of these M numbers using the hist command to get a clue. Comment on the reason.
What is the eect of N on your conclusion. Say, if N = 2 would this work? What about N = 10?
Matlab all the terms should be dened- and anyone reading it Law of Lar.docx

Más contenido relacionado

Similar a Matlab all the terms should be dened- and anyone reading it Law of Lar.docx

Sienna 13 limitations
Sienna 13 limitationsSienna 13 limitations
Sienna 13 limitations
chidabdu
 
CHAPTER TENObjectiveA brief introduction of the basic concept
CHAPTER TENObjectiveA brief introduction of the basic conceptCHAPTER TENObjectiveA brief introduction of the basic concept
CHAPTER TENObjectiveA brief introduction of the basic concept
TawnaDelatorrejs
 
27-Equivalent under modulo-27-Oct-2020Material_I_27-Oct-2020_Cryptography_.pdf
27-Equivalent under modulo-27-Oct-2020Material_I_27-Oct-2020_Cryptography_.pdf27-Equivalent under modulo-27-Oct-2020Material_I_27-Oct-2020_Cryptography_.pdf
27-Equivalent under modulo-27-Oct-2020Material_I_27-Oct-2020_Cryptography_.pdf
Mohamedshabana38
 
SAMPLING MEAN DEFINITION The term sampling mean .docx
SAMPLING MEAN DEFINITION The term sampling mean .docxSAMPLING MEAN DEFINITION The term sampling mean .docx
SAMPLING MEAN DEFINITION The term sampling mean .docx
anhlodge
 

Similar a Matlab all the terms should be dened- and anyone reading it Law of Lar.docx (20)

Machine learning session4(linear regression)
Machine learning   session4(linear regression)Machine learning   session4(linear regression)
Machine learning session4(linear regression)
 
Sienna 13 limitations
Sienna 13 limitationsSienna 13 limitations
Sienna 13 limitations
 
2. diagnostics, collinearity, transformation, and missing data
2. diagnostics, collinearity, transformation, and missing data 2. diagnostics, collinearity, transformation, and missing data
2. diagnostics, collinearity, transformation, and missing data
 
Linear regression
Linear regressionLinear regression
Linear regression
 
Theory of uncertainty of measurement.pdf
Theory of uncertainty of measurement.pdfTheory of uncertainty of measurement.pdf
Theory of uncertainty of measurement.pdf
 
SAS Homework Help
SAS Homework HelpSAS Homework Help
SAS Homework Help
 
Daa chapter 2
Daa chapter 2Daa chapter 2
Daa chapter 2
 
CHAPTER TENObjectiveA brief introduction of the basic concept
CHAPTER TENObjectiveA brief introduction of the basic conceptCHAPTER TENObjectiveA brief introduction of the basic concept
CHAPTER TENObjectiveA brief introduction of the basic concept
 
Lecture3
Lecture3Lecture3
Lecture3
 
Statistical parameters
Statistical parametersStatistical parameters
Statistical parameters
 
27-Equivalent under modulo-27-Oct-2020Material_I_27-Oct-2020_Cryptography_.pdf
27-Equivalent under modulo-27-Oct-2020Material_I_27-Oct-2020_Cryptography_.pdf27-Equivalent under modulo-27-Oct-2020Material_I_27-Oct-2020_Cryptography_.pdf
27-Equivalent under modulo-27-Oct-2020Material_I_27-Oct-2020_Cryptography_.pdf
 
Empirics of standard deviation
Empirics of standard deviationEmpirics of standard deviation
Empirics of standard deviation
 
Calc 4.6
Calc 4.6Calc 4.6
Calc 4.6
 
Makalah ukuran penyebaran
Makalah ukuran penyebaranMakalah ukuran penyebaran
Makalah ukuran penyebaran
 
Computer Science Exam Help
Computer Science Exam Help Computer Science Exam Help
Computer Science Exam Help
 
1561 maths
1561 maths1561 maths
1561 maths
 
SAMPLING MEAN DEFINITION The term sampling mean .docx
SAMPLING MEAN DEFINITION The term sampling mean .docxSAMPLING MEAN DEFINITION The term sampling mean .docx
SAMPLING MEAN DEFINITION The term sampling mean .docx
 
Statistics in research
Statistics in researchStatistics in research
Statistics in research
 
UE19EC353 ML Unit4_slides.pptx
UE19EC353 ML Unit4_slides.pptxUE19EC353 ML Unit4_slides.pptx
UE19EC353 ML Unit4_slides.pptx
 
Modeling and quantification of uncertainties in numerical aerodynamics
Modeling and quantification of uncertainties in numerical aerodynamicsModeling and quantification of uncertainties in numerical aerodynamics
Modeling and quantification of uncertainties in numerical aerodynamics
 

Más de sngyun4t79

Más de sngyun4t79 (20)

Presented below is information for Wildhorse Corp-- for the year 2025-.docx
Presented below is information for Wildhorse Corp-- for the year 2025-.docxPresented below is information for Wildhorse Corp-- for the year 2025-.docx
Presented below is information for Wildhorse Corp-- for the year 2025-.docx
 
Practice the following diagnostic statements using your Manual ICD-10.docx
Practice the following diagnostic statements using your Manual  ICD-10.docxPractice the following diagnostic statements using your Manual  ICD-10.docx
Practice the following diagnostic statements using your Manual ICD-10.docx
 
Potentials Question 15 Unanswered Hypokalemia (low extracellular K+ co.docx
Potentials Question 15 Unanswered Hypokalemia (low extracellular K+ co.docxPotentials Question 15 Unanswered Hypokalemia (low extracellular K+ co.docx
Potentials Question 15 Unanswered Hypokalemia (low extracellular K+ co.docx
 
Practice Management or Electronic Health Record- As a healthcare profe.docx
Practice Management or Electronic Health Record- As a healthcare profe.docxPractice Management or Electronic Health Record- As a healthcare profe.docx
Practice Management or Electronic Health Record- As a healthcare profe.docx
 
Prance- Inc-- earned pretax book net income of $941-000 in 2020- Pranc.docx
Prance- Inc-- earned pretax book net income of $941-000 in 2020- Pranc.docxPrance- Inc-- earned pretax book net income of $941-000 in 2020- Pranc.docx
Prance- Inc-- earned pretax book net income of $941-000 in 2020- Pranc.docx
 
ppl ppl ppl Match each ecosystem-biome with its traditional mone.docx
ppl ppl ppl       Match each ecosystem-biome with its traditional mone.docxppl ppl ppl       Match each ecosystem-biome with its traditional mone.docx
ppl ppl ppl Match each ecosystem-biome with its traditional mone.docx
 
Prepare Common-size financials for the Balance Sheet and Income Statem.docx
Prepare Common-size financials for the Balance Sheet and Income Statem.docxPrepare Common-size financials for the Balance Sheet and Income Statem.docx
Prepare Common-size financials for the Balance Sheet and Income Statem.docx
 
Q10- A person has inhaled carbon monoxide CO poisoning- CO has an ext.docx
Q10- A person has inhaled carbon monoxide  CO poisoning- CO has an ext.docxQ10- A person has inhaled carbon monoxide  CO poisoning- CO has an ext.docx
Q10- A person has inhaled carbon monoxide CO poisoning- CO has an ext.docx
 
Python Create 3 variables named- userName result userNum Prompt the u.docx
Python Create 3 variables named- userName  result userNum Prompt the u.docxPython Create 3 variables named- userName  result userNum Prompt the u.docx
Python Create 3 variables named- userName result userNum Prompt the u.docx
 
Python coding Question Assume the availability of a function is_prime-.docx
Python coding Question Assume the availability of a function is_prime-.docxPython coding Question Assume the availability of a function is_prime-.docx
Python coding Question Assume the availability of a function is_prime-.docx
 
Puerto Rico has been devastated by hurricane Maria- Three weeks after.docx
Puerto Rico has been devastated by hurricane Maria- Three weeks after.docxPuerto Rico has been devastated by hurricane Maria- Three weeks after.docx
Puerto Rico has been devastated by hurricane Maria- Three weeks after.docx
 
public static void main(String-- args) { int i- int-- list - {0-1-0-4-.docx
public static void main(String-- args) { int i- int-- list - {0-1-0-4-.docxpublic static void main(String-- args) { int i- int-- list - {0-1-0-4-.docx
public static void main(String-- args) { int i- int-- list - {0-1-0-4-.docx
 
Provide an example of an evervday material that is linearly elastic Pr.docx
Provide an example of an evervday material that is linearly elastic Pr.docxProvide an example of an evervday material that is linearly elastic Pr.docx
Provide an example of an evervday material that is linearly elastic Pr.docx
 
Proteins in the blood plasma involved in hemostasis include Albumins A.docx
Proteins in the blood plasma involved in hemostasis include Albumins A.docxProteins in the blood plasma involved in hemostasis include Albumins A.docx
Proteins in the blood plasma involved in hemostasis include Albumins A.docx
 
Proteins that lack a vacuolar localization signal will be secreted int.docx
Proteins that lack a vacuolar localization signal will be secreted int.docxProteins that lack a vacuolar localization signal will be secreted int.docx
Proteins that lack a vacuolar localization signal will be secreted int.docx
 
Protective factors are anything that supports mental health and wellbe.docx
Protective factors are anything that supports mental health and wellbe.docxProtective factors are anything that supports mental health and wellbe.docx
Protective factors are anything that supports mental health and wellbe.docx
 
Protein Structure - Briefiy explain the dynamics between amino ocid se.docx
Protein Structure - Briefiy explain the dynamics between amino ocid se.docxProtein Structure - Briefiy explain the dynamics between amino ocid se.docx
Protein Structure - Briefiy explain the dynamics between amino ocid se.docx
 
project 1 - ARP table extraction- the first part of the program must h.docx
project 1 - ARP table extraction- the first part of the program must h.docxproject 1 - ARP table extraction- the first part of the program must h.docx
project 1 - ARP table extraction- the first part of the program must h.docx
 
PROJECT MANAGEMENT ASSIGNMENT Tell me a project example from your expe.docx
PROJECT MANAGEMENT ASSIGNMENT Tell me a project example from your expe.docxPROJECT MANAGEMENT ASSIGNMENT Tell me a project example from your expe.docx
PROJECT MANAGEMENT ASSIGNMENT Tell me a project example from your expe.docx
 
Positive directional linear selection on a trait always results in the.docx
Positive directional linear selection on a trait always results in the.docxPositive directional linear selection on a trait always results in the.docx
Positive directional linear selection on a trait always results in the.docx
 

Último

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Último (20)

APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 

Matlab all the terms should be dened- and anyone reading it Law of Lar.docx

  • 1. Matlab all the terms should be dened, and anyone reading it Law of Large Numbers and the Central Limit Theorem: Generate N random variables that are uniformly distributed on [0,1] and nd the average (e.g., in Matlab you can use sum(rand(1,N))/N). Is this number close to the expected value of a uniform random variable? Plot this average versus N, and observe whether it converges to the expected value. Now do the same as above, except we subtract the mean, and normalize with N instead of N, so that you have sum(rand(1,N)-0.5)/sqrt(N). Do this many (say M) times, which will give you M numbers at the end. What distribution should these number follow if N is large? Draw a histogram of these M numbers using the hist command to get a clue. Comment on the reason. What is the eect of N on your conclusion. Say, if N = 2 would this work? What about N = 10? Solution Matlab all the terms should be dened, and anyone reading it Law of Large Numbers and the Central Limit Theorem: Generate N random variables that are uniformly distributed on [0,1] and nd the average (e.g., in Matlab you can use sum(rand(1,N))/N). Is this number close to the expected value of a uniform random variable? Plot this average versus N, and observe whether it converges to the expected value. Now do the same as above, except we subtract the mean, and normalize with N instead of N, so that you have sum(rand(1,N)-0.5)/sqrt(N). Do this many (say M) times, which will give you M numbers at the end. What distribution should these number follow if N is large? Draw a histogram of these M numbers using the hist command to get a clue. Comment on the reason. What is the eect of N on your conclusion. Say, if N = 2 would this work? What about N = 10?