instruction stringlengths 9 38.7k |
|---|
Suppose $X$ and $Y$ are two $a \times b$ matrices, randomly sampled from the same normal distribution. I found an interesting phenomenon:
If we sum $X X^T$ multiple times, each time $X$ is randomly sampled, the result $S$ will look like an identity matrix:
Pseudo code
S = 0 # a zero matrix
for iter in range(1000):
... |
We have non-parametric measures like Spearman's correlation and Kendall's correlation in addition to Pearson's correlation. What about covariance?
I guess one can normalize the variables to have zero mean and unit variance, calculate the Spearman's or Kendall's correlation between them, and then scale the result back, ... |
I have a small dataset of repeated measures data (each participant (id) has up to two samples taken) and would like to determine if there is an association between a dichotomous predictor (predictor) and the dichotomous outcome (outcome) by running a logistic regression through GEE.
However, when examining the data I h... |
I have an R glmer (logisitc mixed-effects) model that looks something like:
mod <- glmer(choice ~ (x1+ x2)*log(x3) +x4 +(x1 + x2 | id), data = dat, family = binomial)
I can get the slopes of the interaction between x1 and x3 by doing:
slopes <- modelbased::estimate_slopes(mod, trend = "x1", at = "x3", length=50)
And ... |
In multiple linear regression, when we want to derive the slopes and intercept separately, I have seen the following formulas:
$\hat \beta = (X^T_c X_c)^{-1} X^T_c y_c$
$\beta_0 = \overline y - \beta^T \overline x$
where $X_c$ is the centered $X$ matrix $(x_{m} - \overline x_m)$.
My question is, if we solve for the int... |
I am trying to understand why my UNet replica model has lower accuracy when I did not downsample at all (Only changing the number of channels throughout the network) compare to when I use maxpooling layer like the original UNet.
Does downsample increase accuracy in general? If so why? Because I thought downsampling wou... |
im a math student who wants to study statistics in depth for a master degree(maybe doctor degree). And I was wondering what kind of math knowledge might be needed for upper level statistics. I wanna learn statistics in a mathematically rigorous way and understand all the maths behind statistics knowledge.
I have search... |
I would just like to verify a statement made in the following paper: Peripheral blood HIV-1 DNA dynamics in antiretroviral-treated HIV/HCV co-infected patients receiving directly-acting antivirals
The authors state: "Factors associated with the increase of total HIV-1 DNA were analysed using univariable and multivariab... |
For a continuous distribution, can I replace the mean by the median in two sample z-test? Assuming that populations are normally distributed. I feel like they can because both median and sample mean converge to the population mean (unknown).
|
Input: past history 3D velocity components of an object up to time t; history size is w (window or lag) seconds in the past.
Output: predicted future possible velocities for times in the range t < times <= T seconds.
Say I build some temporal neural network to forecast my future velocities at these different times (hor... |
For a function of random variables $T:\mathbb{R}^n \mapsto \mathbb{R}^m$ Wikipedia outlines how to handle three cases:
$m = n = 1$
$m=n > 1$
$n>1 \land m=1$
There seems to be two missing cases:
$n < m$
$n > m \land m > 1$
Give a function of random variables $T$ and a joint probability density function $f_{X_1, \cdo... |
I'm reading Tomczak's Deep Generative Modeling. When the author discusses auto-regressive models, he mentions that we model the probability distribution $p(\mathbf{x})$ of the data $\mathbf{x}$ as $$p(\mathbf{x}) = p(x_1)\prod_{d=2}^Dp(x_d|\mathbf{x}_{<d})$$where $D$ is the feature dimension (e.g number of pixels in an... |
I ran some FE regressions in Stata using xtreg. One “normal” fixed effects model and a second generalized difference-in-differences model. Now, I am wondering how the code would look translated into a mathematical equation. Please find the code below:
xtreg profit i.post employees i.year, fe
xtreg profit i.post#i.trea... |
Suppose that we are facing a hypothesis:
$$H_0: \mu\geq 0 \quad vs \quad H_1: \mu\geq c$$
where $\mu$ is the parameter of interest and $c$ is a unknown paraneter.
Here, we only have the distribution of an estimator for $\mu$.
Is there any testing method that can be applied to this situation?
|
Say you have two urns with a large number of red and blue marbles each and you know the proportion of red and blue marbles in each urn. Now we choose one urn at random (but don't know which) and repeatedly draw a marble in hopes of deciding which urn we have selected.
Bayes' Theorem is a natural fit of course, but I wo... |
I'm a beginner in statistics, so I'm not sure if this has been asked before. I've looked, but I couldn't find an answer.
So I'm trying to use Bayes' theorem to build a probability distribution describing the probability of an asset to fail in X years. For example, I would ask "what is the probability that my asset fail... |
I am planning a research project to determine which is the optimal strategy to isolate as many unique bacteriophages as possible for a particular bacteria.
In short the process goes something like this:
Sample an environmental sample using one of 10 predefined strategies.
Process/Analyse the sample which will yield 0 ... |
I'm using this past paper to pre-study for a module in Bayesian Statistics. It has a question,
A precision weighing device yields unbiased measurements within half a gramme,
which can be modelled as $\text{Un}(x|\theta-1/2,\theta+1/2)$, where $\theta$ is the unknown weight. A priori, it is believed $\theta\sim\text{Un... |
I am an MBA Student that is taking courses in Statistics.
Up until now, we had only encountered "Chi-Square" in the context of Contingency Tables. That is, how to find if the difference between different groups of subjects is statistically significant or non-significant (e.g. https://web.pdx.edu/~newsomj/uvclass/ho_chi... |
I am an MBA Student taking courses in Statistics.
We are learning about different ways to estimate the parameters (i.e. coefficients) of a Regression Model. Our professor indicated that there are two main ways of doing this:
(a) Ordinary Least Squares (OLS)
(b) Maximum Likelihood Estimation (MLE)
In OLS, basically, a "... |
I am an MBA Student taking courses in Statistics.
Our prof was comparing two different methods of estimating the parameters for a regression model: General Method of Moments (GMM) and Maximum Likelihood Estimation (MLE).
Our prof indicated that GMM is more "Robust" then MLE - supposedly, this means that in more "uncert... |
Consider a parameter of interest $\beta \in \mathcal{B}$, and two hypotheses
$$H_0:\;\beta\in\mathcal{B_0}\quad versus \quad H_1:\;\beta\in\mathcal{B}_1$$
where $\mathcal{B}_0\cup\mathcal{B_1}=\mathcal{B}$ and $\mathcal{B}_0\subset\mathcal{B_1}$.
That is, the null hypothesis is a subset of the alternative hypothesis.
T... |
I've always implemented DP MM's using chinese restaurant process, which necessitates sequential sampling of cluster assignments (as cluster weights depend on current number of observations in cluster, specifically not including observation $i$. That is,
$$
P(\gamma_i = j\mid\alpha,\gamma_{\neg i},\theta) \propto \begi... |
I want to calculate the variance of a certain distribution.
I have a rectangle that is getting shifted to the right (i.e. shear transformation). To obtain the distribution I am computing the value of each column. Here is an example of the original data (Left) and its distribution (Right).
This the original data.
and t... |
For better or for worse, some people shoehorn binary $y$ variables into an ordinary least squares linear regression.
$$
\mathbb E[Y\vert X]=\hat y=X\beta
$$
If we encode the $y_i$ as either $0$ or $1$, we can make this work. The usual OLS estimate of $\hat\beta_{ols}=(X^TX)^{-1}X^Ty$ will work. However, the statistical... |
Suppose we have a two level random intercept regression model:
that is, for i = 1,...n, $$X_{i} \sim N(\mu_{xi}, \sigma_{xi}) $$ and $$Y_{i} \sim N(\mu_{yi}, \sigma_{yi}) $$ where $$\mu_{yi} = a_{i} + \mu_{xi} * b$$ and $$a_{i} \sim N(\alpha, \psi)$$.
How would we compute the correlation coefficient in this case? is t... |
I have a dataset like this:
I only have summary tables of the "loneliness score" for overall, for each sex, each age group, and sex * age interactions. Besides this, I have 23 items that are also collected from the same sample with tables like the one I have provided.
My goal is to generate an dataset of N = 2,000 whi... |
I created a plot with the help of ggbetweenstats:
I wonder about the meaning of the CI-interval which is [-0.37, 1.49]. What does this mean?
Sorry for cutting the labels on the y-axis. The numbers there go from around 60 to 80.
|
I've seen on some plots e.g. with values for the statistical of significance p = 0.7 and for the effect size of g = 0.5.
Is it possible to say there is a certain effect (size) when it is not significant?
|
Suppose $X$ is an $m\times n$ random matrix where rows are I.I.D. samples of $n$-dimensional Gaussian, and $A$ is an $n\times n$ matrix. I'm looking for the value of the following quantities:
$$E[X^T X A X^T X]$$
For zero-centered Gaussian with covariance $\Sigma$ and $m=1$, the following holds
$$E[X^T X A X^T X]=\\
\S... |
I know that we can allocate observations from the total sample to each strata either using proportional allocation ($n_{h}/N_{h} = n/N$) or optimal allocation:
$$n_{h} = \left [ \frac{\frac{N_{h}S_{h}}{sqrt (c_{h})}}{\sum_{l=1}^{H}\frac{N_{l}S_{l}}{sqrt (c_{l})}{}} \right ]n \tag{1}$$
Where $N_{h}$ and $n_{h}$ are the ... |
Note: My knowledge of ML is very limited, but I appreciate detailed technical answers as long as they are wrapped in a more general understanding. I also know this is somewhat of a soft question, and I only appreciate any suggestions (as long as they're specific) to move it to another more appropriate forum, or other t... |
Consider a system process given by $x_t=-0.9x_{t-2}+z_t$,$t=1,2,…,n$ with observation $y_t=x_t+v_t$ where ${z_t}$ and ${v_t}$ are independent white noise with variances $σ^2$ and $σ_v^2$.
Assume that $x_0\sim \mathcal N(0,σ_0^2)$ and $x_{-1}\sim \mathcal N(0,σ_1^2)$, and that $x_0$ and $x_{-1}$ are independent. Find ... |
So, a little context. The image you see is from the GCE A-LEVEL syllabus where they have defined the conditions for approximating binomial to poisson.
But why did they have mention that the approximation is only possible when n > 50 and np/mean < 5? What is special about these two conditions? Is there a graphical or a... |
Obviously the closer the standard error to zero the better. However, what if the values the in which the standard errors are from are extremely large and the standard errors are much higher than zero but proportionately small.
For example:
What if you have a model with a slope coefficient of 0.5 and the standard error ... |
I realize that large changes in model results between using robust and non-robust standard errors can suggest a misspecified model.
My case refers to using a Cox regression and I have experimented with using both robust and non-robust SE. The difference in SE and p-values in my first run is small. However, to account f... |
I am training a model for time series in a walk-forward fashion: train a binary classifier on data from $t \in \{0,T-1\}$ and predict for $t=T$ (following day), then train on $t \in \{1,T\}$ and predict for $t=T+1$, and so on.
I assessed the calibration of the model using the predict_proba scores and the true labels on... |
Standardizing a sample of a random variable to mean 0 and standard deviation 1 are common practice. However, I would like to also standardize its skewness to 0 and its kurtosis to 3, but preserve higher order statistics. I'm aware of quantile normalization, which would allow me to make the sample look Gaussian, but the... |
I want to make an autoencoder over the data that I originally standardized (that is, the data is now normally distributed ~ N(0,1)). The activation functions I use in the linear autoencoder is ReLu.
As I know that about 95% of the data after standardization is in the interval of $<-3,3>$ only by using the Relu function... |
I am still trying to understand the effect of any downsampling (reducing the input height and weight by 2 for example) by pooling or strided convolution? Does downsampling improve accuracy?
Because in my experiment with UNet model, 1 original UNet with downsampling and upsampling, and 1 without downsampling (original h... |
I am trying to model the development of European spot prices of gas. My purpose is to explain what has caused past movements in the gas price, rather than forecasting future gas prices.
Naturally, this data follows a seasonal pattern, which causes the series to be non-stationary. Is this necessarily an issue in the mod... |
I would like to understand if $\mathbb{E}(x^a)$ is equal to $\mathbb{E}(x)^a$ if $0<a<1$. Generally I know that $\mathbb{E}(x^a) \neq \mathbb{E}(x)^a $ but under which conditions this could be not true?
|
Consider a system process given by $$x_t = -0.9x_{t-2} + w_t, \hspace{2mm} t=1,\dots n$$ where $x_0 \sim N(0,\sigma^2_0), x_{-1} \sim N(0,\sigma_1^2)$, and $w_t$ is Gaussian white noise with variance $\sigma^2_w$.
My question is how can I simulate this series and include $x_0$ and $x_{-1}$? I know how to use the arim... |
I have calculated the churn probability score for every customer id using glm model. So, I have a data frame with every customer id and its churn probability score. Ex cust_id 1 has a score of 0.11 which means there is 11% chance that cust_id 1 will churn. I have a older model that does the same thing and provides si... |
If I have a time series problem, and I want to forecast the trend. Should I then bother with removing the trend to ensure stationarity? I use linear regression to train and predict.
I read this related post, where the concept "trend stationary" is mentioned.
Differencing and trend in time series forecasting
A concept t... |
If I understand correctly, a Bernoulli pmf just needs to assign a probability $p$ if there is a success $(x=1)$, and $1-p$ otherwise $(x = 0)$. Rather than the usual formula, can't the following function also satisfy this condition and represent a the pmf of a Bernoulli RV?
$
f(x) = xp + (1-x)(1-p).
$
So if $f(x=1) = p... |
The Wilcoxon signed-rank test is generally used for non-parametric data (i.e. not normally distributed). When the sample gets large, the data will be approximately normally distributed. Therefore there is no need to use the Wilcoxon signed-rank test, and a parametric test would be preferred.
Considering this, the Wilco... |
I am trying to use a neural network to learn the below function. In total, I have 25 features and 19 outputs. The above image shows the distribution of two features with respect to one of the outputs. There are close to 200k examples, and the neural network contains 7 layers with 256 neurons having leaky relu as activ... |
I know there are many questions on why use a combination formula over a permutation formula for the binomial distribution ( for example here), but looking through multiple of these, I still don't fully get the explanations. I was wondering if the following is a way to explain why we use a combination formula over the p... |
I was looking into the maths why coefficients change with the addition of new variables and so looked up the formula for multiple linear regression coefficients. This is what I found from section 3.2.2 in Greene.
In comparison to the simple linear regression versions, I really don't know how to interpret these as I do... |
I have been trying to convert some PROC MIXED SAS code into R, but without success. The code is:
proc mixed data=rmanova4;
class randomization_arm cancer_type site wk;
model chgpf=randomization_arm cancer_type site wk;
repeated / subject=study_id;
contrast '12 vs 4' randomization_arm 1 -1;
lsmeans randomization_arm / ... |
Following this post: If using Glmm with Gamma distribution do i need to transform my data to be between 0 and 1?, I would like to know what the concensus is regarding modelling a response variable with a gamma distribution which has negative values (or at least I think a gamma distribution, histogram below).
Specifical... |
I hope someone can help me better understand how center variables can help address the problem of multicollinearity problem when the regression includes interactions with polynomial terms. My understanding is that the issue of multicollinearity will inflate the standard errors, and the precision of the estimates will b... |
I have this two practical (with R) exercises for my exam:
Using $\chi^{2}$ to test (goodness-of-fit) if fluctuations in wind speed are Gaussian.
Calculating Lagrangian time scale for wind speed. In particular to do this I must use Lagrangian autocorrelation function that is sample autocorrelation function for wide-sen... |
I have 209 unique categories within a column, is there a nice way to plot it ?
I am grouping the 209 unique categories with their respective cost column. How should I represent it visually ?
Below is a small example of the output for the average of the cost grouped by the category(I am only showing one, there are 209... |
If I know $P(D+)=P(disease+)=0.001$, a test is accurate (meaning the test agrees with the truth) 99% of the times, could I calculate the precision $P(D+|T+)=P(disease+|test+)$?
$P(D+|T+)=\frac{P(T+|D+)P(D+)}{P(T+|D+)P(D+)+P(T+|D-)P(D-)}$ by Bayes', but how do I proceed, is more information needed, such as true positive... |
Is it possible to reduce the variance of the average stopping time of a fixed boundary SPRT by allowing variable boundaries as the test progresses at the price of increasing the average stopping time? If yes, is there a specific distribution for which the boundary sequence is known to have the smallest variance?
|
I have 500 items of which I want to know how much they are liked by a specific expert.
To find how much they are liked, I wish to use paired comparisons since this yields more accurate results than asking for a single rating for each item.
Now, if I where to present all combinations of these 500 items to the expert, th... |
Obviously a standard error value close to zero is more desirable. However, is there a rule of thumb for how many standard errors AWAY from zero is considered good or acceptable?
Does this also change for sample size / data type?
|
My goal is to estimate the association between children BMI and distance to the nearest fast food restaurants. The hypothesis is that children BMI increases with increasing proximity of fast food restaurant. Children BMI is higher when the fast food restaurants are very close to school compared to BMI in children where... |
I would like to test graph attention networks in a problem. However, my dataset has graphs with very different numbers of nodes (ranging from 1 to hundreds). Can I use this kind of network in this dataset? I'm not sure how could I evaluate this.
Best regards.
|
I have a high dimensional data and when I applied UMAP on the whole data, it didn't seem to find a low dimensional manifold. Out of curiosity, I chose 3 important features and applied UMAP on that subset of the data. Here is result of applying UMAP on a data with 3 features.
Then I just plotted the data in 3d to see ... |
I apologize. I'm not well trained in formal statistics, so feel free to gently correct my terminology and methods.
For a univariate continuous real-valued time series X, I've calculated probability mass functions for changes over intervals 1 to N: ie. calculated the changes X(t) / X(t-n) (separately for n from 1 to N),... |
I'm creating a regression model that predicts a customer's spending based on their income, while adjusting for age, gender , and region. The model looks as follows:
lm(spending ~ income + age + gender + region, data = tab.ordercustomers)
I want to see what the effect of an extra $10,000 of income is on spending. Would... |
I conducted an experiment where I tested the effect of copper on irrigation dripper blockage.
I had dripper types "copper" and "normal" and once a week I measured whether they are working (1) or not (0).
All the drippers started working (1) and all of them were blocked (0) by the end of the experiment.
I need to analyz... |
What do we mean by a true population model when talking about linear regression? Say I want to study the effects of years of schooling $S$ on wages. I posit the following two models:
$log(wage)=β_0+β_1S+ε$
$log(wage)=v_0+v_1S+v_2A+v$
where $A$ is ability. Which is the "true" population model and what exactly are the re... |
This question is motivated by the fact that a linear transformation of an IID standard normal vector gives the multivariate Gaussian distribution, and that the statistical dependence of such transformed variables is sufficiently described by the covariance matrix.
Suppose I have a random vector $\vec X \in \mathbb{R}^n... |
I have data about the occurence of a data breach at certain companies for the periode 2005-2018. Now I have a question about the model I should use. I have two options:
Probit/Logit: I set the dependent variable to 1 if there have been a data breach in a certain year. For example:
Company A does not suffer a data breac... |
Suppose I have a binomial random variable $X \sim B(n,p)$ and I apply the following bit counting operation $$Y = \operatorname{bit\_count}(X)$$
where $\operatorname{bit\_count}$ is defined in the following Python code.
def bit_count(x:int) -> int:
bits = 0
while x:
bits += x & 1
x >>= 1
retu... |
Problem
I am running through the diagnostics of two logistic regressions and two equivalent GLMMs with their only differences being crossed random effects (intercepts only). The output for the diagnostics look problematic, and I was curious from others here whether or not the random model is appropriate at this point. ... |
I have a question related to the estimation of effects of a certain binary exposure variable on a binary outcome via logistic regression after an exact matching procedure.
Originally, I followed recommendations in the literature and in the MatchIt library documentation to include as controls the variables I used for ma... |
I am currently analyzing a dataset using a linear mixed model.
In the study - using a within-subjects design - participants had to rate the intensity of a stimulus (this is my dependent variable, DV) several times on a scale from 0-10. They were presented with several high intensity stimuli and several low intensity st... |
I want to check if there is a significant relationship between x and y, and then check if this relationship is affected by different stimuli (2 levels), colonies (2 levels), and lightings situation (2 levels).
Which statistical test should I apply?
bellow is my sample dataset:
Colony means that individuals are coming f... |
For a response variable $y$ and predictor $x_0$, I have data for a number of additional variables $x_n$, $n = 1, ..., 7$. I would like to control for a confounder in my GLM, let's call it "size". $x_1$, $x_2$, $x_3$ are all variables that measure "size" in a certain way, e.g. number of incidents, local volume of incide... |
Intuitively, these two important statistical principles appear to describe two facets of the same phenomenon, namely that in the long run, any extreme occurrences get counter-balanced, and things tend to even out.
However, the law of large numbers and regression to the mean are formally differently specified, and I fou... |
I have a paper in revision, in which I present a cox regression model with a significant interaction. The reviewer requests simple slopes. I am familiar with simple slopes from regular linear regression models. But can they be applied to a cox model? I have googled and can not get any hits on the terms "cox" and "simpl... |
I'm fairly new to statistics and am struggling to figure out whether I should be using ANOVA or MANOVA for my research design:
Participants will watch a performance together in one of three different conditions (online, offline, mixed-mode) and after the performance will report on a) how socially bonded they feel, and ... |
"Matching of one group with specific exposures or outcome with a
comparable group is frequently used in medical research to investigate
the association between exposure and outcome." Ref
Does it mean that one has to include a factor in a statistical model?
For example, does the sentence:
"The difference in BodyMassIn... |
In a book Intepretable Machine Learning by Christoph Molnar there is a following passage:
I don’t understand how can we talk about a standard error of the estimated coefficient. I understand standard error as standard deviation of a given sample o values. However, when we are talking about a given weight of a linear m... |
I have the following data:
Code EBP EBM Genre Experience Zone Time
1 4.35 4.83 0 5 0 1
2 4.2 4.1 1 5 0 1
...
1 3.8 4,23 1 0 5 2
And I am tasked with creating a linear r... |
I am trying to run an lmer model with by-participant and by-item random intercepts. My dataframe has 1920 rows in total. The number of items is 32 and the number of participants is 60 (32 * 60 = 1920). When I run an lmer using the lmerTest package, however, I get the following results.
Number of obs: 1824, groups: par... |
I have completed 2-step cluster analysis on a data set and the result is that I have 4 cluster groups. The groups cluster around wellbeing variables - e.g positive affect, carefreeness etc. The cluster output provides box plots indicating the median scores for each variable within each of the 4 clusters.The output also... |
In my understanding of a derivation, the following statement seems to be used:
$$Pr[V\leq X]=E[Pr[V\leq X|X]]$$
where both $X$ and $V$ are random variables.
Is this a kind of the law of iterated expectation?
|
I am working on a research project.
We have roughly 300 study participants that have been categorised into 4 groups. Some of these participants had a recurrence of a disease, and the rest did not.
I'm trying to see if classification into any of the 4 groups has a statistically significant impact on the recurrence (y/n)... |
I am approaching competing risk analysis and I have several questions regarding how to account for what I call the "ceiling" effect and how to interpret the results. I'll try to be structured as much as I can.
I will use the mgus2 dataset from survival with some simulated columns to expose my issues.
library(survival)
... |
I tried to use a linear model to explain a variable "age" with two variables "x1" and "x2".
I can clearly see a decreasing slope inside my scatterplot for age vs x1, or age vs x2, and the pvalue of each coefficient of my model is <0.001, but there is too much dispersion (R2 of my linear model is < 0.5).
I don't have mu... |
I have a dataset and I am wondering if would be a reasonable fit for a number of distribution types.
I was looking to fit the Burr XII distribution in Python initially (using scipy library) and then validate the result using the R actuar library.
As I received different results for the estimates of the shape1, shape2 a... |
I see many sources claim this result, however, I was not able to find a proof for it. I think this should be given in some paper or book. Can someone point me to some resources, or even better, show me the proof? Thanks in advance!
To clarify my question, for a given dataset of $\{x_i, y_i\}$, where $x_i$ represents th... |
The scipy documention lists expressions for the Log-likelihood functions for the Box-Cox and Yeo-Johnson transformations here and here. I'm looking for a source that explains how one arrives at these expressions. I would like to experiment with my own transformations, and am therefore keen to understand how one goes fr... |
I am interested in learning more about the Bayesian interpretation of the Lasso model. The Lasso model assumes a Laplace distribution of coefficients and the optimal coefficients maximize the posterior distribution. However, it is not clear to me why a Laplace prior would do feature selection, compared to a Normal prio... |
I wanted to know what is the difference between running a multinomial logit regression and a logit regression on a model in which the dependent variable is a dummy with just two levels.
My database looks like this
Firm Event Year Info Dummy14 Dummy15 Dummy16
1 0 2014 ... |
I am trying to run a Repeated Measures Mixed Effect ANOVA in R. However, the syntax of the code is really tricky and it seems like there is not a lot of clarity on how to run it as I do my research.
My Fixed effects:
soil_type = 2 levels
treatment = 4 levels
Repeated measure:
days = 3 levels
Random effect:
rep = 3... |
I am playing around with some simulations to see if it is possible to select the order of an AR($p$) process using cross-validation. I simulate a number of observations of AR($2$) using arima.sim(), I split the sample into the training set that contains 75% of the simulated observations and the test set that contains t... |
Suppose $X$ is an $m\times n$ random matrix where rows $x^T$ are I.I.D. samples of $n$-dimensional Gaussian, and $A,B,C$ are matrices of appropriate dimension. What is the value of the following matrix?
$$E[X^T A X B X^T CX]$$
Special cases of this equation occur in the literature for special settings of $A,B,C$, see e... |
Question 1:
Let us first consider the univariate case:
Suppose we have $Y\in\{0,1\}$, suggesting that $Y$ is Bernoulli variable (and hence discrete) and $X\in \mathbb{R}$, then we know that
\begin{equation}
P(Y=y)=\int_{\mathbb{R}}P(Y=y\mid X=x)P(X=x)dx
\end{equation}
What if now instead of $X\in \mathbb{R}$, we have ... |
I have a binary classification problem with 60 samples (N=60). 40 are responders (+) and 20 are non-responders (-) to a drug. There will be ~20 measured features (p=20) per sample with which to make predictions. I expect co-linearity between some of the features. If I devote 20 samples to my test set and divide respond... |
Look, I know the basic answer is either “you don’t” or “you need much more information”. I strongly suspect that there isn’t a fully rigorous way to do this. That said, I am still hopeful there is a reasonably good way, because my specific use case doesn’t need full rigor. On to the actual question:
I have about a thou... |
I'm having a hard time wrapping my head around experiment design and what appears to be a disconnect to experiment outcome analysis.
If I am proposing a z test of two independent proportions (conversion rates) where I have an assumed historic conversion rate of p2 = 0.10 and I want to determine the required sample size... |
In a SVM classifier.
$$\begin{align}
\min_{\mathbf{w},b}\quad &\frac{\|\mathbf{w}\|}{2}+ C \sum_{i=1}^{N} \xi^{(i)}, \\
s.t.\quad&y^{(i)} (\mathbf{w^T}\mathbf{x}^{(i)}+b) \ge 1 - \xi^{(i)},&\forall i \in \{1,\dots,N\} \\
\quad&\xi^{(i)}\ge0, &\forall i \in \{1,\dots,N\}
\end{align}$$
if we have optimal $w$ and $\xi^{(... |
I am wondering whether an approach like what is described here: https://github.com/vidalt/BA-Trees for building a single tree from a Random Forest can be applied to an XGBoost model? Is there a library that already does this?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.