Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Regression Analysis with R

You're reading from  Regression Analysis with R

Product type Book
Published in Jan 2018
Publisher Packt
ISBN-13 9781788627306
Pages 422 pages
Edition 1st Edition
Languages
Author (1):
Giuseppe Ciaburro Giuseppe Ciaburro
Profile icon Giuseppe Ciaburro

Table of Contents (15) Chapters

Title Page
Packt Upsell
Contributors
Preface
1. Getting Started with Regression 2. Basic Concepts – Simple Linear Regression 3. More Than Just One Predictor – MLR 4. When the Response Falls into Two Categories – Logistic Regression 5. Data Preparation Using R Tools 6. Avoiding Overfitting Problems - Achieving Generalization 7. Going Further with Regression Models 8. Beyond Linearity – When Curving Is Much Better 9. Regression Analysis in Practice 1. Other Books You May Enjoy Index

Modeling a perfect linear association


So far, we have explored several real cases for which we have searched linear associations, and therefore we have built models of simple linear regression. Next, we tried to analyze the results to confirm the goodness of fit in the simulation of the real system. At this point, it is reasonable to wonder what results of a model perfectly fit a linear system. In this way we will know how to distinguish between a model with a good approximation to what is wrong. In this last case, clearly indicating a nonlinear relationship remains the best solution.

Previously, we said that a simple linear relationship is represented by the following formula:

Here, α and β, represent, respectively, the slope and the intercept with the y axis of the regression line. That being said, we build a dummy system by deciding a priori an intercept and a slope:

x<-seq(from = 1, to = 100, by = 0.1)
y<-2.7*x+6

In this way, we first created an integer vector (x) containing numbers...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}