instruction
stringlengths
9
38.7k
If the purpose of a propensity score is to generate a "propensity" of a unit receiving treatment, then is it correct to say that the predictors of the treatment need not be confounders (necessarily). For example, Z1 may be theoretically related to both Y and T. Z2 may only be related to T and not Y. However, if the goa...
The accepted answer to this question on SO accomplishes exactly what I need: Comparing all factor levels to the grand mean: can I tweak contrasts in linear model fitting to show all levels? However, I don't understand exactly what the process is doing. Could you explain how sum-to-zero contrast coding is being used for...
This is a basic econometrics question about ergodicity. According to Hamilton, we say that the stationary time series $(X_t)_{t \in \mathbb Z}$, , with mean $\mu$, is mean ergodic if the following converge in probability holds: \begin{equation}\label{a}\tag{M-E} \hat{\mu}_T := \frac{1}{T}\sum_{t=1}^T X^t \overset{p}{\t...
In my dataset I have the daily number of new Covid 19 cases for many countries. I want to find an algorithm which will detect and calculate the number of "waves" which exist in the graph of new cases of every country. For example, in the below image you can see that there is one big "wave". Does anyone know how to spo...
The distribution of a uniform r.v. X is given as follows: The entropy is therefore: This means that as $∆$ approaches infinity, so does the entropy. This also means that as $∆$ approaches 0, the entropy approaches negative infinity. A couple questions about the interpretation of this entropy: Does infinite entropy m...
I am a beginner in modelling. I have created a linear regression model using statsmodel and I see the const has VIF value around 124 where as the other features have value around 4. I already referred to a post and that says this is scaling issue. But I have used MinMaxScaler and all the features are between 0-1. Is th...
Before answering "yes, of course", let me clarify what I mean: After BERT has been trained, and I want to use the pretrained embeddings for some other NLP task, can I once-off extract all the word-level embeddings from BERT for all the words in my dictionary, and then have a set of static key-value word-embedding pairs...
I'm working on problem 1.8 of Bishop's Pattern Recognition and Machine Learning and am having a hard time understanding one of the technical details in a solution that I found online. Specifically, the problem statement is to show that the expectation of $x^{2}$ under the Gaussian distribution is equal to $\mu^{2}$ + $...
Weird question here that we never covered in class Say you’re running a 2-sample t test to see if feeding children candy stunts their growth. Your null hypothesis is the candy-fed fiends are at least as tall as the veggie kids; the alternate is that the candy fiends are shorter Simple enough, right? But what if the wom...
In the comments to the question here, John Madden remarks about the variance inflation factor (VIF) of the intercept of a linear model. Does such a notion exist? My argument against such a notion is as follows: We calculate VIF by using the other features in a regression to predict the feature for which we want to cal...
I have a dataset of the annual sales of a bakery and I'm confused about how many variables it has. Is it the number of products or the number of years? Can someone help me out?
The first and the most trivial example of a mean-ergodic stochastic process is the i.i.d. case: $$(u_t)_{t \in \mathbb Z} \sim N(0,1)$$ The first intuition we have of ergodicity is that the process $(u_t)_{t \in \mathbb Z}$ has no memory, since the value of the process at time $t$ is "uncorrelated" with all past value...
In the Quantile regresion model we assume that$$y_i=x_i^T\beta +\epsilon_i,\ i=1, 2, 3, ....,n$$ such that the conditional quantiles of the error terms are zero and for the OLS model we assume that the means of the error terms are zero. I have some problems regarding this: $$$$1. While doing simulations we generate dat...
Suppose I would like to investigate how multiple variables $[ x_1,\ldots,x_k]$ contribute to another variable $[ y ]$, I had intended to use a simple linear regression. However, to see the contributions against a thrid variable [ Age ], any idea if it would be methodologically-wise to compute the regression analysis in...
I am trying to use Transformers for a Time-series task (with fixed sequence length). Since it's sequence length is always the same, can I use a linear positional encoding? I read some articles about this, and in all of them, the reasoning behind using a sinosoidal is possibility of varying sequence length. Is this not ...
I need to build some radar charts using NBA players stats, but obviously if I don't use the statistics expressed as a percentage (like for example "3-Point Field Goal Percentage" or "Free Throw Percentage") I have data with very different scale. What is the best way to normalize data to build radar charts? For example,...
Curve and surface are distinct concepts yet they seem to be used interchangeably in the context of model fitting. For a single argument function f(x) the concept of curve fitting is clear. The function defines a curve. So function fitting is curve fitting. However, for a function with multiple arguments f(x1, x2, x3, ....
I am trying to conduct a quantitative meta-analysis on an effect measured within subjects. I am currently facing the issue that I don't have any means or SD, but only F- and t-statistics, but I'd like to calculate Cohen's d. As this article (Dunlap 1996) points out quite well, there is an issue with the calculation of...
I want to test what leads to the support for two policies (Likert scale ß disagree to strongly agree). There are independent variables, some of which are demographic and two are of interest (continuous and binary variables). Can I use multivariate ordinal regression? Which statistical model would also be suitable? Some...
I'm trying to solve following nonlinear regression task: We got fixed point from which the bullet is released with some start speed v0 (value v0 changes each time). On the opposite side we generate the target in random place with random width in range [0.05, 0.1]. The distance to the opposite side is 1, and the zone of...
The solution to the minimizing problem: $$RSS(f, \lambda) = \sum_{i=1}^n (y_i - f(x_i))^2 + \lambda \int (f''(t))^2 dt$$ is written in matrix form as $f = N\theta = \sum_{j = 1}^n N_j(x_i) \theta_j$ where the $N_j(x)$ are a $n$-dimensional set of basis functions representing a natural cubic spline. Together with a choi...
I'm dealing with longitudinal data, and to take into account the dependence of observations within the cluster, I shall rely on a generalized linear mixed model. I have a continuous response variable, and I'd like to fit a Gaussian mixed model. However, plotting the density of the response (even after a log transformat...
I have sample-data for two multivariate normal distributions. From this sample-data, I can calculate each distribution’s parameters (means and standard deviations). How do I quantify the distance (or divergence) between these two multivariate normal distributions? I don’t mind whether I use the sample-data or the dist...
According to this post, https://www.rdocumentation.org/packages/splines/versions/3.6.2/topics/ns, "These enforce the constraint that the function is linear beyond the boundary knots, which can either be supplied or default to the extremes of the data." However, when I tried to use the spline::ns() function I found that...
I'm creating a binary classification model to develop relevant segments for a business problem. The ctree-function does a great job, especially in combination with the minbucket-argument, which avoids having too small leafs. Because my dataset is quite large (several 100.000 cases) the algorithm often produces leafs, t...
I am often asked to analyze data from agricultural experiments with some form of blocked design (typically randomized complete block). I use general(ized) linear mixed models with appropriate random intercepts, sometimes random slopes, by block. Often there is more than one response variable (for example yield, disease...
I am looking for robust estimators for parameters of a processes producing count data: $$ (n_1,...,n_K), n_i\in\mathbb{N} $$ that is the underlying distribution is something like Poisson or Negative binomial, but possibly contaminated - with some samples exhibiting an excessively low or excessively high counts. I have ...
This question is based on question 1 of the week 2 Statistical Rethinking problems, i.e. q1 here: https://github.com/rmcelreath/stat_rethinking_2022/blob/main/homework/week02.pdf I have a pandas data frame df with observed weights and heights (df.weight and df.height resp.) I am trying to use linear regression (predic...
No doubt this is a stupid question but I can't seem to find help anywhere online. I want to do a logistic regression with 2 independent variables. Ideally, I would like to see how each variable compares to the mean but for some reason, in R, I'm not able to do this. Whatever I try, I always get comparison with at least...
Why is heteroskedasticity assessed by the variance of the error terms in a regression model? Doing so requires one to always first fit a statistical model in order to have access to the error terms. Couldn't we just determine whether the data is heteroskedastic by 'looking' at the 'raw data', e.g. in the form of a scat...
Good day, I hope you could help me. My problem: I'm doing a linear regression with SPSS. Among other things, I am interested in gender differences. Since a distinction is only made between men and women, a binary variable is appropriate. My main problem: My results change if I define the binary variable differently. If...
I was trying to understand concept of cross entropy. Wikipedia says: $H(Y|X)\leq H(Y)$ Although the specific conditional entropy $H(X|Y=y)$ can be either less or greater than $H(X)$ for a given random variate $y$ of $Y$, $H(X|Y)$ can never exceed $H(X)$ I want to have intuition about these two points. I think of th...
Suppose we want to minimize the objective function $f(x)$ with respect to $x\in \mathbb{R}^p$. Wtih a linear transformation of $x$, e.g., $z = Qx$ for a proper $Q\in\mathbb{R}^{p\times p}$, the new optimization problem minimizing $\tilde f(z) := f(Ax)$ is essentially the same with the original one. However, if we choos...
I am working on an ongoing study that tracks subjects through time. Each subject is enrolled for months, where upon exiting I calculate their length-of-stay. Since the study is ongoing, I have both active (still enrolled) and inactive subjects (no longer required to participate). Without the terminal endpoint, I can't ...
I'm using brms to fit a non-linear model to a set of data representing biexponential decay ($y_i = a_1 \cdot e^{-k_1\cdot x_i}+a_2 \cdot e^{-k_2\cdot x_i}$). It seems that the parameter estimates listed in the model summary produces a curve that is different from the conditional mean of the model, and fits the data mor...
I apologize: I am new to Cross Validated, so this question may seem very elementary to most. I would like to compare grades with two groups of students (one group has about 40, the other about 170). However, I only have access to letter grades on a scale of F, D, D+, C-,....,A. I am wondering what would be the best way...
My data set contains data from a questionnaire taken at two time points (variable: Year, either 1 or 2). It looks something like this: ID Year IQ Active 1 1 124 Yes 1 2. 126. No 2. 1. 133. No 2. 2. 132. No 3. 1. 107. Yes 3. 2. 105. Y...
For infinite horizon MDP with finite state and action space, there exists an optimal (stationary) policy. For finite horizon MDP with finite state and action space, does there exist an optimal policy? If so, are there any assumptions? Is the optimal policy non-stationary?
I have a classification problem. The response is whether a player will be banned (Yes=1 or No=0). I am considering a feature whether a player cheats. Intuitively, if a player cheats, they should be more likely to be banned, and thus this feature should be included in the model. When I look at the ban rate for 2 groups ...
I have a dataset with many ratios gathered from a large group of individuals. Each ratio is between repeated measurements from the same individual. Ratios normalize the concentrations, which vary between individuals. The total variation of each sample is a mixed distribution of a biological component (unknown distribut...
I'd like to start by saying I'm not a statistician - I have stats education at the Masters level, but no specialization or advanced work experience. I'm currently trying to regress financial return data across a set of 4 independent variables (previous 78 quarters, no data missing), and I'm running into an issue: When ...
Is the (deterministic) monotone assumption for an instrumental variable in conflict with the positivity assumption for potential outcomes? Z is the instrument, X is the treatment, Y is the outcome and all 3 are binary Assuming Z meets all conditions to be an instrumental variable, except for the heterogeniety condition...
I am interested in using Monte Carlo Dropout as a surrogate model for Bayesian optimization. I noticed that the paper states: The use of dropout (and its variants) in NNs can be interpreted as a Bayesian approximation of a well known probabilistic model: the Gaussian process (GP) Does this mean that I can use any com...
I have three time series df['a'], df['b'] and df['c'] which I want to test for cointegration using the statsmodels.tsa.vector_ar.vecm.coint_johansen function (and obtain a cointegration vector). I start by making sure all three time series are I(1) using the ADF test. ADF test in level: statsmodels.tsa.stattools.adfull...
I'm trying to model in R, how lizard head size (Continuous) can be predicted by mass (Continuous), hatch time (Factor: Early vs Late), and Clutch mass (Continuous), with Family as a random factor. An example model would be: model <- lmer(log(Head) ~ log(Mass) + Hatch_time + Clutch_mass + (1|F...
I have a dataset of ~800 observations. The observations are tracked according to two variables: a year and a value. The years are all between 1980 and today. I've divided the observations into two groups: Group1 contains all the observations from before 2000, and Group2 has all the observations from (and including)...
Seems to be a lot of answers for interpreting odds ratios < 1 and > 1, but none for odds ratios > 2? If I have an odds ratio of 2.22, does this mean there is a 122% increase in the odds for a 1 unit increase in the corresponding X? Thank you.
Let $p$ be a probability density on $\Omega\in\mathcal B(\mathbb R^d)$ for some $d\in\mathbb N$ (I'm primarily interested in $\Omega=[0,1)^d$). We can approximate $p$ by $$A_x(y):=\sum_{i=1}^k\varphi_{x_i}(y):=\sum_{i=1}^kp(x_i)e^{-\frac{\|x_i-y\|^2}{\sigma(x_i)^2}}$$ for $x\in\Omega^k$ for some $k\in\mathbb N$ and $y\...
Reproducible example of complex research question.... I am trying to do a simple comparison of three groups called 'red', 'blue' and 'green' based on count data. How I collect the data involves counting how many 'red', 'blue' and 'green' objects are in an image. I then divide each red count by the total area taken up b...
Greetings to the community, I am seeking assistance in finding a solution to the challenges I am facing. OBJECTIVES: I aim to estimate the univariate odds ratio for a binary exposure in a population. This means that I will classify all subjects into one of four categories based on their exposure status and disease stat...
I'm interested in applying the Cox proportional hazards model. However, the exploratory variable is measured right after the event (or the censoring) occurs. Does that invalidates the assumptions of the Cox model? I understand that if the exploratory variable is determined at the start of an experiment (ex: Sex, treatm...
I have 1 million raw data points, and I dropped 2 independent variable because the have over 80% missing value. All my variables are categorical except for "age" which I scaled between -1 and 1. Remaining were turned into dummy variables. i want both of the F1 scores to be high [0.94093409 0.56259895] specially in the ...
On page 137 in ISLR 2nd Edition, there is an example of a logistic regression model using a binary variable (1= yes student, 0= not a student) to predict if this person would be more or less likely to default. At the bottom, it shows when you plug in the coefficients and the respective dummy variable, the student has a...
As mentioned here, normalizing the target variable often helps a neural network converge faster. Does it help in convergence, or is there otherwise a reason to use it, for any type of model other than neural nets?
I have run two models with the same covariates, one for cox proportional hazards model and another for Fine-Gray competing risk model. The C-index for the cox model is about 0.81 and that of the Fine-Gray model is around 0.79. Based on this alone, can I interpret that the cox model is better able to differentiate betwe...
I need to evaluate $\displaystyle{\int_{1}^{1}\int_{1}^{1}\int_{1}^{1}(y)e^{x+}}dxdz}$ using in R. Here is my attempt: f <- function(A) { x <- A[1] y <- A[2] z <- A[3] return (exp(x+y+(z^2))) } N <- 10000000 sum <- 0 set.seed(5) X <- runif(N, min = 0, max = 2) Y <- runif(N, min = 0, max = 2) Z <- runif(N, min ...
In section 6.4.4 of "Pattern Recognition and Machine Learning" written by Christopher M. Bishop, it is said that, in automatic relevance determination (ARD), there is a separate parameter for each input data. In the following example of this section, there are three inputs $x_1$, $x_2$ and $x_3$ and three corresponding...
The distribution of Student's $t$ statistic is known when the random variable $x$ follows a Normal distribution. Sometimes, however, we apply it to random variables drawn from other distributions. I am curious if there are known conditions, sufficient and necessary, that the expectation of the $t$ statistic, or its var...
I am working on VQ-VAE experiments, and I have noticed that perplexity has been used as an evaluation measure for VQ codebook. Also, most of the work including codebook perplexity as a evaluation measure assumes higher perplexity better, though I feel higher perplexity is not very wanted in my intuition. For example, l...
I'm trying to run a multinomial logistic regression with mixed effects. Let's say I have the following variables: Participant (ten participants, each with 10 observations) Word (ten different words, each participant sees each once) IV (some two level grouping variable) DV (can be 1, 2 or 3) How would I run a multinomia...
I have a project in school about clustering analysis. I have applied standardization and principal component analysis (PCA) to my dataset (I used K-means), which is about heart disease patients. I also have 3 clusters since it has a high silhouette score based on the Hyper-Tuning Method. A scatter plot has been provide...
update The solution follows obtain the right answer now. ----------------------------------------------------------------------------- The Question is here And my answer is here $P(a_0)=P(a_0|r_0) + P(a_0|r_1) = 0.4$ $P(d_0)=\sum_{r,c}P(d_0|r,c)\cdot P(r)\cdot P(c)=0.64$ \begin{align*} P(c_0|s_0,d_0,a_0) &= \frac{P(c_...
I have a dataset with identical variables have opposing target variable (so instead of 0 is 1). > data.frame(y=c(y1[1],y2[1]),v1=c(v1[1],v1[1]),v2=c(v2[1],v2[1])) y v1 v2 1 1 -0.6264538 1.134965 2 0 -0.6264538 1.134965 Does this have effect on logistic regression estimates? I run this example in r ...
I have been working on a regression task for the past one year and I am stuck. My project is to simulate voxel-wise MRI data using a physics-based function and train a neural network using that data to predict a continuous number (T2 of tissue). Essentially, my training set consists solely of simulated data and my vali...
I have a set $S$ = {$e_1,e_2,..e_{400}$} of 400 elements and a non-linear function $f:2^{(S)}\to[0,1]$ that takes a subset of $S$ and returns a real number in $[0,1]$. I want to compute the subset for which $f$ attains the highest value. Computing $f$ for a given input takes quite a bit of time (~1 hour) and it's not p...
I am dealing with a dataset which patients with 3 different types of treatment. Since the baseline characteristics are significantly different and biased, I need to match the baselines. However, the number of each group is too small to match using PSM. I tried to use mnps and iptw functions of twang package, but I cann...
If I know that in a study a total of 2936 associations reached a given statistical significance level (P < $6\times 10^{-11}$) and that the total number of SNPs analyzed that belonged to a specific gene were 642 764 (total entries were 941 320 and NaNs were 298 556). How can I show how this value (2936) is calculated f...
Empirically I have noticed that when data is skewed, and when for example interested in the 99th percentile of latencies, that it is difficult to compare experiments with different sample sizes Imagine I run an experiment for 500 iterations and then afterwards for 2000 iterations, then the p99 when iter=2000 is simply ...
I’m looking for the best way to analyze a data set. The experiment was conducted at two different locations, X and Y. The experiment at location X was conducted in one year (2014), whereas the one conducted at location Y was repeated in the next year too (total two years – 2015 & 2016). There were a total of four treat...
I have two datasets of two populations (before and after) with the task to create socioeconomic quintiles. Through many variables such as household assets and household quality, I used MCA (R language) and I was able to assign every household to a socioeconomic quintile. But what I am tasked now is to know if the socio...
Let $y$ denote the i.i.d. data, and suppose it is splitted into two parts $y = \{y_1, y_2\}$. Upon a Bayesian analysis of the first part of the data, let's assume that the posterior distribution of $\theta$ (the parameter of interest) is normal: $$ \theta | y_1 \sim N(\mu, \sigma^2) $$ Finally, let's suppose that the a...
My situation is the following: I'm working on mice. I apply them a treatment or a sham of treatment (two groups). Then I do immunohistochemistry to analyse the intensity of the pathology in brains. For that, I divide the brain of each mice in 10 regions avec I divide each regions in a lot (> 1000) of pixels. Each one o...
My research is looking at ethnic differences in teenage mental health during the pandemic. Specifically I have 2 independent variables: ethnicity (categorical - 2 groups: white and non-white) and time point (categorical - 2 time points: before the pandemic and after the 1st UK lockdown). My dependent variable is a meas...
Suppose I have a continuous random variable $X$ on $\mathcal{R}^1$, with CDF $F(\cdot)$ and pdf $f(\cdot)$. My understanding is that there are three equivalent definitions of the support of the random variable. $S=\{x :\Pr(X\in B(x,r))>0$ for all $r>0\}$, where $B(x,r)$ is the interval $(x-r,x+r)$. The smallest closed...
My data df_X has 11 features and y is multi-class label. I used multi-class SVM to select importance of features. estimator_.coef_ should return the score of each feature. But why here it returns a list of scores? The same case occured for multi-class LogisticRegression(). By the way, what's the difference between Sele...
I am unable to find a suitable way to statistically test the hypothesis that users remain consistent over time in their preference for various product attributes. The three product attributes whose relative importance are rated includes quality, cost, and aesthetics. The data consists of rows with individual id, produc...
Assuming the results (admitted and rejected) of all applicants are available, I'd like to design a regression or statistical test to examine if the admission is discriminative regarding the gender or race of the applicants. The available explanatory variables include both continuous variables like sat score, and categ...
I have the data of 150 participants [2 different methods that assess the same thing (Blood pressure), one of which is considered as "gold standard method"] and I want to validate them on individual and group level. My questions are: for the group-level validation is a paired t-test ok? for the individual-level validati...
Looking at this the functional form "quadratic model" is introduced as a linear regression model does not assume linearity between IV and DV and only has to be linear in parameters. Is it still a linear model when fitted with OLS?
I have some cell counts obtained via flow cytometry - simply put, I have the amount of positive cells (Successes) from the overall number of cells (Successes + Failures). Based on the data structure, I thought to use a classic binomial/logistic regression. After performing the regression, using packages such as DHarma...
I have two random variables, $X$, and $Y$. What are the differences or similarities between Corr$(X, Y)$ and $\mathbb{E}(X|Y=y)$. Can I deduce one from the other?
I have a question that came up in my research and I would really appreciate some guidance from someone wise in the ways of dimensionality reduction. I have a dataset of matrices that are strictly positive, and I've been interested in finding the core trends in these matrices in order to better visualize and analyze the...
I am attempting to estimate the effect of a treatment (pko) on a specific outcome and I am using IPW to do so, along with nearest neighbor matching and coarsened exact matching for robustness purposes. When assessing how well each strategy balanced the data set, I've come across seemingly contradictory findings using t...
I have the following issue: I would like to do a power analysis (find the right sample size) for a ratio metric ($Z = \frac{X}{Y}$). The in-house statistical software I inherited uses a delta correction or delta method for that and before blindly using that I would rather like to understand what this method does. I und...
From the PRIMER manual (p. 28 about Monte Carlo permutations; http://updates.primer-e.com/primer7/manuals/PERMANOVA+_manual.pdf), the number of unique permutations for a PERMANOVA with $a$ groups and $n$ replicates per group is: $$ (an)![a!(n!)^a]. $$ However, what is the calculation if the study design is unbalanced? ...
I am working on a dataset that is unfortunately messy. The data collection period covers from 2019 to 2022 but not every participant has data in all the data collection intervals in this period. In the beginning, the data was gathered monthly but towards the end, it is collected weekly. It kind of seems each subject ha...
Consider this question on a survey: What desserts have you eaten? Apple pie Banana pudding Coconut cake Doughnut holes The user can pick as many of the options as they like. How would one encode this for use in a machine learning model? One-hot encoding is not viable in general, as there are $2^n-1$ unique combinatio...
I'm quite new with GLMM, and I'm fitting a linear mixed model in R since I'm dealing with longitudinal data. I want to treat subjects id as random effect. I have 290 clusters made up by subjects observed from one to 14 times, and a relative large number (45) are observed only once, should I drop them ? I'd not since th...
Currently I am learning about the OLS method. In the literature I see different notations for the to be explained variable $y_i$. The different notations have to do with the letters used. In one notation Greek letters are used: $y_i=\alpha+\beta x_i+\varepsilon_i$ In another notation Latin letters are used. $y_i=a+b x_...
What metrics or measurements exist for determining how much a (real square) matrix deviates from being circulant?
$X$ is a $T\times k$ matrix of constants with $\text{rank}(X)=k$, $Z$ is a $T\times q$ matrix of constants with $\text{rank}(Z)=q$, and $\text{rank}(X'Z)=k$. We have that $$P_z = Z(Z'Z)^{-1} Z'$$ and $$G= (X'P_zX)^{-1} - (X'X)^{-1}.$$ How can we prove that $G$ is positive semi-definite?
In an experiment, I wanted to check the effect of image redness on subjects' choices of an image. I modified the images at three redness levels (I: Increased redness, N: Normal, and D: Decreased redness). I presented all the pairs to different subjects (I vs N, D vs N, and D vs I) and instructed them to choose the one ...
A strictly $k$-parameter exponential family $$f=\exp\left(\sum \eta_i(\theta)T_i(x)-B(\theta)\right)h(x)$$ is regular if the natural parameter space $\eta(\theta)$ contains a $k$-dimensional open set. I was given this counterexample but couldn't figure out why it is not regular: $$\exp\left[\sum_{j=1}^{k-1} \left(\log ...
I have some random variable $X$ that is normal distributed. I know the second moment $s = \mathbb{E}[X^2]$ and have one sample x from the distribution. How can I get an unbiased estimate of the mean and variance? My current best idea is $\mathcal{N}(x,2(s - x^2))$ since $s - x^2$ would be a (biased?) estimate of the va...
My data comes from subjects performing the same task under different conditions—in other words, I have data from each subject under both the control condition and the experimental condition. This seems like a good place to use a paired-sample t-test. However, each subject also performed the task 32 times (16 under one ...
If weighted precision is calculated as weighted_precision = [(pc1*c1)+(pc2*c2)]/(c1+c2) where, pc1 = precision of class 1 c1 = no.of samples in class 1 pc2 - precision of class 2 c2 = no.of samples in class 2 How does the above equation change while dealing with class imbalance via Class Weights Oversampling
I've learned about many different types of attention models. But the one thing that I never understood was how they knew where to focus on/attend to in the sentence. What I'm wondering is if they can pick out the necessary information even for a novel sentence (that is, something not from the training set). Or if they ...
Normally we have $ y= X \beta + u $ and we find $ \hat{\beta}_{MLE} $ and $\hat{\sigma^2}_{MLE}$ from the function of: $$ l(\theta,y) = -\dfrac {n}{2}\cdot \ln (2 \pi) -\dfrac {n}{2} \cdot \ln (\sigma^2) -\dfrac {1}{2 \sigma^2} \cdot (y - X \beta)^T (y - X \beta) $$ and we take partial derivative w.r.t $\beta$ and $...
Paper here, please open using Incognito tab: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=236998 press "Download this paper" button Let me sum up the core of that paper in simple words : Unlike regular GARCH, GARCH-DCC states that the vector of the residuals of another model (ECM in my case) should follow a mult...
I have trained a ElasticNet model on a A dataset and also I get the two hyperparameters of the trained ElasticNet model Lambda (ratio of Lasso and Ridge) and Alpha (penalty). I want to see the generalization of the model on the B dataset. If I don't use sklearn's predict method directly, can I directly specify the prev...