instruction stringlengths 9 38.7k |
|---|
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... |
I am relatively new to statistics and need some help understanding some concepts relating to linear models and their assumptions. My question refers to one assumption, but I am using this as an example for other / all assumptions.
Let's say we have data we want to perform a simple linear model on. We perform the model ... |
I have a rather classical tabular data prediction problem and more or less successfully using XGBRegressor or LGBMRegressor both using MSE as their loss function.
A slight deviation from the standard problem is that training data contains groups of rows (observations and target) belonging together (eras of data) and te... |
All the articles I read, it is clear that, Label Encoding should be avoided for the ordinal data. But, in one of my ML tutorial video of Artificial Neural Network, the Gender column (having two values, male or female) is Label Encoded.
I wonder this is a bad approach.
Can I use label encoding for any column which is ha... |
This is using MCMC (MH) algo to predict volatility from GARCH model:
https://www.oreilly.com/library/view/machine-learning-for/9781492085249/ch04.html
For simplication, consider (0,10)-GARCH (only consider vol) and a trained GARCH gives you a linear relation between variances (understand as Markov states?). I cannot th... |
I have a small dataset with 5 points where x values are log(time) and y = obs. It is known that the behavior is an exponential increase for the first and second (x,y) values and then decreases linearly. The interpolant fit to the data points looks something like shown, but I want to create something like the red curve,... |
for a uni project I am running an ordered logit regression on survey data, using the svyolr package in R. I am looking to report some sort of goodness of fit for the model but am struggling to find any easy to run tests that work with the svyolr package. Some sort of pseudo R squared (I am aware of the shortcomings but... |
i've been encountering a lot prediction intervals in regression and time series analysis to evaluate uncertainty about predictions , i'm using it in my time series forecasts , and i wanna know exactly how to get benefit from it , to assess my model fit ,it'll be nice from you if you can provide some practical examples... |
I have three random variables $X_1, X_2, X_3$ where $X_1$ is from distribution $F_1$.
$X_2=X_3$ are from distribution $F_2$ and they happen to be identical.
My question is what will be the order statistics for these three variables? I am aware of the Bapat-Beg Theorem, which deals with non-identical but independent dis... |
I have two datasets in the US:
Dataset A has 10 million observations of mortgage borrowers with individual features (income, FICO, loan amount, interest rate, etc).
Dataset B has county-level environmental information (air pollution, water pollution, etc.).
I matched A and B on county information. Now, I want to run ... |
I have 7 different sensors of the same type that try to qualitatively estimate soil water content (SWC) based off of the capacitance of the soil/medium they're touching. However, I have read a few articles that use regression to map the voltage output of the sensor to the volumetric water content of the medium (VWC).
T... |
I am working on modeling the relationship between various biomedical variables (age, sex, diseases ...) and DNA methylation data. DNA methylation data consists of percentages of methylation at many genomic sites. The methods to measure DNA methylation suffer from a type of technical artifact which leads to overestimati... |
If anyone could help me verify if my analogy is correct, thanks so much!
Here is an analogy:
A population is like a pot of soup.
We stir the pot of soup with the ladle because naturally the contents of the soup can sink down or separate. This act of stirring is called Randomization.
If we don't stir the soup, then when... |
I'd like to know if my intuition is correct. We have data where each patient can essentially have one of three categories of treatment over a period of time:
untreated
class 1 treatment
class 2 treatment
It might not be ideal but we want to code treatment as 3 'proportion of time on treatment' variables. So, for exam... |
I am working with a dataset with $n$ samples and $d$ features for each sample.
I would like to be able to sample "nice" subsets of this dataset with specific properties. Assume that this dataset follows a PDF (which I obtain using KDE in the scikit-learn Python library). For the purpose of discussion, I say this datase... |
I'm solving a problem for cs 229, problem description in below when i check the answer it mentioned the given equation, but I don't undertand why is that.
I want to know why, anyone give me some sort of proof?
$$\nabla_{\theta} \log p(y;\theta) = \frac{\nabla_{\theta}p(y;\theta)}{p(y;\theta)}$$
|
Covariate imbalance refers to an unequal distribution of independent
variables (covariates) among different groups in a dataset.
Is the above definition correct? So, would the following be an example for covariate imbalance?
A study includes 12 individuals (neglecting that the sample is too small) to study how their ... |
I am working with models that use Dirichlet distributions. However, I want to account for correlations between components. If this question is a duplicate, I'd also appreciate any pointers to the right direction. I have seen this question on "Distributions on the simplex with correlated components", but it didn't reall... |
I am trying to simulate data based on two random effects and no fixed effects.
The simulated data table contains nP projects and within each project nB Batches exists. Each Batch has nR replicates. Thus, I have a balanced design in the end.
The random effect (i.e. standard deviation) over all Batches is sd_B. However, ... |
Question: I have a random one-hot vector $B\in\{0,1\}^L$, where the position of the one entry follows $\text{Categorical}(\pi)$ where $\pi\in\mathbb{R}^L$. Given a constant (non-random) $L\times L$ matrix $M$ and a Gaussian vector $G\sim N(0_L,M)$, is it true that
$$
\mathbb{E}\Big[
\mathbb{E}[B|MB+G]B^\top 1_L
\Big]
=... |
Suppose we are testing a large number ($p$) hypothesis tests. Most commonly, a correction is applied to control the false discovery rate (FDR) at a low value, say $\alpha$. But now imagine a want to report the top 10 features with the largest test statistics, regardless of whether the corresponding p-values are signifi... |
I am trying to understand how to explain the regression results using lrm() in r. Also, how to export the regression results in Excel.I have five classes of dependent variables. Please see below the results
Look at scholarly articles
lrm(formula = region_5 ~ relative_pt + relative_yt +
relative_ur + relative_cp data =... |
I am performing an A/B test analysis on two cohorts tests vs. control. I observed a positive lift of 1.5% (lift in new downloaders) between the test and control.
The total audience in my A/B test was 25000, i.e.,(12500 in the test vs 12500 in control).
Now I want to calculate the overall lift on my whole audience, whic... |
I'm trying to identify how the cox proportional hazards model behave with different censoring proportions and sample sizes. (Censoring proportions = 20%, 50%, 70%). For that I need to simulate survival datasets having different censoring proportions using the simsurv package in R. I'm considering weibull distribution, ... |
I am asked to conduct an exponential-weighted time series regression on original series $y$ and $x$ with look-back window $T$ and half life h. Denote the new series as $y^{*}$ and $x^{*}$
I am wondering what does the halflife refer to, conventionally? is it about the halflife of $y$ and $x$ $$\frac{y^{*}_{t}}{y^{*}_{t-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.