instruction stringlengths 9 38.7k |
|---|
I'm trying to work out how the posterior of a Poisson distribution is derived to enable me to detect changepoints. I'm trying to follow the example here.
$Y_i$ (events per year) is modelled using two Poisson distributions (one before, one after the changepoint), with lambda given for these distributions by gamma distri... |
I am currently working on a Bayesian inference problem and would appreciate some help on computing the posterior distribution of a hyperparameter within a specific multivariate normal model. Below, I provide a simplified outline of my problem and the challenges I'm encountering.
Data and Distribution: I have a dataset... |
Consider the random variables $X$ and $Y$ with joint distribution given by
We know that the for the random vector $X=(X_{1}, \dots, X_{n})$, for $j \in \{1, \dots, n \}$
$$P(X_{j}=x)=\sum_{x_{1}}\sum_{x_{2}} \cdots \sum_{x_{n}}P(X_{1}=x_{1}, \dots, X_{n}=x_{n})$$
For the example we have that the marginal of $X$ and $... |
I am curious about the sign of $corr(y, \hat{y})$ with and without intercept.
I recall reading that when there is an intercept, the correlation is $\geq 0$, but in the case without intercept, the correlation can also be negative. From a geometric perspective, I don't see how this can be.
Regardless of whether there is ... |
I have an outcome variable that measures "community perception," with responses ranging from $0$ to $10$. For instance, the outcome variable might represent answers to the question: "In your neighborhood, out of every $10$ people, how many own a car?" I also have three independent variables, which are binary and can ta... |
Apologies for the ambiguous description as I can't remember exactly it's called or the exact details. When I think about OLS, I typically think about regressing $y$ on top of the predictors simultaneously.
The other approach that I am alluding to is, IIRC, where you do some kind of partial regression on a subset of the... |
I'm a little confused regarding a mathematical definition (Cesàro summation) and its application to stationary time series. First, consider the definition given by Wikipedia, adapting to autovariances. According to this definition, the Cesàro sum of the autocovariances would be given by: let $(\gamma_\ell)_{\ell=1}^{\i... |
I'm running mixed effects models in R using Treatment and Species as crossed predictors and Group as a random effect using the nlme package, like so:
model <- lme(growth_rate ~ Treatment * Species, random = ~1|Group, data = data, method="REML")
I wanted to run a post-hoc test to perform pairwise comparisons, i.e. comp... |
The random effects model is stated as:
$Y_{ij} = \mu + \tau_i+\epsilon_{ij}$
Where,
$\tau_i \overset{iid}{\sim} \mathcal{N} (0, \sigma^2_{\mu} ) \\ $
$\epsilon_{ij} \overset{iid}{\sim} \mathcal{N} (0, \sigma_{\epsilon}^2 )$
Further, we know the variance decomposes into components:
$ \sigma^2_{Y} = V (\mu_i + \epsilon_{... |
Consider two random variables $X,Y$. We say the joint distribution of $P(X,Y)$ is complete w.r.t. $X$ if the following condition holds:
For all $y$, $E\{g(x)|y\}=0$ almost everywhere if and only $g(x)=0$ almost everywhere.
A structural causal model (scm) over $(X,Y)$ is:
$X \leftarrow f(Y,U)$, where $f$ is the struc... |
I'm trying to make linear models in R, using the practicing datasets (sim1, sim2, sim3, sim4). So I used this code,
mod1 <- lm(y ~ x1 + x2, data = sim3)
mod1
And it printed this one.
Coefficients:
(Intercept) x1 x21 x22
1.8717 -0.1967 2.8878 4.8057
x23
... |
I am working on a problem for understanding the impact of a customer acquisition strategy by a company. Here, the company has run a few strategies for acquiring customers, which are online ads, billboards, referrals, organic. I am trying to estimate the ATE of the referral strategy, considering organic strategy as the ... |
I was learning the mechanics of omitted variable bias in the context of linear regression. I built the following simple model with R:
x_female = runif(100, 1.1, 1.4)
x_male = runif(100, 2.8, 3.1)
y_female = -5 + 5 * x_female + rnorm(100, 0, 0.3)
y_male = -10 + 5 * x_male + rnorm(100, 0, 0.3)
data = data.frame(edu = c(x... |
I am training a CNN model which is used for a multi-label classification task. My training data set has 5000 data points, every data point is a 100000 long 1-D array. So the shape of my training set is (5000,100000).
The CNN model. The picture shows the structure of my CNN model. The problem I have encountered right no... |
Medicine has many examples where some score is derived from other clinical measures. Examples include BMI (which is a function of weight and height) and MELD (which appears to be based on blood tests).
Often, researchers will want to describe the relationship between these scores and some clinical outcome. Regression... |
I'm looking to make research on an algorithm that finds the maximum increase (gradient) on a 2D-landscape using the maximum values found on circles.
The algorithm looks at the values on each circle to find the maximum value on it. Then it uses this maximum as the center of the next circle to do the same… in short:
Sta... |
I have been using OpenAI's ChatGPT 4 for some time now, for a variety of medical, educational, scholarly, and statistical tasks.
I find it very informative, detailed, and flexible, and it can provide meaningful guidance on data analysis. Furthermore, it can perform some statistical analyses itself. (see for instance t... |
Let a population $C$ consist of $N$ values $c_1, c_2, \cdots, c_N$, with $c_i\in \{0,1\}$. Let $X_1, X_2, \cdots, X_n$ denote a random sample without replacement from $C$ and let $Y_1, Y_2, \cdots, Y_n$ denote a random sample with replacement from $C$. The random variables $Y_1, \cdots, Y_n$ are independent and identic... |
Clustering vs EFA which is a good tool for structural equation modeling to identify the influenced variables also to support the hypothesis?
|
I am working on a classification problem where I my machine learning model generate probabilities on two given inputs. One of this inputs will always have a ground truth of being positive and the other negative, the order is unknown. My prediction should be whether the first input is positive or negative.
I am trying t... |
In my stats course we derived Wald confidence intervals using properties such as asymptotic normality of the maximum likelihood estimator. This asymptotic normality relies on a statistical model being sufficiently 'regular'. We also defined 'regular' using a bunch of easily forgettable conditions.
I am trying to do sim... |
I need to convince colleagues that variable selection on the same data you use for inference is a bad idea. I know of some general references on the problems with model selection, listed below -- but none is really appropriate for people with limited time and no mathematical background.
I'm looking for a short, punchy ... |
My undergrad thesis has something to do with the relationship between emissions, mitigation-related official development assistance, and governance variables in chosen ASEAN countries. As such, my (unbalanced) dataset involves 9 countries and around 10-14 years worth of data according to estimated models. My variables ... |
The terminology "inference" and "prediction" seems to have different usage across numerous sources and at my current work.
In some places, it seems "inference" refers to the training step, i.e., inferring the properties of a model (e.g., beta coefficients in least squares) from the input (training) dataset, and then "p... |
Situation: We are assessing several metrices to compare two distributions (e.g. ttest-pvalue, Wasserstein distance, binary classification metrices like ROC-AUC, etc.). One criteria should be the "robustness" of a metric against population changes.
Solution approach: Calculate a confidence interval using bootstrapping. ... |
Consider a one-sample two-sided t-test, i.e. $X_1, \ldots, X_n$ are iid. $N(\mu, \sigma)$ random variables and we want to test $H_0\colon \mu=0$ versus $H_A\colon \mu\neq0$.
The $t$-statistic is compared against the tails of a t-distribution with $n-1$ degrees of freedom, to result in a $p$-value. For the expected val... |
I have a set of tests and a population of agents whose ability I want to assess. Each agent has taken some of the tests. The agents have no memory of the tests they have taken, so each time an agent takes a test it can be treated as an independent sample. The tests' outcomes are binary: zero or one.
The tests and the a... |
I am trying to implement Nestrov's acceleration gradient descent for SVM. The objective function I need to minimize is $$\frac{1}{2}\lVert Au-Bv\rVert_2^2$$ with constraints $\sum_{i}u_i=\sum_{j}v_j=1$ and elements of both $u$ and $v$ are non-negative. The matrix $A$ contains observations that have the label +1 and mat... |
I’m reaching the limits of my statistical understanding here when it comes to model specification in BRMS. I’m a PhD student researching how different drivers of species distribution (generalised into three categories, Biotic, Environmental and Space) change across scale (e.g. from 1km up to 10km).To do this I have run... |
EDIT 2
In reply to one of the commenters, here is the 2x2x2 table. Y = 1 : Y = 0.
X = 1
X = 0
M = 1
9 : 73
3 : 29
M = 0
34 : 245
1,214 : 21,204
EDIT 1
In my attempts to make things simpler when posting this question, I've made things more complicated. Here are the actual values.
X = 1
X = 0
Y = ... |
Wikipedia defines a p-value as follows:
the p-value is the probability of obtaining test results at least as extreme as the result actually observed, under the assumption that the null hypothesis is correct.
And to compute a p-value, we need a sampling distribution.
My question is: when we talk about the null hypothe... |
My goal is to know if significant differences exist between the different treatment concentrations as well as the two treatment timings (E5 and E6) in terms of survival rate.
The survival probabilities of each embryo are entirely independent from that of other embryos.
What statistical test can I use to analyze the dat... |
I am trying to predict housing prices using as few variables as possible. One way that yielded the best results so far is splitting the data into two data-sets ($houses < 100m^2$ and $houses >= 100m^2$) and then constructing two linear models, one per dataset.
The problem: The resulting prediction will not be continuou... |
Intuitively, it seems that a classification problem with more classes is "harder" than the same problem with fewer classes. However, this also seems to depends on the separability of the classes by the model in feature space.
Despite my efforts, I haven't food a theoretical reference expanding on that relationship: I o... |
I need to generate random numbers from 3 correlated distributions. First two of them are lognormal and the final one is normal, i.e. for X, Y and Z I need X and Y to be lognormal, and Z is normal. The correlation matrix is given:
1, -0.8, 0.5
-0.8, 1, -0.5
0.5,-0.5, 1
For example, the std of X and Y and Z are 0.5, ... |
I aim to establish the required sample size for my study. In the main analyses, which are conducted to test my hypotheses, I am investigating two 2x2 tables. Specifically, I plan to perform an exact McNemar test for the first table (with a directed p-value) and to examine the phi coefficient for the second table. For t... |
I would like to use the simr package to calculate the smallest sample size needed to achieve $0.80$ power at the $0.05$ alpha level while accounting for a small effect size. My study is a repeated measures performance task, where my model needs to consider the following which is applied to all participants:
$1$ contin... |
I'm looking for a test whether the thrombosis total ADR vs thrombosis ADR fatal is statiscally significant and determine if there is a possible trend.
The fatal column is part of thrombosis total as well.
I was looking at a paired t-test as part of the same sample.
|
I would like some insights regarding two possible ways to enroll two-way fixed effects. Let's take an example of 30-by-30 panel data (30 groups and 30 periods).
The first way is classic. We control for group fixed effects and period fixed effects separately. My understanding is that this way is equivalent to enrolling ... |
Let A and B be two statements such that A is satisfied if, and only if, B is satisfied. Can we then say Pr{A} = Pr{B}?
|
The situation:
For a project I am working on, we try to predict a continuous target variable from some predictors in a random forest. The observations of the target variable are measured with two types of resolutions/quality standards. These can be loosely defined as:
'precise' measurements (y is exactly ££.£)
'imprec... |
Both Cohen's Kappa ($\kappa$) and Matthew's Correlation Coefficient (MCC) measure the improvement of a classifier compared to a random classifier. This means that, for a classifier with a confusion matrix
$$ \begin{array}{c|ccc|c}
& &predicted & \\
true & \omega_1 & \ldots & \omega_K & \sum_i C_{i... |
When computing Tukey HSD I have multiple groups. For a homework assignment, I realized I accidentally included an additional data point in each group, which is the average of the group. Is this allowed? Is it considered synthetically generated data? Is this bad practice when there is only few data points per group?
|
I am trying to find out if Burst_Energy is influenced by StopType (consonant type), afterburst duration, and Burst_duration.
My model in R is so far (including interactions):
lmer(Burst_Energy ~ StopType * Burst_duration * Afterburst + (Burst_duration * Afterburst | Speaker) + (1 | StopType).
My question is essentially... |
In my Tukey HSD I have some groups with 5 data points, and some groups with 6 data points. Is this allowed with Tukey HSD? The only option would be to remove 1 data point from some groups, and that is bad practice, correct?
|
I need to forecast a phenomenon using an autoregressive model with an exogenous variable. I've estimated an ARIMA(1,0,0) model, but I can't understand how the forecasts are calculated.
Below is the dataset and the code used
# History data
y <- c(NA, 18.53499, 18.45049, 18.50638, 18.56233, 18.57174, 18.57489, 18.65894, ... |
In longitudinal regression(ex: repeated measures for different people), we have the option to choose a correlation structure for the response variable. For example (https://youtu.be/qoqhPq_VILc?si=yJmlrWR4hlgOz1IL):
But is it ever possible to have these kinds of correlation structures for the independent variables? I ... |
I am working through Heller and Ghahramani's "Bayesian Hierarchical Clustering" paper (https://www2.stat.duke.edu/~kheller/bhc.pdf) and things aren't quite working out the way I expect with regards to the Dirichlet Mixture Model Process priors, so I would appreciate any help.
Particularly, Figure 3 gives the algorithm ... |
These are my recall and precision stats for the model I built. The Curve does not look good where recall is 0. Not sure why there are so many points there. Can anyone help and explain why the curve looks like that?
Recall Test: 0.24 Train: 0.68
Precision Test: 0.75 Train: 0.67
|
I'm working on a draft of a statistics article, and I'd like to plan for the journal where I'll ultimately submit. My problem is, the article topic is somewhat abstract—it's a conjecture in theoretical statistics, albeit a rigorous one—and I'm an applied statistician by training. Normally, I'd start with journals I'm c... |
I have a longitudinal study with two time points (before/after), whereas a particular score was standardized across all individuals and time points, and thus provided only in terms of z-scores.
(Edit: to clarify, "before"-data and "after"-data were pooled before the standardization, not a separate standardization for "... |
I am reading a paper on wind power forecasting and the authors present a plot of the data before outliers are removed and a plot after. However, they don't actually say what method was employed to remove the outliers. I was hoping someone might offer some guesses or hints on how one would go about obtaining plot (b) fr... |
I hope this is the correct channel. Following the Coursera course on image inpainting using PDEs [1], the instructor presents a method for image Inpainting that follows the next equation:
$\frac{\partial I}{\partial t} = \nabla (\Delta I) \cdot (\nabla I)^{\perp}$
where $I$ is the image, $\frac{\partial I}{\partial t}$... |
I have a question about one of the simple linear regression test graphs. Looking at the graph it apparently appears to be linear but this curve is causing me a lot of doubt, I did another test that I found, the Ramsey RESET test and the result showed that there are no statements of non-linearity, however, this curve le... |
I have a sample with a size of n=100, and I want to show that the minimum value of the underlying distribution is not less than a certain threshold, with a confidence level of 95%.
The distribution of the data appears to follow a Normal Mixture.
Initially, I considered using hypothesis testing to establish that the min... |
When we use the mixed effects model for longitudinal data (repeated measures within subjects), with random intercepts for subjects, I know that the shortcoming when using packages such as lme4 in R is that intra-class correlation is constant within subjects. That means that the correlation between time points 1 and 2 i... |
This is a meta-analysis. I'm looking at factors associated with vaccine acceptance in many countries. Looking at previous studies in different countries, I recorded factors that are associated with vaccine acceptance in general in each country. So, I have an excel sheet with the factors listed as columns and the countr... |
I have a data set with thousands of pairs of cousins. There is a row for each cousin pair, with two columns: One column for the test score of one of the cousins in the pair, and one column with the test score of the other cousin. I want to calculate the correlation between cousins on this test. I could then just correl... |
I read the proof the of the law of large numbers where its states that the the sample mean converges in probability to the population mean and it its proven by Chebyshev's Inequality Here
I am curious if there is something similar in estimating the joint and conditional probability distributions. I found a couple of ar... |
Say I have a a bunch of covariates $X$, and a dependent variable $y$, where $y$ is collected from people. However, I know from psychology that people will tend to overestimate $y$ given $X$ in some cases, cases that I definitely can discriminate using $X$ (say for example if $X$ contains the skin color of the person, a... |
I have a sample size of $310$ individuals that comprises samples collected along the elevation gradient and at different times. I want to see how the variables differ along the elevation, and with time. I was thinking of a two-way ANOVA test with an interaction. However, I found that my data didn't follow normality and... |
I am estimating a pass-through elasticity of the basic form:
ln(cost) = alpha + ln(price) + controls + error
My issue is that the price charged in period t may be associated with a product purchased at time, say, t-2, so that there is a misalignment between price and cost (and, that misalignment could be between any nu... |
I am doing a SIMPER analysis(R::vegan) where I want to determine which species are contributing the most to differences between thermo groups-warm and cold.
(I am count data that is separated by years. The years are grouped as either warm affiliated years or cold affiliated years--> the overall goal would be to see if ... |
I'm new to machine learning and I'm having a hard time interpreting how good my model is performing. I have run my model on a dataset of wine attributes trying to predict alcohol content based on the other features. I noticed however that the loss looked very similar even when I started reducing the number of input fea... |
When considering the conditional probability of an event given a continuous random variable (or vector) can you essentially just manipulate the probability as if you were only working with discrete random variables/events with positive probability?
This question was prompted while going over a proof from the textbook ... |
I want to prove that the events $A_{1}, \dots, A_{n}$ are independent iff
$$P(B_{1}\cap \dots \cap B_{n})=P(B_{1}) \cap P(B_{2}) \dots P(B_{n})$$
for $B_{i}=A_{i}$ or $B_{i}=A_{i}^{c}$
Well, I feel that for the case where $B_{i}=A_{i}$ is something obvious by definition, what would it take to put it in the proof, while... |
The following shows part of the page 170 of The Element of Statistical Learning that I want to make clear.
The solution can be characterized in two equivalent ways
$$\min_{c_j}\sum_{i=1}^N(y_i - \sum_{j = 1}^{\infty}c_j\phi_j(x_i))^2 + \lambda\sum_{j=1}^{\infty}\frac{c_j^2}{\gamma_j},$$
or equivalently
$$\min_{\alpha}... |
I'm trying to build intuition around how individual coefficients change as a regularization penalty is increased (for both ridge and lasso). This is what I understand the curves of the l1 and l2 complexity penalties look like:
Given that the complexity penalty for lasso the l1 norm, I would expect that increasing $\la... |
I was trying to understand the difference between the concepts of probability distribution and probability space for what concerns the assignment of probability over the sample space. Wikipedia gives the following definition for probability distribution:
A probability distribution is the mathematical function that giv... |
This is a hypothetical scenario for self-learning purposes (not homework), so not a lot of additional details to give than what I mention below.
Let's say I have a binary logistic regression model, using various independent variables. Let's say that among these variables, there's a variable "profession".
I use the mode... |
A similar question was asked here Why can't ridge regression provide better interpretability than LASSO?, and the answer suggested that a main difference between lasso and ridge is that a zero threshold from lasso is a more principled threshold than an arbitrarily picked one for the ridge regression coefficients. Given... |
I have a question concerning scaling approaches in longitudinal invariance testing and
a subsequent latent growth curve.
That is, for example, if the invariance test was conducted with a marker indicator
approach, does the subsequent growth curve need to be also conducted with a marker
indicator approach.
My current ca... |
To some degree my problem may be lacking terminology to ask the question well.
Form of a problem I'm looking at is as follows: some number of subjects answered (luckily in a binary way, that is: 'yes', 'no', 'missing') some number of questions. What would be a way to tell if those subjects can be categorized in any/a w... |
Essentially the title - is there a closed form expression for the 2-Wasserstein distance (aka Frechet distance, Earth Mover's distance) between two generalized Gaussian distributions? The regular Gaussian case is well known, but I am interested in the generalized Gaussian case, or even mixture of Gaussian distributions... |
A known paradox is the fact that although the absolute risk for developing a disease may rise with age, the conditional probability for every person to develop a disease, given that he hasn't developed the disease by that point, is declining - for example, a 30 years with a predicted 50 years life span has a higher pro... |
I have some studies that report a correlation coefficient between a predictor variable and and outcome of interest. Other studies have dichotomised the predictor variable and so instead present a t-statistic. Would it be justified to combine these two types of study in a single meta-analysis?
If so could I then just co... |
Let $X_1,\cdots,X_n$ be (discrete in my case) i.i.d. and bounded between $m$ and $M$. I'm interested in bounding the variance of an unbiased estimator:
$$\mathbb{V}\left[\frac1n\sum_{i=1}^nX_i\right]$$
On the one hand, we have:
$$\mathbb{V}\left[\frac1n\sum_{i=1}^nX_i\right]=\frac{\sigma^2}{n}$$
where $\sigma^2$ is the... |
I am new to the field of RNA-Seq and wanted to ask for advice concerning the proper use of the two DESeq() test options (LRT vs. Wald test).
Briefly, my experimental set up is as follows: I have 30 mice in 5 different treatment groups (n=6/group) and a known batch effect (sequencing was performed at two different days,... |
I want to estimate the impact of volatility shocks on cross-assets spillovers. I have series of spillovers, and I want to use a Local Projection model, and the volatility of some financial assets representing the shocks, my goal is to estimate the following model:
$S_{i,t+H} = a_0 + \delta_1 \sigma_{i,t} + \delta_2 X_t... |
The goal of our study is to test whether migraine patients use their phone differently (e.g., spend less time on their phone) during headache periods compared to non-headache periods. We monitored patients for three months and logged their phone usage. Participants reported their headache periods themselves. Note that ... |
I have a data frame that contains a continuous response variable measured on different species, at different elevation and month of sampling as explanatory variables. I want to analyze how the response variable varies with elevation and time. For that, I am thinking of using a two-way ANOVA test, as I also want to look... |
everyone. I am fitting a glmm model using the R library glmmTMB for predicting a count response variable with excess-zeros and overdispersion (nbinom2> Poisson).
Additionally, I am insterested in exploring the zero-inflation component of my sample data, therefore a zero-inflation vs hurdlequestion arises. Even though b... |
I have to solve a timeseries multiclass classification problem. Some of these classes (Class 0, Class 1 and Class 4) have timeseries that are really similar to each other, as follows:
Class 0: Original timeseries;
Class 1: Generated based on Class 0. Multiply the whole Class 0 timeseries by a single random factor betw... |
The Wikipedia article on Barnard's test currently says:
While first published in 1945 by G.A. Barnard, the test did not
gain popularity due to the computational difficulty of calculating the
p value and Fisher’s specious disapproval.
Following some comments under this other question, I'm wondering if the wikipedia ar... |
This plot is taken from a gradient boosting regression example in the scikit-learn documentation.
What does deviance mean? How should this plot be interpreted? In which case do we have over/underfitting? What improvements can we make to the model parameters based on this plot?
# Author: Peter Prettenhofer <peter.prette... |
In Gelman's Bayesian Data Analysis 3, on page 504, in the chapter on Gaussian processes, it says:
In the univariate case the computation can be made in time O(n) using
sequential inference, and computation is no problem even for n greater
than million.
What method(s) are the writer referring to here?
I tried browsing... |
I have a dataset where abundance is being changed by group (2 categories, fixed effect) and I want to account for random effect subject (15 subjects). Basically, each of the 15 subjects went through both groups such that the total number of samples per group and subject is 1
sample group subject abundance
... |
I am wondering whether anyone has any insight on comparing the performance of two GAMMs?
Specifically, I want to compare two models:
A "nested model", one with a smoothed age term s(age) and a sex term sex specified as separate response variables.
A "complex model" with a s(age,by=sex) term.
My understanding is that ... |
If we take the R-squared to be the comparison of Deviances between models (the model of interest, the saturated model, and the constant model), we can write it as (see this answer CC BY-SA 4.0):
$$R_{GLM}^2 = 1-\frac{D_{RES}}{D_{TOT}} = \frac{D_{REG}}{D_{TOT}}.$$
Deviance is expressed as comparison of log-likelihoods... |
I'm taking a risk modelling class, and we're discussing conditional vs unconditional volatility.
We have standard volatility $\sigma = \sqrt{\mathbb{E}[r_t - \mathbb{E}(r_t)]^2}$
But what is conditional volatility?: $\sigma_t = \sqrt{\mathbb{E}_{t-1}[r_t-\mathbb{E}_{t-1}(r_t)]^2}$
What does it mean to take $\mathbb{E}_... |
I am following this review's approach for PCA using compositional data. It involves computing the centred log-ratio (CLR) transformation of the compositional data, and then running PCA on the resulting matrix (a "log-ratio analysis" apparently).
I use prcomp() in R for the PCA, and it is not clear to me whether and how... |
I am examining whether there is a difference in reaction time (RT) for 2 different conditions (A and B). Participants complete trials in both conditions.
First, I use a linear mixed model to assess the effect of condition on RT, with random effects of participant.
Q1: If there are outliers for RT for ** each participan... |
I am a high schooler conducting a survey on a group of 20 other high schoolers. They will take a 10 item pretest questionnaire containing 9 5-point Likert scale questions and 1 short-answer response question before viewing a film. After screening is complete, they will take the same questionnaire (labeled posttest just... |
I am comparing the residual variance of two regression models, one fitted with a simple linear regression model and the other fitted with a mixed-effects model using the lme4 package. I am using the AIC test to compare the residual variance to determine whether the AIC is lower for the mixed effects model and a better ... |
I would like to perform Agglomerative Hierarchical Clustering using the centroid method (defined on this page) and a custom distance metric, probably cosine similarity. In the Scipy docs it says you must use Euclidean distances if you want to use the centroid method.
Is there a simple way to pre-process my data so that... |
I am looking at the causal effect of a Danish retirement reform, where individuals born after 1954 have an increased normal retirement age. Therefore, the cutoff of the treatment is clear. However, depending on when you were born after 01.01.1954, the normal retirement age differs. Specifically, for every six months th... |
I'm currently exploring Uplift modeling, specifically the use of the Conditional Average Treatment Effect (CATE) metric:
$$ \tau(t', t, x) := \mathbb{E}[Y | X=x, T=t'] - \mathbb{E}[Y | X=x, T=t] $$
This metric measures the expected outcome difference for a set of variables x under two conditions: treatment t’ (group re... |
I have a regression model that
Transforms some time series features using a different halflife for each feature
Uses the transformed features along with some other features to create a prediction
During the fitting stage the model fits the halflife parameters as well as calculating the model coefficients. For example... |
I want to know what to look for in a boxplot, when we want to check for homogeneity of variances among groups, which is an assumption in ANOVA.
I used this codes to get a boxplot:
'''boxplot(log(PhiPS2)~elevation, data = ecophy_df)'''
So, I want to know
In this plot, the means are different, also we have some outlier... |
I was wondering if someone could help me with a statistical problem I have run into. Any help would be incredibly helpful.
Please note that for clarity, I have simplified the below description. It leaves out information such as weighting, or transforming variables.
I am conducting a project which investigates the assoc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.