Class 102: The Universal Model

Class 102: The Universal Model

Reminder: The Thursday Class is only for those interested in studying uncertainty. I don’t expect all want to read these posts. Pease don’t feel like you must. Yet, I have nowhere else to put them. Your support makes this Class possible for those who need it. Thank you. MATH ALERT!

One Model to rule them all, One Model to calculate, One Model to keep in mind and in the math all sense to make. This model is called forth by Entropy. And those trees and forest “machine learning” models emulate it.

Video

Links: YouTube * Twitter – X * Rumble * Bitchute * Class Page * Jaynes Book * Uncertainty

HOMEWORK: Read Jaynes Chapter 11 (because I know you haven’t done it yet).

Lecture

Recall that all our measurements of the world are finite and discrete. And so are our decisions about the world, in the sense that if we must make a decision about the world it must be based on those finite and discrete measurements.

Temperature (which is not heat) is a good example, especially of the outside air. Now there are so many degrees of freedom of the molecules surging around in the air that a continuous approximation to temperature is, for most purposes, more than adequate. But also of little use. Because (almost certainly) no one makes decisions about air temperature at continuous levels. That is, what decision would anyone make at a temperature of T versus T + epsilon (the mathematical version)?

If you do need to make such decisions, then of course you must track, measure and contemplate, temperature at that level, i.e. 0, epsilon, 2*epsilon, 3*epsilon and so on. Since you cannot measure temperature to that degree, certainly not without disturbing the system which produces the measurement, you must use probability. In something like the decision being based on probabilities like this:

Pr(T does not equal T + epsilon | Evidence).

Or something like this:

Pr(T > T + epsilon | E).

Or whatever decision involving the small difference is.

The probabilities in these equations will almost certainly themselves be different by something close to (the mathematical) epsilon. And so too, likely, will be any decision you make based on this. But if epsilon is important to you, in probability or decision, then a continuous model is what you ought to use.

But for everybody else, which will be almost all of us almost all the time, we can use finite discrete models. Keeping in mind, always, that we ought not “cut” our measurements at levels cruder than whatever function of them over which we make decisions.

Suppose you are interested in temperature, and are indifferent in probability or decisions about it, except for those in these “buckets”: t_1, t_2, …, t_p. The first, t_1 may be “Everything below 20 (in civilized units)”, and t_p is “Everything about 70”. And the others are in 5 degree intervals. This gives us 11 buckets. And you are interested in both probability and decision of these buckets.

Note very carefully that if you instead were interested in tracking, say, daily temperatures at 10 AM at your locale, and wanted to take averages, and do something with those averages, then you will arrive at different buckets, because your function of temperature is different. The situations are not the same. The models therefore need not be the same!

You in fact use a model like that 11-bucket one all the time, indeed every day. Likely your bounds are tighter and the number of buckets smaller, though. For instance, should you wear a t-shirt under your shirt? A jacket? The big one or the small one? And so on. What evidence do you take for that model? If you are past 70 years old, probably the Weather Channel. If you’re between 15 and 70, perhaps some app. If you’re 15 or below, your bucket is probably just one number and you don’t care what you wear.

The evidence in hand, which includes your experience of the season, likely what the weather was yesterday, and things like that, you form the probability of each bucket. In an informal way. Most of your probability, which is not quantified, will be centered around whatever your preferred source is. “The Weather Channel said 52 for a high, but just look at that sky.”

The decision you make, socks or not socks, say, is based on your model’s probability and whatever the costs and benefits you judge important.

This model and these decisions, and those like it, which you form and use constantly, and must form and use constantly, is no less scientific than the one in which the scientist cares about those epsilons and derives the math to deal with them. We are all scientists. But, as you well know, from experience both numerous and varied, some of us are worse scientists than others.

Now, having proved the “bucket” model is in constant use, I next claim that it is the universal model. That is, when it involves measurements and decisions about the world, which are all necessarily discrete and finite. Some of our probabilities and decisions are indeed of the infinite, like morality and religion and the like, and these will not fit into the universal model.

But most everything we do in daily life and official science does fit that model. This ties into our Entropy discussion from last time, too.

The universal model, for your interest and decisions, and not necessarily for anybody else’s, is to form those “buckets” in which you have an interest and would make a decision. Of course, you don’t have to make a decision. You can stay at interest, even forever. Remember, belief is a decision, the step beyond probability. But you’ll still need “buckets” with probability, especially if you want to turn any of this into math.

Let your buckets be:

