SlideShare a Scribd company logo
Statistical Thinking and Data Analysis
For any Statistics related queries,
Call us at - +1 678 648 4277
You can mail us at - info@statisticsassignmenthelp.com, or
reach us at - https://www.statisticsassignmenthelp.com/
Statistics Assignment Help
Exercise 1
Write a MATLAB script that calculates the mean and median of a sample of 100 uniform random numbers between 0
and 2 and the percentage of points in the sample that are greater than 1.
Solution:
Here is the script and the results for my iterations:
clear all;clc;
n = 100;
% Generate 100 uniform random numbers between 0 and 2
x = 2*rand(n,1);
% Calculate the mean
mu = mean(x);
% Calculate the median
med = median(x);
% Find the percentage of points greater than 1
per = sum(x>1)/n;
mu = 1.0089
med = 0.9841
per = 0.4900
Statistics Assignment Help
Exercise 2
a. Generate a vector of 1000 normal random numbers with mean 8 and variance 25.
b. Calculate how many elements in the vector are greater than or equal to 9.
c. What is the sample mean and standard deviation for this sample of 1000 numbers?
d. What are the 25th and 75th percentiles of the normal distribution with mean 8 and variance 25?
e. What are the 25th and 75th percentiles of the sample of the 1000 normal random numbers generated in part
(a)?
f. Find Φ(0.789) and Φ(‐0.543). (Remember Φ is the cumulative density function for the standard normal
distribution.)
Solution:
Here is the script and the results for my iterations:
clear all;
clc;
n = 1000;
mu = 8;
sigma = 5;
Statistics Assignment Help
% a. Generate a vector of 1000 normal random numbers with mean 8 and variance 25.
x = sigma*randn(n,1)+mu;
% b. Calculate how many elements in the vector are greater than or equal to 9.
num = sum(x>=9)
% c. What is the sample mean and standard deviation for this sample of1000 numbers?
sample_mean = mean(x)
sample_std = std(x)
% d. What are the 25th and 75th percentiles of the normal distribution with mean 8 and variance 25?
q1 = norminv(.25,8,5) % or q1 = 5*norminv(0.25)+8
q3 = norminv(.75,8,5) % or q1 = 5*norminv(0.75)+8
% e. What are the 25th and 75th percentiles of the sample of the 1000normal random numbers generated in part (a)?
s_q1 = quantile(x,0.25)
s_q3 = quantile(x,0.75)
% f. Find ?(0.789) and ?(-0.543).
normcdf(0.789)
normcdf(-0.543)
num = 428
sample_mean = 8.0511
sample_std = 4.9974
Statistics Assignment Help
q1 = 4.6276
q3 = 11.3724
s_q1 = 4.7150
s_q3 = 11.2380
ans = 0.7849
ans = 0.2936
Statistics Assignment Help
Exercise 3
a. Generate a vector of 1000 Poisson random numbers with λ = 2.
b. Make a histogram and a boxplot of the 1000 numbers from part (a).
Solution:
Here is the script and the plots for my iterations:
clear all;
clc;
close all;
n = 1000;
lambda = 2;
% a. Generate a vector of 1000 Poisson random numbers with ? = 2.
x = poissrnd(lambda,n,1);
% b. Make a histogram and a boxplot of the 1000 numbers from part (a).
figure;hist(x);
figure;boxplot(x);
Statistics Assignment Help
Statistics Assignment Help
Exercise 4
Answer questions (a) – (c) from 4.36 in your textbook.
Solution:
Here is the script and a scatterplot:
clear all;
close all;
clc;
snowfall = [45 59 82 80 71 60 55 69 79 95];
unemployment = [4.9 5.6 8.5 7.7 7.1 6.1 5.8 7.1 7.6 9.7];
% Scatterplot
plot(snowfall, unemployment, 'x');
grid;
xlabel('Snowfall (inches)');
ylabel('Unemployment (%)');
% Calculates the correlation coefficient
rho = corr(snowfall',unemployment');
Statistics Assignment Help
rho = 0.9835
A strong linear positive relationship is indicated by both the scatter plot and the correlation coefficient. This
relationship does not mean that the snowfall influences the national unemployment rates or vice versa. It
means that there is an association between them.
Statistics Assignment Help
Exercise 5
Answer questions (a) – (d) from 4.44 in your textbook.
Solution:
(a) Below is a time-series plot of the data. There is an increasing trend, so no, the time-series does not appear
to be stationary.
Statistics Assignment Help
b,c. The moving averages and exponentially weighted moving averages are listed below. The MAPE is 0.2655% and
0.5679% for MA and EWMA respectively
MA EWMA
159.1000 159.1000
159.3500 159.2000
159.5667 159.3600
159.9333 159.5280
160.1000 159.6424
160.2000 159.7739
160.3000 159.9191
160.5333 160.0953
160.8333 160.3162
161.2000 160.5730
161.4333 160.7584
161.4667 160.8667
161.4667 161.0134
161.6000 161.1907
161.9000 161.3926
162.2000 161.6140
162.5000 161.8512
162.7667 162.0810
163.0000 162.3048
163.2000 162.5238
163.4000 162.7391
163.6667 162.9913
163.8667 163.1930
163.9667 163.3344
Statistics Assignment Help
d. We have r1 =0.8694, r2 =0.7380, and r3 =0.6149. So CPI in successive months have a rather strong positive
correlation, but the correlation grows weaker with CPI’s removed farther apart.
Statistics Assignment Help

