Time Series acf, pacf and model_fit question - time-series

Currently trying to plot acf and pacf but for some reason the x-axis of pacf's in date instead of lag.
Same with the model_fit. Want the x-axis to be in date but now it's in lag.
Just wondering how I could fix these.
plot_acf(df['y'])
plot_pacf(df['y'])
ACF
PACF
model = ARIMA(df['y'].values, order=(0,1,2))
model_fit = model.fit(trend='nc', full_output=True, disp=True)
model_fit

Related

How can i apply a machine learning model to predict scatter plot data of a non linear 2D shape?

I created a dataset with mathlab, dataset has data for 5000 random non-linear 2D shapes with 100 known point each and their scatter plot.
Sheet imag has data for imaginary coordinates of nonlinear shapes, there're 100 points for each shape as columns.
Sheet real has data for real coordinates of nonlinear shapes, there're 100 points for each shape as columns.
Sheet x has data for x coordinates of scatter plots, there're 100 points for each shapes scatter plot as columns.
Sheet y has data for y coordinates of scatter plots, there're 100 points for each shapes scatter plot as columns.
Keep in mind that cell [i,j] of sheet imag and [i,j] of sheet real is the coordinate for i'th point of j'th shape, cell [i,j] of sheet x and cell [i,j] for sheet y is the coordinate for i'th point of j'th shape's scattered point.
For example real's [0,1] is -0,894608922831653, imag's [0,1] is -0,176637219642649, x's [0,1] is 1,00827206904887 is 0,987842977394785, y's [0,1] 0,0634351017253583; this means first shape's second point is (-0,894608922831653 -0,176637219642649j) and it's scattered to (1,00827206904887, 0,987842977394785)
I want to create a machine learning model to train with this dataset. Which method should i use and any tips on suggested method would be great.
I tried a regression model for start but results were way off, i was sort of expecting it because of complex numbers. I'm thinking about k nearest neighbor now but i'm open for everything.

ACF at lag 0 is not equal to 1

I am working on a xts object with all mondays in a year (excluding holidays). However, when I tried to create the acf and pacf plot, all the values are within the lines, even at lag 0. I thought that the acf at lag 0 is always equal to 1 since it is the correlation with itself. Can someone please explain to me why this is not the case in my acf and pacf? Thank you!

Highcharts Histogram show percentage on Y Axis

Given the HighCharts example of a histogram here:
https://www.highcharts.com/demo/histogram
I am looking to make data in the histogram blue columns/bins and the Y axis show as a percentage of the overall dataset rather than the actual values. Example 4 Columns might show 25% / 50% / 10% / 15%
I cannot find an example of this so I am assuming it will require some data manipulation?

Highcharts x-axis parallel to y-axis

Question 1: Can we create a bubble chart with x-axis aligned vertically and opposite to y-axis as in below image.
Example
Question 2: Dual y-axes are possible in highcharts but a series data can be associated to just one y-axis, is it possible to associate a data series with both y-axis? In other words, data points plotting will be in respect to 3 axis: x-axis and dual y-axes.

Calculating the equation of a zig zag line on a graph

I have plotted a time v/s some hardware sensor value graph. I have many readings and want to calculate a mean or any possible value (may be equation of a zig zag line, may be oscillatory motion or harmonic motion) to compare multiple readings.
I am recording data at the interval of 0.01 seconds.
Here is the graph plot of a single reading:
Here is the graph plot of multiple readings:
Also, equation of a curve can also be calculated. The data can be divided into time (2 second blocks), to calculate the equation of curve at that time.
Add each value to a buffer when you plot it, then you can calculate whatever you want.
For the mean sum the buffer contents and then divide by the number of entries in the buffer.
To find equations for curves, this page should help.

Resources