SlideShare a Scribd company logo
1 of 9
For any Assignment related queries, call us at-: +1 678 648 4277
You can mail us at-: support@statisticshomeworksolver.com or
reach us at-: https://www.statisticshomeworksolver.com/
Problem 1 Consider the following model of temporal fluctuations in air temperature:
Where y(t) is temperature in degrees C, t is the number of hours from midnight Dec 31,
a1 and a2 are unknown regression coefficients, and e is assumed to be a zero mean
normally random residual error with an unknown standard deviation σe. The first
cosine function accounts for daily (diurnal) fluctuations while the second cosine
function accounts for seasonal fluctuations. Suppose that you have a file called temp.txt
that consists of a column of daily temperature measurements taken over a 2 year
period.
Write a MATLAB program, using the internal MATLAB regress function, to perform a
regression analysis for this problem. Make sure that your program does the following:
a) Computes least-squares estimates of a1 and a2 from the data in temp.txt.
b) Plots a regression curve on the same axes as the temperature measurements.
c) Plots on the same axes as the regression curve and temperature measurements a
pair of 95% confidence interval curves for the predicted temperature, over the 2 year
measurement period.
The MATLAB documentation for the regress function is attached at the end of this
exam. statisticshomeworksolver.com
Problem 2 Consider the regression ANOVA table presented below. Indicate whether
the regression is significant at the 95% confidence level. Compute the R 2 value.
Problem 3 Consider the following data:
statisticshomeworksolver.com
a) Arrange this data in a matrix appropriate as an input to the MATLAB ANOVA
program anova2. Clearly label on the table the factors (climatic zone, agricultural
activity) and treatments for the ANOVA problem.
b) From an inspection of the data only indicate which factors (if either) have a
significant effect on nitrate concentration. DO NOT PERFORM A DETAILED
ANOVA ANALYSIS – just arrive at a conclusion by looking at the data and
considering what constitutes a significant effect.
The MATLAB documentation for the anova2 function is attached at the end of this
exam.
Problem 4 Suppose that you conduct a survey of potholes in roads in Massachusetts vs
New Hampshire. You pick several 1 mile strips in each state and count the number of
potholes in each strip that could do serious damage to your car. The results are:
Massachusetts: 6 6 4 8 7
New Hampshire: 4 2 5 2 6
Suppose that these results are samples of two independent normally distributed
random variables (number of potholes/mile in Massachusetts and New Hampshire).
Use a two-sided small sample t test to test the hypothesis H0 that the means of these
random variables are the same (i.e. that the difference between the two means is zero).
Identify and evaluate the statisticshomeworksolver.com
t distributed standardized test statistic needed to obtain a p value for the test. Be sure
to use the correct standard deviation when you construct the test statistic from the
data. Derive the p value from the t statistic plot (based on ν = 5 – 2 = 3 degrees of
freedom) given at the end of this exam.
Problem 5 Reconsider the pothole problem described above. Suppose that you want to
test the hypothesis H0 that the mean number of potholes on Massachusetts roads is
equal to the federal standard of 2 potholes per mile. Also, suppose that your
Massachusetts data are samples of an exponentially distributed random variable (the
number of potholes/mile in Massachusetts). Construct a MATLAB program to derive
the CDF for your test statistic. For this problem only provide the MATLAB code needed
to derive the test statistic CDF. You do not need to make any calculations.
Your program should use stochastic simulation to generate an ensemble of small
sample test statistics, each constructed from a set of 5 exponentially distributed
random variables. Generate these random variables with the internal MATLAB
function exprnd. Estimate the exponential distributional parameter required by exprnd
from the5 Massachusetts observations provided in Problem 4. Include in your program
the capability to plot your derived test statistic CDF using normplot.
Why can’t you use the t statistic for this problem?
statisticshomeworksolver.com
The MATLAB documentation for the exprnd and normplot functions is attached at the
end of this exam.
statisticshomeworksolver.com
REGRESS Multiple linear regression using least squares.
b = REGRESS(y,X) returns the vector of regression coefficients, b, in the linear model
y = Xb, (X is an nxp matrix, y is the nx1 vector of observations).
[B,BINT,R,RINT,STATS] = REGRESS(y,X,alpha) uses the input, ALPHA to calculate
100(1 - ALPHA) confidence intervals for B and the residual vector, R, in BINT and
RINT respectively. The vector STATS contains the R-square statistic along with the F
and p values for the regression.
The X matrix should include a column of ones so that the model contains a constant
term. The F and p values are computed under the assumption that the model
contains a constant term, and they are not correct for models without a constant. The
R-square value is the ratio of the regression sum of squares to the total sum of
squares.
ANOVA2 Two-way analysis of variance.
ANOVA2(X,REPS,DISPLAYOPT) performs a balanced two-way ANOVA for
comparing the means of two or more columns and two or more rows of the sample in
X. The data in different columns represent changes in one factor. The data in
different rows represent changes in the other factor. If there is more than one
statisticshomeworksolver.com
observation per row-column pair, then then the argument REPS indicates the number
of observations per "cell". A cell
contains REPS number of rows. DISPLAYOPT can be 'on' (the default) to display the
table, or 'off' to skip the display.
For example, if REPS = 3, then each cell contains 3 rows and the total number of rows
must be a multiple of 3. If X has 12 rows, and REPS = 3, then the "row" factor has 4
levels (3*4 = 12). The second level of the row factor goes from rows 4 to 6.
[P,TABLE] = ANOVA2(...) returns two items. P is a vector of p-values for testing row,
column, and if possible interaction effects. TABLE is a cell array containing the
contents of the anova table.
To perform unbalanced two-way ANOVA, use ANOVAN.
EXPRND Random matrices from exponential distribution.
R = EXPRND(MU) returns a matrix of random numbers chosen from the exponential
distribution with parameter MU.
The size of R is the size of MU.
Alternatively, R = EXPRND(MU,M,N) returns an M by N matrix.
NORMPLOT Displays a normal probability plot.
statisticsassignmenthelp.com
H = NORMPLOT(X) makes a normal probability plot of the data in X. For matrix, X,
NORMPLOT displays a plot for each column. H is a handle to the plotted lines.
The purpose of a normal probability plot is to graphically assess whether the data in X
could come from a normal distribution. If the data are normal the plot will be linear.
Other distribution types will introduce curvature in the plot.
statisticshomeworksolver.com

