Mohammad Sajid Hussain's Posts - Data Science Central2019-07-16T16:16:53ZMohammad Sajid Hussainhttps://www.datasciencecentral.com/profile/MohammadSajidHussainhttps://storage.ning.com/topology/rest/1.0/file/get/2800394054?profile=RESIZE_48X48&width=48&height=48&crop=1%3A1https://www.datasciencecentral.com/profiles/blog/feed?user=0ml6x38vt98ox&xn_auth=noSteps of Modellingtag:www.datasciencecentral.com,2018-03-11:6448529:BlogPost:7027862018-03-11T20:00:00.000ZMohammad Sajid Hussainhttps://www.datasciencecentral.com/profile/MohammadSajidHussain
<p><strong>Regression analysis</strong> is a method to find functional relationships among variables. The relationship is expressed in the form of an equation or a model depicting connection between the response or dependent variable and one or more explanatory or predictor variables.</p>
<p></p>
<p><img src="https://www.stepupanalytics.com/wp-content/uploads/2017/05/Steps-of-Modeling-edited-1.png"></img></p>
<p>Regression analysis includes the following steps:</p>
<ul>
<li><strong>Statement of the problem</strong>- Regression analysis usually starts with the formulation of the problem…</li>
</ul>
<p><strong>Regression analysis</strong> is a method to find functional relationships among variables. The relationship is expressed in the form of an equation or a model depicting connection between the response or dependent variable and one or more explanatory or predictor variables.</p>
<p></p>
<p><img src="https://www.stepupanalytics.com/wp-content/uploads/2017/05/Steps-of-Modeling-edited-1.png"/></p>
<p>Regression analysis includes the following steps:</p>
<ul>
<li><strong>Statement of the problem</strong>- Regression analysis usually starts with the formulation of the problem which includes the question(s) that has to be answered by the analysis. This is the first and most important step in regression analysis. It is important because an incorrectly defined problem can lead to wasted effort. Often irrelevant set of variables can be selected or a wrong statistical method of analysis is chosen due to this. A question that has not been carefully formulated can lead to the wrong choice of a model.</li>
</ul>
<p> </p>
<ul>
<li><strong>Selection of potentially relevant variables</strong>- The next step after the statement of the problem is to select a set of variables that are thought to be the predictor variables(done by the experts of domain) which will be able to explain or predict the response variable. The response variable is denoted by Y and the explanatory or predictor variables are denoted by <em>X 1, X2,</em> . . . , <em>Xp</em> where p denotes the number of predictor variables.</li>
</ul>
<p> </p>
<ul>
<li><strong>Data collection-</strong> The next step after the selection of potentially relevant variables is to collect the data from the environment under study to be used for analysis. Sometimes the data are collected in a controlled setting so that factors that are not of primary interest can be held constant. More often the data are collected under non-experimental conditions where very little can be controlled by the investigator. In either case, the collected data consist of observations on <em>n</em> subjects (also known as individuals often) . Each of these <em>n</em> observations consists of measurements for each of the p potentially relevant variables.<p>The data are usually recorded in rows and columns.<span> </span><strong>A<span> </span></strong>column represents a variable,whereas a row represents an observation, which is a set of<span> </span><em>p<span> </span></em>+ 1 values for a single subject i.e. one value for the response variable and one value for each of the<span> </span><em>p<span> </span></em>predictors. Each of the variables can be classified as either quantitative or qualitative.<span> </span><strong>A<span> </span></strong>technique used in cases where the response variable is binary is called<span> </span><em>logistic regression.</em><span> </span>In regression analysis, the predictor variables can be either quantitative and or qualitative. For the purpose of computations, however, the qualitative variables, if any, have to be coded into a set of<span> </span><em>indicator<span> </span></em>or<span> </span><em>dummy<span> </span></em>variables<strong><em>. </em></strong>If all predictor variables are qualitative, the techniques used in the analysis of the data are called the<span> </span><em>analysis of variance<span> </span></em>techniques (special cases of regression analysis). If some of the predictor variables are quantitative while others are qualitative, regression</p>
<p>analysis in these cases is called the<span> </span><em>analysis of covariance.</em></p>
<p> </p>
</li>
<li><strong>Model specification-<span> </span></strong>Initially, the form of the model that is assumed to explain the relationship between the response variable and the set of predictor variables is usually specified by the experts in the area of study based on their knowledge or their objective and or subjective judgments. The hypothesized model can then be either confirmed or rejected by the analysis based on the collected data. Note that the model need to be specified only in form, but it can</li>
<li style="list-style-type: none;"><p>still depend on unknown parameters. We need to select the form of the function</p>
<p><em>f</em><em><span> </span>( X1,X2,</em>…,<em>Xp)</em><span> </span>. This function can be classified into two types:<span> </span><em>linear<span> </span></em>and<span> </span><em>nonlinear.<span> </span></em>Note that the term linear (nonlinear) here does not describe the relationship between<span> </span><em>Y<span> </span></em>and<span> </span><em>X1 ,X2,</em>…,<span> </span><em>Xp</em><em>.<span> </span></em>It is related to the fact that the regression parameters enter the equation linearly (nonlinearly). All nonlinear functions that can be transformed into linear functions are called linearizable functions. Accordingly, the class of linear models is actually wider because it includes all linearizable functions.However, that not all nonlinear functions are linearizable. A regression model with one predictor variable is called a<span> </span><strong>simple regression model</strong>. A model having more than one predictor variable is called a<span> </span><strong>multiple regression model</strong>. When we have only one response variable, the regression analysis is called<span> </span><strong>univariate regression</strong><span> </span>and in cases where we have two or more response variables, the regression is called<span> </span><strong>multivariate regression</strong>. Simple and multiple regressions should not be confused with univariate versus multivariate regressions.</p>
<p> </p>
</li>
<li><strong>Choice of fitting method –<span> </span></strong>After defining the initial model and collecting the data , the next step is to estimate the parameters of the model based on the collected data. This is also referred to as parameter estimation or model fitting. The most commonly used method of estimation is called the least squares method. Under certain assumptions, least squares method produce estimators with desirable properties. In some instances (e.g., when one or more of the assumptions does not hold) other estimation methods may be superior to least squares. The other estimation methods that can be considered are the maximum likelihood method, the ridge method, and the principal components method.</li>
<li style="list-style-type: none;"><p> </p>
</li>
<li><strong>Model fitting-<span> </span></strong>The next step in the analysis is to estimate the regression parameters or to fit the model to the collected data using the chosen estimation method. The estimates of the regression parameters ,, ……., are denoted by 0 , 1 , ……,p . The estimated regression equation then becomes 0 + 1 1 + 2 2 + ….. + p p</li>
<li style="list-style-type: none;"><p>A hat on top of a parameter denotes the estimate of the corresponding parameter. The value (pronounced as Y hat) is called the fitted value. Using this equation we can compute n fitted values, one for each of the n observations in our data. It can be used to predict the response variable for any values of the predictor variables not observed in our data. In this case, the obtained Y is called the predicted value. The difference between fitted and predicted values is that the fitted value refers to the case where the values used for the predictor variables correspond to one of the n observations in our data, but the predicted values are obtained for any set of values of the predictor variables. It is generally not recommended to predict the response variable for a set of values of the predictor variables far outside the range of our data. In cases where the values of the predictor variables represent future values of the predictors, the predicted value is referred to as the forecasted value.</p>
<p> </p>
</li>
<li><strong>Model validation and criticism-<span> </span></strong>The validity of a statistical method, such as regression analysis, depends on certain assumptions. Assumptions are usually made about the data and the model. The accuracy of the analysis and the conclusions derived from an analysis depends crucially on the validity of these assumptions. Regression analysis is viewed here as a iterative process, a process in which the outputs are used to diagnose, validate, criticize, and possibly modify the inputs. The process has to be repeated until a satisfactory output has been obtained.<span> </span><strong>A<span> </span></strong>satisfactory output is an estimated model that satisfies the assumptions and fits the data reasonably well.</li>
<li style="list-style-type: none;"><p> </p>
</li>
<li><strong>Using the chosen model(s) for the solution of the posed problem-<span> </span></strong>The explicit determination of the regression equation is the most important product of the analysis. It is a summary of the relationship between Y (the response variable) and the set of predictor variables<span> </span><em>X1 , X2,<span> </span></em>. . . ,<span> </span><em>Xp</em>. The equation may be used for several purposes. It may be used to evaluate the importance of individual predictors, to analyze the effects of policy that involves changing values of the predictor variables, or to forecast values of the response variable for a given set of predictors.</li>
</ul>
<p></p>
<p></p>