instruction stringlengths 9 38.7k |
|---|
How do we decide the learning rate in gradient boost?
I can think of cross validation as one of the methods, but are there any other methods? Also, my teacher said in the class that 0.1 is a good measure for the learning rate (but did not back it with any sources).
|
I do not have strong math background but I am currently working on a project that requires me to use a covariance matrix. and it is my first time touching on this topic, I am reading a note, which states that the estimator
$Σ_p =\frac{1}{n}\sum_{i=0}^n(X_i − X)(X_i − X)^T$
will be very bad when the dimension is larger ... |
I am currently trying to apply some models for text classification on a binary task. The core two approaches that I follow are, on the one hand, using word2vec vector representations on a Random Forest and, on the other hand, using a fined tuned BERT.
My issue is that my training data has been labelled by me in some so... |
I am self-studying Bayesian Inference, and I am now looking at sampling from posterior distributions
For the various sampling algorithms such as ICDF and Accept-reject, my intuition is that we know the distribution analytically(e.g. since we need to know the inverse CDF), but we cannot directly sample from it. Is this ... |
I am reading through Pattern Recognition and Machine Learning (PRML) Appendix D (page 705).
Here is my question: what does the term $O(\epsilon ^ 2)$ in equation (D.1) and (D.2) stand for?
|
I have built nine meta models based on the model stacking principle, which I compare to a reference model for a number of time series. See the results below. The 22 base models that are trained on 70% of the training data produce forecasts on the last 30% of the training data on which the meta models are trained. These... |
My experiment has a 2x2 design, full between-subjects, so that the resulting four groups are as follows:
-Group A-1: Experimental treatment A.
-Group A-2: Control for experimental treatment A.
-Group B-1: Experimental treatment B.
-Group B-2: Control for experimental treatment B.
I am expecting that treatment A works (... |
I have a medical device which provides continuous measurements of a substance in the body (X) over time.
There is currently an established reference standard (Y) which measures the same substance but in a different body compartment - there is a relationship between levels of X and Y but the precise relationships over t... |
Imagine I have a coin, and I want to study tossing outcomes of that coin. I do this over two experiments. In the first experiment, I toss the coin $n_1$ times and write down all the outcomes, in the second I toss the coin $n_2$ times. Let's call the total data acquired in first and second experiment as $D_1$ and $D_2$ ... |
I have a question regarding the backshift operator.
A random walk $X_{t} = X_{t-1} + \epsilon_{t}$ can be rewritten as $(1-B)X_{t} = \epsilon_{t}$.
We know that the first difference of a random walk is stationary, so using the backshift operator: $(1-B)^2X_{t} = (1-B)\epsilon_{t}$ should be stationary. However, this im... |
Consider a simple regression model, $y=\beta^Tx+\epsilon$, say using the cars dataset. We get the following summary:
> summary(lm(dist ~ speed, cars))
Call:
lm(formula = dist ~ speed, data = cars)
Residuals:
Min 1Q Median 3Q Max
-29.069 -9.525 -2.272 9.215 43.201
Coefficients:
E... |
In Statistics, it is very common to see i.i.d random variables $\{X_1, X_2,...,X_n \}$. I wonder whether or not it is assumed that these random variables come from the same probability space $(\Omega, \mathcal{F}, P)$, and can you construct i.i.d. random variables from the same probability space?
Another question is ... |
I would like to conduct a meta-analysis on the association of a continuous and a dichotomous variable. In order to compare the result with previous meta-analysis I woud like to use the point-biserial correlation as effect size. The primary studies provide different information. There are the following cases:
a) correl... |
Today, I came across an interpretation of 95% confidence interval (thereafter "CI"). The text has been written from education science perpective saying that, beside a (1.) random sampling error of randomly selected cases from a given population, CI also accounts for "(2.) different conditions in which the test was admi... |
I am currently working with GARCH models (sGARCH, E-GARCH and GJR-GARCH). My question is very general. I chose my p and q orders with the help of AIC criterion. The best models are sGARCH(2,3),
E-GARCH(3,3) and GJR-GARCH(3,2). I have some issues interpreting the high amount of parameters/high orders. How could one inte... |
I am facing this set of ACF and PACF graphs, of a log differentiated feature, which is proved stationary through unit root tests. However, I'm having trouble selecting the right ARIMA model: ARIMA(p,d,q)(P,D,Q). Any recommendations on a good fit and why?
Original Graph
ACF Plot Original Data
PACF Plot Original Data
... |
I am trying to determine the best algorithm/approach to monitor an application at my company.
The simple overview is that when our customers call in to report an issue, we run automated diagnostics to help isolate the issue. The automation returns a number of different codes back to represent the results. IE, a 1 may... |
EDIT: I'm realising time cannot be a random effect, is that right? Where does it fit with other fixed effects? Can time be a polynomial?
I am trying to set up a growth curve analysis using lmer, I have used it before for mixed models regression, but as this analysis is more complicated I am struggling with where to sta... |
(In this example some details are changed to avoid revealing customer secrets, but I think for all intents and purposes, the actual problem I'm presenting here is equivalent to the one I'm having.)
I have in mind a particular improvement to a process, but before I propose it I want to be able to measure it's effect. I ... |
I am trying to understand GLMs by trying to run them on my own on some Poisson data. My understanding is that if I have my Y values and X values, then using the log-link function, $log[Y] = mX+b$ for some $m, b$. Now the question is to find the coefficients which best explain my Y variable. When I read about it online,... |
I am using catboost in a classification problem with extreme unbalanced classes (positive class consists of ~ 0.25% of all observations).
I fitted a model using catboost in R and got a very good result, both on the train and on a unseen test set (AUC ~ 0.97). In theory, I do not have any data leakage.
When I check the ... |
I’m having some issues with event count analysis in R, and I welcome any help I can get. I’ll walk through my issue as (to me) it seems rather bizarre.
It starts off when I try to run a negative binomial and a zero-inflated negative binomial to compare the two in a Vuong test (I have a lot of zeroes, but it’s really un... |
My question was sparked by the discussion Why is the functional form of the 1st stage in 2SLS not important?
I understand that in the first-stage we aim to predict our endogenous variable ($\hat{x}$), which is now supposed to be uncorrelated with the error term of the second stage. However, do we care how accurate the ... |
I want to be clear because there are a few similar questions but none of the answers really answer my question (or im just not smart enough to make it work). The question is, HOW MANY FLIPS. My understanding is that im looking for a sample size but i don’t know how to calculate it.
So, let’s said i found a coin and had... |
I'm trying to figure out a way to test hypotheses about variance in the linear regression model. The hypotheses I want to test are:
\begin{align*}
&H_0:\sigma^2=1\\
&H_1:\sigma^2<1
\end{align*}
The linear regression model is given by
$$Y_i=aX_i+b+\varepsilon_i,\quad i=\overline{1,n}$$
where $\varepsilon_i\in\mathcal{N}... |
I am seeking clarification regarding how to set up data for survival analysis in R with both time-varying covariates and numerous cross-sectional units. I come from a Stata background and am transitioning to R. However, I have noticed that there are certain aspects of survival analysis set-up in R that are not intuitiv... |
I have a dataset with binary variables for mitigation measures (0= a measure is not implemented, 1 = a measure is not implemented).
I now want to know how often a certain measure is put in place together with another measure. For this I used a using the Pearson coeefficient.
How do I interpret the coefficients? For ex... |
I have a question related to choice of integer or numeric. In my paper, I measure voice onset time (VOT), which is a durational property of speech sounds. It includes both negative and positive measurements. I have two questions. First, should I define VOT variable as integer or numeric? Second, if I do an anova (LMER)... |
After running this negative binomial model:
test_nb <- glm.nb(low_lvl_deaths ~ CSO_prtcpt + IMR + ethnic_frac + democracy + cumulative_intensity + PKO + war_duration + territory + peace_agg + con_complex + lGDPpc, data = nb_outliers)
I am met with the following error:
Error in glm.fitter(x = X, y = Y, w = w, etastart =... |
In Google developers site, the meaning of the word sparse seems to contradict between the following two definitions:
sparse feature:
Feature vector whose values are predominately zero or empty...
sparse representation:
A representation of a tensor that only stores nonzero elements...
Can someone please help me... |
I have lists of scores, which can be very non linear. For example:
20332
18000
599
39
19
2
I need to normalize these scores to a 1-100 scale so I can do some comparisons with other score sets which may be in different scale, such as:
294
39
8
5
3
1
The thing is that, due to the non linearity, I want to give the high... |
Lot's of questions and good answers on mutual information e.g. here out there and I think I get the concept which is also nicely explained on wikipedia. But I'm nervous that R's infotheo package is outputting some funny results... or I'm not getting it after all ;-)
In all self contained examples with synthetic data se... |
Any MA process is weakly stationary be definition. This applies also to the following $\text{MA}(\infty)$ infinity process:
$X_{t} = \sum_{s=0}^{\infty} \theta^s Z_{t-s}$, where $Z_{t}$ is a mean zero process with variance $\sigma_{Z}^2$. This process is weakly stationary and invertible for $0<s<1$.
The variance is fin... |
Some references first:
How is approximately unbiased bootstrap better than a regular bootstrap with regards to hierarchical clustering?
Suzuki et al. 2004 https://www.researchgate.net/publication/228851295_An_Application_of_Multiscale_Bootstrap_Resampling_to_Hierarchical_Clustering_of_Microarray_Data_How_Accurate_are_... |
I am using PSM matching in a paper I am working on. Prior to doing the PSM, I look at some summary statistics, including doing some t and z tests; buyout is the treatment, control is the control:
My PI wants me to do this again after I balance the sample through PSM. Now, from my reading of the MatchIT vignettes, I kn... |
I am trying to develop a valid method for modeling some biological data. I do not need it to be predictive necessarily, but I want to be able to show relationships and determine which set (of many) has a strong relationship.
In general, my data has n = 18 with x ~ 17 (though this varies) collinear variables. Based on w... |
Let $K:X \times X \rightarrow \mathbb{R}$ be a Mercer kernel with an associated RKHS $H$ then the norm $|f|_H^2$ can be used as a way to ensure that $f$ is smooth in $H$. If i understand correctly, since $f = \sum_{i=1}^m a_i K_{x_i}$ then by minimizing $|f|_h^2$, we are trying to minimize the coefficients $a_i$. Am i ... |
After a 2 month test, there is a result of 5 defective parts out of the total sample size of 50 tested parts.
How many defective parts can be expected for an annual production of 70000 parts (p=0.95)?
I am not really understanding this, do I have to use some kind of distribution such as binomial, and why?
Thanks in adv... |
Suppose we take repeated measurements of $x$ and $y$ from an individual (or possibly two) and we want to estimate the effect of $x$ on $y$. For example we could simulate such data as below:
x1 = sample(1:100,100)
x2 = sample(1:100,100)
y1 = 1 * x1 + rnorm(100,0,20)
y2 = 1.5 * x2 + rnorm(100,0,20)
df = data.frame(y... |
This should be a simple question but I must have missed something.
Equation (8.52) of Section 8.7 Bagging on page 285 of Trevor Hastie, The Elements of Statistical Learning: Data Mining, Inference, and Prediction is equivalent to
$$\mathbf E_{\mathcal P}[(Y-f_{\text{ag}}(x))(\hat{f^*}-f_{\text{ag}}(x))]=0$$
wehre $f_{\... |
I am working on building Generative Adversarial Networks for the purpose of generating synthetic flight data. The GAN will be trained on actual time-series flight data in the form of a (n,m,9) array where n is the number of flights, m is the number of time samples, and each column is a state variable: [$V$, $\alpha$, $... |
Suppose we have 2 i.i.d random variables $X, Y \sim Ber(0.5)$. What is the image of $\frac{X}{Y}$? Is $\frac{X}{Y}$ a random variable?
Clearly, $I(\frac{X}{Y})$ contains 0 and 1 with $P(\frac{X}{Y} = 0) = P(\frac{X}{Y} = 1) = 0.25$.
What about $+\infty$ when $\frac{X(\omega)}{Y(\omega)} = \frac{0}{0}$ or $\frac{1}{0}... |
In this discussion by comments Is the exact value of any likelihood meaningless?, it was suggested (firmly!) that likelihoods and probabilities calculated from continuous data not only have units, but those units are the reciprocal of units of the data. In contrast, likelihoods and probabilities from discrete data have... |
In Colombia there are 12.000 voting centers that consist of one or more electoral tables (the number of electoral tables depends on the number of registered voters in the voting center, and voting tables have a maximum of 400 voters). One could potentially detect electoral frauds by identifying electoral tables with ve... |
I am doing a multilevel regression model, and my main independent variable is individual level income (distributed in 10 deciles). I have no problem running a model to find the effect of income on the dependent variable.
However, I want to find the separate effects from each of the ten deciles on the dependent variable... |
Is the vector-autoregression applicable to two series with Granger causality or stationary series where the cross-correlation plot is negative at some parts and also positive in others?
If that's the case, how do you choose the order of the VAR?
Do you look where the absolute value peak/nadir is?
A variable can Grange... |
I was beginning to self study time series and came across this notation: $\stackrel{\mathcal{D}}{=}$. I wonder what it means? (I have limited access to the textbooks for the moment, so I have to post a question here.)
For more context, it was in the definition for a strongly stationary sequence, where the article state... |
Can someone clear this confusion. Lets say I have a time series model:
$$X_t \text{ follows Poisson}(\lambda_t)$$
$$\lambda_t=a*X_{t-1}+b*\lambda_{t-1}$$
Then I find estimators for $a$ and $b$ called: $\hat{a}$ and $\hat{b}$.
If the sample size increases:
I take for example x data for 10 days calculate $\hat{a}$ and $... |
I have two vectors, X and Y. Y[i] is related to X[i]. X is between 0 and 1 (it is a decimal number). Y is boolean, it is either 0 or 1. I want to calculate the probability of Y=1 for different X values. How can I do it?
I was thinking of splitting X into different intervals, such as 0-0.01, 0.01-0.02, .... 0.99-1, then... |
I have a scenario in which I'm using multinom (from NNET package) to perform multinomial regression over a set of 100+ genes (a given gene is an independent variable in each multinomial regression). I have the following setup for generating the models, which runs successfully.
formulas <- sapply(iv_list, function(x) as... |
Given $N$ sequences of codes
$$
c_1 \rightarrow c_3 \rightarrow c_2 \\
... \\
c_3 \rightarrow c_5 \rightarrow c_7 \rightarrow c_8 \rightarrow c_1
$$
where the codes are from set $\psi = \{c_1, c_2, ...,c_n\}$, I need to construct the most likely sequence given an unordered subset of codes from $\psi$.
So, if the subs... |
Is there a reasonable situation where the clusters are anonymous?
What I mean is that one can ensure the subjects sampled are from the same cluster, but she does not know exactly which cluster they are in.
An artificial case is that the researcher knows males and females are encoded using odd and even numbers, respecti... |
Suppose
\begin{align}
\begin{pmatrix}
X_i\\
Y_i
\end{pmatrix} \sim_{iid} N
\begin{pmatrix}
\begin{pmatrix}
\mu_1 \\
\mu_2
\end{pmatrix},
\begin{pmatrix}
\sigma^2_1 & \rho \sigma_1 \sigma_2 \\
\rho \sigma_1 \sigma_2 & \sigma_2^2
\end{pmatrix}
\end{pmatrix}
\end{align}
with $i=1,...n$, $\sigma_1, \sigma_2 >0$, $\mu_1,\m... |
Let imagine we have a game with 4 players. And after playing game, we will get ranking of 4 players based on their score, rank 1 is the best, rank 4 is the worst. I have created a model for predicting player ranking. In detail, I have created 2 models for predict who will be in rank1 and rank2 of the game:
model A pre... |
I hope this is the right place to ask the following question.
I have N tables (N>1000). The rows (all, or some of them) of each table may (or may not) be merged with other rows in other tables, following a specific process that is irrelevant here. Every table has the same columns.
At the end of the process, I have a si... |
Consider two situations:
1st situation
You ordered a number of cubes by their weight (from light to heavy). Then you notice that most of the cubes are grey, but there're a lot of the cubes with different colors but similar weights in the middle of your ranking. So, you make the ranking more dependent on the color in th... |
In general, there vast number of ways to select model/feature in machine learning or statistics. For example, empirical method like Cross-Validation, Bootstrap methods or in sample penalty such as AIC, BIC ,Mallow's CP. But I am wondering about how should a researcher choose a suitable model selection method for a spec... |
I am struggling to understand how RBF (radial basis functions) work. My first question concerns the weights: are the learnable weights the same as the centres? So, is the algorithm essentially learning the centres? Furthermore, the slides of my deep learning class say that also the SD of the activation function is lear... |
I am trying to use the Median to estimate the value for the parameter $a$ in the following PMF.
\begin{equation}
\label{eq1:givenpdf}
\mathbb{P}\left[X=\frac{a}{n}\right] = \frac{36}{5}\frac{n^2}{\left(n+1\right)\left(n+2\right)\left(n+3\right)\left(n+4\right)}\ for\ n=1,2,\dots
\end{equation}
When equating the CDF... |
I have a simple random sampling (n observations) of the population $X$, whose pdf is
$$f_\theta (x) = e^{-(x-\theta)} I_{(\theta,\infty)}(x) $$ and $\theta \in \mathbb{R}$. $S^2_n$ is the unbiased sample variance.
Part of the problem asked was to prove $X_{(1)}$ is sufficient and complete, which I did. The joint pdf of... |
I am working with weekly, highly seasonal data (period=52) and fitting the following regression using lm:
$$
y_t=\rho_1y_{t-1}+\rho_2y_{t-52}+\beta x_t+\varepsilon_t
$$
where $x_t$ is a vector of independent variables that are also highly seasonal.
This isn't exactly a type of model I have seen before but it produces a... |
I'm trying to understand how the direct and indirect impact on a SEM using the plspm package.
The structure path of the model is the following :
After estimating I get the following results :
relationships direct indirect total
IMAG -> SAT 0.3757397 0.000000 0.3757397
IMAG -> LOY 0.1228504 0.225799 0.34... |
My data looks like this:
Group 1: outcome 1 - 200, outcome 2 - 750 Group 2: outcome 1 - 300, outcome 2 - 900
Group 2's likelihood of having outcome 2 is 75%, while Group 1's likelihood of having outcome 2 is 79%.
If I run a binary logistic regression on this data, Group 2 is significantly less likely to have outcome 2.... |
I have a dataset of size (140,000, 10) containing 1 dependent variable. I used MinMax scaler on independent variables. For the target value, there is a class imbalance of 94% 0's and 6% 1's. Used RandomOverSampler for oversampling.
When I run a neural network model on my dataset, it gives me the following plot:
With a... |
I have read a lot of questions with answers like this one, How do Bayesians verify their methods using Monte Carlo simulation methods?, which stated that Monte Carlo methods are not suitable for verifying Bayesian methods. I'm interested to look at intervals, and I understand that we do confidence intervals for frequen... |
I am completing my dissertation which was to determine if a 6-week expressive writing intervention would reduce aggressive behaviors & increase emotion regulation in students. My first variable (aggression) is being graphically analyzed. My second variable (emotion regulation) is being assessed by comparing pre-interve... |
I had a look around and couldn't find the answer to my problem, so hopefully this is a new question.
I tried to fit a GAM with two continuous explanatory variables, one of them is Day of the year and therefore uses a cyclic spline smoother. The data is normal distributed.
It would be great to present the result as a 3D... |
I am applying Lasso regression and the R function glmnet::cv.glmnet() to obtain a prediction model based on 90% of the data. I have set aside 10% as a hold-out set and obtain predicted probabilities for the hold-out set. I repeat this for each 90%-10% split of my data (10-fold cross validation). This gives me a predict... |
Let's say you have a set of potential explanatory variables (e.g. p = 8) that you think are important to explain your response variable ($Y$) but your sample is too small to include them all in the same model (e.g. n = 50) but you do it anyway, would this overfitted model be worth something to generate new testable hyp... |
I wanted to find out the stability of my system so for that i calculated standard deviation of power samples data which is in dB but I am not sure whether i have used correct formula or not.
As far as I know, I can not directly take standard deviation of the dB, so i converted dB the linear using formula as follow :
A... |
I am interested in analysing two dependent variables, let's say Alpha and Beta.
I tested 40 participants, divided into two different treatment groups: Group A (n = 20) and Group B (n = 20)
Within each group, I measured Alpha and Beta six times (time variable, t1 to t6)
I would like to analyse these data both considerin... |
Can statistics help to definitively deduce causality? RCTs require that you state the set of variables that you believe influence a given outcome of interest, a priori, therefore if one wants to understand the effect of a treatment/intervention, the typical procedure would be to model the intervention distribution base... |
Is there a package in R that allows phylogenetic comparative analysis of proportion data (i.e. a beta distribution)?
|
I have a dataset with 78 observations and 25000 variables.I am trying to apply logistic regression with shrinkage methods(penalties like SCAD,MCP,LASSO).The problem is that the commands ncvreg(ncvreg library) and cv.ncpen(ncpen library),do not run,because I have lots of NA's in the data.I am trying to do imputation,but... |
We have generated an elastic net model on a small dataset, where we use gene expression data to calculate a biomarker score to discriminate patients with condition X vs controls.
The dataset is too small to create any meaningful validation sets, so we use nested LOO-CV for performance estimation and the model seems to ... |
Multiple testing refers to testing more than one hypothesis simultaneously. The situation typically involves having several tests that cannot be combined into a single test, and therefore inference is adjusted to account for the fact that more than one hypothesis is tested.
Suppose I have multiple viable tests of the s... |
Reference document: here
In section 3.3 of the referenced document, discussion regarding neighborhood function in SOM is provided. What I am not being able to understand is what influence radius has on the neighborhood function since I do not see it being used in the actual function formula. In the first screenshot bel... |
Let's say we have a continuous random variable with distribution function $F$. If we want to obtain a corresponding normal variate at $x$, then we simply compute $ \Phi ^ {-1 } \left(F \left( x \right) \right) $.
However, for a discrete distribution like a Poisson, I was told to obtain an equivalent normal distributi... |
I have a data set with N=18 and a simple linear model y ~ factorX*numericR + (1|id). I now found a significant but small correlation for numericR (-0.24). I did not run a power analysis to determine sample size, as it was not possible to recruit more than 18 participants. I now would like to know if the effect I found ... |
Assume two time series $X_1$ and $X_2$, where $X_i=(x_{i,1},...,x_{i,T})$. How can we test the assumption of bivariate normality for these time series? (Assume each of the time series are stationary and normally distributed).
|
Suppose we run a regression with one key independent variable and also include group fixed effects.
Is there a way to find out which groups contribute towards the observed results?
|
I did an introductory course to Bayesian in my master's degree in Statistics. I did not understand much since it was too much in short time, very concentrated.
We have covered from the most basic (bayes theorem), conjugate priors, but then moved fast to Method of composition, bayes regression, Gibbs sampler and Metropo... |
The purpose of my analyzes (with Rstudio) is to test the direct and indirect relations in a mediation model (to verify if the relationship between I_d and R_re_moy is mediated by U_moy). I_d is the independant variable, R_re_moy is the dependant variable and U_moy is the mediator. My variables are measured, not latents... |
Please feel free to migrate me to whatever platform best suits this question best. I just find myself in a bit of loose end looking for examples of such plots in R or Latex.
If someone could help, would they be able to identify how this plot was produced and with which software? More specifically, a mesh structure repr... |
We have 100 subjects (A,B,C....) in total.
We took 2000 tissue
samples from each subject.
For each subject, we evaluated the outcome(PASS or Fail), but we only evaluated the outcome on the subject level, not on the sample level.
We also have other measurements (V1,V2, V3....V300) on the sample level. We have total of ... |
I am not sure exactly how I should word this question, but is there a way to test the impact of a given factor on categorical distributions when I have multiple (independent) samples from the different levels of that factor?
To give a more concrete example: lets say I want to know if movie theaters in one town sell sna... |
I originally posted this on Stack Overflow (https://stackoverflow.com/questions/72649894/determining-direction-of-effect-in-wilcox-test-and-interpreting-pseudomedian), but I realized it fits better here. Apologies if reposting like this is a no-no.
I pretty frequently run Wilcoxon tests in R, but one question I've not ... |
we know that a condition for a non-zero point estimate of the variance for a finite sample is that there exist at least two integers $i,j$ such that $X_i\neq X_j$. In other words $\frac{1}{n}\sum\limits_{i=1}^n \left(X_i-\frac{1}{n}\sum\limits_{j=1}^n X_j\right)^2 \neq 0$ if there exist at least two integers $i,j$ such... |
I have a dataset where 50 Subjects were each exposed to 2 Testing Conditions over 5 Time Periods and they reported their Happiness Levels at every time point (i.e., I have 50 * 2 * 5 Happiness data points in total). Based on past work, I know I need to run a "linear mixed-effects model with a fully specified random-eff... |
Let's say I have a data set $ X = \{ x_1, \dots, x_n \}$ with underlying probability density
$$ p(x; \mu_1, \sigma_1^2, \dots, \mu_k, \sigma_k^2) = \sum_{i=1}^k \alpha_i p(x; \mu_i, \sigma_i^2), \quad \sum \alpha_i = 1 , \alpha_i \geq 0,$$
where $p(x; \mu_i, \sigma_i^2)$ is the probability density of the normal distrib... |
The only reason I can think of to use PCA is to use it basically the same way you use exploratory factor analysis. It can validate for us that questions in a survey load onto principal components the way you would expect.
I can't think of a way to use it other than that. My understanding is that PCA is basically worthl... |
Besides the other requirements for VAR, do the series have to be best described by the same number of MA terms to be included in a VARMA model?
As I understand it, the AR in VAR equals the lag of the peak of the Cross-correlation function rather than the actual AR terms the series are best described.
|
IPTW as in inverse probability of treatment weighting. Currently I am working on a project investigating the ATT of certain antiviral, and I found out there are several stats papers on the necessity and ways of bootstrapping when using IPTW, eg this and this. Yet I also found various papers in good medical journals (li... |
I have a dataset that I used to train my ML model for prediction. I created my prediction models using XGBoost and Neural Networks.
Now I want to create another model that can give me the causal relationship between the values that I have. What I actually want to know is which parameters influenced in what manner in pr... |
Problem
A set of 26 people (person A, B, ..., Z) play pick-up soccer 100+ times. Each time they play, they divide into two teams. You're given how the teams were divided and the order each player was picked. Not all players show up to every game.
For example: for the 42nd game that was played, letters M, N, ..., V (10 ... |
Suppose we have a multiple linear regression model with two predictors, $X_1$ and $X_2$:
$$Y = \beta_0 + \beta_1X_1 + \beta_2X_2 + \epsilon.$$
We can interpret $\beta_1$ as the expected increase in $Y$ with a unit increase in $X_1$ when $X_2$ is held constant. This is because $\beta_1$ is the partial derivative of the ... |
I am currently working on a research project that involves interpretation of coefficients from a fitted Cox Proportional Hazards model. Unfortunately, the features within my model exhibit high multicollinearity. My understanding is that multicollinearity affecting input features does not affect the 'accuracy' of any gi... |
In this blogpost given a probabilistic binary classifier, with prediction $\hat{p} \in [0,1]$ and label $Y \in \{0,1\}$, the authors claim the following decomposition of the mean squared error.
$$\mathbb{E}[(\hat{p}-Y)^2] = \mathbb{E}[(\hat{p}-\pi(\hat{p}))^2]-\mathbb{E}[(\pi(\hat{p})-\bar{\pi})^2]+\bar{\pi}(1-\bar{\pi... |
I am trying to see the kernel trick implemented for Ridge Regression.
As a first step, I want to rewrite the solution of Ridge regression. I know that:
$ \hat{\beta} = (X^TX + \lambda I_n)^{-1} X^T Y $
I think that if I can reach $ \hat{\beta} = X^T (XX^T + \lambda I_n)^{-1} Y = X^T p $
where $p = (XX^T + \lambda I_n)^... |
Call:
lm(formula = y_diff ~ y_mean + math_mean + math_diff + history_mean +
history_diff:math_diff, data = dat3)
Residuals:
Min 1Q Median 3Q Max
-5.2202 -0.9279 0.0280 0.9511 4.0430
Coefficients: (1 not defined because of singularities)
Estimate Std. Error t value... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.