0% found this document useful (0 votes)
23 views

Multiple linear regression

Uploaded by

dorotheagrey25
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Multiple linear regression

Uploaded by

dorotheagrey25
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 20

SUMMARY OUTPUT

Regression Statistics
Multiple R 0.722134292240182
R Square 0.521477936029229
Adjusted R Square 0.441724258700767
Standard Error 47.4634126347648
Observations 15 6.53860678902047

ANOVA
df SS MS F
Regression 2 29460.0268660779 14730.0134330389 6.53860678902047
Residual 12 27033.3064672554 2252.77553893795
Total 14 56493.3333333333

Coefficients Standard Error t Stat P-value


Intercept 306.526193283744 114.253893510491 2.6828511822715 0.01993159098537
Price ($) -24.9750895178269 10.8321251194116 -2.30565002181063 0.039788461178665
Advertising ($100s) 74.130957488741 25.9673179179391 2.85477913903187 0.014493626796459

-2.30565002181063
2.85477913903187
Significance F
0.012006372233186

Lower 95% Upper 95% Lower 95.0% Upper 95.0%


57.5883442636516 555.464042303836 57.5883442636516 555.464042303836
-48.5762627005617 -1.37391633509219 -48.5762627005617 -1.37391633509219
17.5530320570876 130.708882920394 17.5530320570876 130.708882920394
Week Pie sales (y) Price ($) Advertising ($100s)

1 350 5.5 3.3


2 460 7.5 3.3
3 350 8 3
4 430 8 4.5
5 350 6.8 3
6 380 7.5 4
7 430 4.5 3
8 470 6.4 3.7
9 450 7 3.5
10 490 5 4
11 340 7.2 3.5
12 300 7.9 3.2
13 440 5.9 4
14 450 5 3.5
15 300 7 2.7

Pie sales (y) Price (x1) Advertising (x2)


Pie sales (y) 1
Price (x1) -0.44327318273872 1
Advertising (x2) 0.556319857168117 0.030437580722268 1
SUMMARY OUTPUT

Regression Statistics
Multiple R 0.722134292240182
R Square 0.521477936029229
Adjusted R Square 0.441724258700767
Standard Error 47.4634126347648
Observations 15

ANOVA
df SS MS F Significance F
Regression 2 29460.03 14730.01 6.538607 0.012006
Residual 12 27033.31 2252.776
Total 14 56493.33

Coefficients Standard Error t Stat P-value Lower 95%Upper 95%Lower 95.0%


Intercept 306.526193283744 114.2539 2.682851 0.019932 57.58834 555.464 57.58834
Price (x1) -24.9750895178269 10.83213 -2.30565 0.039788 -48.57626 -1.373916 -48.57626
Advertising (x2) 74.130957488741 25.96732 2.854779 0.014494 17.55303 130.7089 17.55303
Upper 95.0%
555.464
-1.373916
130.7089
x1 x2 y
Experie
Education Salary (Σx1)2 (Σx2)2 Σx1y Σx2y
nce
11 10 30000 121 100 330000 300000
11 6 27000 121 36 297000 162000
12 10 20000 144 100 240000 200000
12 5 25000 144 25 300000 125000
13 5 29000 169 25 377000 145000
14 6 35000 196 36 490000 210000
15 14 5 38000 196 25 532000 190000
16 8 40000 256 64 640000 320000
16 7 45000 256 49 720000 315000
16 2 28000 256 4 448000 56000
18 6 30000 324 36 540000 180000
18 2 55000 324 4 990000 110000
22 5 65000 484 25 1430000 325000
23 2 25000 529 4 575000 50000
24 1 75000 576 1 1800000 75000
Total 240 80 567000 4096 534 9709000 2763000
Mean 16 5 37800 273 36 647267 184200
Reg Sums -3566.933 -391.0667 -8424733.333 -2839800
Σx1x2
SUMMARY OUTPUT
110
66 Regression Statistics 1
120 Multiple R 0.6694654250632 0.5518160446449
60 R Square 0.4481839553551 1.1666666666667
65 Adjusted R Square 0.3562146145809 0.3562146145809
84 Standard Error 12759.472051711
70 Observations 15
128
112 ANOVA
32 df SS MS
108 Regression 2 1586750475.5391 793375237.76956
36 Residual 12 1953649524.4609 162804127.03841
110 Total 14 3540400000
46
24 Coefficients Standard Error t Stat
1171 Intercept -4050.5204214666 23830.163441358 -0.1699745128242
78 Education 2559.7255765244 1058.4948739197 2.418269223209
-1201.933 Experience 167.79584945179 1634.7126874951 0.102645468366
1
0.47852
1.1666666666667
0.4417266666667

F Significance F
4.8731887342291 0.0282335795795

P-value Lower 95% Upper 95% Lower 95.0% Upper 95.0%


