r/AskStatistics • • 2h ago

Are there many statisticians in different fields who feel invigorated and alive in their job?

1 Upvotes

Do these people really love the job of doing statistical analyses and modeling? Do they wake up excited to go to work? Are they happy to have that job and do their hearts scream with joy?


r/AskStatistics • • 11h ago

How do you compare species richness in unequal plot sizes between two sites?

2 Upvotes

Objective: To compare fish species richness between reefs following the recovery of benthic sessile organisms after a disturbance.

I am currently facing an issue with differences in sampling plot sizes used to measure the extent of recovery of reef using species richness.

During the first year of observation, plot sizes at Site 1 had both 49m2 and 80m2, whereas Site 2 had 25 m2 plots. These were two separate experimental plots established to compare a recovering reef (Site 1) with a non-recovering reef (Site 2), as these were the only available plots for that year that we can use for comparison.

In the following years, the plots at Site 1 were re-established at 25 m². By then, we already had an idea of the extent of benthic recruitment, allowing us to standardize the sampling area and ensure a more uniform comparison between the two sites.

However, when comparing fish species richness per plot, I noticed that Site 1 had a very high richness than Site 2 during the first year of observation. Although I expected Site 1 to have higher species richness because of the greater cover and diversity of recovering groups of different benthic sessile organisms, the difference was much larger than anticipated. This led me to suspect that the difference in plot sizes might partly be attributable to the differences in sampling plot sizes during the first year.

I initially explored three GLMM approaches:

  1. GLMM with log(Area) as a covariate to account for differences in sampling area.
  2. GLMM with log(Area) as an offset to model species richness relative to sampling area.
  3. Poisson GLMM without an offset or area covariate.

The resulting AIC values were relatively close: the model without an area adjustment had the lowest AIC (188), followed by the covariate model (189), while the offset model was the highest (192).

The fact that the covariate model performed almost identically to the model without an area adjustment, I had doubts on whether the GLMM approach was appropriate for the sampling-area issue.

I then checked the rarefaction using Chao1 asymptotic richness estimation through iNEXT (Chao et al., 2014) since it allows comparison of species richness between sites while accounting for differences in sampling effort rather than relying directly on the original plot sizes.

However, one concern is how to interpret and report the resulting estimates. I cannot confidently express the estimates as "species richness per plot (individuals/25 m2)", but rather as "Estimated species richness per plot". (Idk if thats correct either).

I tried having log(Area) as a covariate into the Chao1 analysis, but this felt methodologically inappropriate, as it would essentially combine two different standardization approaches. It seemed like mixing two separate methods, Pizza and Pineapple basically.

Since asymptotic richness estimation extrapolates species richness towards an estimate of the total number of species that could theoretically be observed with sufficiently extensive sampling, I wondered whether this was the most appropriate rarefaction approach for my research question.

I am now considering coverage-based rarefaction, which standardizes comparisons based on sample completeness rather than simply the number of individuals or sampling units. However, I am concerned that this approach might still favor Site 1 because of its considerably larger sampling areas (49–80 m2) compared with Site 2 (25 m2), potentially resulting in similarly inflated richness estimates. I may be misunderstanding how coverage-based standardization works, though.

I have also struggled to find published studies that specifically address comparisons of species richness between sites with unequal plot sizes using Chao-based estimators.

Currently, I am exploring how to code this in R while also exploring about sample-based rarefaction and species accumulation curves, particularly the method presented by Portier et al. (2022), which actually investigated comparisons involving different plot sizes. On my trial, I was able to see the curve at both sites limited to 100m2.

However, I am not sure with what to do next after the species curves. I initially considered Conway–Maxwell–Poisson regression since that was what's used for their study, but I dont think my samples are large enough to run it.

With that, I would like to ask if the comparison of species richness in unequal plot sizes between two sites is feasible, or should I stop since the size of plot is really questionable to even safely publish? Is the species accumulation curve enough to support comparison across sites and across years? Then lastly, which one of the models that I used would be the most appropriate? If you guys have a better option, I will gladly take it.

Thank you very much


r/AskStatistics • • 12h ago

How do you account for selection bias when evaluating prediction market accuracy?

1 Upvotes

Suppose you're using historical probability data from a prediction market like kalshi to evaluate how well market prices correspond to actual outcomes.