More Related Content

What's hot (19)

PPTX
Statistics Assignment Help
Statistics Assignment Help
 
PPTX
probability assignment help (2)
Statistics Homework Helper
 
PPTX
Statistics Assignment Help
Statistics Assignment Help
 
PDF
Business statistics homework help
Statistics Help Desk
 
PPTX
Statistical Assignment Help
Statistics Homework Helper
 
PPTX
Probability Assignment Help
Statistics Assignment Help
 
PPTX
stochastic processes assignment help
Statistics Homework Helper
 
PPT
numerical methods
HaiderParekh1
 
PPTX
Mathematical Statistics Assignment Help
Statistics Homework Helper
 
PPTX
Statistics Coursework Help
Statistics Assignment Help
 
PDF
Scientific Computing II Numerical Tools & Algorithms - CEI40 - AGA
Ahmed Gamal Abdel Gawad
 
PPT
Chapter 3
wraithxjmin
 
PPTX
Es272 ch2
Batuhan Yıldırım
 
PDF
Applied numerical methods lec3
Yasser Ahmed
 
PPTX
Es272 ch5b
Batuhan Yıldırım
 
PPTX
Numerical approximation
Lizeth Paola Barrero
 
PPT
03 truncation errors
maheej
 
PPTX
Mathematics Homework Help
Edu Assignment Help
 
PPTX
Probability Homework Help
Statistics Assignment Help
 
Statistics Assignment Help
Statistics Assignment Help
 
probability assignment help (2)
Statistics Homework Helper
 
Statistics Assignment Help
Statistics Assignment Help
 
Business statistics homework help
Statistics Help Desk
 
Statistical Assignment Help
Statistics Homework Helper
 
Probability Assignment Help
Statistics Assignment Help
 
stochastic processes assignment help
Statistics Homework Helper
 
numerical methods
HaiderParekh1
 
Mathematical Statistics Assignment Help
Statistics Homework Helper
 
Statistics Coursework Help
Statistics Assignment Help
 
Scientific Computing II Numerical Tools & Algorithms - CEI40 - AGA
Ahmed Gamal Abdel Gawad
 
Chapter 3
wraithxjmin
 
Applied numerical methods lec3
Yasser Ahmed
 
Numerical approximation
Lizeth Paola Barrero
 
03 truncation errors
maheej
 
Mathematics Homework Help
Edu Assignment Help
 
Probability Homework Help
Statistics Assignment Help
 

Similar to Data Analysis Assignment Help (20)

PDF
Using R Tool for Probability and Statistics
nazlitemu
 
DOC
9417-2.doc
Noaman Akbar
 
PDF
exercises.pdf
mekuannintdemeke
 
PDF
Reading Data into R
Kazuki Yoshida
 
PPTX
TamingStatistics
Stephen Mansour
 
PDF
Data Science_Chapter -2_Statical Data Analysis.pdf
sangeeta borde
 
DOCX
Assignment #9First, we recall some definitions that will be help.docx
fredharris32
 
PDF
Applications to Central Limit Theorem and Law of Large Numbers
University of Salerno
 
DOC
Uop qnt 275 final exam guide
olivergeorg
 
DOC
Uop qnt 275 final exam guide
uopassignment
 
DOC
Uop qnt 275 final exam guide
Noahliamwilliam
 