x_1, x_2, …, x_p.

Now if you assume you know nothing else—where that nothing is a strict as I can make it—than your finite discrete measurement will fall into one of these buckets, then we can use the entropy arguments we made last time and deduce that, at first, each x_i is equally likely. After taking observations (measurements), we can, using our hopeful assumption that the limiting results we found when p = 2 are the same for p > 2, arrive at the Dirichlet.

Thus entropy, with the assumption of a finite and discrete set of measurements, leads to the universal model.

But suppose we also had other information we want to incorporate. Not the cause of X, but correlates, things we assume are in the causal path of X, perhaps conditions which we assume are required. These—let us call them W—will also be in buckets. So our model expands to

(x_1,w_1), (x_1,w_2),…(x_1,w_q), (x2_w_1),…(x_p,w_q),

where p might not equal q. And so on if we add more than just one “covariate” (a term I do not love) or, rather, measure. Obviously, the number of buckets grows mighty fast with the dimension. That is, if we assume there will be each level of each W (or Y, or Z, or so on) at each level of X. That is a big assumption.

We can “paper over” these difficulties with continuous models, of course, and this is usually done. And the subsequent infinite ad hoc model might even work well enough. No question about that. But this maneuver invites the Deadly Sin of Reification. Many will become convinced the model (in its continuity) is realer than Reality. And it necessarily increases over-certainty, because those approximations are only in the model and not the world.

Or we can “let the data speak for itself”. That is a metaphor only, my friends. I mean it in the following way. Suppose we entertain lots of measures to help explain our X. Our first bucket is

$$(x_1, w_1, y_1,…, z_1).$$

Where the dots are filled with other letters yet to be invented. You get the idea. Many of the buckets in this very long list will be empty; indeed, if those dots hide a lot of measures, most buckets will be empty. If you know what a sparse matrix is, think that. Only I’m not exactly listing a matrix here—just individual finite-discrete measurement buckets.

Anyway, we have lots of buckets, and assuming that is all we know, then each is equally likely; then, after measurements are taken, we’re right back to the Dirichlet (don’t forget its limiting assumption). So the universal model fits.

And works in practice! Because this is very similar to “tree” models, of which the most common implementation is Random Forests. (We met these creatures earlier, you recall.)

The buckets in the tree-based models are not set by user-defined criteria, as in the universal model, but they are close. They (more or less) take the measurements themselves as the buckets. If there is only x, then the observed order of measurements of x (smallest to largest in the data) are the buckets. If there is x and w, then the observed paired order are the buckets, and so on. Most of the buckets will be empty in practice, given all experience. But that doesn’t matter: the number of unfilled buckets is not that important, experience shows, at least with a goodly number of measurements taken.

The idea of these models is simplicity itself. Take each bucket of

(x_i1, w_i2,…z_im)

for some particular bucket of w, x, …, z, and see what value of the x is there. If the observed x is, say, a trichotomy of A, B, and C, then the probability of x = A (etc.) is the number of times we see x = A for this bucket, out of how many times we observed this bucket. This is very close to the Dirichlet.

Of course, all kinds of niceties are invoked to make this tree model more computationally efficient, including taking samples of all data and “running the trees” on the samples, and then (somehow) weighting the sample-derived probabilities to get the overall probabilities. Most of this is in service to handling the sparsity of buckets we mentioned above. All these niceties add assumptions, though simpler ones than in continuous models. Which is why, as we saw earlier, these models are generally superior to continuous models, which over “smooth” that data, i.e. smear those buckets together.

It’s funny when you consider that people labeled these tree-like models “ad hoc machine learning algorithms”, and not true probability models, because it was those ad hoc parameterized continuous over-smoothed models that were thought to be “real”. When all along it was the tree-models that came closest to Reality and the universal model.

Some of the sparsity can be handled, with greater ease, and in service to your decisions, by putting the observations into decision and measurement buckets that make sense to you. Somebody might hand you temperature measured to the hundredth of a degree, but if you only care about 5-degree buckets, that it what you should use. And the same for other measures. You, not necessarily anybody else: you.

This means the universal model demands more work up front organizing, with the rest being mere counting (and simple computation, maybe, of a few beta functions). It also means more work downstream, too, since more thought has to be devoted to thinking about how to explain and justify any model to a general audience (i.e. papers). I still owe you an example.

All my work is free and user-supported. Here’s how to help:


Discover more from William M. Briggs

Subscribe to get the latest posts sent to your email.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *