Presentation Group 4
Presentation Group 4
Regression Analysis
1: Simple linear regression
2: Multiple regression
3: OLS regression
R Programming overview
◦ R is a programming language and software
environment used for statistical analysis, data
visualization, and data modeling. It is widely
used by statisticians, data scientists, and
researchers for tasks such as:Data cleaning and
manipulation.Exploratory data analysis
(EDA).Statistical modeling and hypothesis
testing.Advanced analytics such as machine
learning and time series forecasting.The base R
package includes tools for data manipulation
and statistical modeling, while numerous
additional packages (e.g., ggplot2, dplyr, and
caret) extend its functionality.
Regression Analysis
◦ Regression is a statistical technique for modeling
the relationship between a dependent (response)
variable and one or more independent (predictor)
variables. Common types of regression include:
◦ 1. Simple Linear Regression:
Models the relationship between one dependent
variable and one independent variable.
Formula: Y = B°+B¹+e
B°: Intercept (constant term) ,B¹:Slope (coefficient of
X) ,E: Error term.
◦ In R:1-Load data:. data <- data.frame(x = c(1, 2, 3,
4, 5), y = c(2, 4, 5, 4, 5)) 2:Fit simple linear
regression model: model <- lm(y ~ x, data = data)
3:Summary of the model: summary(model) 4:Plot
the regression line: plot(data$x, data$y, main =
“Simple Linear Regression”, xlab = “X”, ylab =
“Y”)abline(model, col = “blue”)
To be continue: