CFA Level 1 2027 - Quantitative Methods

This playlist covers all topics explored in the Quantitative Methods section of the 2027 CFA Level 1 Curriculum. For a comprehensive directory of all videos featured on this channel, please visit the channel companion website: www.letmeexplain.eu Let me Explain is a CFA Institute Prep Provider. Only CFA Institute Prep Providers are permitted to make use of CFA Institute copyrighted materials which are the building blocks of the exam. We are also required to create / use updated materials every year and this is validated by CFA Institute. Our products and services substantially cover the relevant curriculum and exam and this is validated by CFA Institute. In our advertising, any statement about the numbers of questions in our products and services relates to unique, original, proprietary questions. CFA Institute Prep Providers are forbidden from including CFA Institute official mock exam questions or any questions other than the end of reading questions within their products and services. CFA Institute does not endorse, promote, review or warrant the accuracy or quality of the product and services offered by Let me Explain. CFA Institute®, CFA® and “Chartered Financial Analyst®” are trademarks owned by CFA Institute.

Curated by: Let me explain (81 videos)


Currently Playing: Estimating the parameters of the simple linear regression (for the CFA Level 1 exam)

Estimating the parameters of the simple linear regression (for the CFA Level 1 exam) explores topics covered in Lesson 2, Learning Module 10 of the Quantitative Methods section of the 2027 CFA Level 1 Curriculum. LOS: - describe, interpret, and explain simple linear regression, including coefficient estimation using the least squares criterion For a comprehensive directory of all videos featured on this channel, please visit the channel companion website: www.letmeexplain.eu Let me Explain is a CFA Institute Prep Provider. Only CFA Institute Prep Providers are permitted to make use of CFA Institute copyrighted materials which are the building blocks of the exam. We are also required to create / use updated materials every year and this is validated by CFA Institute. Our products and services substantially cover the relevant curriculum and exam and this is validated by CFA Institute. In our advertising, any statement about the numbers of questions in our products and services relates to unique, original, proprietary questions. CFA Institute Prep Providers are forbidden from including CFA Institute official mock exam questions or any questions other than the end of reading questions within their products and services. CFA Institute does not endorse, promote, review or warrant the accuracy or quality of the product and services offered by Let me Explain. CFA Institute®, CFA® and “Chartered Financial Analyst®” are trademarks owned by CFA Institute.

Video Transcript

