Problem Deseription: The solar generation of a PV unit for two days as day-1 and day-2 are given for every 15 minutes interval. Use day-1 data to fit a regression model and then use day-2 data to predict the solar generation for every 15 -minutes using the regression model of day-1. Hint: The regression, linear or polynomial models, will have the following format: \[ P_{\text {solar }}(x)=f(x) \] where
P
sotar
(kW)
is the
y
-axis, and
x
is the solar irradiance,
f(x)
is either linear, as
a
0
+a
1
x
, or polynomial as
a
0
+a
1
x+a
2
x
2
+⋯+a
n
x
n