instruction
stringlengths
9
38.7k
I am trying to estimate the amount of overlapping data between two subsamples within a sample. I have the sample size, the sizes of the two subsamples, and I know the correlation between the two subsamples' sizes (I have many samples to calculate the correlation with). I do not have the raw data, just these aggregate n...
Suppose I have $n$ i.i.d. samples $X_1,...,X_n$ drawn from a distribution with CDF $F$. We use the samples to form the empirical CDF: $$F_n(x)=\frac{1}{n}\sum_{i=1}^{n} \mathbb{1}_{X_i\leq x}$$ The Dvoretzky–Kiefer–Wolfowitz inequality provide quantitative bounds for how close we are to the true CDF (i.e., how close $F...
I initially planned to do multiple linear regression using four independent variables to predict one dependent variable (size) (n=142). All are ratio data. Should I proceed with multiple linear regression, knowing that: Only "size-tc" has Pearson's correlation that is statistically significant (p<0.05) Shapiro-Wilk te...
As the title says, I was wondering, if I have to train every neural network of a deep ensemble on a different training set or on the same one. I ask this question because I am getting weird results. If I use the same training set I get overconfident predictions and the deep ensemble fails to estimate the epistemic un...
Suppose $f: \mathbb{R}^n \to \mathbb{R}$ is known, where evaluation and gradient computation is easy. How can I sample $x \in \mathbb{R}^n$ such that $f_x \in \mathbb{R}$ follows uniform distribution? Is there any good sampling algorithm for such problem? My current workaround is, splitting $[0, 1]$ into many bins with...
I have been given the task of calculating a squared exponential covariance function for some given data. If I am calculating the covariance as a function of x, (p(x)-E[p(x)])(p(x')-E[p(x')]) = cov(x,x') = Aexp(-B*(x-x')^2). My confusion is arising from the fact that the squared exponential function is either purely pos...
I was researching logistic regression's critieria, and I found in many different sources that the ideal sample size = (10 * #of explanatory variables) / (probability of least frequent observations) Can anyone explain the reasoning behind this formula? I want to understand why this formula is used before I blindly use i...
This is wrt the survey R package. My svydesign seems fine.. and I'm producing good estimates. It's a 1-level cluster sample design. I see my finite population as 160 psus. I see my population at 1600 psus. But when I run svytotal(~var, design) it's equivalent to svymean(~var, design). I see no obvious reason why this w...
For models of a binary purchase decision, is there any academic literature or practical wisdom on coding the relationship between item price and a consumer's stated budget? Consumers will sometimes purchase items that exceed their budgets, or they can be less likely to buy items that are too cheap or too dear relative ...
I am trying to understand how maximum likelihood (MLE) and generalized method of moments (GMM) are related to each other. In particular, I often see people saying that MLE can be written in terms of the GMM or some minimum-distance estimators. I am not sure how this is true in general. Suppose my parameter of interest ...
I am new here. I have a question regarding the anlaytical weights used in ivreghdfe or reghdfe regressions. People usually take aweights in STATA, my question is how we deal with the weight if the weight itself is highly skewed? Should we take the logarithm over that or should we drop those outlier observations simply?...
Let $f(x)$ be the pdf of a random variable that we want to truncate to the interval $[a,b]$ and then sample from it. Let $F(x)$ denote the corresponding cdf. We can use inverse cdf sampling and generate a draw from the truncated version of $f(x)$ via $u \sim Unif(0,1)$ $x \sim F^{-1}[u * (F(b) - F​(a)) + F​(a)]$ which ...
In a paper, the authors say, "We can thus approximate welfare by computing the ergodic means of log consumption and log consumption growth from long simulations of the model.". They use the approximated welfare for other simulations in their paper, but they do not show how to compute the ergodic mean. How to compute it...
I am trying to estimate a multiple group model where I fix some of the item parameters and estimate the rest. I was expecting that this scenario would allow me to remove the restriction on the reference group, that means, that if I fix the items I don't need to also fix the distribution of the reference group. However,...
I saw multiple articles describes GD or SGD with the following diagram: I didn't saw any explanation about the ellipses. What does each ellipse describe ? What is the meaning if the ellipse has large or small diameter ? Does the wights (which are the ellipse in the image) must has the ellipse shape ? (Are there any o...
I want to preface this with: I am not the best statistician. So please bear with me if this is either really simple or riddled with errors. I have a dataset of geographic areas classified by decile. I have been able to gather a number of events in each decile and calculate an expected number of events in each decile ba...
I´m having troubles to estimate the error variance of FWL estimator and its degrees of freedom, is this demonstration correct or there is an alternative method to find it? Thanks \begin{align} \hat{e}^t & = M_2Y -\ M_2X_1\beta_1\\ & = M_2Y - M_2X_1\ast\ (X_1^tM_2X_1)^{-1}X_1^tM_2Y\\ & = M_2(I - M_2X_1\ast\ (X_1^tM_2X_1...
When I see plots of the conditional probabilities, marginals and joint distributions together they are mostly plot using Gaussians. It is not clear to me if this applies to every other distribution. For example, in this image the conditional f(x1|b) will always peak at the argmax of f(x1) because the joint distributio...
I begin exposing the context of my work, and the main doubt or approach about. My project is based in a clinical trial in which I have 3 groups of intervention (OO, NTS, LFD). The individuals (n = 151) are almost equally distributed in the 3 groups, and teh variables to measure are genes: these genes are measured at ba...
I have a dataset with missing values that I'm trying to impute thanks to MissForest algorithm using python missingpy library. To my understanding, I should keep in the inputs even columns with no missing values as they carry information for the random forest models training. However, for categorical variable with no mi...
I'm sorry if this question sounds trivial or is a duplicate, but I could't find a definition formula for the $c$-index. There are numerous questions and answers about it, but all I have skimmed assume that the reader knows how to compute it or has the software for that purpose. I've read that for binary outcome it is e...
If an outcome, variable $Y$, consists of a noise or idiosyncratic error ($e$) that is orthogonal to an independent variable, $X$, is it possible to increase $e$ without changing the $Cov(Y,X)$?
I am trying to get an intuitive understanding of the concept of calibration. Definitions first. Consider a data distribution $P(X, Y)$ over binary labels $Y$, and a probabilistic classifier which returns the class prediction and the confidence estimate: $ h(X) = (\hat{Y}, \hat{P}) $. The confidence estimates are calibr...
If we need to compute mutual information between two features (columns) where each feature can only be either continuous or discrete, it's easy to compute mutual information between them using scikit-learn's mutual_info_classif or mutual_info_regression. However, if we were to compute mutual information between two sam...
So essentially I have patient data for a period of 5 years: same patient each year each person has 5 predicted risks (for each year) - e.g. in 2017 there risk was 2%, in 2018 the same patients risk was 8% etc The equation predicts the risk of an event in 5 years n is approx 100 All data inputs has been converted to num...
I need to evaluate the significance of many values against their respective control distributions, some of which are not normal. For extreme cases, where the value is higher or lower than any value in the control distribution (10^5< N <10^6), I would like to evaluate the one-sided probability to reach at random such a ...
I have the dataset from survey with participants IDs and IDs of another participant (or participants) that first participant knows, just like this: Participant ID Knows participant 111 353 111 777 111 112 111 249 112 143 112 144 113 111 113 244 114 NaN 115 113 ... ... 777 111 777 398 7...
I came across this explanation about a 61% win probability: 61 percent should be interpreted as: “if these teams played 100 times, we would expect Marquette to win 61 of those games.” It definitely does not mean that the model is 61 percent confident that Marquette will win. So my questions are: Why a "% win probabi...
I am currently running a multi-linear regression (MLR) model on a dataset corresponding to the time consumed in production, from 2020 until 2022. I have done a fairly amount of investigation to drill down the variables used to 12 variables, non of them a time related variable (year, month, day, whatsoever). I am traini...
Let's say I have a long document (let's say 10 pages) and I have a question about the content of the document. An example could be: Document: History of Flowers Question: What type of flowers have been considered edible in the past? My objective is to find in this document the information that answers this question. My...
I can create a random ordering for a list $L$ by sampling values $y$ from a uniform distribution $U(0,1)$ for each item. If I sort $L$ on $y$, I can perform a simple shuffle. I'd like to use a list of weights $W$ to bias this order. When sorted, this would be equivalent to roulette wheel selection, or a weighted select...
Imagine a card player who is participating in a tournament with 4 different versions of one card game. The probabilities of winning by doing random actions in each type of game are the following: 0.61, 0.52, 0.44, and 0.35. Player statistics for all these types of games respectively are the following (games won/games p...
How would you do an robustness or sensitivity analysis for an ordered logistic regression? Can it be done by replacing the control variables with others that are similar in the model? For instance replace health with hampered in dayli life or replaceing the NA's with 0? If you can also recommend any textbook, video, li...
If we have a time series $y_t$ and we want to model it, is the following intuition about the ARMA model correct? $$Y_t=f(\beta,t) + e_t $$ where $e_t \sim$ ARMA. So there is a decomposition of a deterministic part $f(\beta,t)$ and a stochastic part (the noise) which can be modelled by an ARMA process.
Let $A=(d_{ij})$ be a distance matrix, i.e., $d_{ii}=0$ for all $i$ $d_{ij}>0$ for all $i\neq j$ $d_{ij}=d_{ji}$ for all $i,j$ $d_{ij}+d_{jk}\geq d_{ik}$ for all $i,j,k$ How to find a random distance matrix $A'$ close to $A$ (by any matrix norm)?
I have a table of ~600 numbers and percentiles like below: Data 40th 50th 60th 70th 80th 90th 71 53 55 57 60 63 68 101 78 81 83 88 92 102 121 89 94 98 105 110 123 209 146 153 163 171 176 189 68 71 74 77 81 85 92 ... ... ... ... ... ... ... What I want to know is what would be the best way to deter...
As you can tell from the title I'm in a bit of a fix. I have a data set with three continuous variables and one dichotomous one. Data collected from four groups. The data set is a developmental measure, so each of the participants have a score for each variable, and the participants vary in age. My goal is to test the ...
I have data from a study for a "device". Subjects receive an implant and are followed for 5 years, with a checkup every year. A "disability score" is calculated from a survey every visit. The implant comes in different "sizes". Also, every year the "device condition" is evaluated. What I'm trying to do is see if "devic...
I couldn't find a specific thread that discusses this, but I was wondering why the difference between these 2 formulas for Variance $\frac {\sum (x-\mu )^{2}}{N} $ and $\sum (x-\mu )^{2} p(x)$ I can understand that the bottom equation applies to discrete distributions where we know the entire population and it's probab...
I have run probit and logit regression analysis for a model, where the dependent variable is 'Purchase' which takes the value of 1 for purchase, else zero. The independent variable is the log of distance from the highway. The unit of distance from the highway is in miles. I have calculated the marginal effects: I hav...
After reading several posts on this site, I am still not sure on how to proceed. I have a set of genes, and have the proportion of mutated sites in each of them. This is an example in R: myStats<- data.frame( SampleName = paste( 'GeneName', 1:9, sep = ''), PropOfMutations = c( 0.12210201, 0.13885505, 0.1286...
Problem: I am building a multivariate model for recursive time series forecasting, where the goal is to make a 4-step-ahead forecast. The actual data for the forecasting period is available. As far as I understand the forecast from each successive step is fed back into the model to generate the next step. Consequently,...
How to do Fisher's exact test in univariate survival comparison on 2 groups (10 vs 15 patients), small size events ( 5 vs 3) and multiple times to events?
I am struggling to set up the correct formula for a zero-inflated negative binomial regression model in R which accounts for time series data. I read through a lot of manuels and blogs however I still don't really understand how to define the panel setting. I want to use the glmmTMB package and have a df which has time...
(TL;DR version below) If my understanding is correct, bias/variance are measures of goodness of fit of a statistical estimator w.r.t. the sampling distribution. So if I have a statistic $t(X)$ that estimates a given population parameter $\theta$ with high variance, it means that for every sample $x$ drawn from the popu...
This is a two-part question that first asks how to query some data I have in R, and secondly, asks what might be the appropriate statistical operations to test any perceived relationships between variables that might be found. (I originally posted a different version of this question on StackOverflow and it was suggest...
I am working on a binary classification problem on a highly imbalanced dataset (1:100) where model probabilities are important for the use case and need to be well calibrated to best represent true probabilities for the minority class. I have trained several models and am using class weight parameters during the model...
This simulation depends on a parameter called epsilon = 2. How do I estimate epsilon given the binary outcome ($y$) and the predictors ($x1$, $x2$)? The latent variable z is not observable. If I'm able to estimate epsilon, how do I modify my confidence intervals to account for the uncertainty caused by epsilon? # Load ...
Say we have a pipe spitting out potatoes. The potato masses are distributed with exponential distribution $$ P(\textrm{potato mass}= x)=\lambda_1e^{-\lambda_1x}$$ Each potato arrives with intervals following the exponential distribution $$ P(\textrm{arrival time}= x)=\lambda_2e^{-\lambda_2t}$$ Say we have buckets that ...
I met with "Tikhonov regularization" in two textbooks. The first is "Pattern Recognition and Machine Learning" by Christopher M. Bishop. In page 267 of his book, the regularized error function is $$\widetilde E=E+\lambda\Omega$$ where $E$ is the original sum-of-squares error, $\lambda$ is the regularization coefficient...
I measured execution times in environments A-1/2 and B-1/2 for tasks I and II. I performed these measurements in two different contexts V1 and V2. I have created a third table in which I form absolute difference between the cells of V1 and V2. I now want to show that V1 and V2 do not differ much. Do you have recomme...
from textblob import TextBlob from newspaper import Article url = 'https://en.wikipedia.org/wiki/Mathematics' article = Article(url) article.download() article.parse() article.nlp text =article.summary print(text) blob = TextBlob(text) sentiment = blob.sentiment.polarity # -1 to 1 print(sentiment)
I know the question is a bit general but I am a bit stuck. I am using a glm model with the binomial family to predict if a specific occurrence is going to happen or not. The problem is I have more than 150 potential predictors and millions of observations. I am struggling to improve the model. I an=m using the p value ...
I recently started exploring pruning methods for Deep Neural Networks and stumbled on some interesting papers suggesting algorithms for unstructured pruning at initialization (e.g. SNIP), i.e. removing single weights (elements in the connection matrices) instead of full neurons (rows/columns of the matrix, depending on...
I am training a LSTM model for load demand prediction with: Training Data: 18288 samples with 9 features Validation Data: 0.05% of Training Data (about 915 samples) Data Scaling: MinMax Scaler(0,1)--->Including the target variable. Batch size: 1024 Length of Past Data Window: 24~72 Model Architecture: (attached) Learni...
So, basically I have data with millions of observations on trees. The data was sampled in different time periods, so it is structured in a way that one line contains information on one tree on the first and second measurement. Each tree is recorded dead or alive on the second measurement. That is basically what I am tr...
If all sub-populations are normal, will this population normal? What is this theorem called?
Suppose my theory tells me that some outcome $y^{}_{it}$ for individual $i$ in time $t$ is generated by the following process: \begin{align} y_{it} =& \ \alpha^{}_{i} + \beta^{}_{i}x^{}_{it}+\varepsilon^{}_{it} \\ \beta^{}_{i} =& \ \beta + \gamma^{}_{i} \end{align} Here $\alpha^{}_{i}$ is an individual fixed effect, $x...
I have a paper under review where I conducted a Kruskal Wallis test in SPSS to compare 4 groups. Each group contains payments made by companies over one year, and group 1 received substantially more payments than the other groups. Group 1 - 18,190 Group 2 - 1,370 Group 3 - 990 Group 4 - 311 A reviewer suggested that fo...
I have been trying to develop a GAM to predict future subsidence from previous subsidence data. I am new to GAM and have based my code on [this].1 The data looks like this: Longitude Latitude Time Subsidence YEAR month 81 76.29542 10.05154 2015-10-12 0.02640557 2015 10 82 76.29615 10.05154 2015-10-12 0...
Statement: Let's assume $ X_i =\{x_1,\ x_2,\ldots,\ x_i \}$ is a set of products that I am interested in their length. I have two measurement devices that measure the length of these products in random order. In other words, $L^1_{d1}$ and $L^1_{d2}$ are not necessarily the length of $X_1$. Moreover, I have the measure...
I am doing something to a set of $N$ patients (keeping this vague for generality). In order to assess if my intervention/treatment is making any difference I did the following: Before my intervention I measured something about the patients (call that measurement $X_i$ for patient $i$), and repeated the same measurement...
I am inexperienced in using Rstudio and data-analysis. I want to perform a Generalized Logistic Regression, using an independent variable with 4 classes: 0,1,2a,2b and a dependent variable that I want to predict, with yes or no (1,0) Finally, I figured how to change the reference variable in order to to let all the 4 ...
This may not sound like a practical question, but I am trying to create essentially a toy problem that can help me understand and apply some explainability algorithms (eg Integrated Gradients). To do this I am starting with a fairly simple regression model that only has categorical features, and I want to use an embedd...
I have a data set with abundace of 4 species (S. spp, in bright colours here) across 72 sites and corresponding temperature, pH, altitude, moisture. First, I performed a CCA where species abundance ~ temperature + pH + altitude + moisture. This graph captures the crux of the analysis: Then, I wanted to explore how dif...
I am trying to derive from scratch variational inference for LDA. I am following this course: https://home.cs.colorado.edu/~jbg/teaching/CSCI_5622/19a.pdf When computing $p(Z|\Theta)$ they do the following: What I can't understand is where does that $\Phi_{ni}$ comes from. $\Phi$ is supposed to be the parameters of th...
I need to design an animal experiment where I test the survival proportion following administration of a vaccine and inoculation of the disease. I have 3 vaccines in the trial, the control (C), the standard (S), and the test vaccine I design (T). I am trying to conduct a power analysis to correctly choose the number of...
I have several predictive features in my data which was randoemly sampled from a population. I've trained a linear regression model and got the coefficients vector. Coefficients: [ 0.05695075 0.56977067 2.43343221 4.14751194 1.20493825 0.63284814 6.00986742 5.12038658 -1.92726791 7.23478794 4.32105771 2.454...
A colleague of mine asked me why use proportionality when they could instead use CLR transformation followed by Pearson/spearman/biweight midcorrelation. I vaguely remember reading why correlation following CLR transformation isn't appropriate for compositional data but I can't seem to recall the exact details on why t...
I have a sample data in my R data frame like follows: set.seed(123) Obs <- rbeta(1000,1,100)*1000 Sim <- rbeta(1000,1,100)*1000 df <- data.frame(Obs, Sim) # Add id df$id <- seq_len(nrow(df)) The following lines show the distribution of both variables, which is not normal (non-linear least squares?), here, right-skewed...
I would like to statistically analyze three variables. One variable is "consortium mostly academic" (nominal, dichotomous), the second variable is "evaluation method" (nominal, non- dichotomous), and the third variable is "technology category" (ordinal, non- dichotomous). A contingency table looks like this: +─────────...
I am solving an L1 regularized least squares (LASSO) of the form: $$ \arg \min_{\boldsymbol{x}} \frac{1}{2} {\left\| A \boldsymbol{x} - \boldsymbol{y} \right\|}_{2}^{2} + \lambda {\left\| \boldsymbol{x} \right\|}_{1} $$ I saw that for the L2 norm case there are several methods to obtain the magnitude of $\lambda$ as se...
in chapter 9 of gelman's data analysis using regression and multilevel/hierarchical models, page 170 presents a simple example on the bias of an omitted variable $x$ from a regression of an outcome $y$ on treatment $T$. It uses three regressions: correct specification including $x$: $$y_i = \beta_0 + \beta_1 T_i + \bet...
This is the ACF result for the daily return for spot gold. Is it white noise? or I can do ARIMA model for it.
Hello everyone I need some help with the choice of a statistical test to verify if there is significant difference between two categorical variables in a single population. I need to compare the success rate of surgery in a given population in STATA. In particular, in my dataset I have a certain number of patients iden...
I have a question about choosing between a linear and a non-linear model for estimating the effects of different treatments on the growth/presence of an insect on a plant. The outcome variable is a count of the number of insects, and there are three randomised treatments (treatment A, treatment B and treatment A and B ...
Let's assume that we have the following vary basic problem: We have a set of $N$ real numbers sampled from an unknown distribution. We have a distribution that we consider as a hypothesis. We would like to know how probable is the given set of numbers, given the distribution. For example, if we sample numbers from $\...
I want to transform the first three moments of a sample X of size N to get a new sample Y with moments ($\mu_Y, \sigma_Y, \nu_Y$). The first two moments can be mapped to the target values using the solution discussed in Transform sample to achieve target mean, skewness, etc Transforming skewness will probably require a...
In no user of antidepressant group, the crude coefficient is 2.20 and the adjusted coefficient is 2.58. How can I interpret this in my thesis because anxiety risk is decreased in the adjusted model?
I'm wondering how it's possible to forecast a conditional variance using a GARCH model since we don't know last period conditional variance. If I understand correctly, the conditional variance is the variance of the random variable that represent the last period residual of another model. In other terms, we have a mode...
I have a question I've been wondering about. Say you have some weighted coin and you have a reasonable belief that it has a 1/10 chance of heads on a flip (although this is not necessarily the true probability). And after 5000 trials you obtain 455 successes. Is there any particular method that would be preferred for a...
Does anyone know the model and parameterization for surveg with dist="logistic"? I'm having trouble finding documentation anywhere. I checked Chapter 2.2 of Kalbfleisch and Prentice and only found documentation for log-logistic. dist="logistic" appears to give coefficients in units of time, which is desirable for the p...
I was reading in my textbook that the bias of a statistical estimator $\hat{\theta}_n$ can be quantified as $B(\hat{\theta}_n,\theta)=E[\hat{\theta}_n-\theta]$. This expectation seems to be w.r.t. to the sampling distribution of the estimator for samples of fixed size $n$ (please correct me if I'm mistaken). So I was w...
I have the following statistics of two independent random variables: First random variable: size: 3830 mean: 119240 percentile 10: 61750 percentile 25: 79930 median: 118250 percentile 75: 145950 percentile 90: 174840 Second random variable: size: 5290 mean: 153180 percentile 10: 81180 percentile 25: 124860 median: 159...
I saw the following statement in this paper and wanted to understand its meaning:
Suppose I have a linear regression $Y=\beta_0+\beta_1X_1+\beta_2X_2+U\equiv X'\beta+U$, where $E(U|X)=0$. After we have found the least squares estimator of $\beta\equiv[\beta_0,\beta_1,\beta_2]$ as $\widehat{\beta}=(\mathbf{X}'\mathbf{X})^{-1}\mathbf{X}'\mathbf{Y}$, where $\mathbf{X}$ is the data matrix for $[1, X_1, ...
I am reading this lecture notes on using the MLEs from other distributions (as Laplace) rather than a Gaussian when dealing with outliers. The lecture notes came from Oxford University: https://www.cs.ox.ac.uk/people/varun.kanade/teaching/ML-MT2016/lectures/lecture03.pdf. Probabilistically, we may view this as follows:...
According to me in logistic regression, we just try to get a line (polynomial) and then based on which side the point is from that line the sigmoid gives ans>=0.5 or <0.5, which we then interpret as 1 (if ans>=0.5) and 0 if (ans < 0.5). Here is a simple plot what I mean. This is just a random line not a line predicted...
On page 401 of the famous Walpole textbook on statistics (Probabilities and Statistics for Engineers & Scientists), I stumbled upon this reasoning for the variance formula of the $\beta_1$ estimator (regression slope coefficient). The mentioned Theorem 7.11 says about stability of the normal distribution. My question i...
This is my first time running a structural equation model, and my question involves understanding if my approach to setting the scale of the latent factor has any implications on if or how I should interpret the unstandardized indirect effects. Specifically, I used the unit variance approach (also referred to as "fixed...
Im working on a meta-analysis of interventional studies that compare between two kinds of interventions. After pooling the studies together, the heterogeneity using I squared was 0%. Afterwards, I decided to perform a subgroup analysis to test if a certain covariate modifies the effect. However, I noted that each subgr...
This picture is taken from this post. Can we combine the $p$ and $1-p$ like this: $$P(y|x) = y \times p + (1-y) \times (1-p) ;$$ it gives $p$ when $y=1$ and $(1-p)$ when $y=0.$ If so, then why don't we use this instead?
I often use the survey package to deal with the complex survey data in R. I know using the function weights() can extract the weights from the survey design object. I want to understand the process behind this function. Does it consider the design of this complex survey? For example, I use the nhanes dataset. nhanes <-...
Consider I am doing observational study either case control or cohort in either of the following cases. Case. 1 Suppose I found enrollment/rate of population with disease is too low where disease outcome is of interest.(Case control) Case. 2 Suppose I found enrollment/rate of population with some risk factor too low wh...
I would like to fit a mixed effects model on a large dataset, and with a large number of parameters, which makes it computationally prohibitive. As an alternative, I considered fitting (1) multiple group-level models (with flat priors), (2) approximating the posterior of each group-level model with a multivariate norma...
I am currently reading the article by Elwert and Winship's Endogenous Selection Bias: The Problem of Conditioning on a Collider Variable. However, I am however quite perplexed by the definition of omitted variable bias given in the article (that is a variable "causing" both X and Y, which possibly motivates the relatio...
I have a question regarding the use of Multilevel Modeling (aka Hierarchical Linear Modeling) with Sequential Linear Modeling. I am trying to perform Sequential Linear Modeling (with a binary outcome) but I also want to take into account two levels of the data. Specifically, I have data taken from multiple schools and ...
I have two vector samples $x,y$: x = c(107.32362, 89.15552, 90.75148, 109.51189, 98.43394, 97.25716 ,115.39168, 95.68554, 93.60000, 103.00000 ,112.70000, 138.40000, 93.30000 , 87.70000, 83.30000, 105.00000 ,103.40000 ,105.70000, 107.80000, 96.10000, 102.00000, 105.40000, 123.90000 ,141.10000) y =...
I counted geese in two different areas - east and west. Geese were either dark-bellied or light-bellied. I want to know if the proportions of geese differ in the two different areas. So I did the chi-squared test below, which indicates the different proportions in the two areas is not due to chance. I just want to know...
Below I have the following architecture. I have input image $28\times 28$ and the following convolutional and pooling layers: $28\times 28 -> 32 (3\times 3) kernels -> (2\times 2) pooling -> 64 (3\times 3) kernels-> (2\times 2) pooling$ To my understanding: First output: after applying $32 (3\times 3) kernels$ is $28-3...