PPT
Probability and statistics
Neil MacIntosh
 
DOCX
QNT 561 Introduction Education--qnt561.com
kopiko227
 
DOC
Math 221 Massive Success / snaptutorial.com
Stephenson164
 
PPTX
Statistics for data science
zekeLabs Technologies
 
DOCX
1 Lab 4 The Central Limit Theorem and A Monte Carlo Si.docx
jeremylockett77
 
PDF
DAVLectuer3 Exploratory data analysis .pdf
ZaheerAbbas82578
 
PPTX
Data Analysis Homework Help
Matlab Assignment Experts
 
PPTX
UM20BB151 Business Stats - Consolidated.pptx
ChristopherDevakumar1
 
Using R Tool for Probability and Statistics
nazlitemu
 
9417-2.doc
Noaman Akbar
 
exercises.pdf
mekuannintdemeke
 
Reading Data into R
Kazuki Yoshida
 
TamingStatistics
Stephen Mansour
 
Data Science_Chapter -2_Statical Data Analysis.pdf
sangeeta borde
 
Assignment #9First, we recall some definitions that will be help.docx
fredharris32
 
Applications to Central Limit Theorem and Law of Large Numbers
University of Salerno
 
Uop qnt 275 final exam guide
olivergeorg
 
Uop qnt 275 final exam guide
uopassignment
 
Uop qnt 275 final exam guide
Noahliamwilliam
 
Probability and statistics
Neil MacIntosh
 
QNT 561 Introduction Education--qnt561.com
kopiko227
 
Math 221 Massive Success / snaptutorial.com
Stephenson164
 
Statistics for data science
zekeLabs Technologies
 
1 Lab 4 The Central Limit Theorem and A Monte Carlo Si.docx
jeremylockett77
 
DAVLectuer3 Exploratory data analysis .pdf
ZaheerAbbas82578
 
Data Analysis Homework Help
Matlab Assignment Experts
 
UM20BB151 Business Stats - Consolidated.pptx
ChristopherDevakumar1
 
Ad

More from Statistics Assignment Help (20)

PPTX
Calculating Expected Values and Variances in Statistics
Statistics Assignment Help
 
PPTX
Bayesian Inference and Maximum Likelihood
Statistics Assignment Help
 
PPTX
Method of Moments and Maximum Likelihood Estimation
Statistics Assignment Help
 
PPTX
Statistical Analysis of Corneal Thickness in Glaucoma Patients
Statistics Assignment Help
 
PPTX
Get Accurate and Reliable Statistics Assignment Help - Boost Your Grades!
Statistics Assignment Help
 
PPTX
Statistics Assignment Help
Statistics Assignment Help
 
PPTX
Pay For Statistics Assignment
Statistics Assignment Help
 
PPTX
Probability Assignment Help
Statistics Assignment Help
 
PPTX
Data Analysis Assignment Help
Statistics Assignment Help
 
PPTX
R Programming Assignment Help
Statistics Assignment Help
 
PPTX
Hypothesis Assignment Help
Statistics Assignment Help
 
PPTX
The Data of an Observational Study Designed to Compare the Effectiveness of a...
Statistics Assignment Help
 
PPTX
T- Test and ANOVA using SPSS Assignment Help
Statistics Assignment Help
 
PPT
Linear Regression Analysis assignment help.ppt
Statistics Assignment Help
 
PPTX
Stata Assignment Help
Statistics Assignment Help
 
PPTX
MyStataLab Assignment Help
Statistics Assignment Help
 
PPTX
Probability and Statistics Assignment Help
Statistics Assignment Help
 
PPTX
Mathematical Statistics Assignment Help
Statistics Assignment Help
 
PPTX
Statistics Assignment Help
Statistics Assignment Help
 
PPTX
Statistics Coursework Assignment Help
Statistics Assignment Help
 
Calculating Expected Values and Variances in Statistics
Statistics Assignment Help
 
Bayesian Inference and Maximum Likelihood
Statistics Assignment Help
 
Method of Moments and Maximum Likelihood Estimation
Statistics Assignment Help
 
Statistical Analysis of Corneal Thickness in Glaucoma Patients
Statistics Assignment Help
 
Get Accurate and Reliable Statistics Assignment Help - Boost Your Grades!
Statistics Assignment Help
 
Statistics Assignment Help
Statistics Assignment Help
 