More Related Content

Similar to Data Analysis Assignment Help

Suggest one psychological research question that could be answered.docx
Suggest one psychological research question that could be answered.docxSuggest one psychological research question that could be answered.docx
Suggest one psychological research question that could be answered.docx
picklesvalery
 
Simple lin regress_inference
Simple lin regress_inferenceSimple lin regress_inference
Simple lin regress_inference
Kemal İnciroğlu
 
Electronic Keno Project 3 Overview and Rationale.docx
  Electronic Keno Project 3 Overview and Rationale.docx  Electronic Keno Project 3 Overview and Rationale.docx
Electronic Keno Project 3 Overview and Rationale.docx
ShiraPrater50
 
Chi-squared Goodness of Fit Test Project Overview and.docx
Chi-squared Goodness of Fit Test Project  Overview and.docxChi-squared Goodness of Fit Test Project  Overview and.docx
Chi-squared Goodness of Fit Test Project Overview and.docx
bissacr
 
Chi-squared Goodness of Fit Test Project Overview and.docx
Chi-squared Goodness of Fit Test Project  Overview and.docxChi-squared Goodness of Fit Test Project  Overview and.docx
Chi-squared Goodness of Fit Test Project Overview and.docx
mccormicknadine86
 
1 Computer Assignment 3 --- Hypothesis tests about m.docx
1 Computer Assignment 3     ---   Hypothesis tests about m.docx1 Computer Assignment 3     ---   Hypothesis tests about m.docx
1 Computer Assignment 3 --- Hypothesis tests about m.docx
mercysuttle
 
FurtherInvestegationOnProbabilisticErrorBounds_final
FurtherInvestegationOnProbabilisticErrorBounds_finalFurtherInvestegationOnProbabilisticErrorBounds_final
FurtherInvestegationOnProbabilisticErrorBounds_final
Mohammad Abdo
 

Similar to Data Analysis Assignment Help (19)

Optimization of sample configurations for spatial trend estimation
Optimization of sample configurations for spatial trend estimationOptimization of sample configurations for spatial trend estimation
Optimization of sample configurations for spatial trend estimation
 
MATLAB review questions 2014 15
MATLAB review questions 2014 15MATLAB review questions 2014 15
MATLAB review questions 2014 15
 
Suggest one psychological research question that could be answered.docx
Suggest one psychological research question that could be answered.docxSuggest one psychological research question that could be answered.docx
Suggest one psychological research question that could be answered.docx
 
Simple lin regress_inference
Simple lin regress_inferenceSimple lin regress_inference
Simple lin regress_inference
 
MATLAB
MATLABMATLAB
MATLAB
 
