instruction
stringlengths
9
38.7k
Motivating Question I was asked by a colleague today why one would run a quantile regression on quantiles that are "extreme" (such as $.10$, $.90$, etc.), if there are too few observations in that quantile (say a total $n=200$ and the quantile contains some division of this number). This perplexed me, as this is the se...
What are the standard methods for training machine learning algorithms on data, issued from multiple studies? In conventional meta-analysis one usually uses weighted average to combine estimates obtained in separate studies, $$ M=\frac{\sum_{i=1}^kW_iY_i}{\sum_{i=1}^kW_i}, $$ where the weights are determined by the num...
I've never used GLM before so I would like to have some hints on how to use it and if I'm missing any steps. My challenge: I want to know if the price of product is influenced, positively or negatively by other variables that I can measure: Production time of a machine that stays on to build the product during a day H...
I am working with the Poisson Bivariate Distribution and I need to generate random samples to apply in a Monte Carlo simulation, but so far I haven't found too much about it on the internet. I saw that Numpy can generate random samples for the standard Poisson Distribution ( np.random.poisson ), but not for the Bivaria...
I am wondering what the best way to go about the following situation is. I will try to frame it in a clear way but please leave a comment if something can be clarified. I suspect this type of thing is a general problem encountered so I will strip away details of my specific application. Suppose there is a quantity $C(x...
I fit this mixed model with beta for the response variable: photochemical efficiency or Fv/Fm and the predictor variables are categorical: Family: beta ( logit ) Formula: FvFm ~ hora * temperatura + (1 | Experimento) Data: d AIC BIC logLik deviance df.resid -730.4 -711.2 371.2 -742.4 ...
In Gaussian regression models, we model outcome as having some theoretical distribution which depends on the predictor values and can be described by the respective mean and standard deviation (sigma), where sigma is oftentimes described as a measurement error. Would not it make more sense to interpret sigma as sd of u...
first read the scenario A large insurance company is considering introducing a more complex procedure for processing claims. It is expected that the new processing procedure will increase claim processing times. Before adopting the new approach, one company office decides to make duplicate copies of a random sample of ...
I found Doordashe's article about conducting switchback experiments. In their article they use multi-level modeling instead of statistical criterions, which are usually used in A/B testing. They thoroughly describe the foundation behind the model, but unfortunately the do not explain how to gain p-value from this model...
I have two sets of predictions. One prediction has an R2 = 0.57, the other R2 = 0.51 . Plotting histograms of the predictions shows that the set with R2 = 0.51 looks more accurate as compared to the predictions with R2 = 0.57. Also, the plot with the low R2 value captures the tails of the distribution. Can we correlate...
I'm looking at some survey data where the questions were on a Likert scale. For each question I get what percentage respond positive/neutral/negative. There are on the order of 30,000 survey respondents. There are also some indices associated with the survey where a number of questions (usually 5) on a similar topic ...
I don't know how to calculate the variance of a variable when all of its observations have an arbitrary correlation structure. I am simulating the evolution of animals as they branch apart into different species and form an evolutionary tree. Specifically, I am modelling the evolution of two (though I want to extend t...
I have been reading and reading about causality for cross-sectional datasets (different variables including only ONE-YEAR information) and I am still confused... CAN WE analyze causality in one-year data ? If so, how? Could you share some scientific works in that case testing this? Thank you !
For a research project, I need to assess the probability that a new batch is defective. I want to use a predictive posterior distribution for this purpose, as it incorporates uncertainty. A beta-binomial distribution seems most appropriate to me, given that I only have defect rates from previous batches. Can someone as...
Here is my understanding of how dimension reduction in LDA works: We have $n$ samples each with $p$ features assigned to $k$ classes. We use the sample mean $\mu_j$ of each class and the pooled covariance matrix $$ \Sigma = \frac{1}{n} \sum_1^n (x_i - \mu_{x_i})(x_i - \mu_{x_i})^\top $$ as the parameters for $k$ multi...
I recently conducted a simple time-series analysis on some data. In this time series, we observe two elements (red and blue) that affect the trend during alternating periods. I want to measure how much better or worse one period type is from the other period type (A and B) by measuring the effect they have in the tren...
I've been running the following code: # Load the required library library(simr) # Set parameters for the simulation n_clusters <- 24 # Number of clusters n_per_cluster <- 10 # Number of observations per cluster rho <- 0.8 # Intraclass correlation coefficient (moderate clustering) sigma ...
I am doing a SIMPER analysis (in R) with the values ​​relating to individuals contacted in different reproductive seasons to see how the surveyed bird community has changed, and which species contribute most to this dissimilarity. I find everything clear, except the p-values. Do the resulting values ​​of the various "p...
Preparation Using R-Libraries: library(dplyr) The situation Data Given the data my_data <- mtcars |> mutate(vs = factor(vs, levels = c(0, 1), labels = c('V-shaped', 'straight'))) |> select(mpg, hp, vs) which results in > my_data mpg hp vs Mazda RX4...
This might be a silly question, but I have always found this confusing. In a case-control study one selects participants to the study based on having or not having the outcome, in addition to some set of matching factors. Matching on its own does not eliminate confounding by the matched factors, and in fact can induce ...
I am interested in how a biological manipulation changes the behaviour of an animal species. Here the variable $Y$ represents the measure of the behavioural trait I am interested in. I have 12 animals in each treatment level (control & manipulated). The value of $Y$ for each animal is measured multiple times at differe...
I have uniformly sampled datasets from two acquisition circuits: an old model which has become difficult (and expensive) to procure parts to continue manufacturing, and a new version using modern microelectronics. Paired datasets have been produced by measuring the same phenomenon using the same transducers and swappi...
I have two output tensors whose MSE is really small (0.04) but on checking the distribution of the tensors they are very different. I am using: torch.nn.MSE(output_tensor, input_tensor) = 0.04 I am just wondering how can this happen? Edit 1: Here the tensors are the learned representations of words in sentences. So...
While plotting a box plot, the plot is showing the columns in the dataset has outliers, but while trying to calculate it by IQR formula, it is showing there are 0 outliers in the columns of the dataset, why is it showing this? How to find the outliers that the boxplot is showing?
My first outcome is a bounded count (range = 0-5, not zero-inflated, not overdispersed), so I specified a model using a successes-failures matrix and a binomial distribution: library(emmeans) library(glmmTMB) mod1 <- glmmTMB(cbind(out1, 5-out1) ~ 1 + poly(SurveyYr, 2) + coVar1 + coVar2 + (1 + poly(SurveyYr, 2)| orgI...
Given a sequence of trials, where each trial is rolling two dice, each trial's outcome is the absolute difference between the values on the die. What is the probability that the outcome of 2 occurs before the outcome of 3? My solution: There are 8 combinations with a difference of two {(1,3), (2,4), (3,5), (4,6), (3,1)...
I would like to determine how consistent teacher grades are for a given item, both for that teacher and across all teachers. E.g., does teacher A consistently score item 1 as a 1,2,3, or 4; and do all teachers generally score that item the in a similar manner. I can use the items difficulty (based on additional informa...
If we use the below formulation of elastic-net penalisation: $$\beta^{EN} = {\rm argmin} \left( \lVert X-X\beta \rVert_2 +\lambda ( \alpha \lVert x \rVert_1 +(1-\alpha)\lVert x \rVert_2\right)$$ I could imagine that instead of doing the above, we first apply a lasso solve to select a subset of regressors & then apply r...
I am working on a problem related to travel distances of people. I will use leisure trips (this includes day trips or multi-day trips) as an analogy. Focusing purely on the one-way travel distance, the further away the person has to travel to reach the destination, the more likely to require accommodation and stay over...
If I have several correlated variables in my dataset which I would like to include as predictors in my model. For example with this simulated dataset: library(MASS) mu <- c(6.10, 2.33, 1.11, 3.0) sdv <- c(0.34, 1.11, 1.33, 0.34) corMat <- matrix(c(1, 0.91, 0.80, 0.79, 0.91, 1, 0.81, 0.77, ...
I was involved in bench testing for a medical device from 2 companies. How much one end of the device can rotate (0 to 180 deg) translates to rotation at the opposite end (0 to 180 deg) was measured. On a table it would look like: Input angle: 0, 45, 90, 135, 180 Output angle: 0, 40, 88, 132, 178 This is repeated for 1...
I am planning a staggered difference-in-differences analysis examining the impact of a change in health policy at the county level. The policy was implemented at different times in different counties, and in many counties not at all. I have data for all counties in the country, with only a small fraction having ever im...
I have a discrete random variable f(phi) with known probabilities for each n outcomes. Phi represents the random variables m parameters. Each parameter is its own independent discrete random variable with known probabilities for each outcome. Would it be possible to construct a distribution for f(phi) based on the valu...
I'm poor with epidemiological methodology and I'm working on a study that look at the effects of a binary exposure on three time-to-event outcomes in a large cohort (general population). As the outcome being rare (seems to be a nested case-control or retrospective study), could it be possible (or plausible) to extract ...
I am interested in detecting outliers (contextual outliers, global outliers) in a 2-dimensional time series data, so I decided to use the tsoutliers library implemented in R, Holt method (I could not use Holt-Winter because the period is not fixed) and DBSCAN. Holt method and tsoutliers were applied separately to each ...
If we have outcome variable as measurements with associated SD as form of measurement uncertainty and we want to incorporate the uncertainty information in linear regression model, what is the proper way in doing so? One approach to dealing with similar situations is weighted least squares, which can account for non-ho...
I use Gaussian mixture model (GMM) to infer probability density of multidimensional data written as: $p(x) = \sum_{j=1}^{K}\pi_j*N(x|\bf \mu_j, \Sigma_j)$, where $K$ is a number of mixtures, $\pi_j$ are their mixing coefficients and $\bf \mu_j, \Sigma_j$ are corresponding mean vectors and covariance matrices. These par...
I am just now familiarising myself with the literature on Fixed Effect Models. I was wondering if anyone had any references or could confirm that fixed effect models can be used in a latent variable framework. I have a straightforward model with approximately 2000 individuals nested in 8 groups. I am primarily interest...
I would like to ask. I gave to students an example where they test : $H_0: \pi=0.65$ $Ha: \pi>0.65$ $\hat{p}= 0.76$ $n=50$ Students have to calculate NHST and also confidence interval for proportion. $Z=\frac{\hat{p}-\pi}{\sqrt{\frac{\pi (1-\pi)}{n}}}$ $Z=1.6307$ $Z_{crit}=Z_{0.95}=1.64$ As can be seen from these calcu...
My task is: given an image and set of points of interest, elastically and randomly deform the image and save it with the modified aforementioned points. example: (blue points are the points of interest: POIs) with coordinates: points = np.array([ [442, 131], [438, 124], [438, 136], [431, 118], [432...
What method would be employed to calculate the correlation between two space-time series? For example, dataset 1 = a set of space-time points relating to cases of disease 1 and dataset 2 = a set of space-time points relating to cases of disease 2. How can the correlation between theses two spatio-temporal series be ass...
I want to check whether a training program made an improvement on knowledge level on participants. I applied a test before and after the training to the same people (this means I have 2-samples, paired, right?). Data distribution is not normal so I used Wilcoxon test (SPSS) Null hypothesis can be rejected but my quest...
This post answers a question from the Recursive Partitioning for Heterogeneous Causal Effects paper by Athey and Imbens. However, I am blocked at an even earlier stage from the previous post. I don't understand how they derive the second equality in the attached formula, p7 from the arXiv paper. I have some E(-2 * Y_i*...
I have a very basic question about MA(1) time-series processes, that I haven't found an answer for yet. I am trying to understand the intuition behind the typical exponential decay we see in the PACF of an MA(1) process. It is clear why the ACF drops off after lag 1 ($Y_t$ and $Y_{t-2}$ are not correlated as the error ...
Can anyone familiar with nlme kindly explain how does the varIdent, with option fixed actually work? Documentation says: fixed....an optional numeric vector, or list of numeric values, specifying the values at which some or all of the coefficients in the variance function should be fixed. What is coefficient in varia...
I'm quite new to R and I am trying to do some stats. I have a set of data and want to work out whether my data comes from a normal distribution. I was told to do the test on the residuals of my data, but can't remember if shapiro.test() automatically works out and uses residuals of your data or if you have to do that y...
Assume $n*p$ data matrix $X$, where n is the number of observations and p is the number of features. We are interested in the covariance among features. I have seen notations where covariance matrix is $X^{T}X$, $\frac{X^{T}X}{n-1}$, or $\frac{X^{T}X}{n}$. And apparently this also depends on whether the data is demeane...
As per the title, I would like to know what are currently the major issues and controversies in clinical trials design and analysis.
I have binary classifications made by some model, and I know the truth. From this, I can calculate the confusion matrix and all associated values: true positive rate, true negative rate, false positive rate, false negative rate, sensitivity, specificity, precision, recall, positive predictive value, negative predictive...
Most household surveys have age-eligibility thresholds. The HRS interviews individuals aged 51 and older, plus their spouse (if any) using PPS sampling. Do I need to drop individuals who are younger than 51 (the spouses) for the study to be representative of the older population? How should I treat these cases? Most of...
probably a basic question here! I am a scientist. I'm planning an experiment with cells in a dish. The cells are cheap. I can afford n = 8 biological replicates (individual wells in a multiwell plate, each containing some number of cells.) However, the chemical test I want to do on the cells is expensive to run. I want...
I'm getting confused with the results of experimental data with two groups and three measurements. Imagine a mixed-model in lme4, where I am interested in the effect of the interaction group*measurement. My model is a random-intercept model comparable to model1 <- lme(outcome ~ group + measurement + group:measurement +...
I am trying to run a lmer model on my dataset. My dataset : str(tabfi) 'data.frame': 240 obs. of 9 variables: $ Mix : Factor w/ 3 levels "B","C","S": 1 1 1 1 1 1 1 1 1 1 ... $ Origin : Factor w/ 2 levels "L","NL": 1 1 1 1 1 1 1 1 1 1 ... $ Bloc : Factor w/ 2 levels "GS","PS": 1 1 1 1 1 2 2 2 2 2 ... $ Rep ...
I have a dataset of patients with multiple parameters recorded, such as glucose, diabetes, O2 concentration, etc. I want to check whether glucose levels are in any way associated with other parameters. All variables in the data set are either continuous or binary. So far I have checked correlations of glucose with othe...
I have a scatterplot displaying one data set that, at first glance, has a weak negative correlation. Upon further inspection, however, it appears that the data set shows two stronger linear trends that seem to separate after a certain threshold. Is it possible for a single dataset to display multiple trends? I assume i...
I would like to use the Genetic Algorithm (GA) R-package for optimizing a land surface model. I need to be able to interrupt and restart the optimization at any given time because of node failures. In theory, this could be done by storing the GA output after each model run and reading the same output as an input for ea...
In Intro to Statistical Regression (Python) on page 88 "RSE can increased when newspaper is added to the model given that RSS must decrease." Newspaper is just another predictor. The text says that if the RSS decreases in a relatively small amount compared to the increase of the number of predictors. I can't think of a...
I am considering using Lasso regression in combination with variable's correlation to target variable to rank features. Initially, I rank the important variables using Lasso regression. Subsequently, I use correlation as a secondary criterion to rank these variables. I'm uncertain whether it's necessary to verify Lasso...
I am comparing the performance of two different network architectures to solve the binary classification problem of IMBD movie reviews, presented in Chapter 3 of "Deep Learning With Python". Loading the data: # num_words means only use most common `n` words in the vocab (train_data,train_labels),(test_data,test_labels)...
Assume a normal linear model for y with two continuous predictors $x_1,x_2$ and no intercept: $y_i=\beta_1x_{i1} +\beta_2x_{i2}+\varepsilon_i, i= 1,...,n $ You performe a corresponding linear regression on a dataset with n= 20 observations.The estimated parameters were $\hat \beta_1=−10.5$ and $\hat \beta_2= 2.0$, th...
I understand that an assumption of Poisson regression is a linear relationship between the transformed expected response in terms of the link function and the explanatory variables. Therefore you would only include variables with a linear relationship in the model. If I wanted to look at the relationship between differ...
After creating the plot using: plot(Mother_weight_mg~Clutch_size, pch=21, bg=c("Lightblue","orange"),las=1,xlab="Clutch Size",ylab="Mother Weight") abline(lm(Mother_weight_mg~Clutch_size)[which(History=="Fresh carcass")],col="lightblue",lwd=5) abline(lm(Mother_weight_mg~Clutch_size)[which(History=="Old carcass")],col="...
I have multiple groups of measurements, each containing three sets of complex numbers (impedances of the same thing measured under three conditions). The Nyquist plots belows shows two of such groups. As can be seen in the Nyquist plots, there is a larger dispersion between the top group then the bottom. I'm looking to...
Apologies if this is a basic question. Let's say I have a dynamical process $x_{n+1}=Ax_n+\varepsilon_n,$ where $A$ is an $m\times m$ matrix and $\varepsilon_n=(\varepsilon_{1,n},\varepsilon_{2,n},\ldots,\varepsilon_{m,n})$ with $\varepsilon_{i,n}\sim N(\mu_i,\sigma_i)$ for each $n$ and $1\leq i\leq m$. Here both $\mu_...
Let's say I conduct a survey where people can mention their favorite color among four options (red, green, blue, yellow). After collecting the data, I create a contingency table crossing gender with favorite color, and I end up with the following table (this is completely made up data, my upcoming question is not about...
I would like advice on correctly interpreting the covariates for a hidden markov model I have run, using Depmixs4. I'm really struggling to find any examples at all that actually interpret covariates. For example, in my responses I have an output of: Model of type gaussian (identity), formula: sqrt(asc_dist) ~ CCL + Te...
Several sources suggest that when estimating a model using the simulated method of moments (SMM), one ought to always be able to get the difference between the empirical and simulated moments to be 0 on average when the number of moments (P) and the number of parameters (D) are equal. In my experience, I have found thi...
Observations can be nested/embedded within cross-sections or cross-sectional units that are measured. For instance, populations are distributed across regions. There are various methods for dealing with that. But how are cross-sectional units defined? Are they fixed? Must all observations be nested within them? (or m...
I would like to analyze my data with a linear regression: t*k = x x is my measurement with some error t is time I want to fit k as best as I can with the best estimate of the standard error for k possible. Question: For a fixed N, is it better (in terms of quality of fit and minimization of the standard error) to samp...
I am following several guides on the simulated method of moments (SMM) and one practical way of getting the weighting matrix, W, is to bootstrap the empirical moments and invert their covariance matrix. My issue is that the elements of this matrix are very large (because the variances of the moments, and the moments th...
I need to identify golf swings in a set of time-series motion capture data. The following illustrates the captured Y-values (in video pixels) of a person's left hand over a period of about 10 seconds, with segments annotated: EDIT: To be more clear, I only care about segmenting the actual swing from all other motion. T...
I would like to train a model end-to-end that uses the output from an xgboost model as an input. I've successfully implemented full-batch gradient descent into my pipeline with jax, following this guide: JAX vs PyTorch: Automatic Differentiation for XGBoost. However, I am training the rest of my model with stochastic g...
I have a question about Maximum Likelihood values, and how to interpret them. In order to explain the question, please see the Figure below. I will add explanation for how this figure has been created at the end of this question. From the figure it can be see that the value obtained from the Maximum Likelihood Estimati...
Is it theoretically possible to fit a Gaussian model if we already know variance, that is, variance of outcome is not inferred but is known a priori and is defined for every measurement of outcome variable (it is inhomogenous). If it is theoretically possible, is there any implementation in R? In other words, can we h...
Is it enough to prove that the Kernel matrix is positive semidefinite to know that the function is a kernel? Or is it also necessary to prove that the matrix is symmetric?
I have the following model: $ X = \alpha_1 + aZ + \epsilon_1 \\ Y = \alpha_2 + bZ + cX + \epsilon_2 $ Suppose that $Z$ is randomly assigned but $X$ is correlated with the error term $\epsilon_2$, in particular because $Cov(\epsilon_1, \epsilon_2) \neq 0$. So $X$ suffers from omitted variable bias and regressing $Y$ on ...
Experiment Design Mice belonging to knock-out ($n=7$) and wild-type ($n=6$) had their food intake recorded per hour across a 24 hour period. Within this 24 hour period, the first 12 hours is labelled as "light phase" while the remainder 12 hours is labelled as the "dark phase". Food-intake is considered a continuous da...
This code is based on the example on https://en.wikipedia.org/wiki/Radial_basis_function_interpolation : def f(x): return np.exp(x * np.cos(3 * np.pi * x)) - 1 def rbf_exp(x, epsilon=3): return np.exp(-((epsilon * x) ** 2)) # Why doesn't this work? def rbf_lin(x, epsilon=3): return np.maximum(0.0, 1.0 - e...
Given $$\begin {align} \beta&\sim\mathcal N(1.5,1)\\ y&\sim\mathcal N(\beta x,5.5) \end{align} $$I have 10,000 samples from the posterior $\beta_S\sim P(\beta|x)$ Is it enough to get the prediction posterior samples by computing $\hat \mu_s=\beta_s x$ for $s=1\cdots10,000$? And getting a Single sample with dimension $...
In his Is Medicine Mesmerized by Machine Learning? blog article, Frank Harrell shows a calibration curve (below) and states that it is quite poor. I follow the logic: the claimed probability of $0.20$ corresponds to an actual probability of $0.08$-$0.10$. Doubling the true probability sure seems like poor performance....
In my study, 40K completed household surveys. However, when we suggested visiting a nearby health center to measure their physical parameters (height, weight, blood pressure, and blood glucose), only 20K visited. Is it possible to replace the unmeasured parameters of those who completed the household survey but did not...
I am currently studying ARIMA models. When I checked for a Python library to train one, I stumbled upon statsmodels which features ARIMA (and SARIMAX from which ARIMA inherits). However, there is one thing I'm not quite sure I understand. When differencing, we account for a trend in the time series. Nevertheless, we ca...
I'm hoping to find a method/algorithm/approach for fitting to a distribution to regression data. Essentially I have a problem where I have survival data with independent variables, but only cases that actually had an event. All data where an event did not occur before censoring has been purged. I understand a cox model...
The rules of the final round of King's Lottery in Byteland are simple: The player starts to draw balls from an opaque bag containing $a$ red balls, $b$ green balls and $c$ blue balls initially. After the player draws the ball, the ball is not returned into the bag. The player continues the process until he collects all...
It seems to make intuitive sense that if the events $A$ and $B$ are independent then $P(A|B\cap C)=P(A|C)$ because the occurrence of event $B$ should not change the probability of event $A$ even when we know of the occurrence of another event $C$, however I can't seem to prove or disprove the above claim so I'm prompte...
I have data that is grouped by 5 groups. I want to check for outliers as part of a one-way anova. Should the check for outliers on the whole sample, or by group? I am using box plots to look for outliers, plus homogeneity of variance plots and qq plots. Follow on question. If I identify outliers, but think they are pl...
This interesting question: Recurrence definition for a Markov chain gives the definition of a recurrent state for some discrete process. I was wondering, in the case of a continuous (time) process, what is the correct way to define a state $y$ as recurrent? In that case, would the (first) sum become an integral? I imag...
How to compute the log likelihood? Let's take a simple example using a normal distribution and scipy to do the work. Assuming X is the data, and the normal distribution as the model (dist = scipy.stats.norm(X.mean(), X.std())). From what I read, the log likelihood is supposed to be dist.logpdf(X).sum(), in other words ...
I chose the topic of consumption for my assignment in econometrics. My explanatory variables are interest rate, consumer credit, oil price, disposable income and lagged consumption by 1 year. Using these variables and conducting a omitted variable Wald test shows that although all the coefficients are positive ,basical...
Suppose I want to compare some countries to see how similar they are with respect to the relative sizes of the industries in them. So I find data on the distribution of GDP across all industries for each country, and end up with a probability distribution over industries for each country. What distance measure should I...
PageRank is the directed form of eigenvector centrality, denoting how influential a node is in terms of indegree edges. Is there an outdegree version? PageRank assumes that “ important nodes are those that have many in-links from important pages or important other nodes.” “ PageRank measures the transitive (or directio...
I have some troubles finding a strategy to identify the causal effect I am looking for from my observed data. I am assuming the following DAG: where $Z$ is the result of a coin toss (randomization), $A$ is the exposure of interest and $Y$ is the outcome of interest. I am assuming that $A$ is binary (0 or 1) and $Y$ is...
I am using the R function joincount.multi from spdep to look for spatial autocorrelation with my data. The joincount column is not an integer which is my expectation. I note that my adjacency matrix (from nb2listw) is not 0/1: the weights are 1/n, where n is the number of neighbours (so it sums to 1 over the rows). Is ...
I have a Conditional Generative Adversarial Network for Quantum State Tomography. The metrics I am monitoring during the training process are the losses and the Fidelity (the degree of similarity between two matrices). Fidelity close to 1 is good and close to 0 is bad. My result is a Fidelity over 0.999 which is excell...
As I was reading through this paper http://www.jstor.org/stable/25652278 I came across the following problem: Consider an urn with $N$ colored balls, the number of red balls, $X$, has a binomial distribution $X \sim B(N,p)$ with $p$ known. We independently and randomly draw two balls from the urn with replacement, that...
I have two elastic net model and I want to compare their coefficient to say if they have any significant beta effect changes across these two models. I thought of using Anova but realized since we don't know the variance associated with the beta effect, I can't use anova. For example: B1 and B2 are beta effect sizes ac...
I have a response variable (Yes/No) by visit with some missing values. I am considering imputing the underlying continuous variable in SAS using proc MI. After this process, I will have, let's say, M imputed datasets. How should I combine them into one dataset? In other words, how can I apply Rubin's rule if I need a s...
I am trying to figure out generally speaking how the standard errors for an individual estimated random intercept can be computed given the group-level and the individual-level variances. The model would be the random intercept model $y_i=\alpha_{j[i]}+\beta x_i + \epsilon_{ij}$ where $i$ is an individual measurement i...
Context: I am using national mortality database to compare the mortality of X disease by demographic factors. I divided the county based on social vulnerability scoring into 4 groups (1,2,3,4 based on which quartile). So I want to compare the mortality rate between group 4 vs group 1. I have calculated the age-adjusted...
I implement a classifier in python based on Negative Selection (Artificial Immune Systems) that classifies a dataset of transactions as either fraud (Class 1) or non-fraud (Class 0). The dataset is highly imbalanced so I use 5-Fold stratified cross validation and undersampling in the training data. For some reason I al...