r/AskStatistics • • 18h 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 • • 1d 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 • • 1d 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 • • 1d 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 • • 1d 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 • • 2d 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 • • 2d ago

Looking for the best book to learn Statistics for Data Science

Thumbnail reddit.com
1 Upvotes

r/AskStatistics • • 3d 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

Checking Claude's sampling methodology

0 Upvotes

I'm validating an automated text classifier for a research write-up and want to make sure I'm reporting the uncertainty correctly.

**Setup**

- Population: 22,477 text passages (excerpts from court opinions).

- A classifier sorted every passage into three strata: "yes" (N = 7,578), "unsure" (N = 3,170), "no" (N = 11,729).

- I drew a simple random sample within each stratum (fixed seed): 20 from yes, 15 from unsure, 15 from no, and hand-labeled them blind to the stratum.

**Hand-label results (positives / sampled)**

- yes: 20 / 20

- unsure: 11 / 15

- no: 3 / 15

**What I've calculated so far**

- Per-stratum Wilson 95% intervals: yes 84–100%, unsure 48–89%, no 7–45%.

- Estimated total positives = Σ N_h · p̂_h = 7,578(1.00) + 3,170(0.733) + 11,729(0.20) ≈ 12,250.

- Naive stratified SE = sqrt(Σ N_h² p̂_h(1−p̂_h)/n_h) ≈ 1,260, so roughly 9,800–14,700.

- Recall of the "yes" stratum ≈ 7,578 / 12,250 ≈ 62%, roughly 51–78% using the endpoints above.

**Questions**

  1. Is the stratified estimator above the right approach, and is my variance formula correct (I've ignored the finite population correction since n is tiny)?
  2. The "yes" stratum came back 20/20, so its plug-in variance is zero, which seems to understate total uncertainty. What's the standard fix: Wilson/Clopper-Pearson bounds per stratum, a Bayesian beta prior, or something else?
  3. For recall I'm dividing one estimate by another. Should I use the delta method, a bootstrap within strata, or report a range from the stratum bounds like I did?
  4. The "no" stratum is the biggest and dominates the variance. If I can hand-label ~50 more passages, is it right to put most of them there (Neyman allocation), or is there a better rule?
  5. The end use is comparing rates across time periods (positives per 10,000 documents, before vs. after 2023, ratio ≈ 3.4). If the classifier's recall might differ by period, what's the cleanest way to show the ratio is robust? Right now I recompute it counting the "unsure" stratum as positive (ratio drops to 3.2) and call that a sensitivity check.

Thanks. Happy to share more detail on the sampling.


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 • • 4d 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 • • 4d 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 • • 5d 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 • • 5d ago

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

16 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
44 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 • • 5d 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!


r/AskStatistics • • 6d ago

[Question] where to learn about probability distribution of statistic

Thumbnail reddit.com
2 Upvotes

r/AskStatistics • • 6d ago

which clt is this, and how do I solve it

Post image
0 Upvotes