{"id":1923,"date":"2019-05-22T12:00:00","date_gmt":"2019-05-22T10:00:00","guid":{"rendered":"https:\/\/kindsonthegenius.com\/blog\/data-science-questions-and-answers-questions-11-to-20\/"},"modified":"2026-07-05T03:23:31","modified_gmt":"2026-07-05T01:23:31","slug":"data-science-questions-and-answers-questions-11-to-20","status":"publish","type":"post","link":"https:\/\/kindsonthegenius.com\/blog\/data-science-questions-and-answers-questions-11-to-20\/","title":{"rendered":"Data Science Questions and Answers (Questions 11 to 20)"},"content":{"rendered":"<p><a href=\"https:\/\/kindsonthegenius.com\/data-science-questions-and-answers-questions-1-to-10\/\">You can find Question 1 to 10 here.<\/a><\/p>\n<p>So let&#8217;s get started!<\/p>\n<h5><strong>11. What is Multivariate Linear Regression?<\/strong><\/h5>\n<p>This is a type of regression were the target variable(or dependent variable) Y is a linear function of multiple predictor (independent) variables.<\/p>\n<p>For example, given the variables <em>x<sub>1<\/sub>, x<sub>2<\/sub>, &#8230; , x<sub>k<\/sub><\/em><\/p>\n<p>We seek to model the relationship:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-909 \" src=\"https:\/\/www.kindsonthegenius.com\/wp-content\/uploads\/2020\/09\/Mulitvariate-Linear-Regression.jpg\" alt=\"Mulitvariate Linear Regression\" width=\"365\" height=\"44\" \/><\/p>\n<p>&nbsp;<\/p>\n<h5><strong>12. Explain the following model building methods:<\/strong><\/h5>\n<h5><strong>Forward Selection<\/strong><\/h5>\n<h5><strong>Backward Elimination<\/strong><\/h5>\n<h5><strong>Stepwise Selection<\/strong><\/h5>\n<p><strong>The Forward Selection<\/strong> method successively selects a list of predictor variables that have the highest correlation coefficient with the response variable. So it starts with a model containing no predictor variables. Then it adds the predictor variable one at a time until all predictor variables are added. For each step, we calculate the F-statistic to determine if the strongest linear relationship have been obtained. If yes, the procedure stops, if no, continue with the next predictor variable.<\/p>\n<p><strong>The Backward Selection<\/strong> (or backward elimination) works exactly in reverse of the forward selection. Here, we start with the full least-squares model that contains all the predictor variables. Then it iteratively eliminates the least-useful predictor variable one at a time.<\/p>\n<p>In both the forward selection and backward elimination, the strength of the relationship between the predictor and response variable is determined by calculating the F-statistic.<\/p>\n<p><strong>The Stepwise Selection<\/strong> method is like a combination of both methods discussed above. It both adds and removes variables from the model in steps. After adding a variable, the method may also remove a variable if the variable is not longer contributes to the model fit.<\/p>\n<p>&nbsp;<\/p>\n<h5><strong>13. Briefly explain the term multicolinearity<\/strong><\/h5>\n<p><a href=\"https:\/\/kindsonthegenius.com\/blog\/what-is-heteroscedasticity-and-multicolinearity-in-regression-analysis\">Multicolinearity<\/a> is an occurrence in multivariate linear regression\u00a0 where a linear relationship exists between two or more of the independent variables. As such, the estimation of the regression coefficients becomes\u00a0 unreliable and sometimes it becomes hard to perform an analysis.<\/p>\n<p>The effect\u00a0 of <a href=\"https:\/\/kindsonthegenius.com\/blog\/what-is-heteroscedasticity-and-multicolinearity-in-regression-analysis\">multicolinearity<\/a> is determined using variation inflation factor (VIF) which is given by:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-910 aligncenter\" src=\"https:\/\/www.kindsonthegenius.com\/wp-content\/uploads\/2020\/09\/Variation-Inflation-Factor.jpg\" alt=\"Variation Inflation Factor\" width=\"191\" height=\"76\" \/><\/p>\n<p>where R<sub>j<\/sub> is the coefficient of multiple correlation on the jth variable<\/p>\n<p>&nbsp;<\/p>\n<h5><strong>14. What is heteroscedasticity?<\/strong><\/h5>\n<p><a href=\"https:\/\/kindsonthegenius.com\/blog\/what-is-heteroscedasticity-and-multicolinearity-in-regression-analysis\">Heteroscedasticity<\/a> refers to a systematic change in the spread of the residual (or error term) over\u00a0 a range of measured values. Another definition: it is the linear correlation between two or more predictor variables.<\/p>\n<p>This is a challenge because he assumption in regression(using ordinary least squares OLS) is that all the residuals are taken from a population with a constant variance. Therefore the residuals are also expected have constant variance <em>Var(\u03b5<sub>i<\/sub>) =\u00a0\u03c3<sup>2<\/sup><\/em>.<\/p>\n<p>This is called homoscedasticity.<\/p>\n<p>But since this assumption fails in the case of heteroscedasticity, there is unequal scatter as shown below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-911 \" src=\"https:\/\/kindsonthegenius.com\/wp-content\/uploads\/2019\/05\/Heteroscedasticity.jpg\" alt=\"\" width=\"488\" height=\"180\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-912 \" src=\"https:\/\/www.kindsonthegenius.com\/wp-content\/uploads\/2020\/09\/Homoscedasticity.jpg\" alt=\"\" width=\"491\" height=\"183\" \/><\/p>\n<p>One way to\u00a0 handle this problem is to transform the response function Y using\u00a0 a concave function such as log Y or root Y.<\/p>\n<p>&nbsp;<\/p>\n<h5><strong>15. Write briefly on Sensitivity Analysis<\/strong><\/h5>\n<p>I would just give you the simple and clear definition.<\/p>\n<p>Sensitivity Analysis is the study of the relationship between the uncertainty in the output of a model and the uncertainty in the inputs.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h5><strong>16. Differentiate between Factor Analysis (FA) and Principal Components Analysis (PCA)<\/strong><\/h5>\n<p>Principal Components Analysis (PCA) is concerned with explaining the variance between variables while Factor Analysis (FA) in concerned with explaining the covariance among variables.<\/p>\n<p>So PCA uses the total variance\u00a0 while Factor analysis uses the shared or common variance between factors.<\/p>\n<p>Again while FA is interested in identifying latent variables, PCA tries to perform a linear combination of existing variable.<\/p>\n<p>&nbsp;<\/p>\n<h5><strong>17. What is Measure of Sampling Adequacy (MSA)?<\/strong><\/h5>\n<p>Before Factor Analysis can be performed on a dataset, there must be some correlation between the predictor variables in the data. So if there is strong correlation between the variables included in the study, then the data would likely be suitable for factor analysis.<\/p>\n<p>MSA is a measure of how suitable a data set is for Factor Analysis and is defined using he KMO index explained in Question 18.<\/p>\n<p>Other ways of checking sampling adequacy includes:<\/p>\n<ul>\n<li>Visual Inspection for r&gt; .3<\/li>\n<li>Partial correlation (correlation between variables when the effect of other variables are taken into account and partialed out). Its expected to be small<\/li>\n<li>anti-image correlation: negative value of the partial correlation.<\/li>\n<li>Bartlett test of sphericity: provides statistical probability that correlated matrix has significant correlation among some of the variables<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h5><strong>18. What is the KMO Statistic?<\/strong><\/h5>\n<p>KMO or Kaiser-Meyer-Olkin statistic is a value that measures sampling adequacy. It takes a value from 0 to 1. Values close to 0 is considered not suitable, while values close to 1 is acceptable.<\/p>\n<p>In summary, KMO provides the following:<\/p>\n<ul>\n<li>0\u00a0 \u00a0 \u00a0&#8211; 0.49 unacceptable.<\/li>\n<li>0.5 &#8211; 0.59 miserable.<\/li>\n<li>0.6 &#8211; 0.69 mediocre.<\/li>\n<li>0.7 &#8211; 0.79 middling.<\/li>\n<li>0.8 &#8211; 0.89 meritorious.<\/li>\n<li>0.9 &#8211; 1.00 marvelous.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h5><strong>19. Differentiate between Communality and Uniqueness<\/strong><\/h5>\n<p>Communality and Uniqueness are terms in Factor analysis used to describe variances.<\/p>\n<p>Communality is the portion of the variance that is contributed by common factors<\/p>\n<p>Uniqueness is the part of the variance that is not explained by the common factors.<\/p>\n<p>So given that the total variance is:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-913 aligncenter\" src=\"https:\/\/www.kindsonthegenius.com\/wp-content\/uploads\/2020\/09\/Communality-and-Uniqueness-300x92.jpg\" alt=\"Communality and Uniqueness\" width=\"300\" height=\"92\" \/><\/p>\n<p>The the term\u00a0 \u00a0<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-914\" src=\"https:\/\/www.kindsonthegenius.com\/wp-content\/uploads\/2020\/09\/Communality.jpg\" alt=\"\" width=\"72\" height=\"62\" \/> \u00a0is the communality<\/p>\n<p>while the term <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-915\" src=\"https:\/\/www.kindsonthegenius.com\/wp-content\/uploads\/2020\/09\/Uniqueness.jpg\" alt=\"\" width=\"54\" height=\"44\" \/> is the uniqeness<\/p>\n<p>&nbsp;<\/p>\n<h5><strong>20. What are the steps of Principal Components Analysis?<\/strong><\/h5>\n<p><a href=\"https:\/\/kindsonthegenius.com\/tempsite\/pca-tutorial-1-introduction-to-pca-and-dimensionality-reduction\/\">Principal Components Analysis<\/a> takes the following steps:<\/p>\n<ul>\n<li>Compute the covariance matrix<\/li>\n<li>Compute the eigen vectors<\/li>\n<li>Choose a dimension k (number of components)<\/li>\n<li>Define the dimension of the reduced data set<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>You can find Question 1 to 10 here. So let&#8217;s get started! 11. What is Multivariate Linear Regression? This is a type of regression were &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"categories":[414],"tags":[],"class_list":["post-1923","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/1923","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/comments?post=1923"}],"version-history":[{"count":1,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/1923\/revisions"}],"predecessor-version":[{"id":2091,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/1923\/revisions\/2091"}],"wp:attachment":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/media?parent=1923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/categories?post=1923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/tags?post=1923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}