Electronic Keno Project 3 Overview and Rationale.docx
  Electronic Keno Project 3 Overview and Rationale.docx  Electronic Keno Project 3 Overview and Rationale.docx
Electronic Keno Project 3 Overview and Rationale.docx
 
Chi-squared Goodness of Fit Test Project Overview and.docx
Chi-squared Goodness of Fit Test Project  Overview and.docxChi-squared Goodness of Fit Test Project  Overview and.docx
Chi-squared Goodness of Fit Test Project Overview and.docx
 
Intro to MATLAB and K-mean algorithm
Intro to MATLAB and K-mean algorithmIntro to MATLAB and K-mean algorithm
Intro to MATLAB and K-mean algorithm
 
Chi-squared Goodness of Fit Test Project Overview and.docx
Chi-squared Goodness of Fit Test Project  Overview and.docxChi-squared Goodness of Fit Test Project  Overview and.docx
Chi-squared Goodness of Fit Test Project Overview and.docx
 
Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...
 
FinalPres
FinalPresFinalPres
FinalPres
 
working with python
working with pythonworking with python
working with python
 
1 Computer Assignment 3 --- Hypothesis tests about m.docx
1 Computer Assignment 3     ---   Hypothesis tests about m.docx1 Computer Assignment 3     ---   Hypothesis tests about m.docx
1 Computer Assignment 3 --- Hypothesis tests about m.docx
 
How to combine interpolation and regression graphs in R
How to combine interpolation and regression graphs in RHow to combine interpolation and regression graphs in R
How to combine interpolation and regression graphs in R
 
A LEAST ABSOLUTE APPROACH TO MULTIPLE FUZZY REGRESSION USING Tw- NORM BASED O...
A LEAST ABSOLUTE APPROACH TO MULTIPLE FUZZY REGRESSION USING Tw- NORM BASED O...A LEAST ABSOLUTE APPROACH TO MULTIPLE FUZZY REGRESSION USING Tw- NORM BASED O...
A LEAST ABSOLUTE APPROACH TO MULTIPLE FUZZY REGRESSION USING Tw- NORM BASED O...
 
Project
ProjectProject
Project
 
Computer Science Exam Help
Computer Science Exam Help Computer Science Exam Help
Computer Science Exam Help
 
Further investegationonprobabilisticerrorbounds final
Further investegationonprobabilisticerrorbounds finalFurther investegationonprobabilisticerrorbounds final
Further investegationonprobabilisticerrorbounds final
 
FurtherInvestegationOnProbabilisticErrorBounds_final
FurtherInvestegationOnProbabilisticErrorBounds_finalFurtherInvestegationOnProbabilisticErrorBounds_final
FurtherInvestegationOnProbabilisticErrorBounds_final
 

Recently uploaded

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
 
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
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
fonyou31
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
SoniaTolstoy
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Recently uploaded (20)

IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 

