accepted_answer
dict
other_answers
listlengths
0
5
product
stringclasses
1 value
question
stringlengths
163
23k
record_id
stringlengths
37
37
selected_answer
dict
selection_rule
stringclasses
1 value
split
stringclasses
1 value
thread
dict
{ "answer_html": "<p>Concurvity is only really an issue if it causes the estimated effects of other terms to change qualitatively when you remove one of the concurved terms.</p>\n<p>In this instance, I don't see why you need to decompose the 2d function <span class=\"math-container\">$f(\\text{time}, \\text{z})$</spa...
[]
statistics_qa
I have repeated-measures data — multiple observations per subject over time — and a covariate that is constant within subject (e.g., a baseline characteristic measured once). My model includes a subject-level random intercept and I want to test whether this covariate's association with the outcome changes over time. ...
Scientific-Statistics-QA:stats:676821
{ "answer_html": "<p>Concurvity is only really an issue if it causes the estimated effects of other terms to change qualitatively when you remove one of the concurved terms.</p>\n<p>In this instance, I don't see why you need to decompose the 2d function <span class=\"math-container\">$f(\\text{time}, \\text{z})$</spa...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": 676825, "answers": [ { "answer_html": "<p>Concurvity is only really an issue if it causes the estimated effects of other terms to change qualitatively when you remove one of the concurved terms.</p>\n<p>In this instance, I don't see why you need to decompose the 2d function <span c...
null
[]
statistics_qa
The following is a multivariate Student's t distribution $$ p_{\sigma^2}(\mathrm{x})= {\displaystyle {N_{\nu,\sigma^2}}\left[1+\frac{1}{\nu\sigma^2}\sum_{i=1}^nx_i^2\right]^{-(\nu +n)/2}}, \;\mathrm{x}=[x_1,\cdots,x_n]^{\top}\in \mathbb{R}^n,\;\nu>2,$$ where $N_{\nu,\sigma^2}=\frac {\Gamma \left[(\nu +n)/2\right]}{\Gam...
Scientific-Statistics-QA:stats:676824
{ "answer_html": "<p><strong>I offer an elementary solution.</strong> It requires one substitution in an ordinary integral which, when repeated for each variable, yields a product of Beta function values.</p>\n<p>There are other solutions that might provide simpler formulas but are less elementary (<em>e.g.</em>, us...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p><strong>I offer an elementary solution.</strong> It requires one substitution in an ordinary integral which, when repeated for each variable, yields a product of Beta function values.</p>\n<p>There are other solutions that might provide simp...
null
[]
statistics_qa
Is Kaplan–Meier appropriate when multiple observations come from the same contributor? I would appreciate advice from researchers familiar with survival analysis and clustered/repeated observations. I am analyzing GitHub pull requests (PRs) to study whether a contributor's time to submit their next PR differs d...
Scientific-Statistics-QA:stats:676830
{ "answer_html": "<blockquote>\n<p>I am considering using Kaplan–Meier curves and the log-rank test to compare the time-to-next-PR distributions between abandoned and non-abandoned focal PRs.</p>\n</blockquote>\n<p>That could be a start, but it won't allow you to incorporate additional predictors that might affect th...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<blockquote>\n<p>I am considering using Kaplan–Meier curves and the log-rank test to compare the time-to-next-PR distributions between abandoned and non-abandoned focal PRs.</p>\n</blockquote>\n<p>That could be a start, but it won't allow you to...
{ "answer_html": "<p>It is still true that the asymptotic null distribution of the LRT is the null distribution of a local Gaussian shift alternative. In your <span class=\"math-container\">$N(\\mu,\\sigma^2)$</span> example that means the asymptotic null distribution is the same as testing <span class=\"math-contai...
[]
statistics_qa
In fact I doubt if such kind of hypothesis test will be used in real work, but just out of curiosity I have a question on the property of such test. Question. Consider an $n$-dimensional parameter $\theta= (\theta_1, \cdots, \theta_n)\in \Theta$ where $\Theta$ is an open subset in $\mathbb R^n$, and the hypothesis ...
Scientific-Statistics-QA:stats:676842
{ "answer_html": "<p>It is still true that the asymptotic null distribution of the LRT is the null distribution of a local Gaussian shift alternative. In your <span class=\"math-container\">$N(\\mu,\\sigma^2)$</span> example that means the asymptotic null distribution is the same as testing <span class=\"math-contai...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": 676849, "answers": [ { "answer_html": "<p>It is still true that the asymptotic null distribution of the LRT is the null distribution of a local Gaussian shift alternative. In your <span class=\"math-container\">$N(\\mu,\\sigma^2)$</span> example that means the asymptotic null dist...
{ "answer_html": "<p>The scale parameter is routinely analysed in survival models, because the scale parameter is a location parameter for <span class=\"math-container\">$\\log T$</span>. Accelerated-failure models are of the form\n<span class=\"math-container\">$$\\log T_i=x_t\\beta+\\log T_{0i}$$</span>\nwhere <sp...
[ { "answer_html": "<p>To see more about the basis for Thomas Lumley's answer, look at these <a href=\"https://grodri.github.io/survival/ParametricSurvival.pdf\" rel=\"nofollow noreferrer\">course notes</a> by Germán Rodríguez. They start with the general form for accelerated-failure-time (AFT) models* in Prof. L...
statistics_qa
Here is a Weibull proportional hazards model: $$h(t \mid \mathbf{x}) = h_0(t)\,\exp(\boldsymbol{\beta}^\top \mathbf{x}) = \gamma \lambda\, t^{\gamma - 1} \exp(\boldsymbol{\beta}^\top \mathbf{x})$$ Is statistical inference ever performed on the shape and scale parameters ($\gamma, \lambda $)? For example, do res...
Scientific-Statistics-QA:stats:676855
{ "answer_html": "<p>The scale parameter is routinely analysed in survival models, because the scale parameter is a location parameter for <span class=\"math-container\">$\\log T$</span>. Accelerated-failure models are of the form\n<span class=\"math-container\">$$\\log T_i=x_t\\beta+\\log T_{0i}$$</span>\nwhere <sp...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": 676856, "answers": [ { "answer_html": "<p>The scale parameter is routinely analysed in survival models, because the scale parameter is a location parameter for <span class=\"math-container\">$\\log T$</span>. Accelerated-failure models are of the form\n<span class=\"math-container...
null
[]
statistics_qa
I am trying to evaluate which environmental variables drive variation in microbial communities. I have 5 samples collected at 15 sites, and for each sample, I have a microbial community, soil pH, soil NO3, and MAT. I wanted to account for site when testing the effect of my environmental variables, so I tried: l...
Scientific-Statistics-QA:stats:676858
{ "answer_html": "<p>There are two options for testing ordination models in <em>vegan</em>:</p>\n<ol>\n<li>model-based permutations, and</li>\n<li>design-based</li>\n</ol>\n<p>In 1. you model the site effects (like you have) and you assume the residuals are no conditionally independent, so you can just randomise the ...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>There are two options for testing ordination models in <em>vegan</em>:</p>\n<ol>\n<li>model-based permutations, and</li>\n<li>design-based</li>\n</ol>\n<p>In 1. you model the site effects (like you have) and you assume the residuals are no co...
{ "answer_html": "<p>Your approach is perfectly reasonable. It is true that using a caliper changes the target estimand, but it does so only when the remaining matched sample has a different covariate distribution from the overall sample. With a caliper like the one you imposed, I would guess that the matched sample ...
[]
statistics_qa
I was using full matching (using MatchIt, method = "full") to estimate the ATE. Now I want to extend this to examine a moderation effect by a categorical variable. I am fitting separate propensity score models within each moderator subgroup, and setting the estimand to ATE as well. I am getting quite high weights in se...
Scientific-Statistics-QA:stats:676867
{ "answer_html": "<p>Your approach is perfectly reasonable. It is true that using a caliper changes the target estimand, but it does so only when the remaining matched sample has a different covariate distribution from the overall sample. With a caliper like the one you imposed, I would guess that the matched sample ...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": 676905, "answers": [ { "answer_html": "<p>Your approach is perfectly reasonable. It is true that using a caliper changes the target estimand, but it does so only when the remaining matched sample has a different covariate distribution from the overall sample. With a caliper like th...
null
[]
statistics_qa
I am studying the following problem from an exam. A system consists of two subsystems connected in parallel. The first subsystem is just one component c1​. The second subsystem is made of three components c2,c3,c4 connected in series. The lifetimes of c1,…,c4​ are independent exponential random variables with rates...
Scientific-Statistics-QA:stats:676870
{ "answer_html": "<p>You are correct that the probability of component <span class=\"math-container\">$c_i$</span> surviving past time <span class=\"math-container\">$t$</span> is <span class=\"math-container\">$e^{-\\lambda_i t}$</span>. And that is pretty much the only exponential distribution related formula we wi...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>You are correct that the probability of component <span class=\"math-container\">$c_i$</span> surviving past time <span class=\"math-container\">$t$</span> is <span class=\"math-container\">$e^{-\\lambda_i t}$</span>. And that is pretty much ...
null
[]
statistics_qa
Let's say you have a classic mixture model and you want to use a Gibbs sampler over the parameters and the latent variable. How do you deal with your sampler getting stuck at a single node?
Scientific-Statistics-QA:stats:676879
{ "answer_html": "<p>If you run a plain Gibbs on a classic mixture model, you face the paradox that the Markov chain is uniformly ergodic (because the latent space is finite and hence compact) AND usually fails to switch between modes, i.e. does not exhibit label switching. This is the point we make in the <a href=\"...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>If you run a plain Gibbs on a classic mixture model, you face the paradox that the Markov chain is uniformly ergodic (because the latent space is finite and hence compact) AND usually fails to switch between modes, i.e. does not exhibit label...
{ "answer_html": "<p>As comments to the question already mentioned, the question is ill-posed. The first part implies an estimation problem (“<em>estimate the mean and variance of machine reliability of the population</em>”). But for that, we would need to know the desired margins of error <span class=\"math-containe...
[]
statistics_qa
In most introductory sampling problems involving proportions, it is typically assumed that there is no variability within a given unit. For example, if we want to know what percent of a population has a car, we assume that when we select a person, they either have or do not have a car. I have come across this probl...
Scientific-Statistics-QA:stats:676888
{ "answer_html": "<p>As comments to the question already mentioned, the question is ill-posed. The first part implies an estimation problem (“<em>estimate the mean and variance of machine reliability of the population</em>”). But for that, we would need to know the desired margins of error <span class=\"math-containe...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": 676891, "answers": [ { "answer_html": "<p>As comments to the question already mentioned, the question is ill-posed. The first part implies an estimation problem (“<em>estimate the mean and variance of machine reliability of the population</em>”). But for that, we would need to know...
null
[]
statistics_qa
I am linking two public datasets of vehicle incidents published by the same regulator (NHTSA) through entirely separate channels. One is incident filings submitted by manufacturers under a standing order. The other is consumer complaints filed by vehicle owners. Neither source publishes a key identifying an individual ...
Scientific-Statistics-QA:stats:676889
{ "answer_html": "<p>This is my own current reasoning, posted so it can be argued with rather than because I think it settles anything. I am not confident in it.</p>\n<p><strong>On the gate versus a probabilistic model</strong></p>\n<p>The argument for the gate is that with no labelled data, any probabilistic score h...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>This is my own current reasoning, posted so it can be argued with rather than because I think it settles anything. I am not confident in it.</p>\n<p><strong>On the gate versus a probabilistic model</strong></p>\n<p>The argument for the gate i...
null
[]
statistics_qa
I use regression by zero intercept in Microsoft Excel that it results: Regression Statistics Multiple R 0.999515949 R Square 0.999032132 Adjusted R Square 0.945993029 Standard Error 324445.7038 Observations 28 Why Adjusted R Square does not consistent to formula (Adjusted R² = 1 - (1 - R²) ×...
Scientific-Statistics-QA:stats:676899
{ "answer_html": "<p>There's an aphorism that &quot;friends don't let friends use Excel for statistics&quot;. I know of two built-in ways to conduct linear regression in Excel: using the <a href=\"https://support.microsoft.com/en-us/excel/functions/linest-function\" rel=\"nofollow noreferrer\"><code>LINEST</code></a>...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>There's an aphorism that &quot;friends don't let friends use Excel for statistics&quot;. I know of two built-in ways to conduct linear regression in Excel: using the <a href=\"https://support.microsoft.com/en-us/excel/functions/linest-functio...
null
[ { "answer_html": "<blockquote>\n<p>but that control has already been shown to have reduced growth compared to another genotype where that process is disrupted</p>\n</blockquote>\n<p>A control can have a different baseline than the treated group. But you need to move from t-tests to regressions, eg ANCOVA. A com...
statistics_qa
I'm contributing to a paper where I am a fairly minor author. I'm concerned by the experimental design but the corresponding authors, who have decade(s) more experience in the field than I have, seem unconcerned and there's the implication that I'm being unnecessarily picky. I'm 95% sure I'm correct, but given their at...
Scientific-Statistics-QA:stats:676922
{ "answer_html": "<p>Your scenario perfectly matches an ANOVA scenario; means are compared accross multiple groups, including a control. I see nothing alarming there. Yes, you would need a multiple comparison correction (MCC) (Dunnett is indeed a good choice).<br />\nNow the question is, how many groups would you inc...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<blockquote>\n<p>but that control has already been shown to have reduced growth compared to another genotype where that process is disrupted</p>\n</blockquote>\n<p>A control can have a different baseline than the treated group. But you need to m...
{ "answer_html": "<h3>TL:DR - this has sort of been asked before, but this deserves a separate answer</h3>\n<p>I think that you'll find that there are several ways to derive the relationship, and yours certainly gels with others (for example <a href=\"https://stats.stackexchange.com/q/234251/97844\">see this Q &amp; ...
[]
statistics_qa
I am reading the proof of the bias-variance decomposition formula on Wikipedia (Bias-variance tradeoff (https://en.wikipedia.org/wiki/Bias%E2%80%93variance_tradeoff)), and it appears to me that the derivation there is uselessly complicated. I think I can derive it in a much shorter way, but I am not sure if it is a 100...
Scientific-Statistics-QA:stats:676933
{ "answer_html": "<h3>TL:DR - this has sort of been asked before, but this deserves a separate answer</h3>\n<p>I think that you'll find that there are several ways to derive the relationship, and yours certainly gels with others (for example <a href=\"https://stats.stackexchange.com/q/234251/97844\">see this Q &amp; ...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": 676944, "answers": [ { "answer_html": "<h3>TL:DR - this has sort of been asked before, but this deserves a separate answer</h3>\n<p>I think that you'll find that there are several ways to derive the relationship, and yours certainly gels with others (for example <a href=\"https://s...
null
[]
statistics_qa
I observe 3 variables, $y_0$, $y_1$, and $y_2$, but am missing some of the observations for $y_1$, so I only have a subsample of $h$ observations of $y_1$ and all $n$ observations of $y_0$ and $y_2$. My goal is to study the relationship between $y_0$ and $y_1$ while controlling for $y_2$ while taking full advantage of ...
Scientific-Statistics-QA:stats:676935
{ "answer_html": "<blockquote>\n<p>is trying to use all the data a flawed concept to begin with?</p>\n</blockquote>\n<p>No. On the contrary, limiting analysis only to complete-data cases is typically flawed. An exception is if the data are &quot;missing completely at random&quot; (MCAR), as in the data that you simul...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<blockquote>\n<p>is trying to use all the data a flawed concept to begin with?</p>\n</blockquote>\n<p>No. On the contrary, limiting analysis only to complete-data cases is typically flawed. An exception is if the data are &quot;missing completel...
null
[]
statistics_qa
Hi could anyone please help me with this I would be really grateful. I am performing an mixed model ANCOVA to evaluate changes in a response variable (Height) over time and differences among treatments. The baseline measurement is included as a continuous covariate to account for initial differences among individuals....
Scientific-Statistics-QA:stats:676937
{ "answer_html": "<p>If the treatment × time × baseline covariate interaction is significant, then the association between treatment/time and outcome depends on the value of the baseline covariate. It thus would make sense to evaluate treatment effects within each time point over a range of baseline covariate values....
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>If the treatment × time × baseline covariate interaction is significant, then the association between treatment/time and outcome depends on the value of the baseline covariate. It thus would make sense to evaluate treatment effects within eac...
null
[]
statistics_qa
I am fitting a Gamma GAM for daily outdoor time in chickens. I have 8,395 hen-day observations, 124 hens, and 132 dates. Weather varies only by date. My current temporal structure is: total_time_outside ~ coop_id + s(study_day, bs = "cr", k = 40) + s(max_temp, bs = "cr", k = 8) + s(mean_dew_point, bs = ...
Scientific-Statistics-QA:stats:676947
{ "answer_html": "<p>With these data, I don't see a way to separate the associations of date and temperature with time outside from that of egg-laying phase. That phase, defined by date with whichever cutoff you use, is inextricably linked to date and to the change of temperature with date. Similarly, in a model that...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>With these data, I don't see a way to separate the associations of date and temperature with time outside from that of egg-laying phase. That phase, defined by date with whichever cutoff you use, is inextricably linked to date and to the chan...
null
[]
statistics_qa
For homework assignment regarding stepwise regression (along with forward and backwards) the professor said to scale all the data except for the response and categorical variables. I suppose I somewhat can understand the categorical variables they can only be binary values. However I don't understand why the respon...
Scientific-Statistics-QA:stats:676958
{ "answer_html": "<p>In stepwise regression, scaling the response variable changes coefficient magnitudes but has no other meaningful effect. Here is an example in R:</p>\n<pre class=\"lang-r prettyprint-override\"><code>data(mtcars)\n\n# Fit the same model with and without scaling the response\nm1 &lt;- lm(mpg ...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>In stepwise regression, scaling the response variable changes coefficient magnitudes but has no other meaningful effect. Here is an example in R:</p>\n<pre class=\"lang-r prettyprint-override\"><code>data(mtcars)\n\n# Fit the same model with ...
null
[]
statistics_qa
I would like to ask a methodological question regarding Joinpoint regression. In my study, I have annual data covering six years (2018–2023). I would like to know whether six annual data points are considered sufficient and methodologically appropriate to identify a joinpoint or significant change in trend, or whet...
Scientific-Statistics-QA:stats:676961
{ "answer_html": "<p>There is no golden rule about how many time measurements are ideal, beyond issues of statistical power (which I will get to in a minute). Many analyses have only two time points to see pre-test / post-test changes. Other analyses have time series spanning years. It will depend on what your goal i...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>There is no golden rule about how many time measurements are ideal, beyond issues of statistical power (which I will get to in a minute). Many analyses have only two time points to see pre-test / post-test changes. Other analyses have time se...
{ "answer_html": "<p>If log-loss is a good choice for fitting and using the classifier has no cost, then a rule with lower log-loss is always better, no matter how small the margin.</p>\n<p>The reason that sounds wrong is likely either</p>\n<ul>\n<li>you aren't really convinced that log-loss is the right objective fu...
[]
statistics_qa
I'm working on a probabilistic forecasting project for football matches. The forecasts are 1X2 probabilities (home win, draw, away win), and I want to compare new models prospectively against a fixed Simple Elo baseline. The primary evaluation metric is log loss. Before testing any new model, I want to define w...
Scientific-Statistics-QA:stats:676981
{ "answer_html": "<p>If log-loss is a good choice for fitting and using the classifier has no cost, then a rule with lower log-loss is always better, no matter how small the margin.</p>\n<p>The reason that sounds wrong is likely either</p>\n<ul>\n<li>you aren't really convinced that log-loss is the right objective fu...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": 676983, "answers": [ { "answer_html": "<p>If log-loss is a good choice for fitting and using the classifier has no cost, then a rule with lower log-loss is always better, no matter how small the margin.</p>\n<p>The reason that sounds wrong is likely either</p>\n<ul>\n<li>you aren't...
null
[]
statistics_qa
I am analyzing an ordinal severity score (0–3) measured on individuals from two groups in year1 and year2 across three treatments in a randomized block split-plot experiment, with repeated measurements on individuals. I initially fitted a cumulative link mixed model (CLMM) Score ~ Group * Year * Treatment + (1|...
Scientific-Statistics-QA:stats:676991
{ "answer_html": "<p>You have treatment (I assume a categorical variable) as both a fixed effect and a random effect intercept. This seems the most obvious culprit for the model not converging. You have essentially duplicated the same effect in the model, which makes it hard for the model to estimate both the adjuste...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>You have treatment (I assume a categorical variable) as both a fixed effect and a random effect intercept. This seems the most obvious culprit for the model not converging. You have essentially duplicated the same effect in the model, which m...
null
[]
statistics_qa
I am doing a study on my university cats' home ranges. The tracker we are using is Damien Farine's Bluetooth Low-energy (BLE) beacons. The tags transmit a signal that can be detected by an Apple device. The phone receiving the signal captures a location from its own GPS and uploads the identity of the tag and its locat...
Scientific-Statistics-QA:stats:676997
{ "answer_html": "<p>Welcome to CV.<br />\nThis will not be an answer to your direct questions, nor will it be a particularly &quot;statistical&quot; answer, but a series of remarks, too long to fit in comments, which I hope can help, and a final remark, which unfortunately may not &quot;help&quot;...</p>\n<p>First, ...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>Welcome to CV.<br />\nThis will not be an answer to your direct questions, nor will it be a particularly &quot;statistical&quot; answer, but a series of remarks, too long to fit in comments, which I hope can help, and a final remark, which un...
null
[ { "answer_html": "<p>I agree with Christian's answer. In addition, note that to see how strong an effect is, you need to look at a measure of effect size. For regression problems, betas are such.</p>\n<p>One additional reason (perhaps Christian is including this in his (b)) is that year may have effects as a li...
statistics_qa
I am new into statistics so asking a lot of questions (je suis vraiment desoléé). I fitted a linear mixed-effects model for repeated measurements with treatment, year, baseline value, and treatment × year as fixed effects. The treatment × year interaction was significant (F(8, 481.31) = 2.14, p = 0.031), while the trea...
Scientific-Statistics-QA:stats:676999
{ "answer_html": "<p>It is important here to not think about effects in a binary manner (as if the statistical message were just that an effect is &quot;significant&quot; vs. &quot;not significant&quot;; in particular, &quot;not significant&quot; doesn't mean that an effect doesn't really exist, it just means the dat...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>It is important here to not think about effects in a binary manner (as if the statistical message were just that an effect is &quot;significant&quot; vs. &quot;not significant&quot;; in particular, &quot;not significant&quot; doesn't mean tha...
{ "answer_html": "<p><strong>Because it can be difficult or impossible to analyze numerical solutions mathematically, one would naturally resort to simulation</strong>. This amounts to selecting parameter values of interest and repeatedly creating a random sample determined by those parameters and recording the esti...
[]
statistics_qa
Suppose $X_1, \dots, X_n \overset{\text{iid}}{\sim} \text{Beta}(\alpha, \beta)$, and I want to estimate the parameters by maximum likelihood. I know that: $$\hat\mu = \frac{\hat\alpha}{\hat\alpha + \hat\beta}, \qquad \hat\sigma^2 = \frac{\hat\alpha\hat\beta}{(\hat\alpha+\hat\beta)^2(\hat\alpha+\hat\beta+1)}.$$ ...
Scientific-Statistics-QA:stats:677021
{ "answer_html": "<p><strong>Because it can be difficult or impossible to analyze numerical solutions mathematically, one would naturally resort to simulation</strong>. This amounts to selecting parameter values of interest and repeatedly creating a random sample determined by those parameters and recording the esti...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": 677036, "answers": [ { "answer_html": "<p><strong>Because it can be difficult or impossible to analyze numerical solutions mathematically, one would naturally resort to simulation</strong>. This amounts to selecting parameter values of interest and repeatedly creating a random sam...
null
[ { "answer_html": "<p>The regression coefficients for variables not in the interaction are main effects, conditional on all the other variables, including the interaction.</p>\n<p>I don't know of a book that states this, but you can either a) Do the math and show it or b) Plug in different values of X, Z, C1, an...
statistics_qa
Logistic regression: glm(Y ~ X * Z + C1 + C2, family = binomial) I know β_X and β_Z are conditional (effect when the other is 0) and shouldn't be read as main effects. Does this also apply to C1, which isn't in the interaction? Or is exp(β_C1) still the ordinary adjusted OR, with the p value testing the or...
Scientific-Statistics-QA:stats:677023
{ "answer_html": "<h3>Edit:</h3>\n<p>The original answer focused more on OLS, when the question is about the logistic case. I'm leaving the commenters' suggested citations but added on another to mine and revamped the example</p>\n<hr />\n<ul>\n<li>from Whuber: <a href=\"https://archive.org/details/dataanalysisregr00...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>The regression coefficients for variables not in the interaction are main effects, conditional on all the other variables, including the interaction.</p>\n<p>I don't know of a book that states this, but you can either a) Do the math and show ...
null
[ { "answer_html": "<p>RMSE = 3.82e-13\n=&gt; Model is getting a perfect score.\n=&gt; Red Flag</p>\n<p>You put Store is the data.\nTotal Purchases = Store + Web + Catalog\n=&gt; OLS Regressor didn't bother to learn about the customer behavior.\nIt is actually solving an eqn : Store = Total Purchases - Web - Ca...
statistics_qa
I am doing a project to understand the predictive viability of different regressors on the dependent variable(NumStorePurchases). In the feature space, we have a feature called Total Purchases- Sum of (NumStorePurchases,WebPurchases,CatalogPurchases) along with other variables Income, Kidhome, Teenhome, Recency, MntWin...
Scientific-Statistics-QA:stats:677033
{ "answer_html": "<p>Welcome to CV. It's not clear why you think there is multicollinearity. That is a relation among independent variables and has nothing to do with the DV. You've only listed one IV. However, collinearity does not affect prediction very much.</p>\n<p>One problem is surely what @RickHass said: Your ...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>Welcome to CV. It's not clear why you think there is multicollinearity. That is a relation among independent variables and has nothing to do with the DV. You've only listed one IV. However, collinearity does not affect prediction very much.</...
null
[]
statistics_qa
I want to find out the following: given a Beta distribution, for the same sample size $n$, are certain combination of $a,b$ harder to estimate than others? I designed the following simulation in R involving the Beta distribution. Define a grid of $(a, b, n)$ where $a$ goes from 0.3 to 5 in steps of 0.15, $b$ g...
Scientific-Statistics-QA:stats:677041
{ "answer_html": "<p>The thing to look up to analyse things like this is the Delta method.\nSimply put it states that functions of asymptotically normal estimators are themselves asymptotically normal and gives you a method for computing the limiting variance.</p>\n<p>One application is in the computation of the abso...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>The thing to look up to analyse things like this is the Delta method.\nSimply put it states that functions of asymptotically normal estimators are themselves asymptotically normal and gives you a method for computing the limiting variance.</p...
null
[]
statistics_qa
Suppose $$ y = g_\theta(X_1,X_2,...,X_n) + \varepsilon $$ where $X$s are extremely weak predictors and estimation of $\theta$s are dominated by error. Luckily we have other predictors $$ y = f_\varphi(Z_1,Z_2,...,Z_m) + \zeta $$ where $Z$s are very strong, but unfortunately not causal. We can assume $f$...
Scientific-Statistics-QA:stats:677045
{ "answer_html": "<p>I don't think this is possible. Consider the simplest possible case, where <span class=\"math-container\">$g_\\theta(X_1)=\\alpha+\\theta X_1$</span> and <span class=\"math-container\">$f_\\psi(Z_1)=\\psi Z_1$</span>, and the combined procedure is to estimate</p>\n<p><span class=\"math-container...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>I don't think this is possible. Consider the simplest possible case, where <span class=\"math-container\">$g_\\theta(X_1)=\\alpha+\\theta X_1$</span> and <span class=\"math-container\">$f_\\psi(Z_1)=\\psi Z_1$</span>, and the combined proced...
null
[]
statistics_qa
While trying the gap statistics for K-Means to determine the number of clusters in the Iris dataset, I have noticed that the results are random. I have tried the following: library(cluster) N <- 20 for (n in 1:N) { res <- clusGap(iris[,-5], function(x, k){kmeans(x,k,nstart=50)}, K.max=6, B=500, verbose=F, d.power...
Scientific-Statistics-QA:stats:677058
{ "answer_html": "<p>The gap statistic will indeed be the more stable the larger you choose nstart and the larger you choose B, but you seem to be aware of this, and the values you chose don't seem critically low.</p>\n<p>Other potential issues: Note that kmeans implicitly looks for clusters that are spherical and ha...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>The gap statistic will indeed be the more stable the larger you choose nstart and the larger you choose B, but you seem to be aware of this, and the values you chose don't seem critically low.</p>\n<p>Other potential issues: Note that kmeans ...
{ "answer_html": "<p>The AI-generated code manually slices <code>{DHARMa}</code>'s internal arrays, which is fragile. The cleaner approach would be to use <code>recalculateResiduals()</code> with <code>NA</code> for the other season's rows, letting DHARMa's NA handling drop them during grouping:</p>\n<pre class=\"lan...
[]
statistics_qa
I have 2 time series in abundance that I'm modeling by a 2-level factor in mgcv , by "fSeason" (wet/dry), and following advice here (https://stackoverflow.com/questions/78182559/autocorrelation-in-gam-r), I should be splitting a test for auto-correlation by each factor level. I'm just not sure how to do that. Apologies...
Scientific-Statistics-QA:stats:677062
{ "answer_html": "<p>The AI-generated code manually slices <code>{DHARMa}</code>'s internal arrays, which is fragile. The cleaner approach would be to use <code>recalculateResiduals()</code> with <code>NA</code> for the other season's rows, letting DHARMa's NA handling drop them during grouping:</p>\n<pre class=\"lan...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": 677064, "answers": [ { "answer_html": "<p>The AI-generated code manually slices <code>{DHARMa}</code>'s internal arrays, which is fragile. The cleaner approach would be to use <code>recalculateResiduals()</code> with <code>NA</code> for the other season's rows, letting DHARMa's NA ...
{ "answer_html": "<p>If you have three items <span class=\"math-container\">$Y_1,Y_2, Y_3$</span> with variance 1 each, say, and <span class=\"math-container\">$Y_2=-Y_1$</span>, <span class=\"math-container\">$Y_3$</span> independent of <span class=\"math-container\">$Y_1, Y_2$</span> so that <span class=\"math-cont...
[ { "answer_html": "<blockquote>\n<p>It should not be possible for those variance terms to be negative.</p>\n</blockquote>\n<p>Note that there is a negative sign. (marked red below)</p>\n<p><span class=\"math-container\">$${\\displaystyle \\alpha ={k \\over k-1}\\left(1\\color{red}{\\mathbf{-}}{\\sum _{i=1}^{k}\\...
statistics_qa
I'm trying to get my head around how a negative result from Cronbach's alpha is even mathematically possible. When I look at the formula, it's defined entirely in terms of variances of the individual items (the following from wikipedia): $$ {\displaystyle \alpha ={k \over k-1}\left(1-{\sum _{i=1}^{k}\sigma _{y_{i}}...
Scientific-Statistics-QA:stats:677066
{ "answer_html": "<p>If you have three items <span class=\"math-container\">$Y_1,Y_2, Y_3$</span> with variance 1 each, say, and <span class=\"math-container\">$Y_2=-Y_1$</span>, <span class=\"math-container\">$Y_3$</span> independent of <span class=\"math-container\">$Y_1, Y_2$</span> so that <span class=\"math-cont...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": 677067, "answers": [ { "answer_html": "<p>If you have three items <span class=\"math-container\">$Y_1,Y_2, Y_3$</span> with variance 1 each, say, and <span class=\"math-container\">$Y_2=-Y_1$</span>, <span class=\"math-container\">$Y_3$</span> independent of <span class=\"math-cont...
{ "answer_html": "<h4>Yes, that equivalence holds</h4>\n<p>From the definition of <span class=\"math-container\">$p$</span> we have:</p>\n<p><span class=\"math-container\">$$\\begin{align}\np\n&amp;= \\mathbb{P}(X_1&lt;X_2) + \\frac{1}{2} \\cdot \\mathbb{P}(X_1=X_2), \\\\[6pt]\n1-p\n&amp;= \\mathbb{P}(X_1&gt;X_2) + \...
[ { "answer_html": "<p>I think that my colleague was right. However, even <a href=\"https://doi.org/10.1007/978-3-030-02914-2\" rel=\"nofollow noreferrer\">Brunner's book</a> does not address this issue, so I wrote the following proof:</p>\n<p><strong>Theorem</strong>: Suppose that <span class=\"math-container\">...
statistics_qa
Suppose that $X_1$ and $X_2$ are real-valued random variables and $X_i\sim F_i$, i.e., $F_i$ is the CDF of $X_i$. Furthermore, assume the Location shift model: $$\exists \delta:\forall x:F_2(x)=F_1(x+\delta)$$ Finally, consider the probabilistic index $$p=P(X_1<X_2)+\frac{1}{2}P(X_1=X_2).$$ Is it true that $\delta = 0$...
Scientific-Statistics-QA:stats:677071
{ "answer_html": "<h4>Yes, that equivalence holds</h4>\n<p>From the definition of <span class=\"math-container\">$p$</span> we have:</p>\n<p><span class=\"math-container\">$$\\begin{align}\np\n&amp;= \\mathbb{P}(X_1&lt;X_2) + \\frac{1}{2} \\cdot \\mathbb{P}(X_1=X_2), \\\\[6pt]\n1-p\n&amp;= \\mathbb{P}(X_1&gt;X_2) + \...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": 677074, "answers": [ { "answer_html": "<p>I think that my colleague was right. However, even <a href=\"https://doi.org/10.1007/978-3-030-02914-2\" rel=\"nofollow noreferrer\">Brunner's book</a> does not address this issue, so I wrote the following proof:</p>\n<p><strong>Theorem</st...
{ "answer_html": "<p>I see what's going on here. When <code>refit = F</code> DHARMa uses raw residuals and your raw response values are kind of crazy. 90% are zero, the second biggest number is 7 and then it maxes out at <em><strong>18</strong></em>:</p>\n<pre><code># library(tidyverse)\n&gt; shiny_toad %&gt;% group...
[]
statistics_qa
Are long tails in a fitted vs. simulated residuals plot from DHARMa a sign of over-fitting (or any other issues)? Do they make the test for dispersion overly optimistic (p-value > 0.05)? I'm not sure if this is a problem simply because it's not significant, but are there ways to model theta in mgcv? Is it necessary her...
Scientific-Statistics-QA:stats:677079
{ "answer_html": "<p>I see what's going on here. When <code>refit = F</code> DHARMa uses raw residuals and your raw response values are kind of crazy. 90% are zero, the second biggest number is 7 and then it maxes out at <em><strong>18</strong></em>:</p>\n<pre><code># library(tidyverse)\n&gt; shiny_toad %&gt;% group...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": 677089, "answers": [ { "answer_html": "<p>I see what's going on here. When <code>refit = F</code> DHARMa uses raw residuals and your raw response values are kind of crazy. 90% are zero, the second biggest number is 7 and then it maxes out at <em><strong>18</strong></em>:</p>\n<pre>...
null
[]
statistics_qa
I'm a student writing a research proposal using data from a longitudinal larger project. I have childhood abuse (IV) measured once in 2022, intimacy aversion (DV) measured once in 2026, and partner's responsiveness (moderator?) measured longitudinally since 2019-2026. Can I run a longitudinal moderation to examine ...
Scientific-Statistics-QA:stats:677083
{ "answer_html": "<p>I don’t think the repeated measures of responsiveness need to be kept that way for this particular design. If your dependent variable was also measured from 2019-2026, then it would make more sense to have a time-dependent covariate. But you don’t have a true longitudinal model since your DV is o...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>I don’t think the repeated measures of responsiveness need to be kept that way for this particular design. If your dependent variable was also measured from 2019-2026, then it would make more sense to have a time-dependent covariate. But you ...
null
[]
statistics_qa
I have records of student grades for some university courses. I want to investigate whether any of these courses award significantly different proportions of the best (A) or worst (F) grades, compared to the other courses. I have individual student data, but some aggregated dummy data would be: modules <- c( ...
Scientific-Statistics-QA:stats:677095
{ "answer_html": "<p>Welcome to CV!</p>\n<p>So you want to compare 2 proportions; e.g. “<em>Is the proportion of students who receive an A grade in MA101 the same as the proportion of students who receive an A grade in all other MA courses?</em>”.</p>\n<p>Well, the “canonical” way to compare 2 proportions is via a <a...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>Welcome to CV!</p>\n<p>So you want to compare 2 proportions; e.g. “<em>Is the proportion of students who receive an A grade in MA101 the same as the proportion of students who receive an A grade in all other MA courses?</em>”.</p>\n<p>Well, t...
null
[]
statistics_qa
I'm a PhD student and I've been working on the same thing for some time now and feeling just as confused and lost as I did when I began. I need some help with some statistical modelling that I am doing and cannot find straight answers (or when I do, these are immediately contradicted by my supervisor or someone else). ...
Scientific-Statistics-QA:stats:677101
{ "answer_html": "<p>I'll start by addressing the questions, then finish with some thoughts based on the added study details.</p>\n<blockquote>\n<p>what is the minimum sample size I would need ...?</p>\n</blockquote>\n<p>Rules of thumb about the event/coefficient ratio help avoid overfitting. Yes, you can get a model...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>I'll start by addressing the questions, then finish with some thoughts based on the added study details.</p>\n<blockquote>\n<p>what is the minimum sample size I would need ...?</p>\n</blockquote>\n<p>Rules of thumb about the event/coefficient...
null
[ { "answer_html": "<p>Everything is dependent on your second C. Even random things like rolling dice (someone has to roll the dice, if there are no humans, no dice) so that seems a bit overdone.</p>\n<p>I guess you could argue that every pair of variables is only conditionally independent, and just seek conditio...
statistics_qa
I'm trying to come up with relatable examples to teach the concept of independence/orthogonality of two random variables $A$ and $B$. But my Bayes-Net-rotted brain keeps coming up with scenarios of how the two quantities/RVs could possibly not be independent (usually because of a common factor $C$). Some ANTI-examp...
Scientific-Statistics-QA:stats:677110
{ "answer_html": "<p>What seems to be tripping you up here is a terminology issue. When scientists try to give names to new abstract concepts, they often, and in all disciplines (not just statistics and probability), hijack words from the common vocabulary, as inventing a new name for every new concept would be impra...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>Everything is dependent on your second C. Even random things like rolling dice (someone has to roll the dice, if there are no humans, no dice) so that seems a bit overdone.</p>\n<p>I guess you could argue that every pair of variables is only ...
null
[]
statistics_qa
I have been working on analysing ecological data for different countries (within each country there are two groups (grazed/ungrazed) and plots (5 per group) which contain subplots (pseudoreplicates) My sample size: 9 countries with each 2 groups of 5 plots with 4 subplots, so 20 measurepoints per group, 40 measure ...
Scientific-Statistics-QA:stats:677129
{ "answer_html": "<p>Putting together the comments:</p>\n<blockquote>\n<p>Is that p-value enough to fit the Linear mixed model anyway?</p>\n</blockquote>\n<p>Don't rely on such <em>p</em>-values for making decisions about the model to use. As @mastropi notes, with large data sets it's possible to get &quot;statistica...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>Putting together the comments:</p>\n<blockquote>\n<p>Is that p-value enough to fit the Linear mixed model anyway?</p>\n</blockquote>\n<p>Don't rely on such <em>p</em>-values for making decisions about the model to use. As @mastropi notes, wit...
{ "answer_html": "<p>You are using R version 4.6.1. Well, since R 4.6.0, from <a href=\"https://cran.r-project.org/doc/manuals/r-release/NEWS.html\" rel=\"noreferrer\">R News</a>:</p>\n<blockquote>\n<p>wilcox.test() can now perform exact (conditional) inference in case\nof ties. Based on contributions by Torsten Hoth...
[ { "answer_html": "<p>Can you provide a <a href=\"https://reprex.tidyverse.org/\" rel=\"nofollow noreferrer\"><code>{reprex}</code></a>? I'm getting a warning when I run your code</p>\n<pre class=\"lang-r prettyprint-override\"><code>df &lt;- structure(list(PreScore = c(16, 23, 17, 24, 22, 27, 20, 18, 21, \n ...
statistics_qa
I ran wilcox.test(df$PostScore, df$PreScore, conf.int = TRUE, paired=TRUE, exact = TRUE) on the following data set: df <- structure(list(PreScore = c(16, 23, 17, 24, 22, 27, 20, 18, 21, 26, 25, 23, 18), PostScore = c(20, 31, 17, 31, 32, 31, 31, 30, 30, 32, 30, 31, 17)), row.names = c(NA, -13L), class = c("tbl_df"...
Scientific-Statistics-QA:stats:677135
{ "answer_html": "<p>You are using R version 4.6.1. Well, since R 4.6.0, from <a href=\"https://cran.r-project.org/doc/manuals/r-release/NEWS.html\" rel=\"noreferrer\">R News</a>:</p>\n<blockquote>\n<p>wilcox.test() can now perform exact (conditional) inference in case\nof ties. Based on contributions by Torsten Hoth...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": 677139, "answers": [ { "answer_html": "<p>Can you provide a <a href=\"https://reprex.tidyverse.org/\" rel=\"nofollow noreferrer\"><code>{reprex}</code></a>? I'm getting a warning when I run your code</p>\n<pre class=\"lang-r prettyprint-override\"><code>df &lt;- structure(list(Pre...
null
[ { "answer_html": "<p>Amplifying @Glen_b's answer and @whuber's comment: here's the plot of the basis elements (for <span class=\"math-container\">$-3 \\lt x \\lt 6$</span>), with the ones that are non-zero at <span class=\"math-container\">$x=1.5$</span> highlighted:</p>\n<p><a href=\"https://i.sstatic.net/7o5j...
statistics_qa
I've been studying how splines::bs() builds its basis matrix, and I'm trying to fully understand why the returned matrix has so many zero entries. The worked example in Ken Koon Wong's blog post "Understanding Basis Spline (B-spline) By Working Through Cox-deBoor Algorithm", reproduced below: library(splines) x...
Scientific-Statistics-QA:stats:677137
{ "answer_html": "<p>B-splines are designed to be local* (only nearby x-values affect the relevant predictor, and hence the fitted response).</p>\n<p>Consequently the predictor columns will be zero out of the local interval (described in terms of the nearby few knots), and hence for small such intervals will be mostl...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>B-splines are designed to be local* (only nearby x-values affect the relevant predictor, and hence the fitted response).</p>\n<p>Consequently the predictor columns will be zero out of the local interval (described in terms of the nearby few k...
null
[ { "answer_html": "<p>The inflated type-1 errors in that example are due to the <span class=\"math-container\">$p$</span>-values being calculated based on asymptotic (<span class=\"math-container\">$Z$</span>-score) Wald statistics, rather than using some form of finite-size 'denominator degrees of freedom' corr...
statistics_qa
I need a mixed effects beta regression. I have used glmmTMB with beta distribution, logit link, to assess the relation between hit scores and threshold of a few observers repeated across three backgrounds (a fourth background was used, but it presented the stimuli differently, so I am running a betareg on it instead). ...
Scientific-Statistics-QA:stats:677147
{ "answer_html": "<p>Except for the comparison between <code>mod_disp_constant</code> and <code>mod_disp_background</code>, the <em>p</em>-values you show are based on Wald tests, which hold asymptotically in the limit of large numbers of cases. If you have only &quot;a few observers,&quot; I'd first worry about that...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>Except for the comparison between <code>mod_disp_constant</code> and <code>mod_disp_background</code>, the <em>p</em>-values you show are based on Wald tests, which hold asymptotically in the limit of large numbers of cases. If you have only ...
null
[ { "answer_html": "<p>I presume that you are interested in comparing medians of paired data, and that somehow you felt that your data was not “normal enough” to warrant a paired t-test? Hence your choice to use a Wilcoxon-signed-Rank test (WSRt).</p>\n<p>The first issue is that the WSRt is not a test of the medi...
statistics_qa
We are trying to ensure that we satisfy the assumptions for Wilcoxon. We have the 15 healthy subjects doing basic movements using sensors and markers, with and without compensation i.e. mimicking unhealthy subjects. For example, they do a movement A (shoulder adduction/abduction) with and without any hiking of the sho...
Scientific-Statistics-QA:stats:677151
{ "answer_html": "<p>When we speak of the assumptions of a test, people typically mean the assumptions used to derive the null distribution of the test statistic. If the relevant assumptions hold, that should lead to rejection rates which don't exceed the desired significance level when <span class=\"math-container\"...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>I presume that you are interested in comparing medians of paired data, and that somehow you felt that your data was not “normal enough” to warrant a paired t-test? Hence your choice to use a Wilcoxon-signed-Rank test (WSRt).</p>\n<p>The first...
null
[ { "answer_html": "<p>I do think you have way more than 3 replicates. Each cell you observed is an independent observation: yes, they may come from the same preparation/flask/dish/??, but they are different cells, which while prepared under the same conditions, are nevertheless different and independent observat...
statistics_qa
I have performed experiments where I am looking at how treating a fungus with an antifungal drug alters the binding of antibodies through fluorescent microscopy. I captured 4-6 images per conditions, in biological triplicate reps (and thus my n = 3), and performed single-cell analysis to quantify the fluorescence inten...
Scientific-Statistics-QA:stats:677168
{ "answer_html": "<p>(i) Yes, I think that you are over-thinking it. If you plot the data with a logarithmic scale for the fluorescence density you will very likely find that the does-response relationship is sufficiently clear that no statistical analysis is going to be needed. If you want to test the hypothesis tha...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>(i) Yes, I think that you are over-thinking it. If you plot the data with a logarithmic scale for the fluorescence density you will very likely find that the does-response relationship is sufficiently clear that no statistical analysis is goi...
null
[ { "answer_html": "<p>You should try one or more kinds of regularizers: e.g. Ridge Regression (L2 penalty on the coefficients) or Lasso Regression (L1 penalties on the coefficients); or some of both together. Playing with the regularization penalties essentially converts your question to a model selection probl...
statistics_qa
In my intro to biostats classes I was taught that one shouldn’t adjust for more than 10 variables in a regression model because it would overfit the data. However, what if you were working with a dataset that has for instance 50 variables and around 40 of them are variables that you would adjust for, how would you prev...
Scientific-Statistics-QA:stats:677169
{ "answer_html": "<p>First: That is much too simple a rule. A better rule of thumb is one regressor for every ten observations, so if you have a really big data set, you could use more variables without overfitting.</p>\n<p>Second, it does matter whether your outcome is categorical. For categorical outcomes, a common...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>First: That is much too simple a rule. A better rule of thumb is one regressor for every ten observations, so if you have a really big data set, you could use more variables without overfitting.</p>\n<p>Second, it does matter whether your out...
null
[]
statistics_qa
Suppose we have a measurement (a "response") as a vector $Y$, that is, a $Y_i$ for $i=1,2,3,...n$ and an estimator of that measurement (a "predictor") $X$. Then one can define a proportional (or relative) error as $\frac{X-Y}{Y}$, which is the most commonly used definition of proportional error. This assumes tha...
Scientific-Statistics-QA:stats:677171
{ "answer_html": "<p>Not sure whether these are <em>worthy of mention</em>, but here goes.</p>\n<p>In the forecasting community, these are typically used with absolute values. (Usually one assumes that the denominator is positive. If the denominator can become zero, interesting gyrations by the error calculator ensue...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>Not sure whether these are <em>worthy of mention</em>, but here goes.</p>\n<p>In the forecasting community, these are typically used with absolute values. (Usually one assumes that the denominator is positive. If the denominator can become ze...
null
[]
statistics_qa
I am a beginner in Ordinal Models looking for some help. I am doing a 3-factor model, primarily interested in the effect of the 3 way interaction on the results. I have to say that I come from making Linear mixed effect models and initially assumed it would largerly transfer. However, I do not know how to report the re...
Scientific-Statistics-QA:stats:677183
{ "answer_html": "<p>Ordinal models pose (at least) two difficulties in interpretation beyond standard linear models.</p>\n<p>First, the coefficients are in <em>log-odds</em> scales, which can be hard to think about even in logistic regression. A log-odds coefficient in ordinal regression is for the change of one out...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>Ordinal models pose (at least) two difficulties in interpretation beyond standard linear models.</p>\n<p>First, the coefficients are in <em>log-odds</em> scales, which can be hard to think about even in logistic regression. A log-odds coeffic...
null
[ { "answer_html": "<p>Ask them, if they are more impressed if I forecast a slow-down in sales for the next year (in orange) based on what I know (the blue dots) in scenario A or B.\n<a href=\"https://i.sstatic.net/Z4d1Pytm.png\" rel=\"noreferrer\"><img src=\"https://i.sstatic.net/Z4d1Pytm.png\" alt=\"Two scenari...
statistics_qa
I work in a field (hydrology) where many practitioners (and others) treat time series as though they were a series of random variables - that is, they ignore the structure in the series and have little understanding of why it is important. Of course I know why there is a difference and what the consequences are, but mo...
Scientific-Statistics-QA:stats:677186
{ "answer_html": "<p>Some of the comments could be answers, and are good answers. But, if you want completely non-technical, I'd use an example.</p>\n<p>Suppose you go on a diet to lose weight. You weigh yourself every day and get values say (in pounds):</p>\n<p>160 159 160 159 158 157 158 157 156</p>\n<p>Looks like ...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>Some of the comments could be answers, and are good answers. But, if you want completely non-technical, I'd use an example.</p>\n<p>Suppose you go on a diet to lose weight. You weigh yourself every day and get values say (in pounds):</p>\n<p>...
{ "answer_html": "<p>I don't think you can recover the bivariate correlation <span class=\"math-container\">$r(y,x_1)$</span> from the unstandardized coefficients, unless I am missing something.</p>\n<p>We can get the standardized <span class=\"math-container\">$\\beta$</span>s:</p>\n<p><span class=\"math-container\"...
[ { "answer_html": "<p>First of all, there should be an assortment of threads on this site that can help you with partial / semipartial correlation coefficients vis a vis multiple regression. This might be a good place to start: <a href=\"https://stats.stackexchange.com/a/76819/97844\">https://stats.stackexchange...
statistics_qa
I am trying to derive (or at least estimate) the correlation coefficient from a paper that only reports the multivariate betas. For example I have the equation $y \sim b_1x_1 + b_2x_2$. I would like to know the correlation coefficient $r$ between $y$ and $x_1$. Unfortunately the paper does not report the correl...
Scientific-Statistics-QA:stats:677193
{ "answer_html": "<p>I don't think you can recover the bivariate correlation <span class=\"math-container\">$r(y,x_1)$</span> from the unstandardized coefficients, unless I am missing something.</p>\n<p>We can get the standardized <span class=\"math-container\">$\\beta$</span>s:</p>\n<p><span class=\"math-container\"...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": 677196, "answers": [ { "answer_html": "<p>First of all, there should be an assortment of threads on this site that can help you with partial / semipartial correlation coefficients vis a vis multiple regression. This might be a good place to start: <a href=\"https://stats.stackexcha...
null
[ { "answer_html": "<p>The &quot;classic&quot; way to compare the variability of 2 sets of measurements taken on different scales is to use the CV (Coefficient of Variation (Variability), which is nothing more than <span class=\"math-container\">$\\frac {sd} {\\bar x}$</span>). There are even statistical tests fo...
statistics_qa
I am trying to compare the standard deviations of two samples which measure patient satisfaction on different scales. Scale 1 has a potential range from 0 to 100. Scale 2 has a potential range from 0 to 36. If SD1 = A and SD2 = B, does it make sense to compare them by dividing by the potential range? Ie A / 100 vs ...
Scientific-Statistics-QA:stats:677194
{ "answer_html": "<p>If the ratio of the means is not equal to about 100:36, then the ratings are probably not simply different scalings of the same underlying distribution. And if the ratio of means is the same as 100:36, you probably wouldn't be asking, and anyway you still can't be sure of much else. You need to ...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>If the ratio of the means is not equal to about 100:36, then the ratings are probably not simply different scalings of the same underlying distribution. And if the ratio of means is the same as 100:36, you probably wouldn't be asking, and any...
null
[]
statistics_qa
I’m currently using a mixed-effects model to compare four different cell culture groups and assess whether characteristics such as firing rate differ between groups over time. The main complication is that the groups have very different observation periods. Three groups were recorded every few days for approximatel...
Scientific-Statistics-QA:stats:677217
{ "answer_html": "<p>If you expect the trajectories to differ over time among the 4 groups, include in your model an <em>interaction</em> term between days <em>in vitro</em> (DIV) and time. Without an interaction, your model would force all groups to have the same trajectory over time, which doesn't seem to comport w...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>If you expect the trajectories to differ over time among the 4 groups, include in your model an <em>interaction</em> term between days <em>in vitro</em> (DIV) and time. Without an interaction, your model would force all groups to have the sam...
{ "answer_html": "<p>No you can not estimate the <span class=\"math-container\">$\\theta_i$</span> variance for <span class=\"math-container\">$k = 1$</span>. The relevant concept is the beta-binomial distribution(<a href=\"https://en.wikipedia.org/wiki/Beta-binomial_distribution\" rel=\"nofollow noreferrer\">https:/...
[ { "answer_html": "<p>After thinking about this, I think I know how to do this. When <span class=\"math-container\">$k=1$</span>, it is possible to estimate the population mean but it is impossible to estimate the variance of the population.</p>\n<p>However, it is possible to estimate the variance of the mean es...
statistics_qa
Here is a hierarchical data generating process: (Population) Layer 1: $$\theta_i \overset{\text{iid}}{\sim} \text{Beta}(\alpha,\ \beta), \qquad i = 1, \dots, n$$ (Individual) Layer 2: $$y_{ij} \mid \theta_i \overset{\text{iid}}{\sim} \text{Bernoulli}(\theta_i), \qquad j = 1, \dots, k$$ There are two ...
Scientific-Statistics-QA:stats:677226
{ "answer_html": "<p>No you can not estimate the <span class=\"math-container\">$\\theta_i$</span> variance for <span class=\"math-container\">$k = 1$</span>. The relevant concept is the beta-binomial distribution(<a href=\"https://en.wikipedia.org/wiki/Beta-binomial_distribution\" rel=\"nofollow noreferrer\">https:/...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": 677231, "answers": [ { "answer_html": "<p>No you can not estimate the <span class=\"math-container\">$\\theta_i$</span> variance for <span class=\"math-container\">$k = 1$</span>. The relevant concept is the beta-binomial distribution(<a href=\"https://en.wikipedia.org/wiki/Beta-bi...
null
[]
statistics_qa
I am running an experiment in which 1 participant is randomized multiple times to different treatments, and we are assessing the effect of treatment on blood pressure (BP). The data collection protocol is as follows: • BP is measured every day at two time points: 12:00 and 20:00, for approximately 3 months. ...
Scientific-Statistics-QA:stats:677242
{ "answer_html": "<p>I would treat the 2 observations that are only 1 minute apart as technical replicates that are unlikely to differ biologically. Average them and the associated measurement times instead of using them separately. That removes your concern about the <code>corCAR1</code> correlation structure.</p>\n...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>I would treat the 2 observations that are only 1 minute apart as technical replicates that are unlikely to differ biologically. Average them and the associated measurement times instead of using them separately. That removes your concern abou...
null
[]
statistics_qa
I have been tasked with understanding why normalized residuals between R and Stata are different when using mixed models (i.e. the nlme package in R). What I have found is that the residuals are both theoretically computed the same way: norm_residuals = sigma^(-1) * Lambda^(-1/2) * residuals This is based on th...
Scientific-Statistics-QA:stats:677243
{ "answer_html": "<p>Upon further testing, it seems like all methods of normalizing the residuals will approximate uncorrelated standard normal distributions in large samples. In smaller samples, the difference between methods can look quite stark, but that does not make any of the methods less valid than any other. ...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>Upon further testing, it seems like all methods of normalizing the residuals will approximate uncorrelated standard normal distributions in large samples. In smaller samples, the difference between methods can look quite stark, but that does ...
{ "answer_html": "<h3>UPDATE</h3>\n<p>I realized I didn't really address the crux of your question, which seems to be about fitting a logistic regression to obtain predicted probabilities and using those predictions to construct an ROC curve. Whatever means you use to create predictions / classifications is really up...
[]
statistics_qa
I'm writing my medical thesis and I want to test our research group's hypothesis that the width of the foramen magnum can predict response or non-response to a certain surgical intervention in a neurological disease. The sample is however quite small (only 23 patients) so any biological signal whould have to be quite ...
Scientific-Statistics-QA:stats:677262
{ "answer_html": "<h3>UPDATE</h3>\n<p>I realized I didn't really address the crux of your question, which seems to be about fitting a logistic regression to obtain predicted probabilities and using those predictions to construct an ROC curve. Whatever means you use to create predictions / classifications is really up...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": 677263, "answers": [ { "answer_html": "<h3>UPDATE</h3>\n<p>I realized I didn't really address the crux of your question, which seems to be about fitting a logistic regression to obtain predicted probabilities and using those predictions to construct an ROC curve. Whatever means you...
{ "answer_html": "<p>I think you can find the mean and variance of <span class=\"math-container\">$\\bar y$</span> analytically. Clearly <span class=\"math-container\">$\\mathbb E[\\bar y]=\\frac{\\alpha}{\\alpha+\\beta}$</span> and, using the law of total variance <span class=\"math-container\">$$\\operatorname{Var...
[ { "answer_html": "<p>I would not go through mean and variance here. Your model for data generation is based on <span class=\"math-container\">$\\alpha$</span> and <span class=\"math-container\">$\\beta$</span> right? So why not work with them? Your population variable <span class=\"math-container\">$\\theta$</s...
statistics_qa
Here is a hierarchical data generating process (DGP): (Population) Layer 1: $$\theta_i \overset{\text{iid}}{\sim} \text{Beta}(\alpha,\ \beta), \qquad i = 1, \dots, n$$ (Individual) Layer 2: $$y_{ij} \mid \theta_i \overset{\text{iid}}{\sim} \text{Bernoulli}(\theta_i), \qquad j = 1, \dots, k$$ $$\mu = ...
Scientific-Statistics-QA:stats:677266
{ "answer_html": "<p>I think you can find the mean and variance of <span class=\"math-container\">$\\bar y$</span> analytically. Clearly <span class=\"math-container\">$\\mathbb E[\\bar y]=\\frac{\\alpha}{\\alpha+\\beta}$</span> and, using the law of total variance <span class=\"math-container\">$$\\operatorname{Var...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": 677268, "answers": [ { "answer_html": "<p>I would not go through mean and variance here. Your model for data generation is based on <span class=\"math-container\">$\\alpha$</span> and <span class=\"math-container\">$\\beta$</span> right? So why not work with them? Your population v...
null
[]
statistics_qa
Why are the holding times of a Markov chain assumed to follow a geometric distribution? Is this actually an assumption, or does it follow from the Markov property?
Scientific-Statistics-QA:stats:677269
{ "answer_html": "<p>It follows from the Markov property. The conditional distribution of the next state given the present state does not depend on the past, i.e. does not depend on the state at any earlier time. Thus the probability of remaining in the same state that the process is now in, at the next moment in tim...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>It follows from the Markov property. The conditional distribution of the next state given the present state does not depend on the past, i.e. does not depend on the state at any earlier time. Thus the probability of remaining in the same stat...
null
[ { "answer_html": "<p>There's a number of reasons and plus points for a fixed effects model. Firstly, purely didactically for teaching purpsoes, it's mathematically straightforward and it sometimes is easiest to build your intuition starting simple before adding further complexity. However, there's also good poi...
statistics_qa
Reading the texts on this it really starts to feel like the common-effects model is some historical artifact and for some reason it is seen as a baseline that you must mentally argue against. Really to me it is starting to feel like a completely inferior model. I know roughly of the different arguments for and against ...
Scientific-Statistics-QA:stats:677279
{ "answer_html": "<p>If the true effects are indeed homogeneous, then you will lose some efficiency by using a random-effects model, because tau^2 will be estimated to be larger than 0 in roughly 50% of the cases (hopefully not by much, but still). Of course, using the model a priori then makes a rather strong assump...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>If the true effects are indeed homogeneous, then you will lose some efficiency by using a random-effects model, because tau^2 will be estimated to be larger than 0 in roughly 50% of the cases (hopefully not by much, but still). Of course, usi...
{ "answer_html": "<p>I'm not sure how much this helps (actually I don't know your course and what exactly it was there that you didn't understand), but one key thing to understand about PCA is that PCA conceptualises &quot;information&quot; as variance, i.e., it tries to find the linear combination of variables that ...
[]
statistics_qa
I have taken a course in PCA and it couldn't be more vague. They used terms like lower dimension that preserves the most information etc. But all that terminology gave me absolutely no idea about what's going on. Like what is the formal problem and what hypotheses are assumed to solve it. I have been looking in...
Scientific-Statistics-QA:stats:677280
{ "answer_html": "<p>I'm not sure how much this helps (actually I don't know your course and what exactly it was there that you didn't understand), but one key thing to understand about PCA is that PCA conceptualises &quot;information&quot; as variance, i.e., it tries to find the linear combination of variables that ...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": 677284, "answers": [ { "answer_html": "<p>I'm not sure how much this helps (actually I don't know your course and what exactly it was there that you didn't understand), but one key thing to understand about PCA is that PCA conceptualises &quot;information&quot; as variance, i.e., i...
null
[]
statistics_qa
I'm trying to decide which GLMM distribution is best for my data. I want to determine how plant_trait_a and plant_trait_b affect beetle seed damage. There were two levels of plant_trait_a and two levels of plant_trait_b that made up 4 treatment groups. We selected 20 plant_genotypes for our field experiment, ea...
Scientific-Statistics-QA:stats:677298
{ "answer_html": "<p>I think a <em>non</em> Z-I beta-binomial looks perfectly adequate, and I personally would push back against your stats consultant — in particular, the Beta distribution (which assumes a continuous distribution of outcomes between 0 and 1) is the wrong direction to go with data that have a known i...
accepted; otherwise maximum score >= 1, tie lowest ID; no correctness label
train
{ "accepted_answer_id": null, "answers": [ { "answer_html": "<p>I think a <em>non</em> Z-I beta-binomial looks perfectly adequate, and I personally would push back against your stats consultant — in particular, the Beta distribution (which assumes a continuous distribution of outcomes between 0 and 1) is ...