instruction stringlengths 9 38.7k |
|---|
My question is, if you take a random variable $X$ with an arbitrary distribution, which has a known and well defined mean & variance, then why does the following interval contain $\approx 95\% $ of the distribution?
$$
\left[\mu - 1.959 \times \sqrt{\sigma^2}, \quad \mu + 1.959 \times \sqrt{\sigma^2}\right]
$$
Like I ... |
I have an endogenous variable X with instrumental variable Z and want to predict outcome variable Y. For this I have longitudinal data with user_id. Currently my model is:
ivreg(Y ~ X|Z, data, x=T)
``
what I would have with longitudinal study would be
```r
lmer(Y ~ X + Z + (1|user_id), data)
How can I include (1|user_... |
If I have the following regression model:
Where stock price is continuous dependent variable and earnings is a sole continuous independent variable.
Earnings extremity is a categorical variable (three categories: small extremity, moderate extremity and large extremity), earning extremity1 = 1 if moderate extremity and ... |
Use GPower for power analysis for cubic estimator in orthogonal polynomial regression?
I would like to determine the sample size I need in order to find a significant cubic estimator in an orthogonal polynomial regression (which I computed with R). I was wondering whether I could do this with Gpower? - I can compute th... |
If $X$ is a P by N size matrix, $X_{ij} \sim N(0,\sigma_i^2)$ if I standardize this X matrix with sample mean and sample variance (assuming I don't have access to the population mean and variance) I have a matrix Y of P by N size with $Y_{ij}=\frac{X_{ij}-\bar X_i}{\bar\sigma_i}$ and $Y_{ij}$ is follows t-distribution ... |
I have conducted a basic mediation analysis using mediation::mediate. My treatment variable (X) is a binary variable with two groups. My mediator and outcome variables are continuous. I also have a random effect to account for repeated measures.
fm2 <- lme4::lmer(mediator ~ treatment + (1|subjectID), data = df)
fm2 <- ... |
I have a study like this: firstly, select several counties within the U.S., and then select bunches of stores within each country. Based on the stores that selected within each country, I need to figure out how many stores have product A and B. For example, there are 50 stores in county X, 30 out of the 50 stores have ... |
I need to draw a stratified random sample from a dataset that is split across three databases. Will the following approach create a random sample?
The data need to come from between two dates and are stratified by a yes/no flag.
The data is split according to its date: before some date it will be in DB-1 while on or a... |
I am looking for advice on computing effect sizes for Level 2 predictors in HLM models.
I found this documentation: https://ssicentral.com/wp-content/uploads/2020/07/FAQ_Effect_sizes.pdf, but am unsure how to apply it to my analysis. I conducted a 2-level random intercept and slope model with longitudinal data (2 measu... |
I am running regressions analysing drought impacts on electricity generation based on fueltype of the generator. I transform the outcome variable (daily_generation) using an inverse hyperbolic sine transformation to account for meaningful zero values.
The distribution of daily_quantity and ihs(daily_quantity) can be se... |
I am using the {GLMMadaptive} package to fit a mixed effect random slope model. And I need to extract the standard error of variance components from the output of GLMMadaptive::mixed_model(). And from the package documentation, it seems that I can use the vcov() method to extract the variance of the random components.... |
I have about 125 rules for a fuzzy inference system and would like to plot/evaluate all the antecedents and consequents to ensure the rules are not in conflict.
For example, I have the following rule:
streamdistance["low"] & streammorder["low"] & slope["low"], vulnerability["low"]
rule
strmdist
strmord
slope
vul
... |
Is there a way to do Coordinate descent but depending on the variable change the method applied to find the coefficient?
For example, apply a LASSO constraint to a predefined 3 variables and Ridge to the other 5? Or is this just elasticnet with a ratio parameter from 1 (meaning LASSO) to 0 (meaning Ridge) depending on ... |
I am forecasting sales of products and want to ensure that I am using benchmark models properly.
Suppose I have selected a baseline model - naive seasonal. Suppose my performance metric is WMAPE.
Suppose I have trained an XGBoost model on 10 products and find that, when using cross-validation on my training set:
The X... |
Assume that we have one deep neural network with an input for images. That deep neural network can classify images.
On the other side, we have multiple Support Vector Machines that classify parts of an image.
If the image pale, does the image have two round circles etc. All these properties are fit into another SVM tha... |
Given the discussion on this answer what appropriate assumptions and contingencies would allow tSNE to have an informative interpretation?
It's hard to come away from that answer feeling like I can ever trust results from tSNE to ever show me if higher dimension data has meaningful separation. Are there other methods t... |
I'm attempting to calculate the variance of this problem in a way that I can apply to future, similar problems.
|
I have a database with 186 observations and 1782 variables that you can access using the following R code:
# Specify the URL of the CSV file
url <- "https://raw.githubusercontent.com/D-PLACE/dplace-data/master/datasets/SCCS/data.csv"
# Read the CSV file from the URL
data <- read_csv(url)
# Remove columns that are not... |
from a problem set I have the following exercise:
Let $X_1, \ldots, X_n$ be iid with $X_1 \sim N(\theta, 1)$, where $\theta \geq 0$. The ML estimator of $\theta$ is $\hat{\theta}_n = \max (\bar{X}_n, 0) $. Let $\theta_n=\theta+h / \sqrt{n}$. (a) Show that if $\theta \neq 0$, then $\sqrt{n}\left(\hat{\theta}_n-\theta_n... |
Given an input X, my goal is to predict a list of probabilities for n factors, where the factors could be attributes like feasibility, comfort, ease etc. using a neural network. I have soft targets for each of these classes that I have computed for each of these targets. The factors are not necessarily related to each ... |
Which clustering algorithms can be used in complex survey designs? Can the kmeans algorithm be used?
I searched for literature using complex survey design data like NHANES, but they do not provide details of the specific algorithm.
|
I have a population of 1000000 data points without labels, and I would like to take the smallest possible sample from that population for manual labeling to estimate with 95 % certainty that the population contains e.g. 2 % unhealthy individuals.
Is there a cool statistical method to do this? It seems like a classical ... |
I'm running a 3-level multilevel model in R with binary outcomes and survival analysis with over 2 million data points. The lme4 package takes 12 hours to run one model or just crashes.
The simplest model is:
library(lme4)
library(lmerTest)
model0 <- glmer(death ~ 1 + (1|id_household), data=df, family="binomial)
I tri... |
My aim is to calculate the 99th percentile of the log-normally distributed data on the left-hand side. There are various approaches described to do this, e.g. ranking data and then selecting the value that is on 99%th percentile of the data.
I was however thinking of using the normal curve theory to accomplish this. As... |
Which is the best test for testing correlation between a 5 Likert scale (50 questions neuroticism scale) and one 4 Likert scale (16 question burnout scale) ?
|
I am performing an Accelerated Failure Time (AFT) regression data on a panel setting (multiple records per observation with time-dependent variables) using the eha package in R. The dataset is relatively large (162,541 records, 15,537 observations)
However, the estimation takes too long compare to STATA. Are there any ... |
I have an experimental design that looks like this:
Animals were reared from nine different source families and were placed in groups of 20 individuals into 18 rearing boxes (two boxes for each source family, assigned to two different treatment groups). From each of these 18 boxes I sampled one animal every three days,... |
I am currently wondering which estimator for the survival function is used for coxph objects from the survival package.
It is clear, that $\hat{S}(t|x) = \hat{S}_0(t)^{\text{exp}(\hat{\beta}^Tx)}$, but what does the package use for $\hat{S}_0(t)$? Is it $\hat{S}_0(t) = \text{exp}(-\sum_{t_i \leq T} \frac{1}{\sum_{j\in ... |
I am performing a correlation analysis between LST values captured from Landsat 8, and combinations of MODIS Terra and Aqua observations. I am also comparing the MODIS datasets with LST values observed from 11 ground weather stations. I calculated the daily mean LST over an ROI for both sets of data (after preprocessin... |
When interaction terms are used in multiple regression analysis, often centralization of the variables (subtracting the mean of the variable from each variable) is used to deal with multicollinearity, Can this method (centering) also be used in logistic regression analysis and ordinal logistic regression analysis?
|
In section 3.6 of Jim Albert's 2009 book "Bayesian Computation with R" he describes a test of whether a coin is fair using a mixture of priors. The coin tossing follows a binomial distribution so the likelihood is $\binom{n}{y}p^y(1-p)^{n-y}$. The prior is given as mixture:
$$g(p) = 0.5\ I(p=0.5) + 0.5\ I(p \ne 0.5) \... |
I'm new to working with panel data in general. While I work with R my coauthors work with Stata. So naturally, I'm running into problems that they can't relate to but I also can't fully explain them my problem due to a limited understanding of panel data econometrics. I tried to solve the issue below by consulting: htt... |
I am performing a correlation analysis between:
MODIS Terra and Aqua Satellites LST Data
Landsat 8 LST Data
Weather Stations LST data.
There are 11 combinations of mean MODS Terra and Aqua LST observations reduced over an ROI (E.g. Terra Day -Terra Night, Terra Day-Aqua Night, TerraDay-TerraNight-AquaDay, and so on). I... |
8 plots (quadrants 3 x 3 meters), 4 invaded with an alien plant, 4 without the alien plant.
I have measured the soil cover (as %) of the species found in these 8 plots.
If I make a PCA with log (n+1) transformed values, the resulting PCA has low eigenvalues of the first two PC (corresponding to 34% and 28% of varian... |
I'm working with data from a pre-post study examining colony-forming unit (CFU) counts before and after the application of a disinfectant. My primary goal is to model whether there's a negative trend in the CFU count from the pre-treatment phase (denoted $t_0$) to the post-treatment phase (denoted $t_1$).
I'm trying to... |
Let $\mathbf{X}$ be Binomial point process in $W = [0, 6] \times [0, 4]$ with $n$ points. Let $A_1 = [0, 2] \times [0, 4]$, $A_2 = [0, 6] \times [0, 2]$, and $A_3 = [2, 6] × [2, 4]$. I want to find $E[N_{\mathbf{X}}(A_1) N_{\mathbf{X}}(A_2)]$, where $N_{\mathbf{X}}(A_1)$ is the number of points from $\mathbf{X}$ in $A_... |
Suppose I have a log-likelihood or quasi-log-likelihood for my data in terms of the parameter vectors $\theta$ and $\psi$:
$$L(\theta;\psi)=\frac{1}{T}\sum_{t=1}^T{\log{f(y_t|\theta;\psi)}}.$$
(I am interested in both the log-likelihood case, and the quasi-log-likelihood case. Being a quasi-log-likelihood means that $f... |
I have the following scenario I'm trying to model with mgcv::gam. I have a continuous explanatory variable X whose response depends on factor A. However, That X*A interaction may also depend on factor B for some, but possibly not all factor levels of A. X however is not expected to separately depend on only B. Without ... |
I want to apply a Bonferroni correction on multiple KPSS tests for stationarity. I have $m$ tests, and so I want to see if the p-values are less than $0.01/m$.
The problem is that the statistical packages (statsmodels.tsa.stattools.kpss in python and kpss.test in R) report p=0.01 if the test statistic is above the crit... |
I'm trying to fit a regression model to predict the total expense of department with predictor variables being the headcount at different levels within the department. Level 1 to level 5 are the different hierarchy levels with 1 being the highest and 5 being the lowest. It is intuitive that the number of people in the ... |
I'm currently exploring the use of difference-in-differences (DD) for my evaluation and have estimated my primary DD effects. I'm interested in understanding if there are differentiated effects between genders. My initial assumption is that I might need to employ a triple difference (DDD) approach to capture this.
Coul... |
I have a question regarding the sample size calculation if I want to compare rates using Poisson regression. I want to compare the rate of book A to the rate of book B. The rate of book A is defined as "number of the bookstores that have the book A"/"number of the people need book A in that city" , and the rate of book... |
Consider a simple dynamic panel model with a single lag: $$y_{it} = \alpha_i + x_{it}'\beta + \rho y_{i,t-1}+\epsilon_{it}$$
Now assuming that $x_{it}$ is most ordinary covariates, this can be estimated either using GMM (Arellano-Bond etc.) or using MLE (Moral-Benito, Allison, and Williams, see e.g. https://www3.nd.edu... |
I am following a group of woman during the study period and performing the analysis using Cox model, comparing non-users against users of the investigated medicine. However, to remove the impact of pregnancy on the response (stroke), my plan is to censor both users and non-users during pregnancy, and restart their foll... |
The dataset I'm working with contains categorical variables with several classes. To do its pre-processing I chose to use Target Encoder.
With numerical variables I used MinMaxScaler. When training the linear regression model, the residuals I obtained do not follow a normal distribution and are not homoscedastic.
I'm t... |
Why does conditioning on O open up this second channel below?
|
I have a dataset on power plant generation, which can be found here.
I use both a FE OLS and a Logit Model (no/some generation)
library(fixest)
ihs <- function(x) {
y <- log(x + sqrt(x ^ 2 + 1))
return(y)
}
reg <- feols(ihs(daily_quantity) ~ drought_index : resource_psr_type_def + CDD + HDD + solar + wind + import... |
What I have tried and done so far:
I am running GLMs and GAMs on my positive, continuous response variable.
I have determined that the Gamma distribution would fit my data best by plotting various QQ plots with EnvStats::qqPlot() function against possible known distributions (Gaussian, Lognorm, Weibull, Gamma).
Then, I... |
I have a within-subject repeated measures dataset where participants were asked to rate images (48 items) at 3 separate time points (t0,t1,t2). Their ratings at t0 is what is defined as baseline, as there is an intervention (A/B) taking place on a subset of images between t0 and t1, affecting t1 and t2.
I have followin... |
I am trying to analyze a dataset consisting of counts of amphibian egg masses (3 different species) in nine vernal pools over a four-year period (consecutive years, 2014 to 2017). During each count (one per year), data were also collected on pool area, pool depth, pH, and conductivity. Initially, I did a standard ANOVA... |
I would like to combine the "gain" feature importance metric from multiple features since this is potentially more informative. In my example, I would like to compare the importance of both hands (i.e., combine two features) to the importance of the neck, nose, etc. How do I combine the gain feature importance metric a... |
I'm working on training an XGBoost classification model on time series data. Currently, I have a lot of data and it is hard to fit it all in memory, so I am trying to better understand if more data leads to better performance for my model through plotting learning curves. However, i'm getting some very unusual results ... |
I have geo spatial data with lat, lon of user activity. I have divided this data into geohashes with precision 6. For each geohash, how do I measure the distribution of points within them?
How do we think of distributions in the context of geo-spatial datasets? I am interested in measuring whether the spatial-distribut... |
I have a data set with counts that exhibit the sample property that
$$\hat \sigma_x \approx \bar x$$
which is to say that the sample standard deviation (with Bessel's correction) appears to approximately equal the sample mean. Actually, I have multiple sets of data which exhibit this property, which is what motivated m... |
I'm using Support Vector Machine(SVM) with image classification.
Each SVM model results a linear model
$$y = wx + b$$
Where $w$ and $b$ is the SVM parameters.
If I have multiple SVM models, I will get a vector $Y$ and matrix $W$ and vector $B$
$$Y = Wx + B$$
In my current case, I have a activation function called sign
... |
I use the badhealth data as an example, I'm modelling the number of visit (doctor) based on the health condition and the age as two features. Mean absolute error is used as the metric. I tried Poisson regression and Linear regression but both give me the same error. Also, the plot of the predicted number of visits is s... |
I have an interesting (hopefully) data science problem and I want to post it here for discussion.
Let's say we have a data set having ONE numerical column and FIVE categorical columns. For categorical columns, they have different number of unique levels. Below provides a sample.
A: A1, A2, ..., A5
B: B1, B2, ..., B100
... |
I found the input of information entropy calculation in the entropy weight method is not probabilities. I can not understand why it works.
In most entropy weight method introductions, the information entropy calculation is as follows
Calculate the relative weight of each sample for each criterion:
\begin{equation}
p_{i... |
Hi recently I want to implement the adaptive Metropolis algorithm. However I dont know how to deal with multidimensional parameters. The normal step of the adaptive MCMC is to update the covariance matrix of the parameters, which are usually scalar or vector. But what if I want to estimate the precision/covariance matr... |
I want to know whether there is a time linear trend in a time series. What are some good approaches? One approach seems to test that the model belongs to ARMA(p,q) family however I am not sure if a test exists for this purpose. If necessary I am willing to specify p and q and I am open to other approaches.
|
I am trying to understand the reparameterization trick. I got some intuition while looking at this popular question, but I still feel largely confused. I am putting my understanding and doubts here and would appreciate the help of the community. Let's assume -
$y = 10$
$\hat{y} = w_3*z + b$
$z \sim N(\mu, \sigma^2)$
$\... |
Suppose I have 4 vectors, the first 2 vectors are of length 4 and the last 2 vectors are of length 400. all values in the vectors range from 0.5 to 0.6.
The Euclidean distance between the last 2 vectors will be greater than the distance between the first 2 vectors. This is due to the much larger dimensionality of the l... |
I am trying to do a meta-analysis to pool many ROC curves together and get an estimate of cumulative AUC using 2 different techniques as logistic regression(LR) and artificial intelligence (AI).
I have 95% confidence interval (95%CI) for only some of the included studies. I found a formula to calculate the standard err... |
I am interested in simulated values that follow a certain distributional shape and map them on to values of a certain range.
Here is an example with the beta distribution.
rbeta(1000, 2, 1) |>
qunif(min = 10, max = 100) |>
hist()
Created on 2023-08-15 with reprex v2.0.2
I use the beta distribution to generate a... |
The equation 12.3, in the book RL An Intro by Sutton & Barto, is shown below with its "diagramatic" explanation in figure 12.2:
Once the episode has terminated at time T, what's the meaning of adding this constant value $\lambda^{T-t-1}G_t$?
If they wanted to add this constant just to conserve the "Area = 1" property,... |
I'm running a regression analysis and I'd like to know if log transforming a percentage value is ok. My y-values are already in percentages and my x-values in absolute numbers. But I'd like to know by how much % y changes with respect to 1% change in x. Is it okay that I log transform my y-values along with my x-values... |
I want to externally validate and update a previously developed and published model (Model A) in my dataset. In the case of poor performance, I would like to develop a new model for the same outcome (Model B). Can I use the same dataset to validate model A and then develop model B? Are there any guidelines regarding th... |
I am struggling to put my transformation of data into mathematical contexts. My goal is to define a mapping that transforms the original data into some awkwardly mixed data. In my simulation study, I have a data frame with two columns $(X,Z)$. $Z$ is binary and $X$ is possibly continuous or discrete. I divided the data... |
I have the following scenario of Bayes updating with which I struggle quite a bit.
Imagine we are interested in the probability that a given person has a disease $D$. We perform two different tests $T_1,T_2$ on a blood sample of this person.
I'm interested in something like the probability that a person has the disease... |
I am currently working on the analysis of measurement data and have the problem of obvious non-normal data. Since most methods I want to use require normality (especially statistical process control and process capability) I first tried to transform my data using a power transform, however this did not work.
The data I... |
I understand that the p-value is defined as the probability to obtain a "more extreme" value of $w$ if $H_0$ is true, i.e.
$p=P(|W| > |w| \ |H_0 $is true$)$
and the "significance level" $\alpha$ is a threshold to decide if it is "admissible" that $w$ comes in null hypothesis setting, i.e.
$p < \alpha \Rightarrow$ rejec... |
My understanding is that the goal of using Gumbel softmax is to change an output that contains logits into a one-hot vector corresponding to the highest probability choice (based on those logits).
However, to me it seems like there are many simpler ways to do this:
Use (soft)argmax on the logits directly. This is the ... |
Llama2 is pretrained with 2 trillion of tokens: $2\times10^9$, and its batch size is of $4\times 10^6$.
We can calculate the number of steps (times we upgrade the parameters) per epoch as follows:
$$\frac{\text{total tokens}}{\text{batch size}}= \frac{2\times10^9}{4\times 10^6}=500. $$
But in the paper we can find:
"We... |
I run online A/B tests and I guess I have some basic stats background, but I've encountered a situation where I don't feel confident about.
We plan to track page load time in each experiment to make sure that our alternative variant doesn't cause a significant drop in the page load time. However, since this metric is a... |
I am conducting a study on wildfires, and so I have made some measures on burned trees. I have 4 variables (level of damage at the base, level of damage on the bark, species and diameter of the tree). I have converted them into numerical values (categories from 1 to 3 depending on the severity of the burn, categories f... |
I have a formula and I am not sure how the author of this paper got to that formula. Im working on an algorithm that can filter out ground points from a Point cloud. The author describes the following formula:
the h_max is later replaced with => h_max(d) = 0.3d (d = distance between two points)
Now what he writes is th... |
In CausalImpact library in R, usually the pre period is considered as the period where the campaign was inactive and the post period is considered as the period after the intervention of the campaign. So the data for pre-period is considered as 0 and data for post period is considered as 1. Can we interchange this? Can... |
I need to detect the outliers of this scatterplot, made with plotly. In particular, I want to select all points that fall outside a certain threshold. Apologies for the screenshot, it's just to give an idea.
I have a dataframe df with Vol1, Vol2 and sd (that is the standard deviation calculated for Vol and Vol2, for e... |
Many analysts attempt to fit a distribution for a random variable by a. estimating the parameters with maximum likelihood then b. assessing the quality of the fit to the distribution by inspecting a QQ plot. They then use the QQ plot to qualitatively assess whether they believe the distributional fit is good or not; in... |
For a paper on social norms, I want to predict an individual attitude by an interaction of another individual attitude with attitudes that people within the same region (e.g., cluster) hold.
In the dataset with which I would like to test this prediction, I have the three attitudes that I mentioned (Dependent Variable D... |
I would like to estimate weights using the synthetic control method (SCM), in particular using the synthdid package provided by Arkhangelsky et al. (2021) for R. Since I would like to include time-varying covariates, I need to manually regress (say with OLS) the outcome variable on the covariates and then calculate the... |
I am considering a Bayesian linear model for which the prior is not proper.
The model is as usual $y = X \theta + w$ where $w \sim N(0, \sigma^2)$, and $\theta, \sigma^2$ are unknown.
The distribution is a normal-inverse Gamma for parameters $\theta, \sigma^2$ (the normal part is improper). There are hyperparameters in... |
Let $D$ denote sampling with $D=1$ indicating subject being sampled and $D=0$ otherwise. $W$ denotes intrinsic variable of subjects, $X$ denotes exposure of interest and $Y$ denotes the binary outcome. The DAG is drawn below, where $D=1$ subjects were selected only.
I am following Cox's Case-Control Studies' Sec 1.3.2... |
I have a model with several independent variables/metrics that each additionally has a corresponding unit, pre-defined upper/lower bounds and a desired value.
Now I wish to compute some basic descriptive staitistics (mode, median, mean, range(abs(max-min)), IQR, stddev, relative stddev) for each variable indicating how... |
I am fairly new to Transformers thus this schema confuses me a lot.
I am familiar with "classic" "vanilla" encoder-decoder transformers. I have figured out that GPT-like models are based on decoder-only transformers, where basically everything is fed to the decoder which then consists of a sequence of "self-attention b... |
Consider the following AR(1) process:
$$
y_{t}=\phi_{1}y_{t-1}+\epsilon_{t}
$$
I am asked to compute the autocovariance betweem $y_{t}$ and $y_{t-s}$.
Write down the DGP for $y_{t-s}$ which is:
$$
y_{t-s}=\phi_{1}y_{t-s-1}+\epsilon_{t-s}
$$
Write down the covariance as:
\begin{alignat*}{1}
cov\left(y_{t},y_{t-s}\right)... |
In frequentist hypothesis testing for AB tests, when we construct 95% confidence interval around the mean difference between version A and B, the mean is an unbiased estimate between A & B, and we are confident that the confidence interval we construct will capture the true mean 95% of the time if we repeat this method... |
I'm estimating a regression utilizing power plant data and drought data. A lot of the generators contain (meaningful) 0 values.
I utilize a IHS tranformation and my main regression residuals can be seen (for a single powerplant) on the top left.
To check my results I am also running an analysis where I exclude the 0s, ... |
I am comparing the assessments of cognitive domains in 2 conditions: either in a noisy environment or in a no noisy environment. The same people are in both conditions. My next step is to see if there is a significant difference on the cognitive domain between the 2 conditions with a paired sample t-test and my hypothe... |
I have a dataframe in R where each row is an sf-formatted geospatial grid. For each grid, I have the number of venomous snakes and the number of non-venomous snakes seen in that area. I also have data on the diets of birds in each grid area. Specifically, I know how many non-venomous snakes birds ate, and how many veno... |
This is a follow-up question on my earlier question Functional Regression in R: Functional Response Regressed on Scalar Covariate.
I have a functional response $Y(t)$ (i.e., a stochastic process) which I regress on a set of scalar explanatory variables $X_1$ ($=1$, i.e., $X_1$ is a constant term), $X_2$, and $X_3$. The... |
I have a panel dataset of a large N and T = 24. I want to estimate the effect of a treatment (in this case, taking on a certain type of credit product) on Y which is an individuals credit score. I would also like to understand the time varying nature of the treatment - for example, can I determine if there is a negativ... |
It is known that the average of averages can yield an incorrect result as compared to the true average.
The classroom example comes to mind: if the test results of class A is [50, 60, 100], class B is [20, 30] and class C is [40], what is the average test result of the whole school?
The true average should yield
$$\mu_... |
I'm working on a beta-variational autoencoder using car images from the Vehicle Color Recognition Dataset. At this point, I'm just exploring different architectures and values for beta. (If you're interested, the notebook is here, but it is very much a work in progress, a bit sloppy at this point, and will certainly ... |
Looking for references on which training error goes to 0. As an example, suppose that we have a linear model $y = X \beta_0 + \epsilon,$ where $\beta_0$ is bounded and each row of $X$ is generated according to a distribution of finite support (or perhaps some distribution with light tails). Suppose also that the noise ... |
I am trying to compute the observed Fisher information matrix for a mixture model estimated by the EM algorithm. My original thought is to simply compute the second derivative of a mixture density. However, I found in the literature that the missing information principle is the standard methodology. I am wondering if i... |
I'm working with a binomial GLM that I've fit in R using the glm() function.
The percent of deviance explained is decent for my field (35%) and I don't think the residuals vs fitted plot looks too bad.
But when I plot the simulated residuals using DHARMa, the plots show some clear patterns:
I've read that patterns in... |
I am unsure how to present the equation of a three way interaction linear model (without expanding all the interaction effects).
Let me clarify:
$y$ is a continuous outcome measured at time $i$ (for $i$ = 0,1,6,12 and 24 weeks).
$time$ is considered a factor/categorical variable.
$treatment$ denotes the group of exposu... |
There is a string that has five potential letters (A,B,C,D,E). However, we have some constraints:
Each unique ordering of the string is a different passcode. Letters can be used more than once or not at all.
No letter can be adjacent to itself anywhere on the passcode (A - A - B - C - D is not valid)
No letter can b... |
Say I have a correlation matrix that measures how well certain components in a system track each other along some meaningful dimension, like condition state:
So, for example, component 1 and component 2 have condition states that track 80% but component 1 and 3 are not related at all.
I want to perform some inspection... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.