The events being listed aren't necessarily a random sample of real world events. Some attract considerably more trading activity than others which could also affect the reliability of the estimates. Would a standard Brier score be sufficient for evaluating forecasting performance here or would you need to stratify the data by liquidity event category and time until resolution?

What statistical approach would you use to account for selection bias?


r/AskStatistics • • 1d ago

Which quartile method should a student-facing calculator use by default?

1 Upvotes
Textbooks, Excel (QUARTILE.INC vs QUARTILE.EXC), R (9 types) and TI calculators all compute Q1 and Q3 differently, so students often get "wrong" answers that are just a different convention.

For an introductory audience (high school / first-year college), which method would you default to, and would you show the alternatives or just state which one is used? Interested in how instructors here handle this.

r/AskStatistics • • 1d ago

Confidence level in a normal distribution - testing of anchors

Thumbnail reddit.com
1 Upvotes

r/AskStatistics • • 2d ago

Does the average probability of CORRECT predictions in a probability model mean anything?

1 Upvotes

Suppose I build a probability model for a binary outcome (0/1). If I filter out ONLY 1's that were correctly classified and calculate their average assigned probability does this number mean anything significant? Or is it mostly just an arbitrary number reflecting the distribution probabilities of correct predictions?!


r/AskStatistics • • 1d ago

Is a tool that tests your analysis on simulated data before real data actually useful? Looking for opinions on my project idea

0 Upvotes

