> On 03 Mar 2015, at 14:28, Bob Carpenter <
ca...@alias-i.com> wrote:
>
>
>> On Mar 4, 2015, at 12:01 AM, David Westergaard <
da...@harsk.dk> wrote:
>>
>> It could be me that read it wrong. I was thinking of it as mixture model with an infinite number of mixtures, in which each data point could be member of multiple mixtures.
>
> It's for infinitely fat mixtures. If you have finitely
> many columns and model each one, then there's only finitely
> many. It's the "unbounded number of columns" part that
> your data's missing.
>
I see. I might have to re-read the paper. It seems I misunderstood the concept.
>
>> Yes, it is indeed a measurement process. Each "feature" is the same measurement, measured under slightly different conditions. What we expect is that feature 1 is correlated to feature 2, and feature 2 to 3, ..., approximately until we measure 0 (absence).
>
> It would probably help if you could be more specific (less abstract)
> about what these measurements are.
>
Ok, I will try to exemplify the process in more detail, still keeping it a bit abstract.
Imagine a lane. On the lane, there are different obstacles, varying in size (getting larger as one moves down the lane). Now along comes two components A and B, which are physically connected. They move down the lane until they cannot proceed any further due to obstacles. Next comes A and C, which are also physically connected. C is, however, slightly smaller than B, and the A-C component can move further down the lane. The number A-B and A-C are typically in the millions, and what we count is not the actual number of A-B components, but A and B individually (typically these are in millions++, so we use the log(count+1) transformation). Not all of the components stops the exact same place (hence they have a profile).
I hope that made it a bit more clear!
> A mixture would indeed give you that correlation.
>
>> The standard in my field is to work with log-values, so I use the log(value+1) transformation to avoid the log(0) errors, and this is (approximately) normally distributed, excluding the 0 measurements.
>>
>> To give an example:
>>
>> A = [4.5, 5, 6, 5.5, 8, 0, 0, 0, 0, 3, 2.3, 4.5]
>> B = [4.5, 5, 6, 5.5, 8, 0, 0, 0, 0, 0, 0, 0]
>> C = [0, 0, , 0, 0, 0, 0, 0, 0, 2.9, 2.2, 4.4]
>>
>> So A would have the profile [4.5, 5, 6] and [3, 2.3, 4.5].
>
> Is that the result of log(measurement + 1) or the raw measurements
> that you'll add 1 to and take the log?
> Is there some physical correspondence to a profile here?
>
Depends what you mean by physical. Each entry is an actual count of the component. I.e. A[0], B[0], and C[0] (using array index notation) are from the exam same place on the lane.
>> What I would like to identify is that point A has two mixtures (1 and 2), B has one mixture (1) and C has one mixture (2). Thus mixture 1 consists of A+B, and mixture 2 consists of A+C.
>
> Does the order of the columns matter? For instance, are
> they measurements over time? Clearly the behavior isn't
> continuous, because you go from 8 down to 0 in one step. But
> the values close to each other look related in A. That would
> matter in terms of how you'd want to model it.
>
Yes, these values should indeed be related.
> Then the question is what do you expect the relationship to
> be between A's and B's measurement. It looks like B has
> one of the components of A and C has one of the components
> of A.
Yes, that was exactly the point I was trying to make with the example. And this is why I was looking into infinite mixture models. Essentially we don’t know how many mixtures there are, or how many mixtures each component can be part of. We want to be informed by the data about this (with some prior assumptions).
>
> If so, you might want something like a change point
> time-series model. The data for A is probably three mixtures,
> if you include the zeroes. You want to model the entire
> data generating process, including generating the zeroes.
>
> So a simple model might assume some number of mixture components K,
> each with means mu[k] and std devs sigma[k], and then each
> row would start in one of the comonents, continue to draw from
> that mixture for some number of observations, then drop to 0 or
> another mixture.
I am not quite sure I understand the last part. Wouldn’t I then run into the problem that each row would only be associated with one mixture?
Cheers,
David
> --
> You received this message because you are subscribed to a topic in the Google Groups "Stan users mailing list" group.
> To unsubscribe from this topic, visit
https://groups.google.com/d/topic/stan-users/dNyt1uXvaYI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
stan-users+...@googlegroups.com.