0.8678621289702 -55971.986260565 47870.945417632 -55971.986260565 47870.945417632
0.0324197332316 253.46336509121 4865.9877879576 253.46336509121 4865.9877879576
0.9199397222599 -3393.9371268824 3729.528825786 -3393.9371268824 3729.528825786
Density
Dielectric Constant
Loss Factor
Density 1
Dielectric 0.998656 1
Loss Factor 0.997708 0.998717 1
x1 x2 y
Density Dielectric Constant Loss Factor (x1)^2 (x2)^2 (y)^2 x1*y
0.749 2.05 0.016 0.561001 4.2025 0.000256 0.011984
0.798 2.15 0.02 0.636804 4.6225 0.0004 0.01596
0.849 2.25 0.022 0.720801 5.0625 0.000484 0.018678
0.877 2.3 0.023 0.769129 5.29 0.000529 0.020171
0.929 2.4 0.026 0.863041 5.76 0.000676 0.024154
0.963 2.47 0.028 0.927369 6.1009 0.000784 0.026964
0.997 2.54 0.031 0.994009 6.4516 0.000961 0.030907
1.046 2.64 0.034 1.094116 6.9696 0.001156 0.035564
1.133 2.85 0.039 1.283689 8.1225 0.001521 0.044187
1.17 2.94 0.042 1.3689 8.6436 0.001764 0.04914
1.215 3.05 0.045 1.476225 9.3025 0.002025 0.054675
10.726 27.64 0.326 10.69508 70.5282 0.010556 0.332384

11
x1
x2*y Sxy 0.014504 r 0.997708 0.995421
0.0328 Sxx 0.236259
0.043 Syy 0.000895
0.0495
0.0529 x2
0.0624 Sxy 0.030991 r 0.998717 0.997436
0.06916 Sxx 1.076418
0.07874 Syy 0.000895 0.998717
0.08976
0.11115
0.12348 R 0.998732
0.13725
0.85014

SUMMARY OUTPUT

Regression Statistics
Multiple R 0.998738
R Square 0.997478
Adjusted R 0.996847
Standard E 0.000531
Observatio 11

ANOVA
df SS MS F Significance F
Regression 2 0.000892 0.000446 1581.745 4.049E-11
Residual 8 2.256E-06 2.821E-07
Total 10 0.000895

Coefficients
Standard Error t Stat P-value Lower 95%Upper 95%
Intercept -0.041179 0.004422 -9.312465 1.441E-05 -0.051376 -0.030982
Density 0.007618 0.021083 0.361348 0.727196 -0.041 0.056237
Dielectric 0.025226 0.009877 2.553938 0.033966 0.002449 0.048004
Lower 95.0%
Upper 95.0%
-0.051376 -0.030982
-0.041 0.056237
0.002449 0.048004
Perform a One-Way ANOVA to determine if there is a significant difference between the average
height measures of 3 groups
Group 1 Group 2 Group 3
48 49 47 Anova: Single Factor
51 55 51
49 53 55 SUMMARY
45 54 47 Groups Count Sum Average Variance
53 48 57 Group 1 15 727 48.46667 10.26667
46 47 52 Group 2 15 750 50 11.71429
51 54 48 Group 3 15 761 50.73333 13.49524
45 55 52
53 48 48
53 45 52 ANOVA
50 47 47 Source of Variation SS df MS F
45 46 51 Between Groups 40.13333 2 20.06667 1.696913
48 48 58 Within Groups 496.6667 42 11.8254
45 51 47
45 50 49 Total 536.8 44

Sum of squares quantifies the variability between or within groups.

df (between groups) = number of groups - 1

df (within groups) = number of observations - number of groups

MS (Mean Square) as the average variation either between or within groups.

MS = SS/df

F =MS (between groups)/MS (within groups)


ce between the average Ho: There is no difference between the mean of three groups ; Ha: The
between the mean of three groups.

P-value F crit
0.19557 3.219942

n groups.

groups

within groups.
f three groups ; Ha: There is a difference
three groups.
What is ANOVA?

ANOVA (Analysis of Variance) is a statistical method used to determine whether the


statistically significant differences between the means of three or more independent g
helps test the hypothesis that all group means are equal against the alternative that
one mean is different.

When to Use ANOVA?

When comparing three or more groups (e.g., testing different teaching methods or tr
When the dependent variable is continuous (e.g., test scores, weight, etc.).
When the independent variable is categorical (e.g., groups, treatments, or conditions
Assumptions of normality and equal variances are met.

Types of ANOVA

1. One-Way ANOVA:
Compares means of three or more groups based on one factor (e.g., test scores of st

2. Two-Way ANOVA:
Examines the effect of two factors (e.g., teaching method and gender on test scores)

3. Repeated Measures ANOVA:


Compares means when the same subjects are measured multiple times under differe

1. If the p-value is less than 0.05:


This suggests that the observed data is statistically significant.
You reject the null hypothesis H0​in favor of the alternative hypothesis Ha.
There is strong evidence to suggest the effect or relationship observed in the sample

2. Otherwise (if the p-value is greater than or equal to 0.05):


This indicates the observed data is not statistically significant.
You fail to reject the null hypothesis H0
There is insufficient evidence to support the claim that the effect or relationship exis

Note: The 0.05 threshold is a common standard, but it depends on the context and dom
etermine whether there are
more independent groups. It
the alternative that at least

aching methods or treatments).


eight, etc.).
ments, or conditions).

e.g., test scores of students using different study methods).

ender on test scores) and their interaction.

le times under different conditions (e.g., before and after a treatment).

othesis Ha.
served in the sample also exists in the population.
ct or relationship exists in the population.

n the context and domain. Adjustments might be made based on the study's specifics, such as u
's specifics, such as using 0.01 or 0.10 in some cases.

You might also like