Questions tagged [time-series]

Questions on sequences where adjacent samples are time-correlated, making the data suitable for modeling the behavior of the sampled system.

Filter by
Sorted by
Tagged with
2
votes
1answer
29 views

How to set date axis of the DateListPlot to follow the order of the data

I'm trying to show plots of weekly data from multiple periods each spanning June - April. The actual starting dates vary so the dates don't actually coincide but would like to stack them to compare ...
1
vote
1answer
74 views

Strategies to mimic Dataset features in a TimeSeries?

QUESTION: Seeking TimeSeries advice for simulating Dataset subsets using named columns (e.g., timeseries[[All, {"SBP", "DSP", "HR"}]]. DETAIL: While writing biometric ...
3
votes
1answer
35 views

What effect does the addition of [“Options”] have in the following use of TimeSeries?

In an example found at Use Time Series Processing for Financial Analysis the time series prices = sp500["PathComponent", "Adj Close"] is ...
0
votes
1answer
45 views

Exporting Stock Financial Data into Excel

I would like to pull 3 attributes (Open, Close, Volume) for a variety of stock symbols. I would like to pull the stock data within a specific range and export it to an excel spreadsheet. I would also ...
5
votes
1answer
60 views

How do I make a TimeSeriesDrop[] function, similar to TimeSeriesInsert[]?

From the documentation, TimeSeriesInsert[ts, {"January 1st, 2013", 900}] is clean and easy. How to I make a ...
0
votes
0answers
52 views

Solve a system of slope-intercept, ODE, and PDE with spatial and time variable

I am new to Mathematica and I need to solve a system of coupled ODE and PDE with two variables (space and time) and one of the parameters is only dependent on the space. The set of partial ...
0
votes
1answer
69 views

How to calculate fractional differences of a timeseries?

I have a timeseries I am looking to transform with fractional differences per the following description: The idea being to retain the essence of stationarity of, say, a log transformed integer series ...
0
votes
0answers
53 views

TimeSeries: notation datavalue

When I use TimeSeries, The DateObject is changed in a longer notation. For example: ...
1
vote
1answer
48 views

How to Have Smaller Intervals in TimeSeries

I have a wolfram demonstration project with the following code: ...
1
vote
1answer
38 views

How to Show Velocity and Time Measurements in Manipulate (Wolfram Demonstrations)

I am working with a Wolfram Demonstration that uses the Manipulate function (which I am not yet familiar with). The code is ...
0
votes
0answers
14 views

How do you tell TimeSeriesModelFit to ignore some lags?

TimeSeriesModelFit[data, {"ARMA", {p,q}}], for example, specifies an ARMA((1,2,...,p),(1,2,...,q)) model. But what if you don't want to include all ...
1
vote
0answers
25 views

time series - minimum differencing order needed to remove the trend [closed]

I was wondering how can I find What is the minimum differencing order needed to remove the trend in a time series? I have a a times series and a TimeSeriesModelFit, which is SARIMA model. I want to ...
1
vote
0answers
27 views

Time Series Model Fit-95% confidence interval

how to find a 95% interval for a certain value in Time Series Model Fit? I know we I have the mode, I can get the prediction value for it. but I'm not sure how to find the 95% interval for that exact ...
4
votes
1answer
92 views

How to solve for multiple (cascading) recurrence relations

I am working with recurrence relations with a simple base: \begin{equation} Y_i = aY_{i-1} + (1-a)X_i \quad \mbox{and if $Y_0=0$ then} \quad Y_n = (1-a)\sum_{i=1}^n a^{i-1} X_i \tag{1} \end{equation} ...
0
votes
0answers
23 views

Stationarity Check of TimeSeries

I'm currently writing my masters and urgently need your help. Can you help me to classify if this timeseries is stationary or not? the plot tells me that it is not stationary. The Augumented Dickey ...
0
votes
0answers
26 views

Multivariate AR process model fit

Is there a function in Mathematica that allows me to fit a VAR model with 4 variables? Let's say I have the following simulated data: ...
1
vote
1answer
76 views

How do I correctly iterate using Outer when an argument / slot is a nested list?

I have the following complex nested iteration situation. I begin with a list, data, that comprises 16 TemporalData objects Each TemporalData object contains 2 ...
2
votes
1answer
150 views

Is there a way to get WeatherData consistently?

I can get weather station location: WMOStations = ResourceObject["WMO Meteorological Stations"]; and select for the US: ...
3
votes
3answers
183 views

How can I interpolate time-series data?

I fetch financial data like this: data = FinancialData["SBUX", "Close", {{2013, 1, 1}, {2013, 8, 1}, "Week"}, "Value"]; ...
2
votes
2answers
102 views

Efficient sinc interpolation of a list

I'm looking for an efficient way to construct a sinc interpolation i.e. an interpolating function of a list of numbers in the form of a Fourier series with a chosen maximum frequency. The input list ...
1
vote
1answer
117 views

Fourier transform of a time series

I have this question: Create a time series of the function $\sin(7*\sin(140*t))$ with a sampling rate of $1000Hz$ for a time duration of $2.5s$. Fourier transform this time series and identify the ...
1
vote
1answer
150 views

Smoothing an irregular TimeSeries and calculate it's Derivative

I've a data set consisting of two columns, the first column is a date and the second is a numeric cumulative amount. I tried to create a time series, resample it and smooth but I couldn't manage to ...
1
vote
0answers
44 views

How to run Facebook Prophet in Mathematica?

I would like to use the Facebook Prophet API for timeseries forecasting in Mathematica. I'm trying to make a function prophetM which takes a list of date, and integer pairs (or a Timeseries object), ...
0
votes
0answers
88 views

From graph to time series

Let's consider the time series: ...
0
votes
0answers
48 views

How would you perform a simple operation on two adjacent elements of a list?

I have an arbitrary list of elements: list = {a, b, c, d, e, f} How would I produce: ...
1
vote
1answer
76 views

TimeSeriesForecast and BusinessDay

Question: I want to do a timeforecast for the next 30 days, but only the business days (weekends excluded). My dataset look likes: ...
4
votes
1answer
70 views

Can one force TimeSeries to add instead of average values with identical timestamps?

I have a list of time-value pairs of the form {{t1,v1},{t2,v2},{t3,v3},...} that I'd like to turn into a TimeSeries object. The ...
0
votes
1answer
154 views

How to estimates the cross power spectral density (CPSD) of two timeseries?

So, I have two sets of data that I would like to calculate the cross-spectrum for and see the phase difference between them. u1 and u2 datasets: https://www.dropbox.com/s/shbvtsf92jg5fif/u1?dl=0\ ...
5
votes
1answer
80 views

How can the missing time series values be filled?

Though there appears to be a similar question, it does not sate this use-case... I present below the MWE: I have a date-list, here it is just a linear series of numbers, but the real use-case is that ...
0
votes
1answer
37 views

Plotting different processes of a simulated VAR[2]

I have simulated a VAR process with this simData = RandomFunction[ARProcess[a, Sigma], {1, 20001}]; Where the coefficients for a VAR[2] process: ...
1
vote
1answer
74 views

Generate clusters based off clusters in previous time step?

Here's the set-up: I'm generating data based on a process, but the important thing is that eventually the data diverges and starts forming branches. This is a close up of some of the behavior: The ...
4
votes
1answer
57 views

DateListPlot with Tooltip for a TimeSeries?

I would like to use Tooltip on a TimeSeries from within DateListPlot with a human readable ...
0
votes
0answers
36 views

How to implement Extrapolation with order 0

I have data in format like below. { {{v1,v2,v3,v4,v5,v6,v7},{t1,t2,t3,t4,t5,t6,t7,t8}}, {{v1,v2,v3},{t1,t2,t3}}, {{v1,v2,v3,v4,v5},{t1,t2,t3,t4,t5}}, ... } With ...
1
vote
1answer
54 views

Is this a bug with TimeSeries and dates? [closed]

I'm having trouble with applying Accumulate to TimeSeries data as below The results of the first call to Accumulate is wrong in length, 4 instead of 5 and value. Is this a bug? It certainly seems so ...
2
votes
3answers
84 views

How can I incrementally calculate a time series average?

If I have a time series s, and if you'll pardon the pseudo code, such that s = {t_i, v_i} is there an easy way to calculate the series ...
3
votes
1answer
58 views

Synchronising time series and video display

If I have a video at a known frame rate, and a time series of sensor readings taken at the same time. How can I play back the video and show a relevant section of the time series so the two are in ...
3
votes
1answer
108 views

Why does the Kernel shut down?

I didn't see this coming: ...
2
votes
1answer
65 views

Implement a function which import data from the same webpage root

I would like to implement a function to import several dataset from the same website source, where for each dataset it changes just one word on the website address. Here the website: ...
8
votes
2answers
214 views

Remove a specific element of a TimeSeries?

If I have a TimeSeries, how do I remove an element if that element is another TimeSeries? Let's say I have: ...
1
vote
1answer
39 views

How to force Mathematica to output an expression such as Input {2,3,4}-> Output 2*3*4=24

How to force Mathematica to output an expression such as Input {2,3,4}-> Output 2*3*4=24 as a Times like this one: Input Times[2,3,4] -> Output 24
1
vote
0answers
20 views

TimeSeriesRescale seems to work oddly

I have been attempting to do some date computations with EventSeries, a convenient form for storing economic quantities (like expenses) over time. Following the documentation, I created an list of ...
6
votes
1answer
162 views

Mathematica slow at estimating vector autoregressive model parameters

I have been trying to obtain VAR model parameters using EstimatedProcess and FindProcessParameters. It seems to take a very long time as soon as I have more than 6 or 7 time series and lag length >2. ...
1
vote
1answer
91 views

How to interpret TimeseriesModelFit parameters? [closed]

I have problems interpreting the parameters that follow using the TimeseriesModelFit command. The time series exists of twelve months and show a positive linear trend. Using TimeseriesModelFit it ...
4
votes
1answer
77 views

White noise at non integer intervals, bug or my mistake?

I'm intending to add white noise to a simple periodic signal ...
0
votes
2answers
63 views

Extracting solutions from SDE

I have an SDE system which I solve using ...
0
votes
0answers
43 views

Working with time series GDP data

I have two questions. First, how do I get a list of points from CountryData["UnitedStates", {{"GDP"}, {1960, 2018}}] as opposed to a graph. Second, if I have a ...
7
votes
2answers
140 views

Why TimeSeries forecasts the future value poorly?

On a bank account there are many recurring entrance and expenses. I've managed to import some sample data and to plot it. I can see that there is a quite clear recurring trend (one wage is coming ...
1
vote
1answer
77 views

TimeSeriesAggregate unwanted behavior

Let's take the lst = {{"2019-09-12 00:01:23",1}, {"2019-09-12 00:01:23", 3}, {"2019-09-12 00:01:24",10}}; Assume I want to count events within 1 second. One ...
0
votes
1answer
102 views

TimeSeries behavior unwanted [closed]

Was wondering what other options I have when encountering a time series that has two events taking place at the same time. In particular, ...
1
vote
1answer
45 views

Time Series Arithmetic in v10.0

The following code lets FindPeaks find minima in v10.3-12.0: ...

1
2 3 4 5 6