1.5 Traditional statistics versus Agentic statistics¶
The forest analysis we now do asks, among other things, looks at how GDP per person effects how whether or not a country has permanently converted more than 2 percent of its year-2000 tree cover to other uses. That is a yes or a no for each of 135 countries, and 62 of them say yes.
The traditional approach¶
If I was teaching this as a traditional statistics, I would provide the data already in this form than I might make a plot like this to illustrate how to fit a logistic curve.

Each grey dot is one country, sitting at 0 or at 1. If we sort the countries by income, cut them into seven groups of about twenty, then the share above the threshold falls from 80% in the poorest group to 5% in the richest. This is shown as the red points.
The navy curve is the fitted model. This is not fitted to the red points, but is rather the curve that maximises log-likelihood. This can be illustrated below.

The the height of the lines are the probability for what actually happened to it. The solid curve for a country that converted more than 2 percent (red), the dashed curve for ones that did not (blue). Add up the logarithms of those heights and you have the log-likelihood, which here comes to −75.3. Fitting means searching for the coefficients that maximises log-likelihood. A model that ignored income would give every country the same probability and reach only −93.1.
I might also show you the log odds:

On this scale the fit is a straight line, and its slope is the whole result: −1.07, with a 95 percent interval from −1.48 to −0.66 and p = 3 × 10⁻⁷. The odds of heavy conversion roughly halve for each doubling of average income, an odds ratio of 0.48 with an interval from 0.36 to 0.63.
A course carries on from there... Wald against likelihood-ratio tests, deviance and pseudo-R², residuals and influence, separation and the penalised fit that repairs it, clustered standard errors when the rows are not independent, and ROC curves at the point the course turns towards machine learning. Three or four weeks of that and you should know the theory, but you still have not opened your own data! And more then likely, when you finally do open that data, you will find that it wasn't the test you needed!!!
The agentic approach¶
With an agentic approach does not start from a neatly formatted data set on which we learn theory. Instead, it starts (as we have done in 1.3 Deciding on a hypothesis) with us deciding what question we want to answer. What we then have to learn is how to understand the methods proposed by the AI and decide which ones to use and which to drop.
The main tool to do this is to learn the method as you go. You will not be able to do this unless you already have a grounding in traditional statistics. On the other hand, you don't need to know all the details of every method in order to get started.
The key approach I emphasize in the next video is to use the agentic AI to build your own (and the reader of your reports) own understanding of the approach.
The forest question is about an inverted U — clearing rising among poorer countries, peaking at middle income, falling among the richest. In the next video, I work with Claude to explain how I might test an inverted U and we come up with the following illustration of the test.

Both curves there are drawn from chosen coefficients rather than fitted to anything. Only the left panel turns inside the range; the right one bends without turning, and that is the case reported as a decline. Once that figure exists you can hold your own fit up against it and say which panel you are in. We will go through these steps next.
Testing that shape needs a squared term in log income and the straight line we looked at above becomes a curve.

The black curve is what the analysis actually fits. Its turning point lands at $1,856 a year, and the poorest country in the data sits at $1,013, so the peak is a few percent in from the left edge and the curve falls across almost all of the range. On its own the squared term has p = 0.08. The joint condition that an inverted U requires — slope positive at the bottom of the observed range and negative at the top — gives p = 0.32, because at the bottom the slope is +0.39 with a standard error of 0.82 and could as easily be zero.
Most of the work here is the back and forth: what does this method assume, draw me the test, show me what failing it looks like. The description that survives those rounds is what you and your reader can both check, and writing it is how you end up learning the method. You come out of an analysis knowing more statistics than you went into it with, in the order your own question needed.
Also see¶
- 1.6 Statistical analysis — the test this model belongs to, written down before it was run.
- 1.4 Visualisation