What type of statistical test can I use to look at the influence of a factor on a frequency distribution (distance) I'm trying to work out what test to use to see whether a factor (presence vs absence) affects a frequency distribution with distance as a predictor.
Just wondering if anyone knows what the best test would be for this
My hypothesis is that the presence of a factor - as an example lets say the presence of a tree canopy will influence the frequency distribution - for example below


Seems that the problem could be reformulated as testing the equivalence of distance distributions in two populations (with and without canopy). In that case, I'd use two-sample goodness-of-fit test (e.g. two-sample version of Anderson–Darling).