I'm a student, and I'd like honest opinions from people who do statistics for real.
The problem I'm trying to solve: when you analyze data to see whether one thing affects another, your model always gives you a number, but you can't tell if it's the right one. You might control for the wrong variable or miss a confounder, and on real data you'd never know.
My idea: test the analysis first on simulated data, where the true answer is known. You write down how you think the data was generated, and a tool checks your analysis against it before you use real data:
Are you controlling for the right variables, or adding bias?
Does your model find the true effect across many simulated datasets, and are its confidence intervals honest?
How strong would a hidden factor need to be to change your conclusion?
For example, a plant treatment works by preventing fungus. Add fungus as a control "to be safe", and the estimated effect drops from 1.2 to almost 0. The tool flags that before you touch real data.
I built a first version in Python (with a lot of help from AI, I'm not a statistician). There's a browser demo if you want to see it: https://koopticon.github.io/whyflow/playground.html
What I'd like to know:
Is this useful in practice, or do experienced people already do this some other way?
The checks depend on a simulation I write myself. Does that make the whole idea weaker than I think?
What would it need before you'd actually use it?


r/AskStatistics • • 2d ago

Latent Class with Binary Indicators or Latent Profile with Continous Indicators?

0 Upvotes

I am running a latent class/profile anaysis. I use the / because I am torn bewteen using results from the latent class analysis that uses binary indicators or the latent profile analysis that uses continous versions of the same measures. The results are similar, though binary indicators (5) have slightly fewer issues with DIF. Any thoughts? Reviewers are unfamiliar with the procedure so they keep questioning the use of binary indicators, but this is common practice in latent class analysis.


r/AskStatistics • • 2d ago

How to find relationships between operational data

3 Upvotes

My table consists of columns indicating parts of a machine and rows indicating finished cycles. Mostly measuring time, or max/min values, sometimes average values.

My data is structurized right now (no missing values, no outliers, no meaningless columns), the issue is that I probably dont understand statistics. I found correlations (Pearson), separated data through PCA (additionally K-Means and Hierarchical clustering algorithms), and I wanted to start finding relationships of each variables (not principal components!), since I more or less know to which group or part of the machine they belong. But how?

I was planning to do following: Let computer to calculate regressions for all (theoretically meaningful) possibilities and then choose only those with significant p-values and high R2. Which I would later inspect through scatter plots (2D, or 3D).

However, this feels like chaotic and wrong approach, and I believe there must be better ways to capture the relationships. I would like to present how each variable interact with others later to the management. The process is not dependent on external factors, which makes the analysis much easier, but still, I am confused how to approach it further.

(btw i also appreciate any suggestions for study material for this topic - for instance understanding regression, statistics and other methods besides regression - as i want to understand it, thank you)


r/AskStatistics • • 2d ago

Dice math

1 Upvotes

Hiya, and thank you for your time. I'm trying to balance something for a TTRPG campaign, and I'd be grateful for any help. I'm a bit rusty, and I want to make sure I get this right.

How do I account for situations where multiple dice are rolled against each other, choosing the highest, when trying to find a percent chance of success? Ex. the chance of one opponent rolling higher using one dice when their opponent uses two, same with two dice vs. three, etc. Even though the system I'm using doesn't use 'disadvantage' (multiple dice choosing the lowest), I'd be grateful for an explanation of that too mostly 'cause I'm curious.

Edited for clarity, sorry about that.


r/AskStatistics • • 2d ago

Pair plot

Thumbnail reddit.com
1 Upvotes

r/AskStatistics • • 3d ago

What kind of test or analysis would be best for my data?

3 Upvotes

Hello! First post, kinda nervous

I'm trying to compare data from two groups and wondering what tests would be best to do. I'm comparing the results of two groups on a lexical decision task. The goal is to see if one group has a faster reaction time on certain words in the test than the other group. I know central tendency will be helpful but I'm wondering if like a t-test or ANOVA would be applicable to my data set? I feel like I'm using a lot of jargon wrong (ᵕ—ᴗ—)


r/AskStatistics • • 3d ago

Looking for the best book to learn Statistics for Data Science

Thumbnail reddit.com
1 Upvotes

r/AskStatistics • • 4d ago

Bayesian Spatial Model

7 Upvotes

I am trying to fit a spatial logistic Bayesian model using BYM2. I understand I need to assign priors to the intercept, covariates, and hyperparameters for BYM2 and I see many people use different values, but I can't figure out what is driving their choices? How do I know when to penalize something heavily versus lightly? Is there a rule of thumb? I can see what other people have done for this kind of infectious disease model, but the estimates are all over the place.


r/AskStatistics • • 3d ago

Feature engineering for mixed-type time-series anomaly detection [P]

1 Upvotes

I have time-stamped results from a set of checks. Each row includes a check name, a response value, and a creation time. Responses vary in type and scale: counts, decimal values, percentages, ratios, and dates.

I’m using Isolation Forest to detect anomalies. I convert responses to numeric values with type-specific handling: percentages become proportions, large values are log-scaled, some counts are normalized by a related row count, and date responses are converted to numeric time-based values.

I’ve tested three feature-set variants: **32 features** (numeric, ratio, time, frequency-encoded, and binary features; no one-hot encoding), **38 features** (the 32 base features plus six check-family one-hot features), and **43 features** (the 38 features plus five metric-type one-hot features).

The additional features describe recent behavior (previous-result changes, rolling deviations, robust historical deviation, range breaks, and volatility), check and table context (row-normalized values and related-check behavior), timing and history (execution gaps, weekday, history length, and baseline availability), and category frequency.

False positives and false negatives remain high across the variants. I’m looking for general advice on validating whether engineered features represent useful signal, identifying redundant or noisy features, and evaluating feature sets for Isolation Forest.

What approaches would you recommend?


r/AskStatistics • • 3d ago

This is an AI-generated review, correct?

0 Upvotes

My forehead is scrunched. Da fuq?

"Also, the statistical analysis section would benefit from more detail such as the criteria used to identify corollaries. Also, confidence intervals are reported but how they were calculated is not described. “Coefficient” is used in the tables but multiple types of regressions were used. More detail is needed in the statistical analysis section and in reporting the results for the general reader to understand the estimates and their interpretations."

  1. "corollaries"?
  2. how you calculate CIs? Does anyone really report that? Do I really need to specify that these are 95% CIs?
  3. The table reporting poisson regressions reports coefficients, the table reporting logistic regression results has "Odd Ratios" in the column. This is wrong?

(Social sciences, BTW.)


r/AskStatistics • • 5d ago

Dealing with a small dataset

1 Upvotes

I'm trying to model a disease behavior with differential equations with its parameters and initial values. However, The disease, specifically in my case, consists of only 5 data with an empty data in between. For example: (a, (empty), b, c, d, e). I estimated all parameters based on literature, one parameter I fit with nonlinear least square using python.

I am wondering if I can validate the values of the parameters and initial value in my model with real data. I tried using RMSE, R². It shows good results but since I only have 5 data, it's probably biased(?). I tried to do sensitivity analysis of the parameters to the disease prevalence, and I got a result showing that the parameters that are supposed to be decreased (in hypothesis) should be increased and vice versa. I am confused with this since it's literally the parameter of laten infection which should be decreased. Is there any things that I should consider to move forward/fix these issues?


r/AskStatistics • • 5d ago

To those who know data science, what prerequisites in stats do I need to read this paper on racial bias in police violence? Should I start with linear regression?

0 Upvotes

https://kriegman.substack.com/p/post-leading-to-termination-blm-falsehoods

Also are there recommendations for textbooks and resources for learning the specific jargon I encounter most with my studies?

-Bootstrapping

-Trim fill method

-Effect size

-P hacking

-Simpson's paradox

-Collider bias

--Stat significance

-Longitudinal vs cross sectional

-Meta analysis vs systemic review

-Confidence interval


r/AskStatistics • • 5d ago

Tutorial/Course recommendations

Thumbnail reddit.com
0 Upvotes

r/AskStatistics • • 6d ago

Proportional Hazards

Post image
7 Upvotes

The Grambsch and Therneau (1994) test says that proportional hazards are potentially violated for the shown covariate (p = 0.019), but the plotted residuals look relatively straight to me.
As I do not have a lot of experience with this I was wondering if anybody could tell me if this counts as a significant deviation or if it is not deviated in this case?


r/AskStatistics • • 6d ago

ELI5: what jobs can a person with a bachelor's degree in statistical science get?

17 Upvotes

I've been looking into possibly getting a bachelor's in statistical science as my major but I'm still on the fence abt it, so pls be nice!

and pls lmk if I can't ask this question here or smth. I'll take it down!


r/AskStatistics • • 6d ago

How do I analyze this time series?

Post image
46 Upvotes

How can I approach this type of dataset? I am concerned with the forecasting small short term future "groups" of the data. The redline is the cumulative average and blue/green lines are short term trends. The data is slightly skewed below the horizontal black line. Just curious if there are formal methods to analyze/ forecast with this type of data. I have the book "Intro to time series forecasting" by Brockwell and Davis but I am not sure where to look in the book to find how to approach this so any suggestions here would be greatly appreciated.


r/AskStatistics • • 6d ago

Help modeling mushroom fruiting from observational data: Which model should I use?

1 Upvotes

Hi everyone,

I’m working on a personal project combining statistics, data analysis, and mapping.

The idea is to build a model capable of estimating the conditions most favorable to mushroom fruiting in forests, based on observational data collected by users.

I’ve built a spatiotemporal database containing several groups of variables:

- Mushroom observations

- Weather data (dynamic)

- Soil characteristics (dynamic/static)

- Vegetation / land cover (static)

- Topography (static)

- Temporal variables

By combining all the raw data into a single table, I end up with one row per geographic area and per week, with the number of observations (nb_obs) as the target variable.

Initially, I started with a multiple linear regression to identify the most explanatory variables. However, the phenomenon I’m trying to model seems to be strongly nonlinear. For example, some variables probably have an optimal range:

- Too little humidity → few observations

- Moderate humidity → many observations

- Too much humidity → few observations

This makes me think that a linear model is probably not appropriate.

I therefore started looking into models for count data.

I tried a Poisson regression, but the data are heavily overdispersed (dispersion index around 20+), which led me to try a negative binomial regression.

The model converges and the coefficients seem generally reasonable, but the estimated effects are still relatively small, and I’m struggling to understand what I can actually conclude from these results.

I’m a bit lost among all the possible models (Poisson, negative binomial, GAMs, mixed-effects models, zero-inflated models, etc.), and I’d mainly like to understand:

- What type of model would be most appropriate for this kind of problem?

- How should I properly interpret the coefficients?

- How can I combine static variables (soil, vegetation, elevation, etc.) with dynamic variables (weather)?

- How should I properly account for lagged effects (1 week, 2 weeks, etc.)?

Finally, I suspect that my main problem might actually lie in the target variable itself.

What I’m really trying to understand is the environmental conditions favorable to mushroom fruiting, but my database consists of opportunistic observations. I therefore have mostly presence records and no absences.

There is also a strong observation bias: people tend to go mushroom picking mainly on weekends, when the weather is pleasant, and in areas close to large cities.

In other words: No observation ≠ absence of the phenomenon

So I’m wondering:

- How should this type of data be handled?

- Should I generate pseudo-absences?

- Should I model presence only?

- Or am I using the wrong family of models from the very beginning?

I’d be grateful for any advice, practical experience, or references on this kind of ecological/spatiotemporal modeling problem.

My main goal is to understand the assumptions behind the different models before making my approach more complex.

Thanks!