0
$\begingroup$

I have a MASSIVE dataset of 22 million shrubs from a basin in the southwest US.

I have selected 2 response variables which are both positive continuous variables: Shrub Canopy Volume (cubic meters) & Distance between closest adjacent shrub center (meters.

I have selected two categorical predictors:

surface type (5 levels: 'Fan Remnants','Fan Piedmont','Alluvial Fan', 'Fan Skirts','Alluvial Flat')

and aspect (direction) 16 levels: "W","N","NNE","NE","ENE","E","ESE", "SE", "SSE","S","SSW","SW","WSW","WNW","NW","NNW")

From these graphs you can see there is a definite relationship between aspect and shrub volume Shrub Volume per Aspect Level

and a minor one between surfacesShrub Volume per Surface Level

Note all graphs here currently have an exponential fit.

I am trying to compare the groups in a physically meaningful way. my question is: what does that look like statistically/mathematically? Should I be reporting purely parameters and descriptive statistics or should I be trying to compare groups with a GLM?

on the face as well these seem to be distributed according to a Pareto distribution (I have also tried to fit Log-Normal, Exponential, and Power Law). It seems to me like Pareto is a good fit. I did my data fitting in python using SciPy. I am trying to use a GLM to back this fit up. I have a continuous response variable (volume of shrubs) and two categorical predictors (5 Surface Types and 16 Directions (Aspect)).

My GLM responses have been super wacky. I have tried many different families but seem to be getting negative coefficients.

some help on how specifically I can run a GLM with a Pareto Distribution for my data, or even if that is the best step forward. Note that it is very difficult to plot the data in R. So pythonic data exploration is ideal, but I would like to use R for actual analysis. Thanks.

different fits for two groups

$\endgroup$
14
  • $\begingroup$ Such a large sample size is going to result in hypothesis testing sensing practically insignificant deviations as statistically significant. Why would you think of graphical examination? $\endgroup$
    – Dave
    Commented May 26, 2020 at 19:16
  • $\begingroup$ @Dave thanks a lot for the response: I opted for a GLM as it was communicated to me this was more robust than ANOVA for large sample sizes. Can you expand on what you mean by graphics examination? cheers JG $\endgroup$
    – jameshgrn
    Commented May 26, 2020 at 19:20
  • $\begingroup$ Graphical examination...I’ve corrected my typo. $\endgroup$
    – Dave
    Commented May 26, 2020 at 19:22
  • $\begingroup$ I think you have (at least) two issues here. The most important is that it makes no sense to estimate the parameters of a probability distribution using a regression on histogram frequencies. (Well, maybe in an extreme case to obtain starting values for an iterative procedure.) The second is that despite or because of the large sample size you don't have random independent samples from a probability distribution. You need to state what you're going to do with the parameter estimates. Compare the parameters for Fan Skirts with those of Alluvial flats? $\endgroup$
    – JimB
    Commented May 26, 2020 at 19:24
  • $\begingroup$ @Dave thanks, still not sure what you mean: do you mean plotting the data? I have done this, but any scatter plot is difficult to read and computationally expensive on my machine. $\endgroup$
    – jameshgrn
    Commented May 26, 2020 at 19:25

1 Answer 1

0
$\begingroup$

This is just an extended comment as I'm still not clear on the objective (which is likely a problem with me and not necessarily the OP).

While you state that "From these graphs you can see there is a definite relationship between aspect and shrub volume", I'm not seeing the specific relationship you have in mind in part because the first figure has the subplots on all different scales. (So does the second figure but not as much.) However, if one takes the parameter values from the first figure and plots those one does see a definite relationship:

Plot of parameter estimates vs aspect

$\endgroup$
6
  • $\begingroup$ Totally right about the scales, yeesh! BTW. This plot is awesome and really helpful. My question is. Are those Lambda parameters defensible? Is the fit good enough on the graph that I can report these with confidence? $\endgroup$
    – jameshgrn
    Commented May 26, 2020 at 20:39
  • $\begingroup$ For an exponential distribution these parameter values are essentially the reciprocal of the mean. So a similar plot with the mean will also show the same sinusoidal relationship. Probably the mean rather than the exponential distribution parameter would be easier to interpret for most folks. $\endgroup$
    – JimB
    Commented May 26, 2020 at 21:02
  • $\begingroup$ Cheers, Jim. You have been extraordinarily helpful. $\endgroup$
    – jameshgrn
    Commented May 26, 2020 at 21:24
  • $\begingroup$ Actually had a thought. Would reporting means be better than reporting shrub volume medians wholesale? It seems like an extra step $\endgroup$
    – jameshgrn
    Commented May 26, 2020 at 21:35
  • $\begingroup$ If these distributions have approximately exponential distributions, then the median is just about 0.7 times the mean. So a median wouldn't be adding much of anything. You probably should sit down (virtually) with a statistician. $\endgroup$
    – JimB
    Commented May 26, 2020 at 21:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.