Statistics
Statistics
student CGPA (Cumulative Grade Point Average) as the dependent variable and
two independent variables: study hours and attendance percentage. We'll
perform the regression analysis to predict CGPA based on these two factors.
Step 1:
Collect and Prepare my Data Assume that have a dataset with the following
variables:
Step 2:
Input Data into Excel Open Microsoft Excel. Enter my data into a new
spreadsheet.
Select a cell where I want to display the regression results. Let's say I want the
results to start in cell E2. Go to the "Data" tab and click on "Data Analysis" (If I
don't see this option, I may need to enable the "Analysis Tool Pack" add-in in
Excel). Choose "Regression" from the list of analysis tools and click "OK." In the
Regression dialog box:
For "Input Y Range," select the cells containing my dependent variable (e.g.,
B2:B6, which is "CGPA").
1|Page
For "Input X Range," select the cells containing my independent variables (e.g.,
C2:D6, which are "Study Hours" and "Attendance Percentage"). Check the
"Labels" box if your data includes headers. Under "Output Options," specify
where I want the regression results to be displayed (e.g., E2 for "Output Range").
Click "OK."
Excel will populate the selected output range with the regression results,
including coefficients, standard errors, R-squared, p-values, and more.
Step 5: Interpretation:
Y= α+ β1(X1) + β2(X2) + ε
6.00
5.00
4.00
3.00
2.00
1.00
0.00
0 1 2 3 4 5 6
3|Page