welcome everybody to this video very important one where we will be finally estimating the parameters of this simple linear regression that is a um regression with one independent variable one explanatory variable that we will be calling X um if you like this video please consider subscribing to the let me explain Channel and actually also please consider becoming a member joining the channel as a supporting member to get access to all the videos available on the channel right uh let's get cracking with the topic in the previous video where we introduced linear simple linear regression I gave you a very simple example I'm going to recreate this example right now um that was where we had four candidates in the CFA level one exam obviously completely um hypothetical we called them a b c and d um we jotted down the time spent uh studying and this was absolutely fictitious uh 42 weeks uh 42 weeks 15 weeks 30 weeks and we found that there probably is some relationship between the time studied as measured here in weeks and uh the score attained achieved on the exam so the exam scores were 75% for a 87 for B 42 for C and 70% uh for um for D um now in a moment we'll use this data to compute the parameters of the simple linear regression before we do that let's just very quickly jot down the um the mean value values now time spent studying is going to be our independent or explanatory variable that we typically denote with X and we label or we plotted on the x- axis on a scatter plot that's what we did in the previous video um the independent or explained variable y that's going to be the exam score so over here I've got my xar and my Y Bar please please appreciate that we're treating in these four candidates as sample of the overall population as a sample of the overall population hence we are using notation that is absolutely appropriate for samples X xar Y Bar that's how you um show the sample mean okay let's start with the time spent studying 40 + 42 + 15 + 30 divided by 4 okay 31.6 75 weeks is the meantime spent studying uh in weeks 75 + 87 + 42 + 70 divided by 4 um 68.5% would be the mean score achieved now in the exam you may be given a set of data like this maybe a little bit more um than just four um observations and uh ask to estimate the uh parameters of the linear regression um in line with what we did in the previous video now the easiest way to do it and the only way I recommend although I will walk you through the sort of more elaborate version on paper just to give you some uh background knowledge on what your calculator is doing is to use the calculator for that purpose we're going to access the data um worksheet and the stat worksheet um so to access the data worksheet you need to press this second key on your calculator follow by the digit s which has data as its secondary function so second data I've cleared my data worksheet but just in case yours is full of well data I guess you may want to press uh second uh followed by c/c that key has clear work or clear worksheet as its secondary function and that will get rid of anything that may be sitting in there already now you may in this video see me disappearing on and off because I want to give priority to the calculator in this recording and sometimes uh my uh little window with me my head in it will obstruct what's what I'm writing down and the calculator view so don't be surprised that I will be popping on and off um at various times uh that's something I'll determine in post production when I appear when I don't um right um this is the place where you input the raw data now X for us is the time spent studying so I will be inputting my first X that's 40 followed by the enter key and I've got you can see my calculator has accepted that this is now the input for my first X I use the down arrow to scroll down to Y uh so corresponding with that X of 40 I'm going to now input the score of 75 so 75 followed by enter uh brilliant you need to follow this up by enter because that's how you get your calculator to understand hey I'm I'm finished inputting the number down arrow again my second um X which is going to be 42 enter down arrow once 87 for y uh down arrow again 15 enter followed by 42 enter uh and then uh 30 two weeks for the final one down arrows 70% as the score now the the nice thing about the data worksheet um is that you can scroll up and down you can check your inputs like if you're not sure if something was done correctly you can just go back and forth examining your inputs and you can overwrite an input which you find to be erroneous for example so your calculator has now stored the the raw data it's time to move move on to the uh worksheet which is next door by pressing second followed by eight 8 has the secondary function of stat this is where the magic happens this is where all your calculations happen now live sorry the first thing you see is Lin leave it like that it stands for linear which is great and uh your calculator will tell you okay in the worksheet next door in the data worksheet I saw I can see that there are four observations stored you know X and Y values for four four separate X and Y values which is great because we had candidates a b c d so four candidates the mean of the X's which we inputed uh is 3175 which kind of confirms our previous um previous entry uh previous computation the sample standard deviation is 12.33 okay we haven't computed stand standard deviation and the population standard deviation is 10.68 the difference between sample and population uh comes from whether you divide by n or n minus one we don't need necessarily that right now and then it tells you the same thing for y the mean value of y was 68.5 the sample standard deviation for y 1905 and 16.5 as you can see when you compute the sample standard deviation it's a little bit bigger than the population one and that's because um we divide by nus1 uh instead of over here um just by um sorry went too far we divide by a lower number and over here we divide by a higher number uh n minus one instead of end okay now this is where the interesting stuff comes up you will see a a is your intercept so the first of the regression coefficients that you need that is 20918 jotting it down next one as I press the down arrow B that's the slope of the uh line of best fit in the linear regression and that is 1.49 9 let's call it if I press the down arrow again it also gives me R now r is not really uh a regression coefficient as such I'm still going to write it down it's uh 0.97 and this is your correlation R is correlation uh as computed on a sample basis and you can see it's very close to positive one which means we've got a very strong linear relationship between uh the X and Y variables that's what correlation is telling us and if you got such a question you know estimate either the slope or The Intercept in the exact this is how you would do it you'd input the data into the calculator and hey Presto that's uh that's done easy now to fully appreciate what's going on in regression linear simple linear regression I still want you to be able to understand the mechanics behind what your calculator does because in order to compute the slope and The Intercept your calculator performs um relatively simple uh mathematics or simple when you've got four observations much more complex when the number of observations is higher so I want you to appreciate how this is actually done although you'll probably never have to do this yourself in the exam to kind of in the old school way compute the slope you would take the co-variance between y and x and divide by the variance of X now this is good practice if you've forgotten how to compute covariance variance you know kind of going through it at least one more time covariance is the sum starting with the first observation out of the four in the sample and finishing with the final one which is the fourth one of the following the product of a certain multiplication where you take the value for The observed value for y for example this is going to be our y number one and this is going to be our X number one because this is observation number one that's going to be observation number two sorry I should have written X1 here this is X2 this is Y2 so for every observation of the four that we've got we're going to take the value observed for Y and deduct from it the mean computed for Y which is that constant 68 and a half it doesn't change across the sample and we do the same over here we take the value assumed by X in a given row and we deduct xar the mean of all the AIS divide this by nus1 but that's what you get for um um sample uh covariance and now so that's our cve term and variance of X is similar it's also a sum of this of the differences but this time focusing on only on X take each of the X values deduct xar and if you just stopped there you would get a value of zero because the mean is a value which makes all the the sum of all the differences equal to zero which is why we Square all those differences and we divide them by nus one anyway now however horrific this looks it may be simplified because you'll have n minus1 in the bottom of both fractions and dividing by a fraction is the same as multiplying by its reciprocal so what this simplifies to is you can actually get rid of these denominators and you can say this equals the sum starting with you know i1 and finishing with n I'm repeating what's in the top of the original covariance um term forgetting the N minus one and just dividing by this okay if you're looking for the relationship between two fact two fractions and the two fractions have the same thing in the denominator you can just focus on the relationship between the numerators that's essentially what we're saying here mathematically this is absolutely fine and now we can work with this although it will take a bit of time right it's not an easy thing um to do and definitely something you don't want to do in the exam so let's focus on the top row I'm going to go step by step here I'm going to take for each row separately the value for x the value for y and obviously deduct respectively the means so it doesn't matter whether you start with Y or with X I'm just going to start with x 40 that's the number of weeks sorry mon minus uh the mean over here which was 3175 let's pull this up so you can see it 31.75 so minus 30 whoops 31.75 okay that's 8.25 multiplied by the difference assume uh of the Y value that was I opened the bracket by the way 75 - 68.5 close that bracket equals right one difference times the other difference gives 53. 625 please notice that in the case of the a candidate the two values the value for x time Spen studying and the exam score that's the value for y were both above their respective means if one was above and the other was was below we would get one being positive uh one of the one of these brackets or terms in the parenthesis producing something positive the other negative if they are both on the same side of their means we get a positive value so both are above or indeed both are below that's why over here we've got a positive sign which will later determine whether we've got positive or negative covariance which also determines whether we've got positive or negative correlation right next row this one now this is where we've got X2 and Y2 same process take the x value 42 deduct the mean for X which is the steady 31.75 from the bottom and multiply this by Open Bracket 87 - 68 and2 close bracket equals right the next sort of sub result is8 9.62 5 and my job is to add all of these up time for the third one so I'm in now in row C 15 well this is lower right lower than the mean 15 minus 31.75 negative multiplied by Open Bracket 42 - 68.5 close bracket also negative but the result of that multi ication is a positive 443 875 443 875 and time for one more 30 weeks minus 31.75 equals -1.75 uh so the time spent studying here was below the mean across the four candidates however the score was above the mean above average so I'm going to get a negative product of these 70 minus 68.5 close the uh parentheses and I'm I I get just one 2.625 now this will have to be divided by x i - xar squared so I kind of have to go and repeat the same thing just for the x's and square um let's see well I could I could cheat and use what your calculator tells me from the stat uh uh worksheet but I'm going to do it nevertheless I'm just going to now focus on the column labeled X so 40 - 31.75 = square that okay I'm not going to write the result down because I'll just do this in one kind of go Open Bracket 42 - 31.75 close bracket Square it plus Open Bracket 15 - 31.75 close bracket square at Plus open bracket 30 - 31.75 close bracket Square it out equals okay 4566 75 in the denominator now let's see what this sort of gives overall starting from the top 53. 625 have to be extra careful to get these numbers in correctly 18 9. 625 + 44 3.875 plus well actually minus 2.62 2 5 equals right just in case I lose this number let's uh write it down and I divide by 45675 divide by 4 56.75 well I've already done it you can see that the result is 1.49 and please please appreciate that having done all this work it's really really time demanded and very prone to errors we got the slope which our calculator has previously given us 1.49 n it's the same number brilliant now once we've got the slope let's also calculate the intercept The Intercept or the official formula for The Intercept so we've got the slope of got and now we'll have the intercept is actually much easier than uh that for the slope but you need the slope first it's going to be the mean value for the Y minus the slope term times the mean value of the X's so what was the mean value for the Y's it was 68 A2 and 31.75 was the mean value for the X's I'm taking the numbers from up here so 68.5 minus the slope 1.49 time 31.75 weeks was the value for the um the mean value for the week studied and I'm going to utilize the number which I still have on my calculator display because if you don't use the precise number you know you get the results slightly off what it should be I'm just going to stick a negative sign in front of it with the plus minus key multiply by 31.75 okay so I effectively now have sort of the tail here the right hand tail I'm going to add 68.5 to it and we get 20918 let's see if that agrees with the intercept term which our calculator had calculated for us of course it does brilliant great as you can see it's much easier to utilize your calculator so in the exam please please do that instead of um trying to do this by hand it really doesn't doesn't really make much sense now for some so that was the core of the of the video if you don't have any more time um to listen to what I'm going to say next which are some additional Point go ahead and you know study something else I'm going to now talk to you about the properties of some of these uh terms and computations okay so I will not necessarily need to show you my calculator anymore because we won't be doing any uh any computations as such what I want you to appreciate next is that the slope or the formula for the slope is very similar to the way in which we compute uh correlation with a very important difference that comes in the denominator of the FR of this fraction if you want to compute correlation that's R and by the way our calculator had given us correlation right 0.97 what You' need to do is take the co-variance of the two terms and then instead of dividing by the variance of X which is this standard deviation of X squar you would take the standard deviation of Y multiplied by the standard deviation of X right your calculator does show you R but this the denominator is always above zero it's always positive because standard deviations are uh numbers that are more than zero right they are positive numbers so and actually variance being standard deviation squared is always positive therefore the slope of the linear regression so the term slope one of the you know key regression coefficients and correlation always have the same sign and so if one is positive the other has to be positive as well and whether it's positive or negative the uh is determined by the sign of the covariance so this depends on the covariance being either positive or negative and covariance as you saw the sign of it is a function of whether there is consistency in X and Y being at the same time above or below their respective means if one is above its mean like X over here 4 weeks studied being above the mean value for time uh time studied um and the exam score also being above the average the mean you're going to get a positive Co element in the covariance computation however if there's discrepancy one is above the other is below or one is below the other is above you'll get a negative sign if both are below you'll get positive sign covariance measures the degree of the Mutual relationship but it's uh ex you know at at the at the bottom of it is whether these uh two uh uh values lie above or below their respective means this is something to absolutely sort of remember now another thing which is I think very critical is how we interpret the correlation coefficients the intercept and the slope interpreting the um uh not cor correlation sorry regression coefficients coefficients so what is The Intercept well if you draw a uh scatter plot with all the different observations okay a lot more than we have we only had four this is our line of best fit obviously this is the Y AIS this is the x-axis and The Intercept is the level of Y that is our dependent variable uh when x equals 0 so when X here equals z at the start of this axis what will be the Y value sometimes this is unrealistic because in many sort of economics or social uh Sciences you can't assume an X of zero uh you know the lack of something but not not in this case um if uh we we're thinking about candidate score as something that's dependent on the time studied then surely you can imagine that somebody who hadn't done any studying at all just goes into the exam and picks answers uh randomly will still get some positive result right a result that is nonzero so The Intercept which in our case came in at 20.9% I guess would be uh the result of a candidate who hadn't studied anything and that any had devoted any time to studying and that is absolutely realistic right that this could happen now the slope this is the change in why how much why changes in this case it's positive but if the slope were negative it would be negative change for a one unit change in X effectively if a candidate studies an additional one week what's going to be the incremental increase or change in their score so in our case the interpretation would be that one additional week of study and remember we're talking about a linear relationship so it's constant across all the X's we're assuming linear progress linear a linear sort of steady constant slope one week of study time brings about a positive 1.4 99 that was indeed the slope 1.49 here of this regression um uh percentage point um increase in exam score of course please please appreciate that I completely made this stuff up that's probably not the way it is although I'm quite you know I create I randomly created numbers but I'm quite happy with the with the with the conclusions from them right that's that's one thing that's another thing to appreciate now another thing that your curriculum squeezes into this sort of lesson within the uh within within this learning module is data types that we have in regression you can have a crosssectional regression using cross-sectional data let me tell you what that is this is when you use or a regression which uses multiple many observations for x and for why but coming from the same time period so you may for example be looking at numerous companies numerous stocks uh different indexes different funds etc etc but at the same time in the same year in the same month and looking at uh some relationship for example in the case of companies between their um results and the amount of Leverage they've got on the balance sheet something like that and you're looking cross-sectionally in the same time period on the other hand many of the uh regressions that you'll be performing or looking at from an exam perspective are going to be based on time series uh data so they will be time series regressions and these uh utilize for this type of regression so probably I should have singular here instead of the plural time series regression uses um many observations again sorry many observations obviously uh for X and Y but from different time periods um but for the same company the same fund the same stock and seeing how it behaves how something behaves over time when the explanatory ex uh you know the the independent variable changes that's going to be um time series uh data right and one more note slightly sort of more abstract I guess but nevertheless important and relating to something I said in the previous introductory lesson on uh simple linear regression in the previous lesson I wrote an expression for the um linear relationship between i h sorry Y and X the Y value for a certain uh you know pair of X and Y is going to be given by The Intercept plus the slope multiplied by the x value and there was an error term as well now very importantly these B 0 and b y values were supposed to be the population parameters the linear regession regression uh coefficients as would be computed for the entire population and the problem is that we can't observe them cannot observe them because we typically don't have access to the entire population we only have access to a sample uh we you could pull all the candidates in the CFA exam AV exam but it would probably be uneconomical to timec consuming so we take a sample probably four is not enough but you know it's good enough for a for a little example here so instead um we use a sample and from it we try to infer something you know make some conclusions uh we use a sample and we compute uh sample based estimates for the intercept and the slope we call them b0 and B1 but in your curriculum you'll see a little hat added to the B 0 and B1 to show that these are based on a sample these are the parameters the intercept and slope computed from a sample and the problem is if you had a different sample of four candidates with their own study ch time and exam score you'd probably compute b0 and B1 hat at a slightly different level because every sample contains different data or may contain different data and you know you get different results so appreciate that what we do here is we compute a um yeah we compute B 0 and B1 hat in such a way computed so so as to minimize the sum of the squared vertical differences to the regression line something we discussed in the previous lesson um and um effectively we get a uh function where we have an estimated value for y sorry estimated y value based on the estimated relationship between Y and X but because we are using these uh values computed on the base of a sample we would say that this is B 0 hat plus B1 hat that's the slope coefficient times the value of x now there will always be a residual that line which we draw typically doesn't go through all the points unless you know there is perfect correlation here so there all there will always be a residual um and that residual is labeled EI and it's the difference between the computed um The observed y value and that predicted from the regression model that you build but our job in minimizing the sum of the square vertical differences is basically to minimize something called ssse This is the sum of squared error why we square is something that we explained in the previous video so the sum of squared error is the sum of starting with one finishing with n all of these differences the actual value of y versus the value for for y That's predicted under our regression model using the regression coefficients that we that we got squared if we don't Square the positive differences and the negatives uh offset one another so we could say that this is the difference between the actual sorry I don't need this equal sign here the actual value of y from the sample and where the regression predicts where we would be that we would be and that's the intercept plus B1 X I uh close bracket this should have been a square bracket here okay so this is basically the sum of all of the so-called residual terms let me give you a little bit of context here for example the intercept that we've got 20.98 and the slope that we've got 1. 1499 will allow us to predict where a candidate should score if they studied I don't know for 4 or two weeks so 20.98 plus 1.4 99 that's the slope times 40 weeks of study should produce an exam score of something like 80. 878 I'm not showing you my calculator anymore I'm just showing what we what would happen if as XI we had 40 weeks we should get the predicted score is something like 80.9% however candidate a only had 75 there is a difference between the actual observed value and that predicted by the regression model that's what we mean by the residual however it is this specific intercept and this specific slope that allow us to minimize the sum of the square differences across the four candidate scores okay um so let me say that this residual is how much The observed y value exam score differs from the Y value estimated using the regression line and Y value estimated using the regression line okay and let me just tell you that this is different absolutely different to the error term over here right because this error term which I wrote in the previous in the function from the previous video this refers to the underlying population relationship this is the difference between the observed y value and the Y value computed using the true underlying population b0 and B1 the true coefficients which we don't know because we rely on on coefficients Compu from a sample uh there's a you know conceptually this is a big difference in reality you'll be uh it won't be so much of a difference but your book talks about the difference between the so-called residual the difference between the observed and what your model predicts which is based on uh coefficients computed from a sample so B 0 and B1 hat versus the error that you would com that you would get if you had access to the true b0 and B one

Tracks in this Playlist