Pay For Statistics Assignment
Statistics Assignment Help
 
Probability Assignment Help
Statistics Assignment Help
 
Data Analysis Assignment Help
Statistics Assignment Help
 
R Programming Assignment Help
Statistics Assignment Help
 
Hypothesis Assignment Help
Statistics Assignment Help
 
The Data of an Observational Study Designed to Compare the Effectiveness of a...
Statistics Assignment Help
 
T- Test and ANOVA using SPSS Assignment Help
Statistics Assignment Help
 
Linear Regression Analysis assignment help.ppt
Statistics Assignment Help
 
Stata Assignment Help
Statistics Assignment Help
 
MyStataLab Assignment Help
Statistics Assignment Help
 
Probability and Statistics Assignment Help
Statistics Assignment Help
 
Mathematical Statistics Assignment Help
Statistics Assignment Help
 
Statistics Assignment Help
Statistics Assignment Help
 
Statistics Coursework Assignment Help
Statistics Assignment Help
 
Ad

Recently uploaded (20)

PDF
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
PPTX
Views on Education of Indian Thinkers J.Krishnamurthy..pptx
ShrutiMahanta1
 
PPTX
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PPTX
Capitol Doctoral Presentation -July 2025.pptx
CapitolTechU
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PPTX
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
PPTX
How to Configure Prepayments in Odoo 18 Sales
Celine George
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PPSX
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
PPTX
ROLE OF ANTIOXIDANT IN EYE HEALTH MANAGEMENT.pptx
Subham Panja
 
PPTX
Views on Education of Indian Thinkers Mahatma Gandhi.pptx
ShrutiMahanta1
 
PPTX
How to Configure Access Rights of Manufacturing Orders in Odoo 18 Manufacturing
Celine George
 
PDF
1, 2, 3… E MAIS UM CICLO CHEGA AO FIM!.pdf
Colégio Santa Teresinha
 
PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
PDF
IMP NAAC REFORMS 2024 - 10 Attributes.pdf
BHARTIWADEKAR
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PPTX
Nutri-QUIZ-Bee-Elementary.pptx...................
ferdinandsanbuenaven
 
PPTX
CONVULSIVE DISORDERS: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
PPTX
How to Create Rental Orders in Odoo 18 Rental
Celine George
 
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
Views on Education of Indian Thinkers J.Krishnamurthy..pptx
ShrutiMahanta1
 
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
Capitol Doctoral Presentation -July 2025.pptx
CapitolTechU
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
community health nursing question paper 2.pdf
Prince kumar
 
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
How to Configure Prepayments in Odoo 18 Sales
Celine George
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
ROLE OF ANTIOXIDANT IN EYE HEALTH MANAGEMENT.pptx
Subham Panja
 
Views on Education of Indian Thinkers Mahatma Gandhi.pptx
ShrutiMahanta1
 
How to Configure Access Rights of Manufacturing Orders in Odoo 18 Manufacturing
Celine George
 
1, 2, 3… E MAIS UM CICLO CHEGA AO FIM!.pdf
Colégio Santa Teresinha
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
IMP NAAC REFORMS 2024 - 10 Attributes.pdf
BHARTIWADEKAR
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
Nutri-QUIZ-Bee-Elementary.pptx...................
ferdinandsanbuenaven
 
CONVULSIVE DISORDERS: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
How to Create Rental Orders in Odoo 18 Rental
Celine George
 

