instruction
stringlengths
9
38.7k
I am trying to do single arm meta-analysis using meta and metafor packages in R; however, although all events were 0, I got estimated proportion of 0.02 (0.01-0.06). I just want to confirm that this makes sense as I thought it should be 0 as well. Here is my code: library(meta); library(metafor) data<- read.table(text...
Transformers commonly use layer normalization, as explained here: Why do transformers use layer norm instead of batch norm?. One of the arguments in that post is that batch normalization is not used in Transformers because sentence length might vary in a given batch. However, group normalization also works on a single ...
I'm working with maintenance data that use data coming from groups of machines, The data contains all the faults that have been produced in each machine in a specific time range (i.e. last month). I'm trying to detect those faults that have been growing across specific or multiple machines recently. The difficulty here...
My ordinal DV is estimation of danger (10-point Likert scale, 1 - least dangerous, 10 - most dangerous). One binary IV is gender (male, female). The other binary IV is type of image (fast, slow). Following instructions on this web page, I conducted the ordinal regression to get the main effects and gender*image interac...
I'm trying to set up the proper assumptions for a proof I'm working on: Given that $P(A|e) = P(A)$ and $P(A|c,e) = P(A|e)$, can we prove that $P(A|c)=P(A)$? I understand that A is independent of e and A is also independent of c given e, thus we can say A is independent of c. I think this is relatively trivial to prove ...
I have problem distinguishing between the latent variables $z_i$ and the parameters $\theta_i$ in EM algorithm. Suppose we have the hierarchical priors \begin{aligned} \beta|\tau,\omega &\sim \mathcal{N}(0,\tau\,\omega) \\[.5em] \tau &\sim \text{Gamma}(a,1) \enspace \\[.5em] \omega &\sim \text{Inv-Gamma}(b,1) \enspace ...
I want to do non-linear Bayesian Regression, my setup is almost exactly the same as the linear case: I have a signal encoded as $y_i \in \mathbb{R}$ given $x_i \in \mathbb{R}$ for $i = 1\dots N$ and I want to do inference for a very simple model $y_i = a + b x_i + c \exp(-(x_i-\mu)^2/\sigma^2) + \epsilon_i$ where $\eps...
I have a list of coordinates that are meant to form an orthogonal grid that could be rotated. The grid is not necessarily uniform. The rotation is not typically greater than 10°. The coordinates are noisy and some are missing. I want to fit an orthogonal grid to the coordinates and return a list of the grid's vertices....
I am working with a dataset with high dimensionality (107 columns vs. 800 rows). All columns are binary in nature indicating the presence of a specific column value or not in the dataset. I used pandas pearson's correlation coefficient to check for multi-collinearity within the independent variables. Suppose I am check...
Why is the L2 regularization equivalent to Gaussian prior? does a nice job in explaining the relationship between L2 regularization and Gaussian priors. One answer explains that the variance in the Gaussian likelihood is a measure of the noise in the data (which makes intuitive sense). What is the intuitive understandi...
I have a dataset with some growth measurements pre and post vaccination and 3 different groups (3 different types of vaccine) so there are both a within (pre/post) and between factor (group). Problem 1: The number of observations varies between people (some people can have 1 observation and other up to 5) Problem 2: S...
I'm designing a set of experiments with three factors, two of them are quantitative variables with two levels (Temperature and Pressure, Lo and Hi) which I have designated -1 and +1 in my table. I have a third variable (C) that is the material being tested, this is a categorical variable and I have three to test. Would...
Suppose $(X,Y), (X_1,Y_1),(X_2,Y_2),\dots$ is a $\mathbb{P}$-i.i.d. sequence of pairs of real-valued random variables such that the support of $\mathbb{P}_{(X,Y)}$ is contained in the square $[-1,1] \times [-1,1]$. Assume that there exists a noisy linear relation with slope $m \in [-1,1]$ between $X$ and $Y$, i.e., $\...
I just started using EconML library, I would like to ask what does the output of inference summary mean? what exactly is the prediction/inference doing here? UPDATE: Also, I don't understand about the p-value, isn't it a prediction here? Why use the metric from the hypothesis test? point_estimate stderr zstat pva...
I understand that, in the context of a binary classification problem, downsampling the majority class is a useful strategy to come up with a smaller, computationally friendly dataset. Using this modified dataset would not improve the accuracy of whatever model is trained on it: if the downsampling of the majority class...
I want to find the $X$ that solves the matrix equation $$ AX = B $$ with $A$ and $B$ known - $
A$ and $X$ are rectangular, $A$ is $n \times m $ and $X$ is an $m \times n$, with $m > n$. (Specifically for my case, $ m = 250$ and $n = 15$.) Also - $B$ is diagonal with non-zero entries (and is therefore invertible). EDIT:...
I’m focusing on managers characteristics (age education and narcissism) relationship with narratives reporting by firms. (400 observations over 5 years , unbalanced , 6 countries ) Is doing the above procedures enough to valudate pooled ols regression results. I have taken lag DV as explanatory variable (was sig) FE re...
Let us say we have two similar distriubtions(ex:laplace and normal or weibull and gamma) and we wish to discriminate between these two distributions. One of the most common method to do so is ratio of maximized likelihood. I was thinking of using KL divergence to do so. Any suggestions?
Hi I have used a set of data to estimate the relationship between v0 (response variable) and v1-v6 (independent variables) through a non-linear model using GAM. The model is fitted with data between 1980-2010 with a good deviance explanation rate. Interestingly, I have more historical data of v0-v5 from 1700-1980, but ...
Could someone help me see why my code in R does not produce the correct output or do I have a misunderstanding on ANOVA test? As you can see, there are three categories for fertilizer but the degrees-of-freedom shows only one. Shouldn't it be two? I've attached the dataset link here for those who wish to try it out ...
May I ask what is the conventional significance levels for multiple testing adjusted p-values (no matter Bonferroni or Holm or Sidak)? For unadjusted p-values, many researchers use * 5%, ** 1% and *** 0.1%. Are those levels applied to the adjusted p-values? Is there any common agreement on this? Thank you in advance!
This is my first post on this forum so please forgive me if I overlooked something when posting this, but I very much hope you can help me out. I am investigating the effect of hallucinogens use on anxiety level. My panel dataset contains data of 14,693 individuals of which 106 have used hallucs in one or more years. I...
I made a synthetic data generator with the SARIMA model based on an input sample. The SARIMA model predicts time series of the length of the original input and I must say that it works quite well. I wonder if there is a way to get n number of time series similar to the predicted time series using this model.
I am currently trying to gather data for doing a text classification that determines whether the content of the text is "depressing" or not. it is going to be a binary classification. my question is : how many instances(sentences) are needed to do an acceptable text classification ?
I wanted to investigate if my data is normally distributed with a QQ Plot. I'm not quite sure if the deviations from the theoretical plot are too big to crate a bland-altman plot?
I have a dataset that records COVID outcomes (cases, deaths) daily in a tally for the 50 states of the USA. I want to find the influence of various state-level continuous (e.g. percent of seniors in a state, percent of smokers in a state, GDP per capita) and categorical (e.g. whether a state is coastal) variables on th...
I am aware there is quite a few similar questions but none answer was dealing with following situation: I have a task with train dataset and test dataset provided. All previous approaches are measured on test dataset. I also want to measure my approach on test dataset. So I perform 5 fold cross validation on training d...
I have a data series, sediment concentration in water Vs Time. The data is not normal but I want to use regression and so have logged the sediment concentration (log10(x)). The residual and fit to model is now much better. I want to use the P value and r squared values from the logged regression output. Do these need t...
I read here that there are statistical approaches to assess whether a tractable machine learning model (e.g., a linear regression model) overfits a dataset: Simpler models that have originated in statistics often don't need test datasets. Instead, what degree the model is overfit can be calculated directly as statisti...
I would like to forecast the car rental (count time series). Given hourly integer valued car rentals for a month's period from 24th september to 24th October. I need to forecast car rental demand from 25th october to 31st October. The given data is shown below: The Ground Truth forecast data is given as below: I wil...
I have a dataframe of pre- and post-treatment serum lipid levels from 9 patients that I am trying to analyze in R. I want to see if a patient's baseline lipid level can predict the response to a class of medication, however, I am running into an issue where some patients received two different drugs and showed differen...
Consider two real-valued scalar random variables $X,Y$ such that $$ (1) \quad E(XY)\neq 0,\quad E(X)= 0, \quad E(Y)= 0 $$ Let $g: \mathbb{R}\rightarrow \mathbb{R}$ be a function. Under which conditions on $g$, (1) implies $$ E(Xg(Y))\neq 0 \quad ? $$ PS: The comments below gives an insightful answer for the case where ...
Suppose I have a probability density function for an event that is certain to occur between $0$ and time $T$, $p(t)$. However, some time $t_0$ has passed and the event has yet to occur. So I would like to recalculate a normalized pdf that incorporates this information. I think I am looking for the posterior distributio...
I'm implementing Yolo v3 in Pytorch, Imagine we have an image with a large object in it, whem building targets, I'll have to assign the anchor box with highest IoU with this object for each scale, (So each scale will have and anchor box assigned to this object, my interpretation), the IoU for the lowest resolution grid...
$\lbrace Y_1, Y_2, \boldsymbol{X} \rbrace$ are jointly normally distributed (it is not essential to assume normality, I think). Let $\Sigma_{X}$ be the variance-covariance matrix of $\boldsymbol{X}.$ Let $\Sigma_{1X}$ and $\Sigma_{2X}$ be covariance vectors of $Y_1$ and $Y_2$ with $\boldsymbol{X},$ respectively. Let ...
Taken three real continuous random variables $X,Y,Z$, non negative (to simplify the handling of the problem), with respective pdf's $p_X , p_Y , p_Z$ . Then if $$ Z = XY\quad \left| {X,Y\;indep.} \right. $$ it is known that $$ p_{\,Z} (z)dz = dz\int_{x\, = \,0}^\infty {p_{\,X} (x)p_{\,Y} (z/x)\frac{1}{x}dx} = dz\int...
I'm trying to implement a CNN with RGB and depth images. But my depth images are a little sparse. So I would like to mask out those neighborhoods in the RGB image where the depth neighbors are empty. I would like to mask the input feature map, i.e. wherever the neighbor pixels are empty, multiply this with zeros. While...
let me just ask one simple question, I am not sure if I understand this concept of conditioning w.r.t. sub-$\sigma$-algebras. Let $(\Omega,\mathcal{A},\mathbb{P})$ be probability space and $X,Y:\Omega\rightarrow \mathbb{R}$ random variables. If someone writes $$E(X|Y=y), $$ does it mean $$E(X|\sigma(Y))(Y^{-1}(y))?$$ G...
Background I am designing a NN model for a multi-class classification problem. The model takes two sets of features, F1 and F2, for making a prediction. However, F2 might be missing in production, but the model should still be able to make a prediction based on F1 alone (even at a degraded accuracy). For example, suppo...
Basically, I don't understand how the variance was derived here: $$ \overline{d}_j = \frac{1}{N^2}\sum_{i=1}^N\sum_{i^{'}=1}^N(x_{ij}-x_{i^{'}j})^2 = 2 \cdot var_j $$ That is an equation 14.27 from Elements of Statistical Learning. Excerpt from section 14.3.3: The influence of the jth attribute Xj on object dissimilar...
Is there a specific term for turning a vector into a scalar by summing all of the elements of the vector? I am trying to describe a part of a model that requires this.
I'm looking for a model which achieves an high prediction and recall on the Adult dataset. I've tried with random forests, but couldn't get a model with good results on the minority class. Here are my results: precision recall f1-score support 0 0.88 0.94 0.91 5432 1 ...
As stated in the title, I have a significant predictor (and 2 predictors in the other model) and a significant Chi-Square value but the AIC value is high. As I interpret these findings, the independent variable predicts the outcome variable, the model is useful, but the model does not have good fitness. What shall I do...
I have a dataframe with some horseracing data, and each row contains a predicted speed rating for each of the runners. I am now trying to convert that information into a winning probability for each runner in a given race. I have tried implementing a softmax by group, but it tends to produce extreme results for the fav...
I have the following meta-analytic model (effect sizes nested within samples): rma.mv(yi, vi, random = ~ 1 | SampleID/ESID, data=noOverlap, method = "REML", tdist=TRUE) Which results in the following output: Multivariate Meta-Analysis Model (k = 566; method: REML) Variance Components: estim sqrt nlvl...
This probably some beginners mistake, but I have been stuck on this for a few hours now and cant spot the mistake. The scenario: From a predefined 'true' distribution with a defined mean $\mu_{true}$ and variance $\sigma_{true}$ I draw 100 observations. Based on these observations I want to find / estimate the mean $\...
In the book of "Practical Statistics for Data Scientists" it used the second formula(image down below) to calculate the coefficient correlation, while when I did some research in blogs and watched some YouTube tutorials most of them only use the pearson's formula . So I'm asking is there any different between them , or...
I am working in Stan on a three-dimensional multivariate problem. The model assumed is that the data are from a multivaraite normal with study level mean and covariance matrix, with the covariance matrix given. The study level mean has a mutlivaraite normal prior whose mean are assumed independent normal prior and cova...
The Wikipedia article about "Conjugate Prior" has a table containing information about Likelihood Distributions with their Conjugate Priors. In the "Continuous Likelihood" table, the last entry shows a Beta Likelihood and a formula for a Conjugate Prior, (with 3 hyperparameters: p, q, k). Can anybody give pointers to l...
dear. How are you. There is long since I have been trying to solve a doubt about diference between nested and crossed random effects within my study. So I am here to ask and seek for some information. I analysed in a study whether built-up areas density and open waters features quantity variation influence on breeding ...
I want to measure sentiment for reviews. I have the sentiment measure for each single sentence in the review, but the length of the reviews are different. I cannot simply add up the scores because longer reviews tend to get higher scores, and taking average is suboptimal, since the scores will have average tendency. Im...
We are preparing statistical analysis of cross-sectional study; and have the following question: We want to check whether difference btw two age medians grouped by categorical variable (died vs alive) is statistically significant. We used Mann-Whitney U test. Did we choose the right test?
I have data of compassion ratings in response to stimuli (pictures). The stimuli can be described by two factors, valence (categorical: positive, negative) and arousal (continuous). All n=145 subjects rated all 44 pictures. The ratings are continuous from 0 to 100 and are normally distributed for both positive and nega...
Suppose that we have a dataset with four features and each feature follows different distribution (normal,beta,gamma...). All features are continuous. So, how we can calculate the probability of any target if we want to follow Bayesian rule? ( Because the probability will be zero for each). We can imagine the iris data...
I'm looking at nesting differences between 3 species of fish. These fish nest in colonies (all 3 species intermix in the colonies), and measurements were taken at several different colonies throughout the lake. I am wanting to see how continuous variables such as nest depth vary between the 3 species. Depth also varies...
Suppose that we have a 3-waves dataset. We have some qualitative states for each wave, let's call them State 1 and State 2. Let's construct a change variable Change: Change is all 0s at Wave 1 (baseline), Change is 1 or 0 in Wave 2 (if Wave1state != Wave2state, 1, otherwise 0), Change is 1 or 0 in Wave 3 (if Wave2stat...
I'm new to statistics and statistics are not my area of research so maybe my question is simple and answer is on the surface. In my research the empirical CDF for the data looks like exponential distribution CDF. Plus the values of the mean and the standard deviation are close. The data is time periods in days, so it w...
I understand the general idea of how NSGA-II works, however even by reading the original article from Deb and al. (https://ieeexplore.ieee.org/document/996017), flow charts, and so on, I don't understand how the mating is actually performed after the tournament selection. If I understand correctly, given an initial pop...
I am new to stats and I want to use a regression to determine income See below table example age class location income 23 Adult London 23000 44 Adult Glasgow 45000 75 Senior Birmingham 37000 12 Child Coventry 300 I know the different stats packages (python, r) create something like this when they have...
I am coding in Python and my data consists of 100 imputed data sets created by MICE in R. I am running Scikit-learn ML (Supervised Regression) algorithms to improve the prediction of Warfarin. My aim is to find models with a lower MAE than Linear Regression. How can I combine these imputed data sets for the purpose of ...
I want to know what probability distribution has the linearity property of the conditional expectation. To be specific, suppose that we have three random variables named $v_1,\;v_2,\;v_3$. Then, if $[v_1,\;v_2,\;v_3]$ follows a joint normal distribution, we can show that $\mathbb{E}[v_1|v_2,\;v_3]$ is linear in $v_2$ a...
I am doing a thesis on the generation of synthetic data for training a deep learning model and evaluating it on real data. I have a few different real datasets, and I generated multiple synthetic datasets with different parameters. I want to write a chapter with data description and would like to be able to visualize t...
Let's say there are $n$ balls in a box, each either blue or red. We randomly picked up 5 balls - we got 3 red and 2 blue balls. And we replaced all the balls, shuffled for a bit, picked another 20 balls, and got 15 blue balls and 5 red balls. We replaced and shuffled all the balls, picked 50 balls randomly, and got 50 ...
I am doing a time series forecast with the SARIMA-model in STATA. I wanted to calculate the MSE to set up confidence intervals for my prediction. I have done that using the following command: predict MSE, mse dynamic(tm(2022m5)) STATA then generates a new variable of course with the MSE in it. Now I am wondering why th...
I have series and I need to determine if the series is stationary or non-stationary. According to this web page Link, is prefer to use the ADF and KPSS and then judge on the series. My result of ADF saying it is stationary and the result of KPSS saying it is non-stationary. So, I have the case 4 " KPSS indicates non-st...
(I edit the question to make it more specific and clear) High-level idea I want to implement the idea of capturing the correlation between two data points $x$ and $x'$ that can be different at two different time stamps $t$ and $t+1$, using kernel of GaussianProcessRegressor. I could use a kernel to capture the correlat...
While trying to compute the reliability of scale scores obtained from IRT models (bifactor models and unidimensional models) I was wondering why there are so many published papers who report omega categorical/ omega hierarchical or even cronbachs alpha, even though those are reliability estimates conducted unter a CTT ...
My question is not very technical and more like a discussion but I will be happy to have a technical input for the comparison b/w BIC and ABC. I am trying to understand and use the best model selection method. I have inferred models using swarm optimisation methods and used AIC for model selection. On the other hand I ...
Suppose I have two pairs of distributions: distributions A and B in Pair 1, distribution C and D in Pair 2. There are non-parametric tests to determine if there is evidence to say that the distributions in each pair are different. However, suppose that I found significant evidence that distributions A and B are differe...
I am trying to predict patient census by hour for a hospital and the historical data provided to me is in hourly format. The issue however is that the there is a discontinuous region between the end of the historical data and the beginning of the first time value in the prediction period. For example, I am given hist...
When use KPSS to test the stationarity of data series I get this warning .Does it affect the final results? C:\Users\\site-packages\statsmodels\tsa\stattools.py:2022: InterpolationWarning: The test statistic is outside of the range of p-values available in the look-up table. The actual p-value is greater than the p-val...
Consider a simple Autoencoder neural net: from torch import nn class AE(nn.Module): def __init__(self, x_dim, z_dim, h_dim=42): super().__init__() self.encoder = nn.Sequential( nn.Linear(x_dim, h_dim), nn.ReLU(), nn.Linear(h_dim, z_dim) ) self.dec...
The question is about $P(Y|X)$ versus $P(Y|X=x)$. Is there an alternate way to write $P(Y|X)$ that makes its meaning more clear? I believe these are correct equations for conditional entropy: $$ H(Y|X=x) = -\sum_y P(y|x) \log P(y|x) $$ $$ H(Y|X) = -\sum_x P(x) H(Y|X=x) = E_X \left[ H(Y|X=x) \right] = -\sum\sum P(y,...
In Transformer, is it correct to say that multi-headed attention is an ensemble learning and each head is learning a different capability by below? independent random weight initialization for each head and attending only to 512/8 dimension per head (where 8 is number of heads) If incorrect, please help correct what ...
SOrry if this is extremely easy. I did the following but I'm a little bit unsure about it: Let $A=B$, and $P[A]>0$. Then $$P[A|A] = P[A]$$ But A is not independent with itself: $$P[AA] = P[A] \neq P[A]^{2} = P[A]P[A] $$ Thus, the preposition does not hold. I'd appreciate your comments on this one. Thanks!
A challenge that I encounter in a lot of modelling, is how to best handle hierarchical data for making prediction. A simple example of this is a basic (binary) classification problem, where I am predicting whether or not someone will purchase a product base on a variety of features. Included in this feature-set are: C...
I have two different model families $A_i$ and $B_i$ each of which predicts a continuous value for an item $i$ at various points in time throughout a given day. For a given day, and item $i$, I can measure the correlation of $A_i$'s $\hat{y}$ and $y$ as well as $B_i$'s. Given a dataset with daily such correlations for b...
Let $$Y_{t+1}|\mathcal{F}_t\sim\mathcal{D}_1(\mathcal{\Theta}_1(X_t,Y_t))$$ and $$X_{t+1}|\mathcal{F}_t\sim\mathcal{D}_2(\mathcal{\Theta}_2(X_t,Y_t))$$, where $\mathcal{\Theta}_i$ is function of random variables, say, $$\mathcal{\Theta}_1=\beta_1X_t+\beta_2X_{t-1}+\beta_3Y_t$$. Can I estimate the system using MLE equat...
So let's say there's a raffle to win 500 prizes for a raffle and you can have multiple entries. There are currently 200,000 entries and I have 200 of those entries. Each person can only win once as in if I win with any of those 200 entries, I won't be able to win with the rest of the 199 entries. Scenario A: What are ...
I have a dataset [click here][1] and trying to find the shape and scale parameters of gamma distribution. > library(fitdistrplus) > H <- "US.txt" > rate <- mean(H$All) > n = length(H$Year) > descdist(H$All, discrete = FALSE) summary statistics ------ min: 0 max: 7 median: 1 mean: 1.69375 estimated sd: 1.44934...
I am testing the Granger causality from a number of variables to a number of stock index return (daily variable). I found that one of the variables (calling it Variable A) always have high significance when lag of 4 is included; there is also reverse causality from the return variable to the Variable A. However, Variab...
I've an unbalanced dataset. I need do to perform feature selection and then I'm going to fit my model. Is it conceptually wrong doing undersampling and perform feature selection and then once identified the most important features perform oversampling and fit the model on the data?
If I have a sequential dataset of size 10,000 (e.g. timeseries) and sampling randomly a batch size of 100 random values, each point of the 100 is sampled with the next 5 points after it. so basically we have a batch contains 500 values. What is the probability that all 10,000 values has been selected M times after N sa...
This question is obviously similar to Suggestions for estimating variance in finite population with bootstrap?, but I'm asking about a different approach. I have a (very finite) population of size N=832. I have sampled n=400 of these -- a significant chunk of the entire population. I can estimate the variance of my est...
I tried out a simple GRU network with only 1 layer, 1 input tensor and 1 output, to verify its actual network connection (input nodes->hidden layer->output) by doing the manual calculation with the actual GRU equations. The blogs/website/videos which I gone thru to understand about the math behind GRU networks: Youtub...
I am currently studying Bayesian Reasoning and Machine Learning by David Barber, the 4th chapter exercise 4.1 (p 79). The exercise is the following: Exercise 4.1 Consider the pairwise Markov network, $$p(x) = \phi(x_1,x_2)\phi(x_2,x_3)\phi(x_3,x_4)\phi(x_4,x_1)$$ Express in terms of $\phi$ the following: $$p(x_1|x_2,...
i am training for my masterthesis a feed forward neural network regression model to predict the annual sales of accounts. The training data is highly skewed, which means that there are a lot of low annual sales accounts compared to only a few high annual sales accounts. To remove the skewness of data i log transformed ...
I was exploring $\mathsf{MSwM}$ package for applying Markov Switching $\mathsf{AR}$ model; for that I used the $\textrm{example}$ dataset which has been used for illustrating the usage of the package. One peculiar and conspicuous thing that I noticed is that in every run, the summary was changing (though not drasticall...
We know a series of probability distribution approximations that are considered good as long as some condition holds. A few examples are: Binomial can be approximated by Normal if $np(1-p) > 10$ and Beta can be approximated by Normal if $\alpha,\beta$ are large and similar Binomial can be approximated by Poisson if $n...
I am currently studying Bayesian Reasoning and Machine Learning by David Barber, the 4th chapter exercise 4.7 (p 80). The exercise is the following: Consider the following belief network: Write down a Markov Network of $p(x_1,x_2,x_3)$ Is your Markov Network a perfect map of $p(x_1,x_2,x_3)$? I have done 1. It was...
Is there a widely-adopted implementation of the algorithms discussed in Judea Pearl's Book of Why? Topics include do-calculus, belief propagation, variable elimination, etc. Context would be defining a graphical model of some potentially causally related variables then quantifying the probability, direction and magnitu...
I'm doing a kaggle contest and I have discounted price and non-discounted price data in the columns. To get the discount value, I subtract the column with the price to from the column with the price at the discount and then submit it for normalization. Am I doing the right thing or should I first normalize the data and...
I am analyzing data for a psychological study using multilevel models. I have a dependent variable (DV) and two predictors (A & B). DV, A, and B are all linear. I want to assess whether A or B is the better predictor of DV (30,000 observations & 1,000 participants). A and B are themselves strongly correlated (r = .70)....
Reproducible data: a<- c(2558,1337,1028,1073,146,9,158,914,394,5163,928,2895,1047,494,685,803,1159,34,3394,2237, 39,729,410,102,5062,479,1944,719,599,1292,2946,788,2571,1688,321,3010,753,613,1675,135,114,1808,2052,24,179,114,1148,3651,85,88,1427,690,5331,522,1054,909,15,3084,1950,2699,1590,1068,2255,792,747,2930,186,47...
I am analyzing a fixed-effects model with seven endogenous and five instrumental variables. In my model, instrumental variables are lagged, and I do not have any exogenous variables. As far as I understand, AER (also with IVREG package, derived from AER) applies the instruments to all endogenous variables in the model....
Let $n, k \in \mathbb N^*$ such that $p_1, \ldots, p_k \ge 0$ and $p_1 + \cdots + p_k = 1$. Let $p := (p_1, \ldots, p_k)$ and $X \sim \mathrm{Multinomial} (n, p)$. This means $X$ follows a multinomial distribution consisting of $n$ independent trials in which the probability of outcome $i$ is $p_i$. Then $\frac{X}{n}$...
Let us consider a collection of local Bayesian optimization tasks, each employs a Gaussian Process model to find the local optimum (i.e. global optimum of that task). The goal is to design a sequential query strategy that can find the global optimum among all tasks while minimizing the number of expensive evaluations. ...
I am performing negative log-likelihood maximization for success probability parameter of the negative binomial distribution avoiding numerical errors. I am not 100% sure if this procedure is valid, especially, if I am allowed to perform transformation $d = log(odds)$ and if yes, why? My general question is: is the be...
I have two questions both with Likert-type scale (1 through 4) that gauges the attitude change between question 1 and question 2. For example, Q1 In 2021 how worried were you about driving an electric vehicle? 1 - Not worried at all 2 - A little worried 3 - Worried 4 - Extremely worried Q2 In 2022, how worried were yo...
I have a quick question about central limit theorem. In math, we have a theorem that: $Z = \lim\limits_{n \rightarrow \infty} \frac{\bar X_n - \mu}{\sigma/\sqrt n}$ is a random variable with normal distribution. As I as studying statistics, I read things like "if sample size is greater than equal to 30, then distributi...