r/AskStatistics • u/Fresh_Mud8613 • 19h ago
BRT/RF vs Bayesian Spatial Methods
I am trying to do a spatial study predicting occurrence. I have a whole bunch of geographic covariates stored as rasters and want to use a method to compare their associations with an occurrence (it's logistic, it either happened or it didn't). I know how to use BRTs and RF and think they would be an applicable methodology. But other people are using Bayesian methods to help with spatial autocorrelation etc. I have reasons that I'd rather do ML but I need to have my rationale water tight.
Is anyone able to have an opinion or help me with a pros/cons list of each. I could use anything I can get. Chat GPT is just being sycophantic at this point.
If you have more interest in the project:
I have a database of provinces reporting a human transmitted disease and want to know what covariates are associated with reporting (this could potentially help with understanding surveillance, allocating resources, and vaccine targeting). I am familiar with ML techniques and am inclined to use BRT/RF to analyze the associations. But lots of papers are using Bayesian techniques to get the spatial autocorrelation aspect. My plan was to do a BRT and then use spatial block cross validation to try and account for autocorrelation and predictive power (not the same issue addressed I am aware but feel like it at least addresses it a bit). To quantify uncertainty I would bootstrap the data and run multiple iterations to get some variation. I think Bayesian techniques work well, but I think they can quickly be misused when you don't spend the time to understand the confounding, collinearity, and any potential interactions between covariates. I think when the covariates are so related like this it is better to have the machine figure out the relationships and intricacies and then try to add in other information through other methods.
2
u/LawOfSmallerNumbers 19h ago
Let’s call your geographic predictors X(s), a vector, and call your occurrence outcome Y(s), which is 0/1. Perhaps the X-to-Y linkage depends not just on X(s) but X in a neighborhood of s. If not, and if you know X everywhere, then the problem is easier. You would not care about the spatial correlation structure.
ML methods will want a lot of training data, Y. Each Y is just binary so it doesn’t contain a lot of information. If the X to Y map is not spatially stationary, it could be even more difficult to obtain enough data.
Bayesian modeling approaches will make more structural assumptions (both on X and the relationship from X to Y) but if used properly may require less data to fit. You might consider how you could validate those structural assumptions, e.g. with cross validation, to increase confidence in your Bayesian structural model.
1
u/no_name6744 3h ago
From my experience, and maybe this isn't comprehensive, but the question is are you capable of writing down all your assumptions?
If you can write some kind of equation, specifying all your assumptions of how different covariates influence the likelihood of observation, then GPs or splines are excellent. They explicitly model the contribution at each spatial point, give you variance estimates, etc.
If you're not comfortable writing out those assumptions (high dimension, you feel like there are nonlinear contributions, especially depending on the neighborhood), I would suggest using a graph learning method instead. Graph Attention Transformers work well.
You may still be able to combine the methods, as graph transformers would only capture local information (though probably, if you're working in a high dimensional setting, that will leak information about spatial coordinates).