SlideShare a Scribd company logo
1 of 14
 For any help regarding Statistics Assignments
Visit: https://www.statisticshomeworkhelper.com
Email- info@statisticshomeworkhelper.com or call us at-+1 678 648 4277
Statistics Homework Helper
Problems from John A. Rice, Third Edition. [
C hapter.Secti on.Problem ]
1. 14.9.2. See Rscript/html Problem_l4_9_2.r 2. 14.9.4.
For modeling freshman GPA to depend linearly on high school GPA, a standard linear
regression model is:
Yi = /3o+ /31xi + ei, i = 1, 2, ... , n.
Suppose that different intercepts were to be allowed for femalses and males, and write the
model as
Yi= l p(i )/3F + IM(i)/3M + /31xi + e,;, i = 1, 2, ... , n.
where Jp(i) and JM(i) are indicator variables takingon values of Oand
1 according to whether the generder of the ith person is female or
male.
The design matrix for such a model will be
I Jp(l)
I
IM(l) X1
Jp(2) JM(2) x2
X=
lp(n) IM(n) Xn
LFemale -l
Xi
n
M
'L

"
,"
"
M ale i X
i
L M ale ,; Xi
'L
",
"n"l X
•
7
where np and nM are the number of femals and males, respectively. The regression model is
setup as
Note that xr X =
0
Statistics Homework Helper
3. 14.9.6. The 4 weighings correspond to 4 outcomes of the dependent variable y
For the regression parameter vector
/3= [ W1 ]
W2
the design matrix is
-
1
X= [ 1 i
1 1
The regression model is
Y = X /3+ e
(b). The least squares estimates of w1 and w2 are given by
= [ 1
]
= (X Tx )- l x T y
W2
Note that
(XT X) = [ ] so
and
9
(XT Y ) = [ 11
] ,
SO = [ 1 3 1 3 ] X [ 1
1 ] =
9
[ l
l
f
3 ]
(c). The estimate of a 2 is given by the sum of squared residuals divided by n - 2, where 2 is the number of columns of
X which equals the number of regression parameters estimated.
The vector of least squares residuals is:
3
= [ = [
3
e
= [ =
: !
:
l t J
:
l tJ
y4 - f;4 7 - 20/3 1/ 3
From this we can compute
Statistics Homework Helper
Statistics Homework Helper
Problem_14_9_2.r
Peter
Thu Apr 30 21:21:38 2015
#Problem_14_9_2.r x=c(.34,1.38,-.64,.68,1.40,-.88,-.30, -1.18, .50, -1.75) y=c(.27,1.34,-.53,.35,1.28,-.98,0.72,-.81,.64,-1.59) # (a) Fit line y=a + bx
using lm() in r plot(x,y) lmfit1<-lm(y~x) summary(lmfit1)
## ## Call: ## lm(formula = y ~ x) ## ## Residuals: ## Min 1Q Median 3Q
Max ## -0.34954 -0.16556 -0.06363 0.08067 0.87278 ## ## Coefficients: ##
Estimate Std. Error t value Pr(>|t|) ## (Intercept) 0.1081 0.1156 0.935 0.377
## x 0.8697 0.1133 7.677 5.87e-05 *** ## --- ## Signif. codes: 0 '***' 0.001 '**'
0.01 '*' 0.05 '.' 0.1 ' ' 1 ## ## Residual standard error: 0.3654 on 8 degrees of
freedom ## Multiple R-squared: 0.8805, Adjusted R-squared: 0.8655 ## F-
statistic: 58.94 on 1 and 8 DF, p-value: 5.867e-05
abline(lmfit1,col='green') lmfit1$coefficients
## (Intercept) x ## 0.1081372 0.8697151
# (b) Fit line x=c+dy using lm() in r lmfit2<-lm(x~y) summary(lmfit2)
## ## Call: ## lm(formula = x ~ y) ## ## Residuals: ## Min 1Q Median 3Q Max ## -0.91406 -0.03117 0.07484 0.20963
0.44052 ## ## Coefficients: ## Estimate Std. Error t value Pr(>|t|) ## (Intercept) -0.1149 0.1250 -0.919 0.385 ## y 1.0124
0.1319 7.677 5.87e-05 *** ## --- ## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 ## ## Residual standard error:
0.3942 on 8 degrees of freedom ## Multiple R-squared: 0.8805, Adjusted R-squared: 0.8655 ## F-statistic: 58.94 on 1 and
8 DF, p-value: 5.867e-05
lmfit2$coefficients
## (Intercept) y ## -0.1148545 1.0123846
# For x = b1 + b2y # we get the y vs x line as # y=-(b1/b2) + (1/b2)x abline(a=-
lmfit2$coefficients[1]/lmfit2$coefficients[2], b=(1/lmfit2$coefficients[2]), col="red") title(main="Y=a + bx
(Green) X=c+dy (Red)") abline(h=mean(y)); abline(v=mean(x)) abline(h=mean(y));abline(v=mean(x)) # Plot
horizontal/vertical lines at y/x means
Statistics Homework Helper
# (c). THe lines are not the same. The regression of y on x regresses toward the mean # of y (less steep slope) and
the regression of x on y regresses toward the mean of # x (which is less steep for x vs y, but more steep for y vs x)
Statistics Homework Helper
# Problem_14_9_40.r
# 1.0 Read in data
# See Problem 14.9.40
# Data from calibration of a proving ring, a device for measuring force
# Hockersmith and Ku 1969).
provingring=read.table(file="Rice 3e Datasets/ASCII Comma/Chapter 14/provingring.txt",
sep=",",stringsAsFactors = FALSE,
header=TRUE)
Deflection=as.numeric(provingring$Deflection)
Load=as.numeric(provingring$Load) LoadSq=Load*Load plot(Load, Deflection) # (a). The plot of
load versus deflection looks linear. lmfit1=lm(Deflection ~ Load)
summary(lmfit1)
##
## Call:
## lm(formula = Deflection ~ Load) ## ## Residuals: ## Min 1Q Median 3Q Max ## -0.7819 -0.3798 -0.1760 0.3800
0.9513 ##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) -1.468e+00 2.203e-01 -6.665 3.12e-07 ***
## Load 6.892e-03 3.551e-06 1940.923 < 2e-16 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## ## Residual standard error: 0.5586 on 28 degrees of freedom
## Multiple R-squared: 1, Adjusted R-squared: 1
## F-statistic: 3.767e+06 on 1 and 28 DF, p-value: < 2.2e-16
Statistics Homework Helper
plot(Load, Deflection) abline(lmfit1,col='green')
plot(lmfit1$residuals)
Statistics Homework Helper
plot(Load, lmfit1$residuals)
Statistics Homework Helper
# (b). The residuals from the linear fit show lack of fit
# The residuals are positive at the edges and negative in the middle of the Load values
# (c). Fit deflection as a quadratic function of load.
lmfit2=lm(Deflection ~ Load + LoadSq)
summary(lmfit2)
Statistics Homework Helper
##
## Call:
## lm(formula = Deflection ~ Load + LoadSq)
##
## Residuals:
## Min 1Q Median 3Q Max
## -0.19832 -0.08509 0.02033 0.07533 0.14339
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 1.363e-01 7.284e-02 1.871 0.0722 .
## Load 6.812e-03 3.042e-06 2239.355 <2e-16 ***
## LoadSq 7.294e-10 2.695e-11 27.065 <2e-16 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.1073 on 27 degrees of freedom
## Multiple R-squared: 1, Adjusted R-squared: 1
## F-statistic: 5.11e+07 on 2 and 27 DF, p-value: < 2.2e-16
plot(Load, Deflection) abline(lmfit1,col='green') lines(Load,
lmfit2$fitted.values,col="red")
Statistics Homework Helper
plot(lmfit2$residuals)
Statistics Homework Helper
plot(Load, lmfit2$residuals) abline(h=0,col='gray')
Statistics Homework Helper
# The fit looks better. It is apparent that the variability across runs within a # given case of Load
is much lower than the variability across Loads # The errors in the measurements apparently
have two sources of variability.
Statistics Homework Helper

More Related Content

What's hot (20)

Math Exam Help
Math Exam HelpMath Exam Help
Math Exam Help
 
Statistical Assignment Help
Statistical Assignment HelpStatistical Assignment Help
Statistical Assignment Help
 
Statistical Method In Economics
Statistical Method In EconomicsStatistical Method In Economics
Statistical Method In Economics
 
Polynomials and Curve Fitting in MATLAB
Polynomials and Curve Fitting in MATLABPolynomials and Curve Fitting in MATLAB
Polynomials and Curve Fitting in MATLAB
 
numerical methods
numerical methodsnumerical methods
numerical methods
 
Stochastic Processes Homework Help
Stochastic Processes Homework Help Stochastic Processes Homework Help
Stochastic Processes Homework Help
 
Scientific Computing II Numerical Tools & Algorithms - CEI40 - AGA
Scientific Computing II Numerical Tools & Algorithms - CEI40 - AGAScientific Computing II Numerical Tools & Algorithms - CEI40 - AGA
Scientific Computing II Numerical Tools & Algorithms - CEI40 - AGA
 
Business statistics homework help
Business statistics homework helpBusiness statistics homework help
Business statistics homework help
 
Numerical method
Numerical methodNumerical method
Numerical method
 
Solution 3.
Solution 3.Solution 3.
Solution 3.
 
stochastic processes assignment help
stochastic processes assignment helpstochastic processes assignment help
stochastic processes assignment help
 
Es272 ch2
Es272 ch2Es272 ch2
Es272 ch2
 
Es272 ch5a
Es272 ch5aEs272 ch5a
Es272 ch5a
 
Answers withexplanations
Answers withexplanationsAnswers withexplanations
Answers withexplanations
 
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
 
Es272 ch5b
Es272 ch5bEs272 ch5b
Es272 ch5b
 
Application of derivative
Application of derivativeApplication of derivative
Application of derivative
 
Mws gen nle_ppt_bisection
Mws gen nle_ppt_bisectionMws gen nle_ppt_bisection
Mws gen nle_ppt_bisection
 
Unit 2.1
Unit 2.1Unit 2.1
Unit 2.1
 
Numerical
NumericalNumerical
Numerical
 

Similar to statistics assignment help

Introduction to Data Science With R Lab Record
Introduction to Data Science With R Lab RecordIntroduction to Data Science With R Lab Record
Introduction to Data Science With R Lab RecordLakshmi Sarvani Videla
 
NPTEL QUIZ.docx
NPTEL QUIZ.docxNPTEL QUIZ.docx
NPTEL QUIZ.docxGEETHAR59
 
RDataMining slides-regression-classification
RDataMining slides-regression-classificationRDataMining slides-regression-classification
RDataMining slides-regression-classificationYanchang Zhao
 
Task4output.txt 2 5 9 13 15 10 1 0 3 7 11 14 1.docx
Task4output.txt 2  5  9 13 15 10  1  0  3  7 11 14 1.docxTask4output.txt 2  5  9 13 15 10  1  0  3  7 11 14 1.docx
Task4output.txt 2 5 9 13 15 10 1 0 3 7 11 14 1.docxjosies1
 
Answers To Selected Exercises For Fortran 90 95 For Scientists And Engineers
Answers To Selected Exercises For Fortran 90 95 For Scientists And EngineersAnswers To Selected Exercises For Fortran 90 95 For Scientists And Engineers
Answers To Selected Exercises For Fortran 90 95 For Scientists And EngineersSheila Sinclair
 
Dti2143 chapter 3 arithmatic relation-logicalexpression
Dti2143 chapter 3 arithmatic relation-logicalexpressionDti2143 chapter 3 arithmatic relation-logicalexpression
Dti2143 chapter 3 arithmatic relation-logicalexpressionalish sha
 
Regression and Classification with R
Regression and Classification with RRegression and Classification with R
Regression and Classification with RYanchang Zhao
 
Slide set 6 Strings and pointers.pdf
Slide set 6 Strings and pointers.pdfSlide set 6 Strings and pointers.pdf
Slide set 6 Strings and pointers.pdfHimanshuKansal22
 
R programming intro with examples
R programming intro with examplesR programming intro with examples
R programming intro with examplesDennis
 
Operators in C Programming
Operators in C ProgrammingOperators in C Programming
Operators in C ProgrammingQazi Shahzad Ali
 
Digital electronics k map comparators and their function
Digital electronics k map comparators and their functionDigital electronics k map comparators and their function
Digital electronics k map comparators and their functionkumarankit06875
 
Hull White model presentation
Hull White model presentationHull White model presentation
Hull White model presentationStephan Chang
 
Idea for ineractive programming language
Idea for ineractive programming languageIdea for ineractive programming language
Idea for ineractive programming languageLincoln Hannah
 

Similar to statistics assignment help (20)

Introduction to Data Science With R Lab Record
Introduction to Data Science With R Lab RecordIntroduction to Data Science With R Lab Record
Introduction to Data Science With R Lab Record
 
NPTEL QUIZ.docx
NPTEL QUIZ.docxNPTEL QUIZ.docx
NPTEL QUIZ.docx
 
RDataMining slides-regression-classification
RDataMining slides-regression-classificationRDataMining slides-regression-classification
RDataMining slides-regression-classification
 
R Programming Intro
R Programming IntroR Programming Intro
R Programming Intro
 
Cpl
CplCpl
Cpl
 
Task4output.txt 2 5 9 13 15 10 1 0 3 7 11 14 1.docx
Task4output.txt 2  5  9 13 15 10  1  0  3  7 11 14 1.docxTask4output.txt 2  5  9 13 15 10  1  0  3  7 11 14 1.docx
Task4output.txt 2 5 9 13 15 10 1 0 3 7 11 14 1.docx
 
Answers To Selected Exercises For Fortran 90 95 For Scientists And Engineers
Answers To Selected Exercises For Fortran 90 95 For Scientists And EngineersAnswers To Selected Exercises For Fortran 90 95 For Scientists And Engineers
Answers To Selected Exercises For Fortran 90 95 For Scientists And Engineers
 
C lab-programs
C lab-programsC lab-programs
C lab-programs
 
Dti2143 chapter 3 arithmatic relation-logicalexpression
Dti2143 chapter 3 arithmatic relation-logicalexpressionDti2143 chapter 3 arithmatic relation-logicalexpression
Dti2143 chapter 3 arithmatic relation-logicalexpression
 
Regression and Classification with R
Regression and Classification with RRegression and Classification with R
Regression and Classification with R
 
Matlab1
Matlab1Matlab1
Matlab1
 
C++ in 10 Hours.pdf.pdf
C++ in 10 Hours.pdf.pdfC++ in 10 Hours.pdf.pdf
C++ in 10 Hours.pdf.pdf
 
Slide set 6 Strings and pointers.pdf
Slide set 6 Strings and pointers.pdfSlide set 6 Strings and pointers.pdf
Slide set 6 Strings and pointers.pdf
 
Basic Analysis using R
Basic Analysis using RBasic Analysis using R
Basic Analysis using R
 
C language basics
C language basicsC language basics
C language basics
 
R programming intro with examples
R programming intro with examplesR programming intro with examples
R programming intro with examples
 
Operators in C Programming
Operators in C ProgrammingOperators in C Programming
Operators in C Programming
 
Digital electronics k map comparators and their function
Digital electronics k map comparators and their functionDigital electronics k map comparators and their function
Digital electronics k map comparators and their function
 
Hull White model presentation
Hull White model presentationHull White model presentation
Hull White model presentation
 
Idea for ineractive programming language
Idea for ineractive programming languageIdea for ineractive programming language
Idea for ineractive programming language
 

More from Statistics Homework Helper

📊 Conquer Your Stats Homework with These Top 10 Tips! 🚀
📊 Conquer Your Stats Homework with These Top 10 Tips! 🚀📊 Conquer Your Stats Homework with These Top 10 Tips! 🚀
📊 Conquer Your Stats Homework with These Top 10 Tips! 🚀Statistics Homework Helper
 
Your Statistics Homework Solver is Here! 📊📚
Your Statistics Homework Solver is Here! 📊📚Your Statistics Homework Solver is Here! 📊📚
Your Statistics Homework Solver is Here! 📊📚Statistics Homework Helper
 
Top Rated Service Provided By Statistics Homework Help
Top Rated Service Provided By Statistics Homework HelpTop Rated Service Provided By Statistics Homework Help
Top Rated Service Provided By Statistics Homework HelpStatistics Homework Helper
 
Statistics Multiple Choice Questions and Answers
Statistics Multiple Choice Questions and AnswersStatistics Multiple Choice Questions and Answers
Statistics Multiple Choice Questions and AnswersStatistics Homework Helper
 

More from Statistics Homework Helper (20)

📊 Conquer Your Stats Homework with These Top 10 Tips! 🚀
📊 Conquer Your Stats Homework with These Top 10 Tips! 🚀📊 Conquer Your Stats Homework with These Top 10 Tips! 🚀
📊 Conquer Your Stats Homework with These Top 10 Tips! 🚀
 
Your Statistics Homework Solver is Here! 📊📚
Your Statistics Homework Solver is Here! 📊📚Your Statistics Homework Solver is Here! 📊📚
Your Statistics Homework Solver is Here! 📊📚
 
Probability Homework Help
Probability Homework HelpProbability Homework Help
Probability Homework Help
 
Multiple Linear Regression Homework Help
Multiple Linear Regression Homework HelpMultiple Linear Regression Homework Help
Multiple Linear Regression Homework Help
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
SAS Homework Help
SAS Homework HelpSAS Homework Help
SAS Homework Help
 
R Programming Homework Help
R Programming Homework HelpR Programming Homework Help
R Programming Homework Help
 
Statistics Homework Helper
Statistics Homework HelperStatistics Homework Helper
Statistics Homework Helper
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
Do My Statistics Homework
Do My Statistics HomeworkDo My Statistics Homework
Do My Statistics Homework
 
Write My Statistics Homework
Write My Statistics HomeworkWrite My Statistics Homework
Write My Statistics Homework
 
Quantitative Research Homework Help
Quantitative Research Homework HelpQuantitative Research Homework Help
Quantitative Research Homework Help
 
Probability Homework Help
Probability Homework HelpProbability Homework Help
Probability Homework Help
 
Top Rated Service Provided By Statistics Homework Help
Top Rated Service Provided By Statistics Homework HelpTop Rated Service Provided By Statistics Homework Help
Top Rated Service Provided By Statistics Homework Help
 
Introduction to Statistics
Introduction to StatisticsIntroduction to Statistics
Introduction to Statistics
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
Multivariate and Monova Assignment Help
Multivariate and Monova Assignment HelpMultivariate and Monova Assignment Help
Multivariate and Monova Assignment Help
 
Statistics Multiple Choice Questions and Answers
Statistics Multiple Choice Questions and AnswersStatistics Multiple Choice Questions and Answers
Statistics Multiple Choice Questions and Answers
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
Advanced Statistics Homework Help
Advanced Statistics Homework HelpAdvanced Statistics Homework Help
Advanced Statistics Homework Help
 

Recently uploaded

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
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
 
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
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
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 13Steve Thomason
 
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
 

Recently uploaded (20)

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
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
 
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
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
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
 
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🔝
 

statistics assignment help

  • 1.  For any help regarding Statistics Assignments Visit: https://www.statisticshomeworkhelper.com Email- info@statisticshomeworkhelper.com or call us at-+1 678 648 4277 Statistics Homework Helper
  • 2. Problems from John A. Rice, Third Edition. [ C hapter.Secti on.Problem ] 1. 14.9.2. See Rscript/html Problem_l4_9_2.r 2. 14.9.4. For modeling freshman GPA to depend linearly on high school GPA, a standard linear regression model is: Yi = /3o+ /31xi + ei, i = 1, 2, ... , n. Suppose that different intercepts were to be allowed for femalses and males, and write the model as Yi= l p(i )/3F + IM(i)/3M + /31xi + e,;, i = 1, 2, ... , n. where Jp(i) and JM(i) are indicator variables takingon values of Oand 1 according to whether the generder of the ith person is female or male. The design matrix for such a model will be I Jp(l) I IM(l) X1 Jp(2) JM(2) x2 X= lp(n) IM(n) Xn LFemale -l Xi n M 'L " ," " M ale i X i L M ale ,; Xi 'L ", "n"l X • 7 where np and nM are the number of femals and males, respectively. The regression model is setup as Note that xr X = 0 Statistics Homework Helper
  • 3. 3. 14.9.6. The 4 weighings correspond to 4 outcomes of the dependent variable y For the regression parameter vector /3= [ W1 ] W2 the design matrix is - 1 X= [ 1 i 1 1 The regression model is Y = X /3+ e (b). The least squares estimates of w1 and w2 are given by = [ 1 ] = (X Tx )- l x T y W2 Note that (XT X) = [ ] so and 9 (XT Y ) = [ 11 ] , SO = [ 1 3 1 3 ] X [ 1 1 ] = 9 [ l l f 3 ] (c). The estimate of a 2 is given by the sum of squared residuals divided by n - 2, where 2 is the number of columns of X which equals the number of regression parameters estimated. The vector of least squares residuals is: 3 = [ = [ 3 e = [ = : ! : l t J : l tJ y4 - f;4 7 - 20/3 1/ 3 From this we can compute Statistics Homework Helper
  • 5. Problem_14_9_2.r Peter Thu Apr 30 21:21:38 2015 #Problem_14_9_2.r x=c(.34,1.38,-.64,.68,1.40,-.88,-.30, -1.18, .50, -1.75) y=c(.27,1.34,-.53,.35,1.28,-.98,0.72,-.81,.64,-1.59) # (a) Fit line y=a + bx using lm() in r plot(x,y) lmfit1<-lm(y~x) summary(lmfit1) ## ## Call: ## lm(formula = y ~ x) ## ## Residuals: ## Min 1Q Median 3Q Max ## -0.34954 -0.16556 -0.06363 0.08067 0.87278 ## ## Coefficients: ## Estimate Std. Error t value Pr(>|t|) ## (Intercept) 0.1081 0.1156 0.935 0.377 ## x 0.8697 0.1133 7.677 5.87e-05 *** ## --- ## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 ## ## Residual standard error: 0.3654 on 8 degrees of freedom ## Multiple R-squared: 0.8805, Adjusted R-squared: 0.8655 ## F- statistic: 58.94 on 1 and 8 DF, p-value: 5.867e-05 abline(lmfit1,col='green') lmfit1$coefficients ## (Intercept) x ## 0.1081372 0.8697151 # (b) Fit line x=c+dy using lm() in r lmfit2<-lm(x~y) summary(lmfit2) ## ## Call: ## lm(formula = x ~ y) ## ## Residuals: ## Min 1Q Median 3Q Max ## -0.91406 -0.03117 0.07484 0.20963 0.44052 ## ## Coefficients: ## Estimate Std. Error t value Pr(>|t|) ## (Intercept) -0.1149 0.1250 -0.919 0.385 ## y 1.0124 0.1319 7.677 5.87e-05 *** ## --- ## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 ## ## Residual standard error: 0.3942 on 8 degrees of freedom ## Multiple R-squared: 0.8805, Adjusted R-squared: 0.8655 ## F-statistic: 58.94 on 1 and 8 DF, p-value: 5.867e-05 lmfit2$coefficients ## (Intercept) y ## -0.1148545 1.0123846 # For x = b1 + b2y # we get the y vs x line as # y=-(b1/b2) + (1/b2)x abline(a=- lmfit2$coefficients[1]/lmfit2$coefficients[2], b=(1/lmfit2$coefficients[2]), col="red") title(main="Y=a + bx (Green) X=c+dy (Red)") abline(h=mean(y)); abline(v=mean(x)) abline(h=mean(y));abline(v=mean(x)) # Plot horizontal/vertical lines at y/x means Statistics Homework Helper
  • 6. # (c). THe lines are not the same. The regression of y on x regresses toward the mean # of y (less steep slope) and the regression of x on y regresses toward the mean of # x (which is less steep for x vs y, but more steep for y vs x) Statistics Homework Helper
  • 7. # Problem_14_9_40.r # 1.0 Read in data # See Problem 14.9.40 # Data from calibration of a proving ring, a device for measuring force # Hockersmith and Ku 1969). provingring=read.table(file="Rice 3e Datasets/ASCII Comma/Chapter 14/provingring.txt", sep=",",stringsAsFactors = FALSE, header=TRUE) Deflection=as.numeric(provingring$Deflection) Load=as.numeric(provingring$Load) LoadSq=Load*Load plot(Load, Deflection) # (a). The plot of load versus deflection looks linear. lmfit1=lm(Deflection ~ Load) summary(lmfit1) ## ## Call: ## lm(formula = Deflection ~ Load) ## ## Residuals: ## Min 1Q Median 3Q Max ## -0.7819 -0.3798 -0.1760 0.3800 0.9513 ## ## Coefficients: ## Estimate Std. Error t value Pr(>|t|) ## (Intercept) -1.468e+00 2.203e-01 -6.665 3.12e-07 *** ## Load 6.892e-03 3.551e-06 1940.923 < 2e-16 *** ## --- ## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 ## ## Residual standard error: 0.5586 on 28 degrees of freedom ## Multiple R-squared: 1, Adjusted R-squared: 1 ## F-statistic: 3.767e+06 on 1 and 28 DF, p-value: < 2.2e-16 Statistics Homework Helper
  • 10. # (b). The residuals from the linear fit show lack of fit # The residuals are positive at the edges and negative in the middle of the Load values # (c). Fit deflection as a quadratic function of load. lmfit2=lm(Deflection ~ Load + LoadSq) summary(lmfit2) Statistics Homework Helper
  • 11. ## ## Call: ## lm(formula = Deflection ~ Load + LoadSq) ## ## Residuals: ## Min 1Q Median 3Q Max ## -0.19832 -0.08509 0.02033 0.07533 0.14339 ## ## Coefficients: ## Estimate Std. Error t value Pr(>|t|) ## (Intercept) 1.363e-01 7.284e-02 1.871 0.0722 . ## Load 6.812e-03 3.042e-06 2239.355 <2e-16 *** ## LoadSq 7.294e-10 2.695e-11 27.065 <2e-16 *** ## --- ## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 ## ## Residual standard error: 0.1073 on 27 degrees of freedom ## Multiple R-squared: 1, Adjusted R-squared: 1 ## F-statistic: 5.11e+07 on 2 and 27 DF, p-value: < 2.2e-16 plot(Load, Deflection) abline(lmfit1,col='green') lines(Load, lmfit2$fitted.values,col="red") Statistics Homework Helper
  • 14. # The fit looks better. It is apparent that the variability across runs within a # given case of Load is much lower than the variability across Loads # The errors in the measurements apparently have two sources of variability. Statistics Homework Helper