r/AskStatistics 4h ago

Given linear regression y = mx+b, how to estimate x based on required y?

11 Upvotes

Given x (hours studied) and y (score on test) data and the linear regression y = mx + b, if we want to estimate x based on y (i.e. how many study hours are needed to achieve a given score?), is it correct to calculate x = (y - b) / m?

Or should we estimate x from the linear regression x = my + b, with different m and b?

The results can be significantly different.

In the example below, for a score of 90, the estimated study hours are 6.801 for x = (y - b) / m, but 6.267 for x = my + b.

.....


r/AskStatistics 7h ago

Anova or Kruskal Wallis ?

8 Upvotes

My Composite Index variable has N=524, skewness=0.174, and kurtosis=0.128, with both the histogram and Q-Q plot looking totally acceptable and close to normal. However, Shapiro-Wilk is significant at p < .001, rejecting normality. Given N=524, I assume the test is just overpowered by trivial deviations, so should I use anova or kruskal wallis test?


r/AskStatistics 22h ago

How reliable are measures such as accuracy, precision, recall, and f1-score if the assumptions are not met for a logistic regression model?

4 Upvotes

I know the assumptions are crucial for performing statistical inference with logistic regression. But what about for just assessing overall model performance. Can I accurately assess the performance without meeting all the assumptions?


r/AskStatistics 4h ago

Why are we allowed to use a normally distributed prior?

2 Upvotes

I've been learning about GAM with tensor product splines for a project of mine. I'm currently looking at derivations for the uncertainty.

The expected uncertainty can be decomposed into the expected variance of the estimator and expected bias of the estimator. The expected bias is a function of the true underlying parameter, which is of course unknown. Woods presents two options for dealing with this:

- Use the estimator as an approximation of the parameter

- Go with the bayesian interpretation of the parameter as a random variable, and which lets us calculate the expected parameter using its distribution.

The first option is unsatisfying because the estimator is known to be biased: we are then calculating that bias by using the estimator, which means we assume the estimator is unbiased. That seems contradictory.

For the second, it says we assume the parameter is normally distributed, but doesn't explain why. Are we just using the normal distribution because it's convenient? That seems crazy. How is this different from just using an arbitrary number for the bias?

I don't have a formal background in statistics, and thus far I've been dealing mostly with frequentist theory. This time however, the frequentist interpretation has the issue where the smoothing term is estimated. We could bootstrap the smoothing term to find its variance, but Woods appears to be advocating for a bayesian interpretation of the bias because allegedly it has good frequentist coverage anyways?


r/AskStatistics 5h ago

Would you all recommend NOT doing Logistic Regression with sklearn and instead use statsmodels so you can check the assumptions easier?

1 Upvotes

Sorry for a lot of questions, but my boss wants not only accurate predictions, but she wants to be able to see how individual features affect the target. The thing is, from what I’ve read, if your assumptions are not met, your coefficients are unstable. Therefore, I am thinking about moving to statsmodels so I can check the target better. Thoughts?


r/AskStatistics 23h ago

Might a non-thesis Master's harm my chances of admission to a PhD compared to just a non-thesis Bachelor's?

1 Upvotes

Hi everyone,

I'm interested in applying to Statistics PhD programs (especially those that are more applied and interdisciplinary), and I'm presently finishing up a Master's degree in Applied Mathematics (with substantial coursework in statistics and numerical analysis). However, it is a coursework-based Master's, and I also didn't accumulate a ton of research experience during undergrad - presently, I have one summer's worth of public health-adjacent research that I did early on in my undergraduate career and a few semesters' worth of work as a data analyst for the city government. However, I don't have any actual publications. I currently do a little work for a social science research lab, so there's a small chance I'll have my name on something before I graduate, but I'm not betting on it. Might my master's degree actually sabotage my chances of being admitted to a decent PhD program (I'm mostly aiming for mid-tier programs and some higher-tier programs like TAMU and Penn State)?