Data Analysis Assignment Help

  • 1. Statistical Thinking and Data Analysis For any Statistics related queries, Call us at - +1 678 648 4277 You can mail us at - [email protected], or reach us at - https://www.statisticsassignmenthelp.com/ Statistics Assignment Help
  • 2. Exercise 1 Write a MATLAB script that calculates the mean and median of a sample of 100 uniform random numbers between 0 and 2 and the percentage of points in the sample that are greater than 1. Solution: Here is the script and the results for my iterations: clear all;clc; n = 100; % Generate 100 uniform random numbers between 0 and 2 x = 2*rand(n,1); % Calculate the mean mu = mean(x); % Calculate the median med = median(x); % Find the percentage of points greater than 1 per = sum(x>1)/n; mu = 1.0089 med = 0.9841 per = 0.4900 Statistics Assignment Help
  • 3. Exercise 2 a. Generate a vector of 1000 normal random numbers with mean 8 and variance 25. b. Calculate how many elements in the vector are greater than or equal to 9. c. What is the sample mean and standard deviation for this sample of 1000 numbers? d. What are the 25th and 75th percentiles of the normal distribution with mean 8 and variance 25? e. What are the 25th and 75th percentiles of the sample of the 1000 normal random numbers generated in part (a)? f. Find Φ(0.789) and Φ(‐0.543). (Remember Φ is the cumulative density function for the standard normal distribution.) Solution: Here is the script and the results for my iterations: clear all; clc; n = 1000; mu = 8; sigma = 5; Statistics Assignment Help
  • 4. % a. Generate a vector of 1000 normal random numbers with mean 8 and variance 25. x = sigma*randn(n,1)+mu; % b. Calculate how many elements in the vector are greater than or equal to 9. num = sum(x>=9) % c. What is the sample mean and standard deviation for this sample of1000 numbers? sample_mean = mean(x) sample_std = std(x) % d. What are the 25th and 75th percentiles of the normal distribution with mean 8 and variance 25? q1 = norminv(.25,8,5) % or q1 = 5*norminv(0.25)+8 q3 = norminv(.75,8,5) % or q1 = 5*norminv(0.75)+8 % e. What are the 25th and 75th percentiles of the sample of the 1000normal random numbers generated in part (a)? s_q1 = quantile(x,0.25) s_q3 = quantile(x,0.75) % f. Find ?(0.789) and ?(-0.543). normcdf(0.789) normcdf(-0.543) num = 428 sample_mean = 8.0511 sample_std = 4.9974 Statistics Assignment Help
  • 5. q1 = 4.6276 q3 = 11.3724 s_q1 = 4.7150 s_q3 = 11.2380 ans = 0.7849 ans = 0.2936 Statistics Assignment Help
  • 6. Exercise 3 a. Generate a vector of 1000 Poisson random numbers with λ = 2. b. Make a histogram and a boxplot of the 1000 numbers from part (a). Solution: Here is the script and the plots for my iterations: clear all; clc; close all; n = 1000; lambda = 2; % a. Generate a vector of 1000 Poisson random numbers with ? = 2. x = poissrnd(lambda,n,1); % b. Make a histogram and a boxplot of the 1000 numbers from part (a). figure;hist(x); figure;boxplot(x); Statistics Assignment Help
  • 8. Exercise 4 Answer questions (a) – (c) from 4.36 in your textbook. Solution: Here is the script and a scatterplot: clear all; close all; clc; snowfall = [45 59 82 80 71 60 55 69 79 95]; unemployment = [4.9 5.6 8.5 7.7 7.1 6.1 5.8 7.1 7.6 9.7]; % Scatterplot plot(snowfall, unemployment, 'x'); grid; xlabel('Snowfall (inches)'); ylabel('Unemployment (%)'); % Calculates the correlation coefficient rho = corr(snowfall',unemployment'); Statistics Assignment Help
  • 9. rho = 0.9835 A strong linear positive relationship is indicated by both the scatter plot and the correlation coefficient. This relationship does not mean that the snowfall influences the national unemployment rates or vice versa. It means that there is an association between them. Statistics Assignment Help
  • 10. Exercise 5 Answer questions (a) – (d) from 4.44 in your textbook. Solution: (a) Below is a time-series plot of the data. There is an increasing trend, so no, the time-series does not appear to be stationary. Statistics Assignment Help
  • 11. b,c. The moving averages and exponentially weighted moving averages are listed below. The MAPE is 0.2655% and 0.5679% for MA and EWMA respectively MA EWMA 159.1000 159.1000 159.3500 159.2000 159.5667 159.3600 159.9333 159.5280 160.1000 159.6424 160.2000 159.7739 160.3000 159.9191 160.5333 160.0953 160.8333 160.3162 161.2000 160.5730 161.4333 160.7584 161.4667 160.8667 161.4667 161.0134 161.6000 161.1907 161.9000 161.3926 162.2000 161.6140 162.5000 161.8512 162.7667 162.0810 163.0000 162.3048 163.2000 162.5238 163.4000 162.7391 163.6667 162.9913 163.8667 163.1930 163.9667 163.3344 Statistics Assignment Help
  • 12. d. We have r1 =0.8694, r2 =0.7380, and r3 =0.6149. So CPI in successive months have a rather strong positive correlation, but the correlation grows weaker with CPI’s removed farther apart. Statistics Assignment Help