0
$\begingroup$

I'm attempting to do binary classification where my raw features are collections of histograms that are recorded in a time series. These histograms are scaled to sum to 1.

To be more precise and define some notation, let $H_{t}$ be a histogram at some time $t$ and $H_{t}(i)$ it's value in the $i$th bucket (here the $i$th bucket is produced by binning non-negative integer values). I have such an $H_{t}$ for each one of my data points (so I could write $H^k_t$ to represent the histogram associated with data point $k$ at time $t$).

It is somewhat hopeless to use the histograms as features as what seems to be most relevant to my classification is the change that is occurring in the histograms as time changes. My current strategy to quantify this change is to, for each $i$, fix bucket $i$ and then preform a discrete wavelet transform along $t$ using the haar wavelet ($t$ takes a power of 2 many values so the DWT is easy to apply).

While this approach works somewhat well it is constrained by it's inability to pick up simultaneous and general changes in the histogram; for instance it is heuristically probable in my dataset that a decrease in the value of bucket $i=2,3$ is 'bad' unless it is accompanied by an increase in the values of some larger buckets, that is to say that the histogram is shifting strictly right.

My question is then: are there are any general techniques/strategies that describe the change of histograms over time that capture these more general changes? I should note that the ranges of $i$ and $t$ are fairly small, less than 10 each.

$\endgroup$

1 Answer 1

1
$\begingroup$

I have a suggestion for a slightly different strategy. Depending on whether your data is discrete or continuous, a histogram is essentially an estimator of the probability density or mass function. If $P^k_t$ and $P^k_{t+1}$ are the probability distributions of point $k$ at time $t$ and $t+1$, respectively, you could try to compute Kullback-Liebler divergence between $P^k_t$ and $P^k_{t+1}$ as a measure of dissimilarity between these two distributions. Your value for the density/mass at point $i$ will be the value of the histogram bin. You could then produce a time-series of these divergence scores and investigate any spikes. Changing the frequency of $t$ may be a good idea; i.e. you may not observe any changes between daily observations but over a week or a month results could be different

Kullback-Liebler divergence is actually one type of $f$-divergence so there are different measures you could use. These tools are available in many statistical packages.

$\endgroup$
1
  • $\begingroup$ I had considered using some sort of KL divergence measure but I'm not really trying to measure dissimilarity on a whole but instead gain numerical insight into what kind of changes are occurring. I imagine I could do some sort of 'weighted' KL divergence where I place larger weight on the buckets that I'm more interested in (to see if there is a change in buckets that have larger index for example) but this would only tell me where the change is happening and not if it is positive or negative. $\endgroup$
    – Luca Weihs
    Commented Jul 21, 2014 at 20:13

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.