I need a Machine Learning (likely an AI polynomial regression) formula in PHP to adjust my forecast based on Ocean Buoy actual observation, and generate an array with AI adjustment.

Job ID: 36549330

Budget: $30 – $250 USD

I need an AI polynomial regression formula in PHP to adjust my forecast based on Ocean Buoy actual observation, and generate an array with AI adjusted forecast for Ocean Wave Size.

What I have, for the future forecast:

$X_hour = [3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60, 63, 66, 69, 72, 75, .... ,180]; #total of 60 points, every 3 hours;

$Y_forecasted_wave_height = [1.7, 1.7, 1.6, 1.6, 1.6, 2.0, 2.3, 1.4, 2.8, 1.3, 1.2, 3.3, 3.2, 3.2, 1.1, 1.1, 1.0, 1.0, ... ,1.1,];
#total of 60 points;

$Y_ai_adjusted_forecast = [ this is the array that I need]; #total of 60 data points


What I have, past data for the learning model:

$Xp = [-180, -177, ... -63, -60, -57, -54, -51, -48, -45, -42, -39, -36, -33, -30, -27, -24, -21, -18, -15, -12, -9, -6, -3,0]; *

$Yp1 = [1.7, 1.7, 1.6, 1.6, 1.6, 2.0, 2.3, 1.4, 2.8, 1.3, 1.2, 3.3, 3.2, 3.2, 1.1, 1.1, 1.0, 1.0, ... ,1.1,]; *

$Yp2 = [1.5, 1,6, 1.6, 1.5, 1.4, 1.8, 2.0, 1.6, 2.3, 1.3, 1.1, 2.2, 3.1, 3.0, 1.2, 1.2, 1.1, 1.1, ... , 1.3]; *

* I can go back and generate as many points as needed

$Yp1: forecasted data, model generated in the past;

$Yp2: past actual data, observed from buoys placed in the ocean.


If possible, I would like to receive in PHP format. Any question, please contact me.