Data Analysis Assignment Help

  • 1. For any Assignment related queries, call us at-: +1 678 648 4277 You can mail us at-: support@statisticshomeworksolver.com or reach us at-: https://www.statisticshomeworksolver.com/
  • 2. Problem 1 Consider the following model of temporal fluctuations in air temperature: Where y(t) is temperature in degrees C, t is the number of hours from midnight Dec 31, a1 and a2 are unknown regression coefficients, and e is assumed to be a zero mean normally random residual error with an unknown standard deviation σe. The first cosine function accounts for daily (diurnal) fluctuations while the second cosine function accounts for seasonal fluctuations. Suppose that you have a file called temp.txt that consists of a column of daily temperature measurements taken over a 2 year period. Write a MATLAB program, using the internal MATLAB regress function, to perform a regression analysis for this problem. Make sure that your program does the following: a) Computes least-squares estimates of a1 and a2 from the data in temp.txt. b) Plots a regression curve on the same axes as the temperature measurements. c) Plots on the same axes as the regression curve and temperature measurements a pair of 95% confidence interval curves for the predicted temperature, over the 2 year measurement period. The MATLAB documentation for the regress function is attached at the end of this exam. statisticshomeworksolver.com
  • 3. Problem 2 Consider the regression ANOVA table presented below. Indicate whether the regression is significant at the 95% confidence level. Compute the R 2 value. Problem 3 Consider the following data: statisticshomeworksolver.com
  • 4. a) Arrange this data in a matrix appropriate as an input to the MATLAB ANOVA program anova2. Clearly label on the table the factors (climatic zone, agricultural activity) and treatments for the ANOVA problem. b) From an inspection of the data only indicate which factors (if either) have a significant effect on nitrate concentration. DO NOT PERFORM A DETAILED ANOVA ANALYSIS – just arrive at a conclusion by looking at the data and considering what constitutes a significant effect. The MATLAB documentation for the anova2 function is attached at the end of this exam. Problem 4 Suppose that you conduct a survey of potholes in roads in Massachusetts vs New Hampshire. You pick several 1 mile strips in each state and count the number of potholes in each strip that could do serious damage to your car. The results are: Massachusetts: 6 6 4 8 7 New Hampshire: 4 2 5 2 6 Suppose that these results are samples of two independent normally distributed random variables (number of potholes/mile in Massachusetts and New Hampshire). Use a two-sided small sample t test to test the hypothesis H0 that the means of these random variables are the same (i.e. that the difference between the two means is zero). Identify and evaluate the statisticshomeworksolver.com
  • 5. t distributed standardized test statistic needed to obtain a p value for the test. Be sure to use the correct standard deviation when you construct the test statistic from the data. Derive the p value from the t statistic plot (based on ν = 5 – 2 = 3 degrees of freedom) given at the end of this exam. Problem 5 Reconsider the pothole problem described above. Suppose that you want to test the hypothesis H0 that the mean number of potholes on Massachusetts roads is equal to the federal standard of 2 potholes per mile. Also, suppose that your Massachusetts data are samples of an exponentially distributed random variable (the number of potholes/mile in Massachusetts). Construct a MATLAB program to derive the CDF for your test statistic. For this problem only provide the MATLAB code needed to derive the test statistic CDF. You do not need to make any calculations. Your program should use stochastic simulation to generate an ensemble of small sample test statistics, each constructed from a set of 5 exponentially distributed random variables. Generate these random variables with the internal MATLAB function exprnd. Estimate the exponential distributional parameter required by exprnd from the5 Massachusetts observations provided in Problem 4. Include in your program the capability to plot your derived test statistic CDF using normplot. Why can’t you use the t statistic for this problem? statisticshomeworksolver.com
  • 6. The MATLAB documentation for the exprnd and normplot functions is attached at the end of this exam. statisticshomeworksolver.com
  • 7. REGRESS Multiple linear regression using least squares. b = REGRESS(y,X) returns the vector of regression coefficients, b, in the linear model y = Xb, (X is an nxp matrix, y is the nx1 vector of observations). [B,BINT,R,RINT,STATS] = REGRESS(y,X,alpha) uses the input, ALPHA to calculate 100(1 - ALPHA) confidence intervals for B and the residual vector, R, in BINT and RINT respectively. The vector STATS contains the R-square statistic along with the F and p values for the regression. The X matrix should include a column of ones so that the model contains a constant term. The F and p values are computed under the assumption that the model contains a constant term, and they are not correct for models without a constant. The R-square value is the ratio of the regression sum of squares to the total sum of squares. ANOVA2 Two-way analysis of variance. ANOVA2(X,REPS,DISPLAYOPT) performs a balanced two-way ANOVA for comparing the means of two or more columns and two or more rows of the sample in X. The data in different columns represent changes in one factor. The data in different rows represent changes in the other factor. If there is more than one statisticshomeworksolver.com
  • 8. observation per row-column pair, then then the argument REPS indicates the number of observations per "cell". A cell contains REPS number of rows. DISPLAYOPT can be 'on' (the default) to display the table, or 'off' to skip the display. For example, if REPS = 3, then each cell contains 3 rows and the total number of rows must be a multiple of 3. If X has 12 rows, and REPS = 3, then the "row" factor has 4 levels (3*4 = 12). The second level of the row factor goes from rows 4 to 6. [P,TABLE] = ANOVA2(...) returns two items. P is a vector of p-values for testing row, column, and if possible interaction effects. TABLE is a cell array containing the contents of the anova table. To perform unbalanced two-way ANOVA, use ANOVAN. EXPRND Random matrices from exponential distribution. R = EXPRND(MU) returns a matrix of random numbers chosen from the exponential distribution with parameter MU. The size of R is the size of MU. Alternatively, R = EXPRND(MU,M,N) returns an M by N matrix. NORMPLOT Displays a normal probability plot. statisticsassignmenthelp.com
  • 9. H = NORMPLOT(X) makes a normal probability plot of the data in X. For matrix, X, NORMPLOT displays a plot for each column. H is a handle to the plotted lines. The purpose of a normal probability plot is to graphically assess whether the data in X could come from a normal distribution. If the data are normal the plot will be linear. Other distribution types will introduce curvature in the plot. statisticshomeworksolver.com