instruction stringlengths 9 38.7k |
|---|
I need to reverse the direction of effects for a series of binary logistic regressions. In theory, I should be able to change the sign, because the magnitude of the effect shouldn't be any different whether it is positive or negative.
To test that, I reverse coded my outcome variable and re-ran a series of regressions.... |
I'm looking for some more insights in applying the method of moments for the Logaritmic (or also called Log-Series) distribution.
The Logarithmic distribution only has one distribution parameter $0 < \alpha < 1$ and the mean is defined as:
$$E(X) = -\frac{\alpha}{(1-\alpha)\ln(1-\alpha)}.\tag{1}$$
We don't need the sec... |
I am reading about the convolution operation but I can't see how it can be seen as template matching.
Suppose that we convolve the input $\mathbf{X}$:
$$
\begin{bmatrix}
1 & 0 & 0 & 0 \\
0 & 1 & 0 & 1 \\
0 & 0 & 1 & 1 \\
0 & 0 & 1 & 1 \\
\end{bmatrix}
$$
with the kernel $\mathbf{K}$ (stride equals 1):
$$
\begin{bmatri... |
IMPORTANT: Please read the question carefully before labeling it a "code question" & sending it to stack overflow. The question is in fact a theoretical stats question (barring the possibility of a bug in the NMF R library). Because I can do better than NMF (at full rank) on a positive matrix A, by using the identity t... |
I'm looking to compare two models,
a0 <- glm(dv ~ IV1 + IV2, family=binomial, data=data)
a <- glmer(dv ~ IV1 + IV2 + (1|ID), family=binomial, data=data)
I compared them using analysis of deviance:
stats::anova(a0, a, test="chisq")
and the output lists the variables used in both models and gave me significance value... |
Let $$S(t|t-1) := \frac{P(T>t)}{P(T> t-1)} = \frac{S(t)}{S(t-1)}$$ be the conditional survival probability. I have two questions.
Assuming $\text{SE}(S(t))$ and $\text{SE}(S(t-1))$ (as well as $S(t)$ and $S(t-1)$) are provided in the data, what would be $\text{SE}(S(t|t-1))$?
How should we define $S(t|t-1)$ when $S(t... |
I have a question, which twirls my mind but I can't find a robust basis to answer it!
I have a time-frequency data (let's say 5 columns x 5 rows) for each participant in two different groups. I have performed an independent t-test for each cell (I compared the value in the first column/first row between group 1 and 2 a... |
i am working with an anomaly detection problem.
i have a large dataset that i cannot fully load it in the memory does batch training works with normal ML models ?
does this make sense ????
# Initialize the One-Class SVM model
one_class_svm = OneClassSVM(nu=nu, kernel=kernel, gamma=gamma)
# Training in batches
batch_s... |
I know that VARs employ the same number of lags for each variable in the model. However, what if we were dealing with a scenario where each variable in the VAR model has a unique number of lags. Thus, making the VAR model an Asymmetric model.
Are there any packages in either R or Python that can perform such a model?
F... |
From the paper To understand deep learning we need to understand kernel learning, three questions:
In section 2 "Setup" there appears a definition of interpolated classifier as an algo that has zero or close to zero training error and overfitted as an algo "if the same holds for classification loss".
Question 1: what i... |
Let $X_1, \cdots, X_n$ be a sample from the $N(\mu, \sigma^2)$ density, where $\mu, \sigma^2$ are unknown.
I want to find a lower bound $L_n$ which is valid for all sample-sizes $n$ for the variance of unbiased estimators of $\theta = \mu/\sigma$.
I know that for one-dimensional parameters the Cramer-Rao lower bound fo... |
Let $p, q$ be two distributions, and suppose one can evaluate them pointwise.
Let $\{x_i \}_{i = 1}^n$ be an IID sample from $p$, and let $KL_n = \frac{1}{n}\sum_i \log\left[ \frac{p(x_i)}{q(x_i)} \right]$, the empirical $KL(p,q)$ divergence.
Q1: Clearly $KL_n$ is a statistic that follows some distribution. Do we know... |
the term $x^n$ / n! equals the probability of the sum of n uniform random variables between 0 and 1 to be smaller or equal to x. so $x^(2n)$ / 2n! equals the probability of an even number of random variables between 0 and 1 to be smaller or equal to x.
what does a succesive sum of these terms describe and why does it t... |
I have a matrix $X$ that has $M * n$ in size. I'm going to apply that with PCA. The problem is that $X$ contains nonlinear structures. So one good thing is to use The Kernel Trick.
My data is orginized as
$$X = \begin{bmatrix}
x_1\\
x_2\\
x_3\\
\vdots\\
x_N
\end{bmatrix}$$
Where each $x_i$ has the size $m * n$. The... |
I have a question about a metric for the consistency of outputs.
Suppose I have a model called $M$. I have an input space called $X$ with $X = \{x_1, x_2, \dots, x_{50}\}$ where there is a very slight difference between $x$'s in $I$. Each time, I feed my model $M$ with an $x_i$ from $X$, I get a corresponding output $y... |
I have data involving 3 key variables (predictors), 2 of them being randomly assigned treatment conditions, and the other denoting the sample (A vs. B). I am finding it easier to present the results doing 2 regressions each with a two-way interaction, but just wanted to check if there's any statistical difference/issue... |
I am trying to understand the steps involved in the Metropolis-Hastings Algorithm and trying to learn how to implement it myself.
As an example, suppose I am interested in estimating the "probability of success" (p) in a Binomial Distribution. I decide to use Bayesian Estimation - that is, I can define the Posterior Pr... |
It is often good practice to normalize training data for numerical stability and faster convergence. When using a train-validation-test split, it is recommended to calculate normalization parameters (mean, std) from only the train set to prevent data leakage.
However, it is also common practice to retrain the model on ... |
I recently worked with two different statisticians who both suggested different strategies for dealing with imputation of missing data. For the sake of this discussion, I'll call them Statistician A and Statistician B.
Let's say that I have missing values across some cells in many columns in a dataset (all numeric and ... |
I am currently reading McElreath's Statistical Rethinking book. I'm still in Chapter 5 though. I am unsure if this will be addressed later on but I can't help but wonder:
Earlier in the book, he mentions that a predictive model can have false causal implications. For example, a predictive model on the number of shark a... |
Given these values, is it possible to generate random values that conform to this distribution (using Python, but preferably without the SciPy package)?
Statistic
Value
Mean
1.518
Std Dev
24.827
Skew
140.770
Kurtosis
25342.612
Mode
1
Min
1
Max
5735
Count
182557
Purpose: I'm trying to generate ... |
There are n normal distributions with mean ordered from largest to smallest $m_1$, ... , $m_n$. The standard deviations are also different but not ordered. Let's define $p_i = Pr(x_i = max(x_1, x_2, ...x_n))$. Is it possible that there is a $j > 1$ such that $p_j > p_1$
|
I am trying to implement a weighted multivariate normal distribution in JAGS 4.3.0
Here is the code I used:
for (i in 1:N){
y_stage1[i, 1:T] ~ dmnorm(mu_stage1[i, 1:T],
Sigma_stage1_weighted[i, 1:T, 1:T])
Sigma_stage1_weighted[i, 1:T, 1:T] <-
Sigma_stage1[1:T, 1:T] * propensity_score[i]
}
Sig... |
Skimming Huang et al 2019 I see references to a term "pseudocomplete-data" that I am not familiar with. It looks like they are dealing with a data censoring problem which they approach with a tobit regression but it is unclear what the precise meaning of this term is.
Here are the sentences that mention pseudocomplete-... |
I see that is it possible to use lmer() in r and then run mediate(), but our data does not have normal distribution. So I am wondering, is there any way to run glmer() and then do mediation analysis? If not possible in R, any solution in other language?
|
I am trying to implement the Stein Particle Filter described in this paper. (https://arxiv.org/abs/2202.04213)
I don't understand how to get the prediction probabilities in equation (12). The mathematical expression seems to takes the mean of all samples? Does that make sense?
|
If we have a VAR process:
$\begin{align}
\mathbf{y}_t = A_1\mathbf{y}_{t-1} + \dots + A_d\mathbf{y}_{t-d} + \boldsymbol{\epsilon}_t, \quad t \in \mathbb{Z}
\end{align}$
With the stability condition met:
$\det(I - A_1z - \dots - A_d z^d) \neq 0$ for $|z| \leq 1$
We know that the second moments exist, that is we can com... |
Let’s say that $X$, $Y$ and $Z$ have some fat tailed distribution, $X$ and $Y$ are stock returns, i.e., the sample set can have both positive and negative values. While $Z$ is some random variable such that it has a positive skew but $Z$ always assumes positive values. Then would it be fair to assume:
$$Cor(X/Z, Y) = C... |
I was intrigued by the reply from @JohnRos to the post Making a single decision tree from a random forest.
They say "<...> a random forest prediction cannot be represented by a single tree. This is because they learn predictors in different hypothesis classes: a random forest learns predictors over the space of linear... |
The total time on test (TTT) transform procedure is used as a tool to identify the hazard behavior of the data distribution. There is a correspondence of the TTT plot and the shape of the empirical hazard rate.
My question is: If one wants to know the empirical hazard rate shape from a data, why does one usually (on my... |
I'm not sure if this is the right site for my question. In games (e.g. poker) where luck/chance is a factor, should the more skilled player play more games with a lower stake? Intuitively, yes, if you play a game that is 25% (or 75%) luck, luck will even out over many games, and the skilled player will win. Indeed, cha... |
I have a 1D domain (let's say the interval $(0,1)$) on which I randomly sample $N$ points from the uniform distribution. I have a function $f\colon (0,1) \to \mathbb{R}$ which is integrable.
What is the best way to numerically integrate $f$ based on these grid points, given that I want $N$ to be as low as possible?
My ... |
For my dataset I have plotted the density with ggplot.
As the data's density is multimodal (a total of 6 destinct modi) I tried to gain insight on the normal distributions associated to each modus.
For this I followed the instructions on JEFworks and adapted the corresponding arguments to my code and get the following ... |
I am working on my PhD analysis and I am looking to explain monthly anomalous returns (those from momentum or low volatility strategies) using a number of independent variables. The variables range in frequency: monthly, annually and those that do not vary over time. How would I do a regression for this kind of dataset... |
I need to find the right statistical test to use here:
the words on the left are prepositions.
the groups are beginner, Intermediate, and advanced level speakers of Swedish
My hypothesis is that there is no significant difference between any of the groups in terms of the frequency of usage of the prepositions
However,... |
I am conducting a cluster analysis of documents using document embeddings as the input to the algorithms. One of the problems I am coming across is that in reality there are documents that belong to more than on "cluster" when looking at things from a human perspective, which led me to cmeans/fuzzy kmeans
My kmeans is ... |
Hi I've started fitting simple gams with random intercepts using mgcv and bs='re', but I can't seem to find how to extract the conditional modes/random effects/BLUPs for each level of my factor. ie the equivalent of ranef() in lmer. My googling has drawn a blank as well. Is this possible?
|
I am not sure how to test one of my hypothesis from my data.
Basically, I have 3 behavioral measures A, B and C, and I want to test that A is a composite of B and C: A = B+C
However, for practical reasons, only one of this measure can be taken for each participant, i.e. I have the measure A for 30 participants, the mea... |
I have a time series dataset (interval = 10 minutes) that contains a user's visited locations. I derive several features from the timestamps to capture the user's trend: hour of the day, day of the week, and day of the month. A sample of the data:
time location weekday hour day
2023-01-01 03:10:00 ... |
Say you are running a regression on predicting the future 1 second return(new price / curr_price - 1)/ using the return of past 1 Milli second, what is the expected range of coefficient in this case? Or more specifically what values of coefficient would warrant you checking your code for bug? Can assume price of an ins... |
Using a mixed model (either frequentist lmer or bayesian brms) I have an issue regarding an interaction in my model.
I have two factor variable of three level : condition (0-1-2) and Tps_real (0-300-600).
I am running a model such as Tps_estimated ~ condition*Tps_real (condition|subject)
The output is
Fixed effects:
... |
Consider observational study with single outcome $Y$, single covariate $X$ and treatment assignment variable $W$. Under unconfounded treatment assignment assumption, $E_{sp}[Y(1)]=E[\frac{Y_i^{obs}W_i}{e(X_i)}]$ as shown in Rubin, Imbens' Causal Inference in 12.4, where $E[\cdot]$ means expectation taken over both rand... |
I'm currently reading chapter 4 of An Introduction to Statistical Learning by James et alter. I've been trying to go through the examples myself, replicating the calculations in R. Section $(4.4.4)$ is about Naive Bayes classification and it's application to the ISLR2 Default dataset; results are summed up in the follo... |
I implemented and tested DenseNet, ResNet18, ResNet50 and Efficientnet from pretrained models in pytorch torchvision. Only denseNet121 is working. The training and validation accuracy are both very low and does not improve. I also tried for resnet 18
for param in model_res.parameters():
param.requires_grad = True
but ... |
Provided the following examples of data, p-value and autocorrelation charts:
How are we supposed to interpret the charts on the rightmost column? Just by looking at these charts, what can we say about the data? In some articles it is mentioned that what is inside the confidence intervals is "statistically insignifican... |
I need to works with time-series of rolling means of a certain variable that comes from the data. I have this rolling means for N different individuals. Call them Y. I would like to test some explanatory variables for Y, call them X, which are K features of the individuals for which Y is recorded. X are not rolling mea... |
In a book, to explain independence and conditional independence in probability, the author gave an example that, consider the following situation:
F={ a hospital patient is smoker}
G={ a hospital patient has lung cancer}
H={ smoking causes lung cancer}.
H being true implies a relationship between F and G.
What about wh... |
I am trying to determine if the authors of the following report missed out on an important factor or if i am the one who have missed out on something.
In the following report: Bias Correction For Paid Search In Media Mix Modeling
The authors first state the back-door criteria which is one of the criteria that can be us... |
I'm a little confused about the Generator's and Discriminator's losses while training a cGAN. I am aware that a stable GAN is one where the Discriminator's loss reaches 0.5. I know that we can read off a failure mode in training a GAN when the Disc loss drops to zero or close to zero and the genrator's loss keep on inc... |
I am wondering if both the coefficients can be identified in a causal sense given the context and the resulting multiple regression equation.
Imagine a scenario where we have two investment alternatives denoted $X_1$ and $X_2$, and sales denoted $Y$.
We assume that $X_2$ affects the effect of $X_1$ on $Y$, as well as h... |
In some data analysis challenge (so I don't control the data given), I have a dataset made with the price of a commodity in two location (let say Japan and Korea) and at different day to relate to other data, let's say the price of oil and iron on international market.
So a typical row is like
DAY_ID | COUNTRY | PRICE ... |
I have a Poisson regression model, from its summary table, I could see the p-value for a certain variable, e.g. gender. Since the p-value is testing the hypothesis whether the coefficient of gender equals to 0 (and it is comparing a model with all variables vs a model without this variable gender), seeing a p-value of ... |
I'm trying to adapt my workflows to timeseries datasets and stumbled across this youtube video: https://www.youtube.com/watch?v=OpAf4N582bA
It discusses partial correlation and it seems like a useful tool for investigating timeseries data where you can use the timepoint as the covariate for partial correlation:
https:/... |
I'm trying to find a rigorous derivation of the partial likelihood for Cox-PH. I find the hand-wavy explanation of Cox in "Partial Likelihood 1975" unsatisfactory:
There are 2 points which are difficult for me:
How to arrive to $P(\text{subj } S_i \text{ had an event at } T_i |\text{ someone from the risk set } R_i \... |
I've read through this paper: https://www.sciencedirect.com/science/article/pii/S2590197420300082
Which introduced me to the concept of partial correlation. I typically use Proportionality when calculating pairwise associations between components in compositions:
https://journals.plos.org/ploscompbiol/article?id=10.1... |
I tried to learn the principle idea of regressions. As I understand, the aim is to find a model that represents the relation between the x numbers and the y numbers, so that we can understand the patterns based on this model.
Let's talk about non-linear regression. Its aim is to find a model that is close to all data p... |
I'm computing some extrapolation curves for a pharmacoeconomic analysis and I'm struggling to get the parameters of the curve for Gompertz and Gamma.
I'm using flexsurv
mgomp1 <- flexsurvreg(Surv(times_start, times_end, type="interval2") ~ 1,
dist ="gompertz")
mgamma <- flexsurvreg(Surv(times_start, t... |
In this question: On the importance of the i.i.d. assumption in statistical learning the dataset is denoted as D={X,y}. In statistics, capital letters are usually used to refer to a random variable, but how does this explain the fact that y is a small letter? ie why is it not D={X,Y}?
|
Let's say I have 3 different drug doses: A, B and C and I have two DVs: blood pressure and pulse. I am interested in finding out if the three doses differentially impact the two DVs (i.e. if at dose A blood pressure is more different than pulse vs at dose B or dose C) - basically if there is an interaction between the ... |
Why does logistic/poisson regression in R give z-values while linear regression gives t-values in the summary output? In general, z-test is used when the population variance is known, but I am finding it difficult to translate this to the (generalized) linear model context.
I saw somewhere (as well from the comment bel... |
I have a dataset where my main variable is smoking. I have three definitions of smoking based on different questions and there are overlaps. By the first definition I have 100 people who are smokers, by the second definition there are 102 people (2 extra) and by the third one there are 110. I want to test if the group ... |
I am trying to learn more about Quantile Regression.
As I understand, Quantile Regression is used to estimate the conditional quantile of a response variable (given predictor variables).
Mathematically, let $Y$ be the response variable and $X$ be a vector of predictor variables. The $\tau$-th quantile regression model... |
Some people are claiming the graph below is climate-change propaganda because of the different scales for cold vs heat, but it seems to me that using the same scale would make the heat data unreadable.
What is the data visualization expert consensus on this?
From: https://www.thelancet.com/journals/lanplh/article/PIIS2... |
I understand when the data is not linearly separable, it has to transformed into higher dimensional space, to make it linearly separable. Applying kernel trick can perform it without even computing the co-ordinates of the points in that higher dimension.
But I failed to figure out, what is the end result we get after a... |
After the multiple imputation (pmm method) using the mice package, there are still missing values in my dataset (although the number of missing values was reduced).
I have checked that there was no issue with constant value or multicollinearity as there was no logged event. I have included most auxiliary variables in t... |
Ciao,
I have to perform an estimation of price fluctations. There are some outliers in the price, namely above 350€ and above 950€. My first feeling is to add two booleans representing prices between 350 and 950 and above 950 to correct the intercept.
Would that be ok? The model hoops from R-square 0.44 to 0.77 but I'm... |
Let $T_i$ be the running time of horse $i$ and $T_i \sim N(\theta_i,1)$ and the $T_i$'s are independent. Then Henery (1981) showed that the probability $P(T_1<T_2<\cdots <T_n)$ can be estimated as (taylor expansion to the first degree)
$$P(T_1<T_2<\cdots <T_n)|_{\theta=0}+\sum_{i=1}^n\theta_i \cdot \frac{\partial P(T_1... |
I come up with a solution as below. What do you think? Do you have any other way?
Linear regression modeled as;
y(i) = a + b*x(i) + e(i)
a and b is constant, thus for all value of i;
a = RAND()*(U_a - L_a) + L_a
b = RAND()*(U_b - L_b) + L_b
U_a and L_a is upper and lower bound for a
U_b and L_b is upper and lower bou... |
I am trying to understand the validity of bootstrap percentile confidence intervals and I have stumbled on the following from these slides:
Suppose we want to set a 95% confidence interval on $θ$, the true
parameter value for the real population $f$ . And suppose we take $M = 1000$
bootstrap samples. The bootstrap met... |
From my understanding, both Pearson chi squared test and deviance test can be used to assess the goodness of fit for GLM, but they have different alternative hypotheses. For the Pearson chi-squared test, the null hypothesis suggests that the true model is the estimated model, while the alternative hypothesis indicates ... |
I have a questionnaire in which there are multiple skip questions (for example: Q1 is YES and NO and Q2 should be answered only if the respondent choose YES in Q1. Same thing apply to Q3-Q4 and Q5-6) and the problem is there are multiple repondents answer the skip question (e.g., Q2) even though they choose 'NO' in the... |
Suppose I am interested in fitting a linear regression model as follows:
Y = a + b1 * age(continuous) + b2 * sex + b3 * income
This model will be run in both the whole sample and subgroups (defined by age categories including 15–35 years, 36-45 years, and >=46 years).
There are missing values in age, sex, and income, a... |
As explained in the title, I would like to transform a yearly dataset into a monthly one, but including a constraint.
My current dataset gives the yearly production of a commodity, and from year to year, the production can vary a lot.
Let's assume that the yearly production in year X=120, and the yearly production in y... |
I am trying to fit a (to me relatively complex) SEM where I'm interested in two dependent variables measured at t2 and assume that this is explained through independent variables at t1. I have never worked properly with time series data so I am unsure on (1) which variables to fix and (2) how to do that in SEMs. I'm us... |
I am designing a retrospective study in the field of oral and mandibular reconstruction. I am struggling with the interdependence of the following two variables and would greatly appreciate any input as I have come across this issue numerous times before:
Transplant donor site:
Fibula (bony)
Pelvis (bony)
Scapula (bon... |
I would like to model roll rates. At each period, an item with status S_i can roll into N possible status next period S_1, S_2, ..., S_N where those N statuses are mutually exclusive
I don't want to use multinomial logit. Instead, I would like to model multiple separate logit models
P(S_1=1), P(S_2=1)... P(S_(N-1)=1)
... |
I'm relatively new to feature engineering, but at a high-level what I understand that it does is takes various features in a dataset (perhaps two, perhaps more) and combines them in such a way using various mathematical functions (polynomials, rational differences, etc.) to produce a new feature.
Since I'm relatively n... |
Let's assume I have a regression task. My data is numerical with x as the input data and y as the target variable.
What I usually do is that I normalize my data with both x and y. Then I feed it into the network (f.e. a MLP) and get a prediction. The prediction then is used to calculate the loss through mean squared er... |
In metric learning of e.g., MNIST images, a CNN projects a 28 x 28 image into a $d$-dimensional vector which gets passed to a metric learning loss function: minimize the Euclidean or cosine distance between these vectors if they're from the same digit, and maximize the distance if they're from different digits.
Now I'm... |
A fixed effects (FE) linear model can be understood in a precise way using concepts of geometry. Namely, the response vector in model space is projected onto the design subspace surface described by the fixed effects design matrix. In this geometrical interpretation of a fixed effect model, each column in the FE design... |
In section 4.1 of the VICreg paper the authors describe the variance regularization term as the following hinge loss.
$$ v(Z) = \frac{1}{d}\sum_{j=1}^{d}max(0, \gamma - S(z^j, \epsilon )) $$
Z being the embedding of an image of shape $ \mathbb{R}^{(n, d)} $
S being a "safe" standard deviation (which uses a small const... |
I just started the Statistics course and I need to know how to develop the statistical analysis of a group of data.
These data belong to the same parameter and were taken at 17 sampling stations in triplicate. How should I develop the statistical treatment of these experimental results? How could I start and what to ev... |
If there is no duplicated observations in each level of covariates, then we cannot use Pearson or deviance residuals. An alternative is to use DARMA residuals in R (where we generate the Ys using the different covariates). Could someone intuitively explain why this procedure work?
|
Consider an experiment with two categorical predictors, A and B, where the levels of B are nested within those of A, and thus described by the following design information:
A
B
1
1
1
1
1
2
1
2
2
3
2
3
2
4
2
4
A = random, B = random
If I treat both A and B to be random effect predictors, then I... |
Mathematically, $P(Y|X) = \frac{P(X,Y)}{P(X)}$ and so $P(Y|X)$ must depend on $P(X)$. Since $P(Y|X)$ will change when $P(X)$ changes.
However, consider this scenario:
X = amount of red meat consumed per week.
Y = probability of colon cancer.
Clearly, the probability of colon cancer given the amount of red meat consum... |
I am trying to conduct a random effects meta-analysis for binary outcome data using the GLMM method in the meta package (metabin function / meta package).
meta package citation:
Balduzzi S, Rücker G, Schwarzer G (2019). “How to perform a meta-analysis with R: a practical tutorial.” Evidence-Based Mental Health, 153–160... |
I am a beginner at MAB. One thing that puzzles me these days:
The regret of the UCB policy (and Thompson Sampling with no prior) for stochastic bandit is $\sqrt{KT\ln T}$, but the regret of the EXP3 policy for adversarial bandit is $\sqrt{KT\ln K}$, where $T$ is the length of time horizon and $K$ is the number of arms.... |
Consider quantities $y_1,y_2,\dots,y_p$, for the $j$th of which we have $n_j$ measurements $y_{1j},y_{2j},\dots,y_{n_jj}$. Unfortunately, I do not have access to the raw data $y_{ij}$ -- only to the reported sample mean $\bar{y}_j$, sample variance $s_j^2$, and sample size $n_j$ for each $j$. Suppose further that $y_{i... |
I am running a GAM model on grid-cell data at a 1Km spatial resolution ~89K cells. My response variable is species richness, and I use a tw() distribution as it works better than Poisson and nb. The predictor variables are 2 Dimensions of a PCA analysis I conducted on bird abundance data. I am modelling spatial autocor... |
We know that Pearson correlation tells you the linear correlation (proportionality) between two variables, meanwhile Spearman rank correlation tells you how far you have a monotonic relation (if one grows, the other variable grows or declines too).
Both of them would fail terribly to tell dependence if for example $Y$ ... |
I am trying to find out what methodologies there are for analyzing/modeling time series without assuming the time series is stationary/trying to make the time series stationary. I am wanting to do this to explore if there is some form of useful information that is being discarded when traditional approaches to approxim... |
I'm currently working on a project focusing on "Measuring the effect of an advertisement on sales of a product."
I am seeking advice as I encountered an intricate situation that requires creative solutions.
The situation is as follows:
The advertisement campaign was launched across all population (geography, race, gen... |
I downloaded this and that file. Then, I created histograms showing the daily cost and annual expenses per country. We observe that the histogram of cost21 is more symmetrical than the histogram of food21.
This is further confirmed by the Pearson skewness coefficients I calculated (pearsonII), which yield values of 0... |
Is there a difference between estimating the slope of a line using OLS vs calculating the slope using the formula Cov(x,y)/var(x) ? . If these methods are different, what are the advantages of using either?
|
I'm very confused about the Markov- and the faithfulness condition in disconnected DAGs, as I've never seen such examples.
Assume for example I had a DAG where X -> Y, Z. Thus, Z is disconnected from X and Y. Furthermore I know that $I_p$({Y},{Z}|{X}) in the Probability distribution.
How do I check if the Markov condit... |
I want to measure the marginal Cost Per Accusation (CPA) for a treatment. The experiment is designed as follows:
We have two groups: control and treatment
For every group we measure cost and number of accusations:
We measure the difference for costs and applications between the two groups
marginal CPA = delta_costs/de... |
I have a question on the probabilities of winning a prize in a raffle. There is one round where 5 prizes are drawn (1st, 2nd, 3rd, 4th and 5th price). 1 ticket can only win 1 prize but a participant can buy several tickets and therefore win several prizes at once.
Suppose we have 1000 tickets in one round and I bought ... |
I am working with a data that is I believe left truncated. I am looking at how Veterans with MPNs have a different timing of arterial thrombosis (AT) compared with Civilians with MPNs.
In the data some veterans and civilians have AT after being diagnosed with MPN, which is no problem. However, some of the veterans and ... |
If a regression analysis shows that 1 unit increase in independent variable A will increase the odds of a user conversion (dependent variable) by 2 times, is there a way to infer the change it can have on the average conversion rate too? Is it as simple as multiplying the average conversion rate with the predicted odds... |
I am trying to use the BEKKs Package in R.
For context, my plan is to fit a VAR model of index prices to obtain the residuals. Then feed the residual into the BEKK.fit function.
However, I am not sure if the data object in the function should be the index prices or the residual of the mean equation. Please help to clar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.