1
$\begingroup$

I have 1 year of daily data which is separated by months. From the graph, month-end spikes can be seen every month.
What statistical test can be used to prove the monthly month-end spikes existence?

$\endgroup$

2 Answers 2

1
$\begingroup$

I can think of two ways of facing this problem.

  1. If the time series data is stationary you can calculate the auto correlation function to see if there is a statistically significant correlation for lag 30 (one month separation). If the data is not stationary there are plenty of ways to transform it, but which works best will depend on the dataset. The simplest solution might be to difference the data with lag 1.

  2. Perform a t-test where you compare the values at the end-of-month spikes to the mean of the entire data set. The t test would not show significance if there would be a difference in your data (remember what the null hypothesis for a t test is)

$\endgroup$
2
  • $\begingroup$ #1 would be a weak test if there is no monthly seasonality in data except for end of month phenomenon $\endgroup$
    – Aksakal
    Commented Mar 28, 2018 at 14:38
  • $\begingroup$ @Viktor Karlsson Thank you for the assistance.. I will look more in-depth into t-test. $\endgroup$
    – Dp_
    Commented Mar 29, 2018 at 1:53
0
$\begingroup$

Split your sample into A and B, where A is 12 end of month days and B is the rest of the year. Follow this link to compare population means of A and B based on sample means, variances and sample sizes.

The main idea is to calculate the pooled variance, then use to do t-test on the difference between two sample means. Pooled variance is a weighted mean of variances of your samples, where the weights account for sample sizes.

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.