time-series Questions

3

I'm new to Granger Causality and would appreciate any advice on understanding/interpreting the results of the python statsmodels output. I've constructed two data sets (sine functions shifted in ti...
Thurber asked 9/8, 2018 at 17:4

4

Solved

Based on the pandas documentation from here: Docs And the examples: >>> index = pd.date_range('1/1/2000', periods=9, freq='T') >>> series = pd.Series(range(9), index=index) >...
Enwreathe asked 19/1, 2018 at 11:50

4

Solved

I have a pandas data frame with two columns one is temperature the other is time. I would like to make third and fourth columns called min and max. Each of these columns would be filled with nan'...
Twylatwyman asked 29/12, 2017 at 14:19

2

I have a problem with time series analysis. I have a dataset with 5 features. Following is the subset of my input dataset: date,price,year,day,totaltx 1/1/2016 0:00,434.46,2016,1,126762 1/2/2016 0...
Photo asked 10/1, 2019 at 20:14

4

Solved

I have series of measurements which are time stamped and irregularly spaced. Values in these series always represent changes of the measurement -- i.e. without a change no new value. A simple examp...
Maeganmaelstrom asked 10/4, 2013 at 16:3

6

Solved

I created a DatetimeIndex from a "date" column: sales.index = pd.DatetimeIndex(sales["date"]) Now the index looks as follows: DatetimeIndex(['2003-01-02', '2003-01-03', '2003-01-04', '2003-01-0...
Salpingotomy asked 14/9, 2017 at 11:10

1

I am trying to use the ARIMA algorithm in statsmodels library to do forecasting on a time series dataset. It is a stock price dataset and when I feed normalized data to the model it gives the below...
Redwing asked 18/10, 2018 at 11:14

5

Solved

I have a time series of returns, rolling beta, and rolling alpha in a pandas DataFrame. How can I calculate a rolling annualized alpha for the alpha column of the DataFrame? (I want to do the equiv...
Mccully asked 8/3, 2013 at 13:48

5

Solved

I have a time-series in a Pandas DataFrame. The timestamps can be uneven (one every 1-5 minutes), but there will always be one every 5 minutes (timestamps with minutes ending in 0,5,10,15,20,25,30,...
Pedigree asked 4/9, 2017 at 3:52

2

Solved

I'm looking for a way how to get a value from the previous year for the same day. F.e. we have a value for 2014-01-01 and I want to create a new column with the value for this day but from one ye...
Wrennie asked 28/11, 2017 at 12:10

3

I am trying to reconstruct time series data with LSTM Autoencoder (Keras). Now I want train autoencoder on small amount of samples (5 samples, every sample is 500 time-steps long and have 1 dimensi...
Sharpen asked 27/11, 2018 at 23:38

1

I'm fitting a time series. In this sense, I'm trying to cross-validate using the TimeSeriesSplit function. I believe that the easiest way to apply this function is through the cross_val_score funct...
Cytherea asked 6/10, 2022 at 22:40

4

I came across the TSfresh library as a way to featurize time series data. The documentation is great, and it seems like the perfect fit for the project I am working on. I wanted to implement the ...
Dayak asked 14/12, 2016 at 16:56

4

I am reading a large file that contains ~9.5 million rows x 16 cols. I am interested in retrieving a representative sample, and since the data is organized by time, I want to do this by selecting ...
Posology asked 17/12, 2018 at 9:17

2

Analysing time series data of bike trails, I would like to know the time interval for each plateau ,ascent and descent.Sample csv file is uploaded here. import pandas as pd import numpy as np impo...

1

I am new to node.js and I am looking for a way to mimick the output of pandas.resample(‘3H’, label=’right’, closed=’left’).max() working with timeseries, being able to obtain a dataframe-like struc...
Theism asked 24/9, 2020 at 16:55

2

I tried to find a similar question and its answers but was not successful in doing so. That's why I'm asking a question that might be asked before: I'm working on a problem that outputs the cumula...
Hysteresis asked 19/4, 2020 at 5:38

1

I'm trying to understand the basics of Prometheus and after reading the official docs and a few blogs, I'm still not sure what the data model is at its core. For now I'm referring only to Counters ...
Gastrology asked 12/9, 2022 at 8:55

5

I don't understand why this snippet of code does not work. The data is fictional, I just want to be able to make time-series visualization with plotly. This module once worked for me in a Kaggle k...
Funkhouser asked 9/7, 2018 at 17:38

1

What are the good algorithms to automatically detect trend or draw trend line (up trend, down trend, no trend) for time series data? Appreciate if you can point me to any good research paper or goo...
Trescott asked 3/10, 2017 at 18:58

1

For time-series analysis, it's useful to have rolling PCA functions to analyse how the dynamics of the time-series changes over time to avoid look-ahead bias. We may want to answer the question: 'h...
Unity asked 8/9, 2022 at 16:53

3

Solved

How to select multiple rows of a dataframe by list of dates dates = pd.date_range('20130101', periods=6) df = pd.DataFrame(np.random.randn(6,4), index=dates, columns=list('ABCD')) In[1]: df Out[...
Odlo asked 1/11, 2016 at 15:30

3

Solved

I am currently trying to do a simple implementation for stock price candle sticks. Let's say we have a stock called XYZ. This stock receives a stream of prices (in no particular frequency), which (...

3

Solved

I'm trying to subset a DataFrame on the condition that is the last of the month. I used: df['Month_End'] = df.index.is_month_end sample = df[df['Month_End'] == 1] This works, but I'm working wit...
Musil asked 30/11, 2014 at 21:39

2

Solved

I am performing a rolling median calculation on individual time series dataframes, then I want to concat/append the results. # UDF for rolling median median_udf = udf(lambda x: float(np.median(x))...
Graehme asked 29/5, 2019 at 15:2

© 2022 - 2024 — McMap. All rights reserved.