Independent and dependent variables in the example
The video sets up a regression example by assigning x to the independent variable and y to the dependent variable. The listed values are , 2, 3, 4, 5 and , 4, 5, 4, 5.
statisticsfun · YouTube · 8:29
This 180-second excerpt introduces a simple linear-regression setup. After a brief preview of the final formulas, the narrator builds a scatter plot from made-up data with independent variable , 2, 3, 4, 5 and dependent variable , 4, 5, 4, 5. He computes the means and , marks the mean point (3,4), and states that regression lines must pass through that point. The clip then shifts from geometry to algebra by adding a column and calculating the signed deviations -2, -1, 0, 1, 2 for the five observations. This 180-second clip demonstrates part of a least-squares linear regression calculation for five paired observations. It first draws the horizontal mean line and fills the y-deviation column . The video then states the target model and prepares the slope computation by adding two table columns: ()^2 and ()(). After summing those columns to 10 and 6, it computes . The intercept is named in the model but is not calculated within this excerpt. This 149-second clip completes a worked least-squares regression example and then previews the next topic. It first turns the table totals into the slope formula and computes . It then uses the stated fact that the regression line passes through the mean point to solve , obtaining . The final fitted line is written as . After that, the video only introduces conceptually with a distance diagram; no full formula is shown in this segment.
Use the learning inspector for key ideas and moments, or open the reading tabs for the complete notes.
Generated from the video's visuals and explanation; not verbatim speech.
The clip opens by naming the topic as regression and briefly warning that the finished formulas will look complicated. A short preview slide already shows the eventual outputs: a fitted equation, coefficient values, and a fuller table with deviation and product columns.
The narrator then rebuilds the problem from scratch. First he introduces the independent variable as x and places its values 1, 2, 3, 4, 5 in a table beside a horizontal axis. Next he introduces the dependent variable as y and adds the paired values 2, 4, 5, 4, 5 with a vertical axis. This establishes the two-variable structure needed for a scatter plot.
Each row of the tables is converted into a point on the coordinate plane. The plotted observations are (1,2), (2,4), (3,5), (4,4), and (5,5). The visual emphasis is on turning paired numerical data into a geometric picture before any line is fitted.
The next step computes the center of the data in each direction. The mean of the x-values is stated as 3, and the mean of the y-values is stated as 4. These are drawn as a vertical line at and a horizontal line at , whose intersection is labeled (3,4). The narrator states the key property that regression lines must pass through this mean point.
After locating the mean point, the video motivates the algebraic quantities used in least-squares regression. Dotted guide segments show how far each observation lies from the mean lines in the x-direction and y-direction. The spoken wording calls these offsets distances, but the later table makes clear that the recorded x-offsets are signed deviations.
The final part of the clip adds a new column headed . Using , the narrator subtracts the mean from each x-value in order: , , , , and . By the end of the segment, the example has moved from raw paired data to the first explicit deviation column needed for the least-squares calculation.
The clip opens on a scatter plot of five points together with a table that already contains x, y, and . The speaker turns attention to the dependent variable and states that the mean of y is 4. Visually, a green horizontal line is drawn at , establishing the reference level .
Using that mean line, the video computes the deviations one row at a time. The spoken arithmetic is 2-4, 4-4, 5-4, 4-4, and 5-4, producing the column entries -2, 0, 1, 0, and 1. Dashed vertical connectors between points and the mean line reinforce that these numbers are signed vertical distances from the mean.
After the deviation table is partly complete, the speaker announces the larger objective: obtain the regression equation . A dashed straight line is drawn through the scatter plot as the intended fitted line, and the narration narrows the immediate task to determining the slope parameter .
To build the slope formula, the video first creates the column ()^2. Each existing x-deviation is squared, giving 4, 1, 0, 1, and 4. This step converts signed horizontal deviations into nonnegative contributions that will later form the denominator of .
Next, a second auxiliary column is added: ()(). The speaker multiplies the x-deviation and y-deviation in each row, obtaining 4, 0, 0, 0, and 2. Rows where either factor is zero contribute nothing to the numerator, which is made explicit by the repeated multiplications by zero.
With both auxiliary columns filled, the clip sums them. The squared-deviation column totals 10, and the cross-product column totals 6. The speaker identifies 10 as the denominator and 6 as the numerator, then writes . The excerpt ends with the slope determined, while the intercept remains part of the model but is not computed here.
The segment begins with the completed deviation table and the numeric slope computation . The speaker points to the columns involving and , then rewrites the quotient in symbolic form as . The key mathematical move here is recognizing that the numerator is the sum of cross-products of deviations and the denominator is the sum of squared x-deviations.
Having identified , the lesson shifts to , described aloud as the y-intercept. The graph is used to motivate the next step: the fitted line is said to pass through the mean point , where and . This is not proved in the clip, but it is stated explicitly and visually reinforced by guide lines on the plot.
The equation is written by substituting the mean point and the already computed slope into the regression model . The arithmetic then proceeds in clear stages: first , giving ; next, subtract from both sides; finally simplify to . Red cancellation marks emphasize the elimination of the terms.
With both coefficients known, the video consolidates the result in a summary box: , , and therefore . This is the completed least-squares regression line for the five displayed data points.
The final portion changes topic. A title card introduces “R Squared” / “R²”, and a new scatter plot labels distances such as “distance estimated - mean” and “distance actual - mean”. The speaker says the next discussion will compare distances between regression-line estimates and actual values. Within this clip, however, is only previewed conceptually; no formula or derivation is provided before the outro.
The video sets up a regression example by assigning x to the independent variable and y to the dependent variable. The listed values are , 2, 3, 4, 5 and , 4, 5, 4, 5.
The paired data are plotted as the points (1,2), (2,4), (3,5), (4,4), and (5,5). This converts the tables into a geometric picture that will later support the regression discussion.
The narrator computes the sample means directly from the listed data and states that the mean of x is 3 and the mean of y is 4. These are drawn as the vertical line and the horizontal line .
The clip states that all regression lines have to go through the point where the two means cross. In this example that point is (3,4), i.e. (,).
The video first shows dotted offsets from the mean lines and then formalizes the x-offsets in a new table column . Although the narration says "distance," the displayed entries are signed deviations.
Using , the example calculates each deviation in order: , , , , and . The completed column is -2, -1, 0, 1, 2.
The video draws a green horizontal line at and identifies it as the mean of the y-values. This line serves as the reference from which vertical deviations are measured.
Each y observation is subtracted by the mean 4. The completed column is -2, 0, 1, 0, 1, showing how far each point lies below, on, or above the mean line.
The clip states that the goal is to find the equation of the fitted line, written as , and that the immediate unknown to determine is the slope .
To prepare the denominator for the slope, the table adds ()^2. The values become 4, 1, 0, 1, 4 after squaring the existing x-deviations.
The numerator for the slope is built by multiplying paired deviations row by row: ()(). The resulting entries are 4, 0, 0, 0, 2.
The video sums the two auxiliary columns, obtaining 10 in the denominator and 6 in the numerator, then computes the least-squares slope as .
The slope of the fitted line is computed from deviation sums: . In the example, the table totals give .
The video states that the fitted line must cross . This fact is used to substitute known values into the regression equation and solve for the intercept.
Substitute the mean point and slope into : . Simplify to , subtract 1.8 from both sides, and obtain .
Once and are known, the completed model is written as .
The clip ends by introducing as the next topic and showing a distance-based diagram with labels like “distance estimated - mean” and “distance actual - mean”. No full definition or formula for appears in this segment.
Explore conditions, steps and evidence. Supplementary explanations are labeled separately from content shown in the video.
The narrator says, "I'm going to start with the independent variable which is the x axis".
A table labeled "independent variable" has column header x with values 1, 2, 3, 4, 5; a horizontal axis is labeled x.
x
Independent variable; the horizontal-axis observations used in the regression example.
Observed numeric values in this example are 1, 2, 3, 4, 5.
The narrator says, "And also the dependent variable which is the y axis".
A table labeled "dependent variable" has column header y with values 2, 4, 5, 4, 5; a vertical axis is labeled y.
y
Dependent variable; the vertical-axis observations paired with each x value.
Observed numeric values in this example are 2, 4, 5, 4, 5.
The narrator says, "I'm going to take the mean of the x values ... which is three".
Below the data table, the label "mean" appears with 3 under the x column; later a new column header is written as x - x̄.
Mean of the x-values in the sample.
In this example, .
The narrator says, "And then I'm going to take the mean or the average of the y values ... which is four".
Below the data table, the label "mean" appears with 4 under the y column.
Mean of the y-values in the sample.
In this example, .
The narrator says, "So I'm going to take the x value minus the mean at each point".
A third table column is added with header x - x̄ and filled row by row with -2, -1, 0, 1, 2.
Signed deviation of each observation's x-value from the mean of x.
For the five listed observations, the displayed values are -2, -1, 0, 1, 2.
The table header shows the variable x.
The scatter plot uses x as the horizontal coordinate.
x
Independent-variable observations in the data set.
Observed values shown in the table are 1, 2, 3, 4, and 5.
The table header shows the variable y.
The scatter plot uses y as the vertical coordinate.
y
Dependent-variable observations in the data set.
Observed values shown in the table are 2, 4, 5, 4, and 5.
The table contains the column heading .
The speaker refers to the mean of x as 3 when discussing deviations.
Mean of the x-values.
In this example, .
The table contains the column heading .
The speaker says the mean of y is 4 and draws a horizontal mean line at that value.
Mean of the y-values.
In this example, .
The equation written on screen is .
The speaker states the goal is to get the equation y hat equals b naught plus b one times x.
Predicted or fitted value of y from the regression line.
Defined by the linear model .
The symbol appears in the displayed equation .
This clip does not compute explicitly.
Intercept term in the linear regression equation.
Part of the fitted model .
The symbol appears in and later in the slope calculation.
The speaker says he is determining what b one is and later calls it the slope.
Slope coefficient of the regression line.
Computed in this clip as .
The narrator introduces "the independent variable which is the x axis".
A table titled "independent variable" lists x values 1 through 5, and a horizontal axis labeled x is drawn.
The video defines the horizontal variable as the independent variable and assigns it to the x-axis. In the worked example, the independent-variable values are 1, 2, 3, 4, 5.
Used for the plotted explanatory variable on the horizontal axis.
The narrator introduces "the dependent variable which is the y axis".
A second table titled "dependent variable" lists y values 2, 4, 5, 4, 5, and a vertical axis labeled y is drawn.
The video defines the vertical variable as the dependent variable and assigns it to the y-axis. In the worked example, the dependent-variable values are 2, 4, 5, 4, 5.
Used for the plotted response variable on the vertical axis.
The narrator says, "I'm going to take the mean of the x values ... which is three".
The word mean appears below the table with 3 under the x column, and a vertical line is drawn at .
The example computes the mean of the five x-values and states that it equals 3. This value is then represented geometrically by a vertical line through .
Computed from the listed x-values 1, 2, 3, 4, 5.
The narrator says, "And then I'm going to take the mean or the average of the y values ... which is four".
The word mean appears below the table with 4 under the y column, and a horizontal line is drawn at .
The example computes the mean of the five y-values and states that it equals 4. This value is then represented geometrically by a horizontal line through .
Computed from the listed y-values 2, 4, 5, 4, 5.
The narrator says, "So I'm going to take the x value minus the mean at each point".
A new column header x - x̄ is added, and entries -2, -1, 0, 1, 2 are filled in row by row.
The video constructs a new table column by subtracting the mean of x from each observed x-value. The resulting signed deviations are shown explicitly for all five observations.
Apply to each listed observation using .
The speaker says, 'Now I do the same thing with the y values. I'll draw in the mean line again, which is mean of four.'
A green horizontal line is drawn across the scatter plot at .
The video constructs the mean of the dependent variable as a horizontal reference line. In this data set, the y-values have mean 4, so the line is drawn through the scatter plot.
The y-values in the displayed table are 2, 4, 5, 4, and 5.
The speaker computes 2 minus 4, then 4 minus 4, 5 minus 4, 4 minus 4, and 5 minus 4.
The table column is filled with -2, 0, 1, 0, and 1.
Dashed vertical segments connect points to the horizontal mean line while the deviations are being discussed.
Each y observation is compared with the mean by subtraction. The resulting signed deviations measure how far each point lies above or below the horizontal mean line.
Use the same y-values shown in the table.
in this example.
The speaker says the goal is to get the equation y hat equals b naught plus b one times x, and that he will determine what b one is.
The equation is written on screen.
A dashed straight line is drawn through the scatter plot as the intended regression line.
The clip identifies the fitted model as a straight line in the form , where is the slope to be estimated from the data and is the intercept.
The relationship being modeled is linear in x.
The speaker says, 'So we take this column x minus x bar and we square it,' then lists the squared values.
A new column ()^2 is added and filled with 4, 1, 0, 1, and 4.
To prepare the denominator for the slope formula, the video squares each x-deviation . This removes sign and produces nonnegative contributions for each observation.
The x-deviations already computed in the table are -2, -1, 0, 1, and 2.
The speaker says to make another column from the x-minus-mean and y-minus-mean columns and multiply them row by row.
A new column ()() is added and filled with 4, 0, 0, 0, and 2.
The numerator for the slope estimate is built by multiplying each x-deviation by the corresponding y-deviation. Positive products occur when both deviations share the same sign; zero occurs if either deviation is zero.
Use the paired deviations from the same observation row.
The speaker says he adds up the squared-deviation column to get 10 as the denominator, adds up the product column to get 6 as the numerator, and concludes .
The sums 10 and 6 are written beneath the respective columns, followed by = .6.
The slope of the fitted line is obtained by dividing the sum of cross-products of deviations by the sum of squared x-deviations. In this worked example, the two required sums are read directly from the table.
The denominator must be nonzero.
The formula is applied to the same set of paired observations.
Top equation remains visible through the worked example.
The speaker identifies as the y-intercept and as the slope.
The video uses the simple linear regression model , where is the slope and is the y-intercept. The final substituted equation is written as .
Simple linear regression with one explanatory variable x.
Parameters are estimated from a finite data set.
The narrator says, "It turns out that all regression lines have to go through that point there. That's where the mean of the independent variable and the mean of the dependent variable cross."
A dashed line is drawn through the intersection of the vertical line and horizontal line , and the point is labeled (3, 4).
All regression lines have to go through the point where the mean of the independent variable and the mean of the dependent variable cross.
The context is the linear-regression setup being demonstrated in the video.
The point referred to is (,).
universal over the regression lines discussed in the video
The speaker says, 'So this is equal to point six. So b one is equal to point six, which is the slope.'
The displayed computation is = .6.
For the displayed five-point data set, the least-squares slope is .
The x-values are 1, 2, 3, 4, 5.
The y-values are 2, 4, 5, 4, 5.
and .
For this specific data set shown in the clip.
The speaker says he adds up the squared-deviation column and gets 10, calling it the denominator.
The number 10 is written under the ()^2 column.
For the example table, .
The x-deviations are -2, -1, 0, 1, and 2.
For the five displayed rows.
The speaker says he adds up the product column and gets 6, calling it the numerator.
The number 6 is written under the ()() column.
For the example table, .
The paired deviation products are 4, 0, 0, 0, and 2.
For the five displayed rows.
“The regression line has to cross point three four.”
The graph marks the intersection at , matching the displayed means and .
The video states the fact but does not prove it.
For this least-squares regression setup, the fitted line passes through .
A least-squares regression line has been fitted to the data.
and are the sample means shown in the table.
For the displayed data set and its fitted regression line.
“And that would be the typical formula you’d see in your textbooks.”
The symbolic expression is shown.
The symbolic expression shown for is presented as the typical textbook formula for the least-squares slope.
The data are organized as paired observations with sample means and .
For ordinary simple linear regression as used in the example.
The narrator verbally computes each subtraction: 1 minus 3, 2 minus 3, 3 minus 3, 4 minus 3, and 5 minus 3.
The x - x̄ column is filled sequentially with -2, -1, 0, 1, 2.
For the first observation, subtract the mean of x from .
Direct computation shown in the table and stated aloud.
For the second observation, subtract the mean of x from .
Direct computation shown in the table and stated aloud.
For the third observation, subtract the mean of x from .
Direct computation shown in the table and stated aloud.
For the fourth observation, subtract the mean of x from .
Direct computation shown in the table and stated aloud.
For the fifth observation, subtract the mean of x from .
Direct computation shown in the table and stated aloud.
The completed x - x̄ column is -2, -1, 0, 1, 2.
The speaker verbally computes each y-minus-mean value in order.
The column is filled row by row.
The mean of the y-values is identified before subtracting it from each observation.
Stated in the audio and represented by the horizontal mean line at .
The first y observation is below the mean by 2 units.
Direct subtraction shown in the table and spoken aloud.
The second y observation lies exactly on the mean line.
Direct subtraction shown in the table and spoken aloud.
The third y observation is above the mean by 1 unit.
Direct subtraction shown in the table and spoken aloud.
The fourth y observation again lies on the mean line.
Direct subtraction shown in the table and spoken aloud.
The fifth y observation is above the mean by 1 unit.
Direct subtraction shown in the table and spoken aloud.
The completed y-deviation column is -2, 0, 1, 0, 1.
The speaker says to square all the values in the x-minus-mean column and recites the results.
The ()^2 column is populated with 4, 1, 0, 1, 4.
The first x-deviation is squared.
Arithmetic shown in the new table column and stated in the audio.
The second x-deviation is squared.
Arithmetic shown in the new table column and stated in the audio.
The third x-deviation is squared.
Arithmetic shown in the new table column and stated in the audio.
The fourth x-deviation is squared.
Arithmetic shown in the new table column and stated in the audio.
The fifth x-deviation is squared.
Arithmetic shown in the new table column and stated in the audio.
The squared-deviation column is 4, 1, 0, 1, 4, whose sum is 10.
The speaker multiplies the x-deviation and y-deviation row by row and reads out each product.
The ()() column is filled with 4, 0, 0, 0, 2.
Row 1 multiplies a negative x-deviation by a negative y-deviation.
Direct multiplication shown in the table and spoken aloud.
Row 2 has zero y-deviation, so the product is zero.
Direct multiplication shown in the table and spoken aloud.
Row 3 has zero x-deviation, so the product is zero.
Direct multiplication shown in the table and spoken aloud.
Row 4 has zero y-deviation, so the product is zero.
Direct multiplication shown in the table and spoken aloud.
Row 5 multiplies positive deviations.
Direct multiplication shown in the table and spoken aloud.
The cross-product column is 4, 0, 0, 0, 2, whose sum is 6.
The speaker says the denominator is 10, the numerator is 6, and therefore .
The displayed fraction is = .6.
The squared x-deviations are summed to form the denominator.
Column sum written on screen and stated in the audio.
The cross-products are summed to form the numerator.
Column sum written on screen and stated in the audio.
The slope is the numerator divided by the denominator.
Formula application shown on screen.
The fraction is simplified to a decimal.
Arithmetic simplification shown on screen and spoken aloud.
The least-squares slope for the example is .
Table columns show summing to 10 and summing to 6.
The written computation is .
The speaker explains that the quotient uses the sums of those columns.
The squared-deviation column for x totals 10.
Read directly from the table’s bottom total.
The cross-product column totals 6.
Read directly from the table’s bottom total.
Substitute the two totals into the slope formula.
Use of .
Simplify the fraction to obtain the slope.
Arithmetic simplification.
The least-squares slope for the displayed data is .
The equation is written on screen.
Subsequent lines show , then , then .
The speaker says the line must cross , substitutes those values, and subtracts 1.8 from both sides.
The mean point is identified from the table and graph.
Displayed means and spoken statement that the regression line crosses .
Substitute , , and into the regression equation.
Use of at the mean point.
Compute the product .
Arithmetic multiplication.
Subtract 1.8 from both sides to isolate .
Algebraic equivalence transformation of an equation.
Simplify both sides to obtain the intercept.
Arithmetic subtraction and cancellation.
The intercept is .
Summary box lists , , and .
The speaker verbally restates both coefficients and the final equation.
Insert the computed intercept.
Result from the previous derivation.
Insert the computed slope.
Result from the slope derivation.
Substitute both coefficients into the general regression form.
Use of .
The fitted line for the example is .
The narrator says the numbers are made up, plots the points, computes the means, states that regression lines pass through (3,4), and then calculates x minus the mean for each point.
The screen shows tables of x and y, a scatter plot of the five points, mean lines at and , the labeled point (3,4), and a new column x - x̄ with values -2, -1, 0, 1, 2.
Using a made-up dataset, set up the variables, plot the observations, locate the mean point, and begin computing deviations needed for regression.
Independent variable values , 2, 3, 4, 5.
Dependent variable values , 4, 5, 4, 5.
The narrator states these numbers are made up.
Construct the scatter plot, compute and , identify the mean point, and calculate for each observation.
Plot the five paired observations on the coordinate plane.
The table values are transferred to the graph as points.
Compute the mean of the x-values.
Stated directly by the narrator and shown below the table.
Compute the mean of the y-values.
Stated directly by the narrator and shown below the table.
Mark the intersection of the mean lines as the point through which regression lines must pass.
The narrator states this property while the point is labeled on screen.
Subtract the mean of x from each x-value to form the deviation column.
Each subtraction is computed aloud and entered into the table.
The example establishes the scatter plot, the mean point (3,4), and the x-deviation column -2, -1, 0, 1, 2.
The displayed arithmetic matches the listed x-values and the stated mean .
A scatter plot with five points and a table of x, y, deviations, squared deviations, and cross-products is shown throughout.
The speaker works through the y-deviations, then the squared x-deviations, then the cross-products, and finally the slope.
Given the displayed paired data, compute the quantities needed for the least-squares regression line and determine the slope .
The table lists (x,y) = (1,2), (2,4), (3,5), (4,4), (5,5).
.
.
Fill the deviation columns, compute the needed sums, and find in .
Subtract the y-mean from each y observation.
Mean-deviation calculation shown in the table and narrated.
Square each x-deviation.
Preparation of the denominator for the slope formula.
Multiply each x-deviation by the corresponding y-deviation.
Preparation of the numerator for the slope formula.
Add the squared x-deviations.
Column total written beneath the table.
Add the cross-products.
Column total written beneath the table.
Divide the cross-product sum by the squared-deviation sum.
Least-squares slope formula applied to the computed totals.
The arithmetic can be checked directly from the displayed columns: and , giving .
A five-point scatter plot and a table with rows are shown.
Means are listed as and ; totals are 10 and 6; final equation is .
The speaker walks through computing , then , then the final equation.
Given five paired observations, compute the least-squares regression line .
Data points: .
Sample means: , .
Deviation totals: , .
Find , , and write the fitted regression equation.
Start from the standard slope formula shown in symbolic form.
Formula stated in the video.
Substitute the column totals from the table.
Numerical values are read from the displayed sums.
Use the fact that the regression line passes through .
Spoken claim plus substitution into .
Multiply by .
Arithmetic.
Subtract from both sides to solve for the intercept.
Algebraic isolation of .
Write the final fitted line using the computed coefficients.
Substitution into the regression model.
, , and the regression line is .
The video verifies the result by displaying the summary box with , , and , and by showing the line crossing the marked mean point .
A title slide reads "Regression" with "David Longstreet" and "www.MyBookSucks.Com". It then cuts to a dense preview slide showing a scatter plot, a yellow box with , b1 = .6, ŷ = 2.2 + .6x, a table with columns x, y, x - x̄, y - ȳ, (x - x̄)², (x - x̄)(y - ȳ), and formulas including = .6 = Σ(x - x̄)(y - ȳ)/Σ(x - x̄)².
The narrator says, "In this tutorial, I'm going to talk about regression" and warns that the final equations and formulas look nasty.
The preview slide appears only briefly before the step-by-step construction begins.
Title text "Regression"
Author and website text
Scatter plot preview
Yellow result box
Data table preview
Formula preview
The video moves from a title card to a full preview of the finished regression worksheet.
The topic remains regression throughout the opening.
The opening previews the destination of the lesson before the narrator rebuilds the calculation from basic data.
A blank white screen gains a table labeled "independent variable" with x values 1 through 5, then a horizontal axis labeled x, then a second table labeled "dependent variable" with y values 2, 4, 5, 4, 5, then a vertical axis labeled y.
The narrator introduces the independent variable as the x axis and the dependent variable as the y axis, saying he is making up the numbers.
Independent-variable table
Dependent-variable table
Horizontal x-axis
Vertical y-axis
Tables and axes are added one after another until the plotting framework is complete.
x is consistently treated as the independent variable and y as the dependent variable.
The visual build establishes the two-variable structure needed before any regression line can be discussed.
Green dots appear one by one at (1,2), (2,4), (3,5), (4,4), and (5,5); the first two are temporarily annotated with coordinate labels.
The narrator says he will put in points for these observations and identifies the first as , and the second as point 2, 4.
Five green data points
Coordinate plane
The scatter plot fills in sequentially from left to right.
Each plotted point corresponds to a paired row from the x and y tables.
The animation converts tabular paired data into a geometric scatter plot.
The word mean appears below the table with 3 under x and 4 under y. A vertical purple line is drawn at , a horizontal green line at , and their intersection is labeled (3,4). A dashed line passes through that point.
The narrator computes the means and says all regression lines have to go through that crossing point.
Vertical line
Horizontal line
Point (3,4)
Dashed sample regression line
Mean values are added below the table, then the corresponding mean lines are drawn, then the intersection point is labeled.
The intersection remains (,)=(3,4).
The graphic shows why the mean point is central: every regression line discussed must pass through it.
Dotted guide segments are drawn from each point horizontally toward the vertical mean line and vertically toward the horizontal mean line .
The narrator says he will take the distance from the x value to the mean for all observations and do the same thing for the y's.
The spoken word "distance" is used while the later table records signed deviations rather than absolute distances.
Five data points
Mean lines and
Dotted horizontal and vertical guide segments
Guide segments are added point by point to show each observation's offset from the mean lines.
The mean lines stay fixed while the guides illustrate each observation's separation from them.
The animation motivates the deviation columns by showing horizontal offsets from x̄ and vertical offsets from ȳ.
The graph simplifies, a new third column header x - x̄ is added to the table, and the entries -2, -1, 0, 1, 2 are filled in row by row.
The narrator says he will take the x value minus the mean at each point and then reads out each subtraction.
Expanded data table
Column header x - x̄
Numeric entries -2, -1, 0, 1, 2
The table expands from two columns to three, and each new cell is populated in sequence.
The original x and y values remain unchanged while the deviation column is appended.
This step turns the geometric idea of offset from the mean line into explicit algebraic quantities for later regression formulas.
A green horizontal line is drawn across the scatter plot at .
The speaker says he is drawing the mean line for the y values, which is mean of four.
Scatter plot axes
Five data points
Green horizontal line at
Table with x, y, and columns
A horizontal reference line appears at the y-mean value 4.
The plotted data points do not move.
The x-axis and y-axis scales remain fixed.
The visual establishes as the baseline from which vertical deviations will be measured.
Dashed vertical segments connect individual points to the horizontal mean line while the y-deviation entries are filled.
The column is completed row by row.
The exact moment each dashed segment appears is approximate because the animation is continuous.
Data points
Horizontal mean line
Dashed vertical connectors
column
Vertical dashed guides appear from points to the mean line.
The y-deviation column is filled with -2, 0, 1, 0, 1.
The mean line stays at .
The original point coordinates stay unchanged.
The dashed segments show signed vertical distance from each observation to the mean, matching the numerical deviations in the table.
A dashed straight line is drawn through the scatter plot.
The equation is written near the plot.
The precise slope of the initially drawn dashed guide line is not numerically labeled on screen.
Scatter plot
Dashed straight line
Equation
A candidate regression line is drawn through the points.
The symbolic model equation appears on screen.
The data points remain the same five observations.
The axes and table layout remain visible.
The visual shifts from descriptive deviations to model fitting: the line represents the predicted relationship , and the next task is to determine .
Two additional columns appear: ()^2 and ()().
The table expands to the right as values are entered row by row.
Original table columns
New squared-deviation column
New cross-product column
The squared x-deviation column is added and filled.
The cross-product column is added and filled.
The original x, y, , and values remain unchanged.
The table is reorganized into the exact quantities needed for the least-squares slope: squared deviations for the denominator and cross-products for the numerator.
The totals 10 and 6 are written beneath the corresponding columns.
The expression = .6 is displayed.
Squared-deviation column
Cross-product column
Column totals
Slope expression
The sum 10 is written under ()^2.
The sum 6 is written under ()().
The slope expression resolves to 0.6.
The underlying data points and earlier deviation values do not change.
The visual completes the algebraic transition from rowwise deviations to the single summary parameter , the slope of the regression line.
The table highlights the columns and , with totals 10 and 6.
The formula under the table evolves from a numeric quotient to a symbolic summation quotient.
Scatter plot with five points
Dashed regression line
Data table with deviation columns
Formula
The numeric slope expression is rewritten first as a quotient of column expressions.
Then summation signs are added to produce .
The underlying data points remain the same.
The totals 10 and 6 remain fixed while the notation becomes more general.
The animation connects the concrete table arithmetic to the general least-squares slope formula.
The narrator says, "I'm going to take the distance from the x value to the mean" and later "take the distance each observation is from the y mean".
The table column is labeled x - x̄ and contains negative values -2 and -1 as well as positive values 1 and 2.
The video does not explicitly correct the wording; this item is an analyst clarification based on the visible signed entries.
One may infer from the spoken phrase "distance" that the table should contain only nonnegative magnitudes.
The displayed column records signed deviations, because values such as and are negative.
Rows with either or produce cross-product 0 in the table.
The speaker explicitly multiplies by zero several times while filling the product column.
One might think every row contributes nonzero information to the slope numerator.
In this method, if either or , then ()()=0, so that observation adds nothing to the numerator sum.
Negative deviations -2 and -1 become 4 and 1 after squaring.
The speaker says to square all the values in the x-minus-mean column.
One might expect negative x-deviations to reduce the denominator.
Because the denominator uses ()^2, all terms are nonnegative; negative deviations still increase the sum after squaring.
The speaker says he divides by “the difference between the x values and the mean squared,” while the displayed formula is .
The on-screen symbolic form clarifies that the denominator is the sum of squared deviations, not the square of a single difference.
A listener could infer from the wording that the denominator is one squared difference rather than a sum of squared deviations.
The displayed formula resolves this: the denominator is , the sum over all squared deviations of x from its mean.
The speaker only announces “Up next, I’m going to talk about R squared.”
The preview labels distances but gives no formula.
One might think this clip already defines mathematically.
In this segment, is only introduced conceptually through distance labels; no complete formula or derivation is shown.
The narrator first introduces x as the independent variable and then computes the mean of the x values.
The x table precedes the appearance of mean 3 under the x column.
The mean is computed directly from the listed independent-variable values.
The narrator first introduces y as the dependent variable and then computes the mean of the y values.
The y table precedes the appearance of mean 4 under the y column.
The mean is computed directly from the listed dependent-variable values.
The narrator says regression lines go through the point where the mean of the independent variable and the mean of the dependent variable cross.
The intersection of and is labeled (3,4).
The computed value supplies the x-coordinate of the mean point used in the claim.
The narrator identifies the crossing point of the two means as the required point for regression lines.
The horizontal mean line meets the vertical mean line at (3,4).
The computed value supplies the y-coordinate of the mean point used in the claim.
The narrator says he will take the x value minus the mean at each point.
The new column header is x - x̄ and each entry uses the previously established mean 3.
The deviation column cannot be formed without first knowing .
The speaker first identifies the mean of y as 4 and then subtracts 4 from each y value.
The column depends on the stated mean .
The horizontal mean line defines , and that value is then used to compute each y-deviation.
The slope expression uses the sums of ()^2 and ()().
The speaker says the squared column gives the denominator and the product column gives the numerator.
The denominator of the slope formula is built from the squared x-deviation column.
The numerator sum 6 comes from the ()() column.
The speaker adds the product column and uses that total as the numerator.
The numerator of the slope formula is built from the cross-product column.
The model equation is introduced before is computed.
The speaker says the goal is to get that equation and then determines .
The regression model contains the slope parameter , and the clip focuses on computing that parameter.
The slope formula is presented directly underneath the model .
The slope formula supplies the coefficient used in the regression equation.
The intercept calculation uses the already computed value in .
Computing by substitution requires the previously found slope .
“The regression line has to cross point three four.”
That point is then substituted into the regression equation.
The method for finding depends on the claim that the fitted line passes through .
The narrator names the independent variable as the x axis.
A table labeled independent variable lists x values.
The narrator names the dependent variable as the y axis.
A table labeled dependent variable lists y values.
The narrator states that all regression lines have to go through the crossing point of the two means.
The point (3,4) is marked at the intersection of the mean lines.
The narrator computes 1 minus 3, 2 minus 3, 3 minus 3, 4 minus 3, and 5 minus 3 aloud.
The x - x̄ column is filled with -2, -1, 0, 1, 2.
The narrator uses the word distance when describing offsets from the means.
The table records signed values including negatives.
This search target reflects an analyst-identified wording issue rather than an explicit correction in the video.
The speaker says the mean of y is 4 and draws the mean line.
A horizontal line appears at .
The speaker computes 2 minus 4, 4 minus 4, 5 minus 4, etc.
The column is filled with -2, 0, 1, 0, 1.
The equation is written on screen.
The speaker states the goal is to get this equation.
The speaker says to take the x-minus-x-bar column and square it.
The column ()^2 is added.
The speaker multiplies the x-deviation column by the y-deviation column.
The column ()() is created and filled.
The displayed calculation is = .6.
The speaker says the denominator is 10, the numerator is 6, and is 0.6.
Symbolic slope formula is shown explicitly.
Covered · Title card and brief preview of the finished regression worksheet, with narration introducing regression.
Covered · Construction of the x and y tables and the coordinate axes.
Covered · Plotting the five paired observations as a scatter plot.
Covered · Computation of the means, drawing of mean lines, and statement that regression lines pass through (3,4).
Covered · Visual explanation of taking offsets from the mean lines; wording about distance is clarified by the later signed table entries.
Covered · Creation of the x - x̄ column and row-by-row numerical computation of its values.
Covered · The clip introduces the horizontal mean line for y at .
Covered · The y-deviation column is computed row by row from the mean line.
Covered · Brief transition with no new mathematical statement beyond the completed deviation table.
Covered · The regression model is introduced and the task shifts to finding .
Covered · The squared x-deviation column is added and filled.
Covered · The cross-product column is added and filled row by row.
Covered · Column sums are taken and the slope is computed.
Covered · The clip opens with the table-based computation of the slope and its symbolic formula.
Covered · The speaker transitions from b1 to b0 and identifies b0 as the y-intercept.
Covered · The mean point (3,4) is marked and substituted into the regression equation.
Covered · The algebraic solution for b0 is written out step by step.
Covered · The coefficients are summarized and the final regression equation is displayed.
Covered · A title card and distance diagram introduce the next topic, R-squared, without giving its formula.
Covered · Closing branding/outro screen with no additional mathematical content.
Reviewed subject paths
The final fitted regression equation is . This is assembled by substituting the computed intercept and the computed slope into the general linear model .
Conditions: The data set consists of the five specific points (1,2), (2,4), (3,5), (4,4), and (5,5).; The slope has been calculated as 0.6.; The intercept has been calculated as 2.2.
The slope is computed by dividing the sum of the cross-products of deviations by the sum of the squared x-deviations. In the worked example, the sum of the cross-products is 6 and the sum of the squared x-deviations is 10, yielding .
Conditions: The data set consists of paired observations.; The sample means and have been computed.; The denominator is nonzero.
The y-deviations are calculated by subtracting the sample mean of the y-values, , from each individual y observation in the table. This produces a column of signed deviations measuring how far each point lies above or below the horizontal mean line.
Conditions: The y-values in the table are 2, 4, 5, 4, and 5.; The sample mean has been computed as 4.
The video introduces R-squared () as the next topic. It previews the concept using a scatter plot that labels distances involving the regression line, the mean line, and actual values, though no full formula or derivation for is provided in this segment.
Conditions: The least-squares regression line has just been computed.; The video is transitioning to a new statistical concept.
The intercept is calculated by substituting the mean point and the known slope into the regression equation , and then solving algebraically for . In the example, substituting , , and yields , which simplifies to .
Conditions: The slope has already been computed.; The sample means and are known.; The regression line is assumed to pass through .
The video squares the x-deviations to form the denominator of the least-squares slope formula. Squaring removes the sign of each deviation, ensuring that all contributions to the denominator are nonnegative and that the sum measures the total spread of the x-values around their mean.
Conditions: The x-deviations have already been computed.; The goal is to calculate the denominator for the slope .
The column represents the product of the x-deviation and the y-deviation for each observation. It is used to build the numerator of the least-squares slope formula, capturing how x and y vary together relative to their means.
Conditions: The x-deviations and y-deviations have been computed for each row.; The data set consists of paired observations.
The regression line must pass through the point (3,4) because this point represents the intersection of the sample means of the independent and dependent variables, . The video states as a general property that all regression lines have to go through the point where the mean of the independent variable and the mean of the dependent variable cross.
Conditions: The data set has a computed mean for x, .; The data set has a computed mean for y, .; The context is simple linear regression.