instruction
stringlengths
9
38.7k
I understand what a ROC curve is. However, I do not understand the Gini coefficient in the context of binary classification. All the resources I have checked state that $Gini = 1 - (2 \times AUC_{ROC})$. How is this equality derived? As an economist, it troubles me to think of a Gini coefficient in this context.
I have performed a study over 6 months: measuring pain between two groups of patients at baseline, and at 3 and 6 months after an intervention. I am performing a LMM analysis: but just now getting confused if I should use time as a categorical variable (ordered or non-ordered) or a continuous variable. If I use the for...
I have a probability distribution, that in its tail follows a power law. I've noticed, while I was simulating samples, and determining parameters experimentally, that as I increase the value of a percentile I want to measure experimentally, the percentile converges ever so slowly. For instance the median is approximate...
Suppose I have two regression models: Y = B1 + B2.X ln(Y) = B1 + B2.X If I run the Breusch-Pagan test by regressing the residual square with X for both models and find that the $F$ value for model (1) is lower than model (2), is it safe to conclude that model (2) is less susceptible to heteroskedasticity and thereby ...
I am working on a practice exam question for my Probability Theory class and am confused about a solution my professor gives us. The problem is as follows: There is a box with 16 balls in it, 4 red, 4 green, 4 blue, and 4 rainbow. If we pick at random 5 balls without replacement, what is the probability that all 5 ball...
I am working on a research to determine the dimension (health, unemployment, education and standard of living) with the most impact on poverty. The response variable is the decile score obtained for each household in the National Social Register calculated using the Proxy Means Test(PMT).The decile score is between 1 -...
I am self-learning Bayesian statistics using the book Computational Bayesian Statistics by Turkman et al. and I am currently stuck on Chapter 6 Problem 10. It can be found here on page 124. I am confused about the introduction of latent variables. I'm not sure how to write the full joint probability model in part (a) u...
I'm sampling 5 different fields using transects. I'd like to gauge soil moisture and how it varies based on each field. If I choose five pre-determined points within each field and then take their data as 5 REPLICATES, could I then run a mixed effect model with field as a random effect and use the replicates as individ...
I'm trying to compare the increase in percentage of $X$ variable in 2000 and in 2012, so I calculated the percentage of the $X$ variable in 2000 and in 2012 and subtracted the difference. My question is if the sample size is different is it still correct to compare the percentage? For example: Variable X Count in 2...
A linear regression on dependent and predictor variable was run on simulated data after log transformation. x <- rnorm(423, mean = 55, sd = 12) y <- rnorm(423, mean = 1.44, sd = 0.3) dat <- as.data.frame(cbind(x,y)) mod <- lm (log(y)~log (x), data = dat) summary(mod) Question: Is the x intercept in this summary log 0...
I have time series like data, 500 data points of (x,y) pairs. Where x = time in seconds and y = signals. Each of this candidates have an additional label (which tells about the nature of the wave source). And this way I have about thousand candidates data. Now I want to do a forecast analysis, such that the label can b...
I wanted to hear your inputs on the following topic- I have a dataset of microbiome profile and nutrient content from individual plants. I want to understand whether the variation in microbiome profile is explained by nutrient content of the plants. However, the microbiome profile is a multivariate data (with many feat...
Title covers most of it. I'm an undergrad who will be graduating in a few weeks and will be starting a PhD Program in Economics. I'm interested in Econometric theory. I've taken undergrad level probstats, real analysis, abstract algebra, etc but wanted to work through a grad level textbook this summer to better prepare...
I am studying statistics and I am starting to see some parallels between statistical models and systems of equations I used to solve in high school. For example, suppose that on one hand we have a linear system of equations x + 3y = 4, 2x + 4 =2 and on the other hand we have 10 observations of two normal variables W an...
There is a rectangle $S$, and $n$ points are uniformly distributed inside it. If we select an area $A$ inside the rectangle, what is the expected number of points inside the $A$? I think it seems to be $\dfrac{area(A)}{area(S)}$, but some one told me the distribution of points is discrete but the way I calculate is con...
I created a simple data.frame called dataset with 200 rows and two columns predictor and outcome: The first 100 rows contain predictor="a" and outcome=1. The next 100 rows contain predictor="b" and outcome=2. I then fit a regression randomForest on this data. The OOB predictions are correct (1 for the first 100 rows,...
I am studying Structural Equations Modeling and we saw that there are "latent variables", usually extracted using factorial analysis, which we do not observe but that explain the covariance structure of the observed variables. My question is: is the error (in any statistical model) a latent variable? My intuition is ye...
I have performed two ridge logistic regressions in R to check which of the two models perform better. From the first look of the coefficients, it looks like model1 has more influential variables than model2 - simply that the coefficient are closer to 0 in model2. model1 model2 Int -2.04×10+1 1.86×10+...
I have a 88x6500 dataset of people income, where 88 are time periods (quarters) and 6500 are people. My independent variable is X = income and my dependent variable is Y = average houses price in a country. I am studying how the income of the richest people of a country affects its average houses prices. I would like t...
I recently got involved in a study on survival of teeth where the time until extraction was measured. The reason for extraction could be either an infection or some other cause. These other causes seemed to me as a competing risk in relation to infection since an exatracted tooth cannot get an infection. However, it tu...
In my current language model my model is unaware of any token that is out-of-bag for example:- In my summary generating model when we pass some token that is out-of-bag then my model will completely forget that token entirely. Such token might be any Noun such as name of a person, city or anything. And when my main tok...
I have a binary outcome Y and predictors a, b, c, and d. I have a logistic regression model which includes all the predictors, plus all the interactions between all the predictors. What is the right approach to determining whether all the interactions can be removed from the model? My thought was that a partial F-test ...
Would make sense to apply any oversampling (e.g. SMOTE et similia) techniques in order to balance the outcome classes in the context of longitudinal/panel data? Wouldn't such procedures ignore the correlation amongst observations (e.g. in a classic design of a patient observed for 2 or more time points) might just intr...
I am looking to understand the need and intuition for statistical power. I understand how to calculate it, but I cannot understand why we need it. Here is my current thinking: Suppose we have a control group and an experimental group and we would like to perform a comparison of means. In this case the Null hypothesis i...
I am trying to find a solution to a problem, having a dataset with multiple short time series and exogenous variables. Read this, this, and this. And many other resources. Still cannot find a clear answer if I can build any autoregressive model. Dataset characteristics: a large number of independent entities and 3 obs...
I have a dataset that contains images that has cancerous nodules. I want to use object detection models to detect these nodules from the image by using an object detection model. Now my dataset has around 4000 image where I have 1500 images that has nodules but around 2500 images that contains no nodules. In the annota...
I'm using lme4 and have a GLMM with a log link and gaussian variance structure. I would like to report my fixed effect estimates with their standard errors, as well as the standard deviation of my random effects on the response scale. The output from my model is on the link scale. Can I simply exponentiate the output, ...
I am new to using neural networks so apologies if this is a dumb question. However, I have tried to figure it out for over a day now and have made no progress, so I've come to ask for help. I am creating an LSTM model that seeks to generate music. I have pre-processed the data into the following format: where 64 is th...
I'm wondering in what applications or scenarios (or in trying to answer what kind of questions), the researcher would prefer using Model Selection (such as AIC or BIC) over Model Averaging (such as Bayesian model averaging)? One example: if my question at hand is what's the most appropriate model, then I must use Mode...
I'm developing a churn model and I don't know which size of performance window to choose. My intuition is that if its size is too large (for example two years) the model will not succeed to predict it. Even if a model like that works, I'm not sure that it is useful. The same for a too-small performance window. What is ...
From what I understand, the quantile estimator based on order statistics is asymptotically unbiased (and follows a Normal distribution). I have been looking for a quantification of the non-asymptotic bias and found out that Okolewski and Rychlik (2001) obtained a sharp distribution-free bound. For the $p$-th quantile, ...
Are we able/ or is it correct to calculate ICC in random intercept model which has a preditor variable within? Does this value give us the variation of the outcome which is purely related to subject heterogeneity?
I'm building a churn model that is trained on users' historic data(observation window). For this example, let's say that I want to train the model on the last week of use of each user. Is it fine that the weeks of each window will be different according to the last week of use for each user? For example the next figur...
I have data on Male strength at 40 and 70 years, and equivalent data for Women. I can calculate the raw and % differences in strength for each sex, and of course compare the raw values to see which sex loses more strength with age in absolute terms. However, I am unsure about how to compare the % difference between the...
I'm pretty new to statistical analysis, so sorry if this question is a little basic: I have a $4\times 2$ table which looks like the following (it lists the number of successful/failed runs of four machines and the total number of times each machine was run): $$ \begin{array}{|c|c|c|c|} \hline & Success & Failed & Tota...
I want to know whether my understanding for expectation of loss function is correct or not. (x,y) means sample data-label distribution from true distribution. And function f which is respect to weight w is a mapping function from data x to label dimension. And l means loss function that takes label and predicted label...
I would like to report results from SEM I did in R using the lavaan package. I have gotten increasingly confused about how papers use different terms and units to describe latent factor relationships seemingly interchangeably. Here is a picture of one of the models with a number for each relationship I would like to de...
I have a supervised learning problem (regression) with $m$ input features $X=(x_1, ..., x_m)$ with output $y$. I want to predict a "multiplicative correction factor" $\hat \alpha(X)$ such that $$ y\approx \hat\alpha(X)x_m $$ For that I tried using Catboost (Gradient Boosting Trees) with the following loss: $$ L(y, \hat...
I find it hard to distinguish between these two concepts. In a variational inference setting we learn a distribution over the parameters of our function. in the definition of Gaussian processes we learn a distribution over functions. I wonder, when we have a distribution over the parameters of a function, then we have ...
I have 120 IDs. For each ID I have hourly data (90 hours per ID). My data is perfectly balanced. I run xtunitroot tests and all the different versions (llc, ips, demean, trend, lags etc.) and I strongly reject the null hypothesis of a unit root. However, when I run 200 different dfuller tests per ID, I can only strongl...
Consider the following setting. There are two treatments, $A,B$. Individuals in the population are described by a tuple $(y_A,y_B,z)$ where $z \in \{A,B\}$ denotes the treatment received. Only $y_A$ is observed when $z = A$ and only $y_B$ is observed when $z = B$. In a classic paper on non-parametric bounds on treatmen...
Suppose that I want to generate a proposal $(x^*,y^*,z^*)$ with the following: $$z^*\sim p(z|\alpha,\beta)$$ $$x^*\sim p(x|z^*,\boldsymbol{\gamma}_x)$$ $$y^*\sim p(y|z^*,\boldsymbol{\gamma}_y),$$ where $\alpha,\beta,\boldsymbol{\gamma}_x,\boldsymbol{\gamma}_y$ are known hyperparameters. Note the dependence of $x^*$ and...
It may sound silly, but I didn't find an official approach about which final model I should choose when the mean-teacher training ends, even on the original paper. I know both will have very similar weights, as the model teacher weights are the EMA of the model student's weights. Anyhow, is there a formal decision abou...
I was fitting a generalized additive model (GAM) with LASSO penalty to my data using gamlasso, as in the following (here I use simulated data, but the idea is similar): set.seed(1) Sex <- sample(c(rep(1, 40), rep(0, 60))) set.seed(2) Group <- sample(c(rep(1, 30), rep(0, 70))) set.seed(3) Ed <- sample(c(rep(1, 20), rep(...
I have 5 datasets from the same subjects that can be interpreted as different data modalities for these subjects. 4 of these datasets describe brain-related data and the last one contains behavioral variables. I would like to test the hypothesis that one can extract correlated latent factors from these datasets, as for...
I'm a bit confused. I am doing an analysis where there are about 70 observations of my dependent variable. I'm planning to do a multiple linear regression or multivariate logistic regression to see whether there is an association between my variable of interest (X) and dependent variable, whilst adjusting for other pot...
I do not see that Factor Analysis gives a better covariance estimate than the empirical covariance estimate, from the toy data simulation with explanation and code below. Am I doing something wrong? Generative model setup From the CS229 lecture notes on Factor Analysis, I built a (random) generative model for Factor An...
I wonder, if someone could help to understand a formula from a book please. Bayesian Methods for Hackers: Probabilistic Programming and Bayesian Inference (Addison-Wesley Data & Analytics) (Addison-Wesley Data & Analytics) by Cameron Davidson-Pilon Davidson-Pilon See also this. This is the formula: I am not 100% sure ...
I am investigating feeding rates in great apes. Because I am using count data, I built a generalized linear model with a Poisson link function. So I put the number of items in a bundle as a response and as an offset term the needed time per bundle. We want to see if there is any class difference between the rates. Here...
I am taking a Probability and Statistics course. We know that: coefficient of variation = (standard deviation / mean) * 100% Geometrically, what does it mean that the coefficient of variation = 100%. I know that in that case, the standard deviation must be equal to the mean, but I can't imagine the case in which tha...
I have a discrete random variable $x \sim \text{Cat}(\textbf{p})$. What I'm trying to compute is the probability that any sample $x$ has an associated probability of at least $\alpha$. I would compute this as: \begin{equation} \sum_{p_i \in \textbf{p}:\, p_i > \alpha} p_i \end{equation} However, I'm not interested in t...
Assume the following situation: you have a user-item sparse matrix. However, instead of the usual 1 to 5 rating scale, items can only receive a positive (1) or negative (-1) feedback. Thus, the matrix looks like so: user_id | item_1 | item_2 | item_3 | ... ----------+-----------+-----------+-----------+----...
To evaluate my hypothesis that females have worse treatment effectiveness compared to males in patients with axial spondyloarthritis, I wish to investigate reasons for discontinuation in addition to treatment retention rates. First, I used Kaplan-Meier plots to investigate treatment survival and stratified by sex. This...
Say we want to test the overall model adequacy in a multiple linear regression model: $$H_0: B_1 = B_2 = ... = 0 $$ $$H_1: B_j \neq 0 \text{ for at least one j}$$ the random errors $\epsilon$ are statistically independent and normally distributed with mean zero and constant variance $\sigma^2$. If the variance is known...
I would like to know how to write random effects of two interacting factors. For example, I have 6 species which were planted in 48 plots and replicated in two blocks. There are in total 48 combinations (all possible 1, 2, 3, 5, and 6 species combinations ) for the 6 species. By design, combinations are actually nested...
I am trying to fit random forest regression for continuous skewed response variable with so many zeros. Here is the plot of the response variable: In An Introduction to Statistical Learning, authors used log transformed salary to fit regression trees so that its distribution has more of a typical bell-shape. How does ...
Suppose I'm expecting something to happen periodically, with data being randomly sampled from a stream. The random sampling would result in the distribution of times to be a geometric distribution. What would be the appropriate way to tell if the sample is different from what is expected? Eg. Compute the mean, use a T-...
I am analyzing a dataset with 5 factors(Y1,Y2,Y3,Y4,Y5). ID Y1 Y2 Y3 Y4 Y5 1 5 1 2 9 40 2 6 1 17 9 49 3 5 1 6 10 25 4 5 1 14 6 69 5 7 1 19 15 66 6 ...
By following the distribution I provided here on stackmathematics Q. A biased die favours the number 2. It's rolled 4 times and 2 comes up twice. It's rolled again 4 times and 2 comes up once. Calculate the Likelihood and find the MLE. The likelihood is: $L(\theta;3) = \binom{8}{3}\theta^3(1-\theta)^5$, whereas we have...
For an OLS model with one categorical variable as predictor, we often make dummies. One of the dummies - if the no. of categories is more than 2 is allowed to be subsumed by the intercept of the model. Such variable is taken for a reference level. It has been thoroughly explained, how to interpret such a reference leve...
Suppose you are handed a function of a random variable $f(X)$, how would you construct/rule out the existence of an unbiased estimator for it? I've read through Halmos (1946) but the characterization was quite a trivial one, almost just a definition.
I am analysing metabolomics data (~1,000 measurements) across 30 samples from 10 subjects. The samples are from 2 treatments groups of 5 subjects from whom 3 muscle samples were taken from 3 locations (2 from top and bottom of one muscle (A) and the other from a different muscle B). The initial hypothesis was that the ...
I'm doing simulations of an ARIMA(0,d,q) process, and confused about the scaling when d=1 vs d=2. Using a series of random terms $e_t \sim N(0,1)$: I generate $Y_{d1}$ ~ ARIMA(0,1,0) as $y_t = y_{t-1} + e_t$ and get series that typically range between (-5, 5) for t < 100. Here is a typical example: I generate $Y_{d2...
Let $$f\left(x\right)=K\left[sin^2\left(6x\right)+3cos^2\left(x\right)sin^2\left(4x\right)+1\right]e^{-\frac{x^2}{2}},\:-\infty <x<\infty $$ be the probability density function of a random variable X and K is the normalizing constant. I am trying to find a Monte Carlo estimate $\hat{K}$ of K by sampling from the standa...
How can I calculate Akaike's 'An Information Criterion' with small sample size correction (AICc) for glmrob from robustbase in R? Family is binomial(link = "logit"). I can work with the original AIC if AICc can't be calculated. Everytime I use the functions AIC(m) or MuMIn::AICc(m) the output is always numeric(0). The ...
When performing a Mann-Whitney U hypothesis test between two samples of different sizes, why always use the lower $U$ value to compare to the critical value? Is this rule followed regardless of whether its a one-sided or two-sided test? For reference: $$U_1 = R_1 - \frac{n_1(n_1 + 1)}{2}$$ $$U_2 = R_2 - \frac{n_2(n_2 +...
Give iid random vectors $(x_1,y_1),\dots, (x_n,y_n)$ from the two dimensional cumulative distribution function $J(x,y)$. The marginal CDF of $x$ (rep. $y$) is $F(x)$ (reps. same $F(y)$). They have same marginal CDF $F$. Assume that the density $f$ is continuous and positive for all $x$. For $p\in (0,1)$, define the qua...
I have a problem where I am trying to determine whether there is statistical significance from two groups of data. I have two columns which show the frequency of visits to their personal trainer based on receiving notifications about their fitness. Score BEFORE AFTER severe 3 28 78 elevated 2 262 346 moder...
I am trying to understand the difference between the random effects model options I have, and I don't understand the documentation on them well enough to figure that out. They are xtlogit and melogit in stata, which both produce almost identical results if I put in the same coefficients/outcomes, but not quite identica...
If I take $X$ to be a degenerate random variable, i.e. $X=1$ WP1 and $Y=X$ defined over the singleton sample space $\Omega=\{1\}$. Then $$\mathbb{P}(X=1|Y=1)=1=\mathbb{P}(X=1)$$ i.e. I'd assume they're independent. But, we have $$\rho_{XY}=\frac{\mathbb{E}(XY)-\mathbb{E}(X)\mathbb{E}(Y)}{\sigma_X\sigma_Y}=\frac{0}{0}$$...
I assume that there are n exponential distribution that $x_i$ ~ $Exp(\lambda_i)$, i=1..n, and I want to calculate the cumulative distribution of $S=x_1+x_2+...+x_n$, the convolution of n exponential distribution. I used the formulation that I read in a paper given by, $$1-\sum_{i=1}^n (\prod \limits_{j=1,j\neq i}^n \fr...
If we have a series of $n$ IID random variable $X_i$ that are uniform [0,1], and at each round $i$ we decide to either keep $X_i$ or discard it for the next number. What is our strategy to maximize our final number? and what is the expected number we get under this strategy? I figured this is pretty much the coin toss ...
I'm trying to run R's maximum likelihood estimation function (stats4::mle), over a likelihood function in Free Shipping Is Not Free: A Data-Driven Model to Design Free-Shipping Threshold Policies. Here is the likelihood function I'm trying to run mle over (equation $10$ from the paper): $$\mathcal{L}(k_{1},\theta_{1},k...
I've trained a random forests for a regression problem. Now, I want to check if the model is not overfitted. I have tuned the parameters and then compared the R-Squared of Train and Test dataset as below test_predict <- model%>% predict(test_data) %>% predictions R2_test <- 1 - (sum((test_actual-test_predict )^2)/sum((...
Consider 2 random variables $X_1$ and $X_2$: $X_1 = Y_1 \sqrt{\alpha + \beta {X_0}^2}$ $X_2 = Y_2 \sqrt{\alpha + \beta {X_1}^2}$ $ \alpha>0 $ , $\beta \ge 0$ where $Y_1$ and $Y_2$ are independent and both follow a normal standard distribution $N (0, 1)$. Also, $Y_1$ is independent of $X_0$ and $Y_2$ is independent o...
I was going through the t-SNE, but I am bit confused. While the original paper of t-SNE is based on the SNE and SNE uses $\sigma_i^2$ (note the subscript $i$) while calculating the similarity of point $x_i$ WRT other points j. i.e., for each data point $x_i$ the corresponding $\sigma_i^2$ is used. But t-SNE uses only $...
If I perform PCA on a simple table, I can take the resulting principal component scores as variables and then perform regression to predict an outcome from my original data. I would do this for dimension and noise reduction and to see if I could reduce my pc's to less than the number of variables I originally had. Howe...
I read the posts here and here. The real-life problem is: In a rare event simulation catastrophic events occur extremely seldom. The performance of my underlying system has an unknown distribution and gets poor only in these rare events. I want to estimate the distribution of my system performance using a rare event si...
I am trying to carry out a Monte Carlo simulation that results in N pairings of N p-values from Student's t-test and N values of Cohen's d, such that the resulting vectors of p-values and d-values can be joined in a data.frame I can subset to create a data frame of d-values that are paired with p-values that are < .0...
In R, I am trying to produce a survival analysis using Kaplan Meier. I have previously used SPSS. I am trying to compare my results but R is producing a 95% confidence level of the median, whereas SPSS provides a 95% confidence interval. How can I produce a 95% of the median provided by R? Here is a copy of my code: su...
II tried to do a Funnel plot of a dataset for a disease-prevention paper, view dataset here. Got the plot, but am worried it is wrong.The dataset contains the Hazard ratio(HR), Lower control limit(LCL), Upper control limit(UCL) and the Standard Errors(SE)[of Ln(HR)] values, and I used the SE values to calculate Varianc...
I've developed a model and it's overfitting. I want to understand whether adding more instances to my data will reduce overfitting by making the model weaker on the training data or by improving the model's ability on the validation data. Above is a learning curve of my model. As you can see the model is doing well on...
I need approximate datapoints by exponential function with some type of lower limit (variable "y" is price in time and I need fixed minimal value, so asymptote of exponential function cant be at 0). I found this article https://rpubs.com/mengxu/exponential-model but does not help solve my problem. How can I solve it? T...
Assume we divide a large data set D into m different partitions of data in a distributed learning case, using K-means clustering. We do the training in the clusters and they are local experts. Now, we have some new test points that we want to assign to the partitions and obtain the predictions. An initial guess is we c...
A question related to whether a statistical significance test makes sense when you are testing an algorithm on same data (i.e. not doing any sampling). I have an algorithm that receives some data as input and its output can be evaluated in terms of accuracy. There's many variations of this algorithm and I'd like to kno...
For synthetic data generation, does the GAN perform better than a simulator? If so, what are the limitations of the simulator? If we consider Conditional GANs, we could generate data based on the condition provided to CGAN. So, in this case, is it still better to use GANs instead of a simulator? Thanks in advance.
I think I know the answer to this, but just wanted to confirm. If we are given the number of observations in a dataset (n) and the arithmetic mean (m), we can easily solve for the total sum of all observations by multiplying m*n However, if we are given the number of observations in a dataset (n) and the harmonic mean ...
I have a mixture distribution such as $$ X_t = \sum_{i} w^i_t X^i_t , \quad \text{with } w^i_t \in \{0, 1\}$$ and $\sum_{i} w^i_t = 1$. where $X^i_t$ are i.i.d , $\forall t$. I call the $X^i$ the kernel distributions (not sure if that's the correct nomenclature). Assuming I know $p^i_t = E[w^i_t|X_t]$, what would be a...
I have an outcome variable 'expenditure' which I believe may be non-linear in nature so I am running a log-linear regression after taking log of the variable. However, there are values under expenditure that are 0 and those are transformed into missing values, which of course makes sense since you cannot take a log of ...
I am trying to model the relationship between my response 'crop coverage [%]' ~ weed coverage [%] + Soil Moisture [%] using R. Since I am dealing with proportions, I chose to do a beta regression. Since I had some values which were equal to 1, I substracted like 0.0001 from them, so they would meet the criteria for bet...
I'm attempting to understand the neural network architecture used in this paper: Visualizing and Understanding Convolutional Networks. Here's an image of the network achitecture from the paper that is bothering me: So in the first layer, a (224 x 224 x 3) image is convolved by 96 (7 x 7) kernels with a stride of 2. Th...
I have extensive administrative health data (general patient demographics + medical information, place of residence, many study years, few outcome measures) that have limited variables for effectively controlling for confounding. Thus, usual methods like multiple regression are not sufficient for getting unbiased resul...
Given a multivariate random variable $\mathbf{X}=(X_1, ..., X_n)^\intercal : \Omega \rightarrow \mathbb{R}^n$ I want to determine the expectation value of this RV. Now wikipedia says the expectation is simply given by: $$\mathbb{E}[\mathbf{X}]=(\mathbb{E}[X_1], ..., \mathbb{E}[X_n])^\intercal.$$ However, the distributi...
The Alberta Lottery displays the odds to win various Lotto Max prizes on their website here . Each $5 wager contains 3 sets of 7 numbers. The winning numbers are drawn from a pool of 50, so the probability of any given set of numbers to win should be able to be modeled using a hypergeometric distribution. Therefore, th...
Existencial crysis here xD. When you want to determine outliers with IQR, and plotting a box-plot what do you plot if your data is structure in the following manner: n-dependent variables (n=6) (genes) j-treatments (j=2) (drugs) k-time_points (k=2) (in time) For a ttest to compare two means: for each time_point and f...
I have two distributions (N ~ 300, μ = 1.89 and σ = 0.97) and (N ~ 40, μ = 1.74 and σ = 1.18). A ks_2samp returns statistic = 0.2 and p-value = 0.057. Therefore, I cannot reject the null hypothesis that the two samples are identical. A ttest_ind returns statistic = 0.95 and p-value = 0.342. Therefore, I cannot reject ...
My colleagues and I are running a few experiments using multiple stimuli and participants, where participants were asked to rate a series of targets that varied in perceived strength (strong, weak) on their humor style. There were 8 total targets, 4 'strong' and 4 'weak', with people rating them on how likely each woul...
I am creating multiple GEEs with the same covariates, but I am testing different clustering variables. The outcome is a binary yes/no variable and both VAR1 and VAR2 are binary, as well. Patients can be seen at 1 of 7 clinics, and each clinic has multiple doctors. Thus, there is an argument to be made that we should cl...
Say there are $n$ mean-zero random normal variables $\varepsilon_i,...,\varepsilon_n$ with a $n \times n$ covariance matrix $\Sigma$. I have $n$ mean-zero random normal variables $u_i, ...,u_n$ which are independent from one-another but may have different variances $\sigma_i^2$ (i.e. the covariance matrix $\Sigma_u$ is...
In H.Putter & H.C. van Houwelingen's paper "Understanding Landmarking and Its Relation with Time-Dependent Cox Regression" the authors state that the conditional survival function, given $s<t$ and $X(s)$, is: $S(t|s,X(s))=\mathbb{P}[T≥t|T≥s,X(s)]=\mathbb{E}[exp(−\int_s^th_0(u)e^{β(u)X(u)}du)|X(s)]$. Could someone kindl...