> For the complete documentation index, see [llms.txt](https://kmis.gitbook.io/statistics/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kmis.gitbook.io/statistics/chapter-10.-correlation-and-regression/10-3.-modelling-linear-relationships-with-randomness-present.md).

# 10-3. Modelling Linear Relationships with Randomness Present

In this chapter we are dealing with a population for which we can associate to each element two measurements, $$x$$ and $$y$$ .&#x20;

We are interested in situations in which the value of $$x$$ can be used to draw conclusions about the value of $$y$$, such as predicting the resale value $$y$$ of a residential house based on its size $$x$$.&#x20;

Since the relationship between $$x$$ and $$y$$ is **not deterministic**, statistical procedures must be applied. For any statistical procedures, given in this book or elsewhere, the associated formulas are valid only under specific assumptions.&#x20;

The set of assumptions in simple linear regression are a mathematical description of the relationship between $$x$$ and $$y$$. Such a set of assumptions is known as a **model**.

For each fixed value of $$x$$ a sub-population of the full population is determined, such as the collection of all houses with 2,100 square feet of living space. For each element of that sub-population there is a measurement $$y$$, such as the value of any 2,100-square-foot house. Let $$E(y)$$ denote the mean of all the $$y$$-values for each particular value of $$x$$. $$E(y)$$ can change from $$x$$-value to $$x$$-value, such as the mean value of all 2,100-square-foot houses, the (different) mean value for all 2,500-square foot-houses, and so on.

**Our first assumption** is that the relationship between $$x$$ and the mean of the $$y$$-values in the sub-population determined by $$x$$ is linear. This means that there exist numbers $$β\_1$$ and $$β\_0$$ such that

&#x20;                                                                $$E(y)=β\_1x+β\_0$$&#x20;

This linear relationship is the reason for the word “linear” in “simple linear regression” below. (The word “simple” means that $$y$$ depends on only one other variable and not two or more.)

**Our next assumption** is that for each value of $$x$$ the $$y$$-values scatter about the mean $$E(y)$$ according to a normal distribution centered at $$E(y)$$ and with a standard deviation $$σ$$ that is the same for every value of $$x$$. This is the same as saying that there exists a normally distributed random variable $$ε$$ with mean 0 and standard deviation $$σ$$ so that the relationship between $$x$$ and $$y$$ in the whole population is

&#x20;                                                                $$y=β\_1x+β\_0+ε$$&#x20;

**Our last assumption** is that the random deviations associated with different observations are independent.

In summary, the model is:

> **Simple Linear Regression Model**&#x20;
>
> For each point $$(x,y)$$ in data set the *y*-value is an independent observation of&#x20;
>
> $$y=β\_1x+β\_0+ε$$&#x20;
>
> where $$β\_1$$ and $$β\_0$$ are fixed parameters and $$ε$$ is a normally distributed random variable with mean 0 and an unknown standard deviation $$σ$$ .
>
> The line with equation $$y=β\_1x+β\_0$$ is called the **population regression line.**

Figure 10.5 "The Simple Linear Model Concept" illustrates the model. The symbols $$N(μ,σ^2)$$ denote a normal distribution with mean $$μ$$ and variance $$σ^2$$ , hence standard deviation $$σ$$ .

Figure 10.5 The Simple Linear Model Concept

![](https://saylordotorg.github.io/text_introductory-statistics/section_14/88a6e0919d8617c025826c1e187ad591.jpg)

It is conceptually important to view the model as a sum of two parts:    $$y=β\_1x+β\_0+ε$$

1. **Deterministic Part.** The first part $$(β\_1x+β\_0)$$ is the equation that describes the trend in $$y$$ as $$x$$ increases. The line that we seem to see when we look at the scatter diagram is an approximation of the line $$y=β\_1x+β\_0$$. There is nothing random in this part, and therefore it is called the ***deterministic*** part of the model.
2. **Random Part.** The second part $$ε$$ is a random variable, often called the ***error*** term or the ***noise***. This part explains why the actual observed values of $$y$$ are not exactly on but fluctuate near a line. Information about this term is important since only when one knows how much noise there is in the data can one know how trustworthy the detected trend is.

There are **three parameters** in this model: $$β\_0, β\_1,$$ and $$σ$$ . Each has an important interpretation, particularly $$β\_1$$ and $$σ$$. The *slope parameter* $$β\_1$$ represents the expected change in $$y$$ brought about by a unit increase in $$x$$. The *standard deviation* $$σ$$ represents the magnitude of the noise in the data.

There are **procedures for checking the validity** of the three assumptions, but for us it will be sufficient to visually verify the linear trend in the data. If the data set is large then the points in the scatter diagram will form a band about an apparent straight line. The normality of $$ε$$ with a constant standard deviation corresponds graphically to the band being of roughly constant width, and with most points concentrated near the middle of the band.

Fortunately, the three assumptions do not need to hold exactly in order for the procedures and analysis developed in this chapter to be useful.
