instruction stringlengths 9 38.7k |
|---|
I am using auto_arima() function in pmdarima package.
In its summary() results it returned a best model specification as:
Model: SARIMAX(2, 1, 2)x(2, 0, [], 7)
But I can't find any explanation in the pmdarima documentation what it would mean if they return a model specification with an empty square bracket.
Could anyo... |
Consider a binary classification dataset (X, Y), generated according to some unknown distribution $P(X, Y)$. I have a question about models which output probabilities by minimizing the cross-entropy loss (logistic regression and deep models using a final softmax layer).
do these models attempt to predict the true cond... |
Let $X_1, \dotsc,X_n$ be i.i.d. from $N(\mu,\sigma^2)$, then we know that sample mean $\bar X\equiv \frac{1}{n}\sum_{i=1}^nX_i$ and $S^2=\frac{1}{n-1}(X_i-\bar X)^2$ are independent. Obviously, they both depend on $\bar X$ and depend on all observations as well. So this independence result is really surprising. I'm won... |
I'm trying to perform error propagation for some photometry code I'm writing, but I'm having some trouble with it!
I have a value $x$ that I draw from a distribution with standard deviation $\sigma_x$, $x = \mu_x \pm \sigma_x$. I feed $x$ into a polynomial function,
$f(x) = \sum_i c_i x^i$
How do I find the standard de... |
Suppose we have a data which consists of two normals,
x = rnorm(50,mean=1,sd=2)
y = rnorm(50,mean=2,sd=3)
z = sample( c(x,y) , size = 100, replace=FALSE )
The goal is to estimate the two normal parameters and then classify which of the two normal families each of the data points belong to.
Here is an approach to this ... |
I am wondering how I can map this problem to something known.
Let us start with a standard linear regression framework, and suppose we want to reconstruct an observed signal $y$ from single known components $\mathbf {A}$ that are mixed following a single unknown vector of weights $x$. We know $\mathbf {A}$ from reliabl... |
I'm running an SVAR in R, following this guide: https://levelup.gitconnected.com/structural-vector-autoregression-in-r-5d6dbfc56499, with slightly different variables (CPI -> Violent Crime Rates -> Federal Funds Rate). Below are my models:
var1 <- VAR(ts_all,
p = 1,
season = NULL,
e... |
I am struggling to obtain the Value at Risk from my DCC GARCH analysis. I have done the following code:
SMF.frame <- data.frame(df_fuldperiode$spot_log_returns [2:2217], df_fuldperiode$monthly_log_returns [2:2217])
sspec <- ugarchspec ( mean.model = list( armaOrder = c ( 5 , 4 )))
mspec <- ugarchspec ( mean.model = lis... |
I'm working on a project focused on pricing houses.
Looking online I see a lot of works and companies providing the performances of their model using the median instead of the mean (see for example Zillow).
And to me this makes total sense, since its a statistic less influenced by outliers (in my scenario big and parti... |
I'm currently trying to eyeball the type of distribution of this histogram to properly specify the family of distribution to use for a generalised linear model in python. I'm pretty sure it's a gamma distribution but the parameters from the model are way off. Can anyone corroborate my thoughts on if this is indeed a ga... |
I have the following results on my ARIMA forecast and was wondering how I can create an equation out of my coefficients?
I am using auto_arima provided by the pmdarima library in Python.
Best regards
|
I'm estimating a hierarchical/multilevel model and a standard fixed effect model for a cross-national survey, with level 2 set at the country level.
When I look at the outputs for these models however, I see that the hierarchical model lists a slightly higher n for the level 2 groups than the FE model.
I think this is ... |
I have a dataset that includes real world data (not experimental or survey data) for a set of countries year by year for 40 years. The data was collected by entities such as the World Bank and United Nations. We want to see how well this data predicts things like GDP. In the OLS case, R2=0.47 but the residuals are not ... |
In K fold cross validation, we divide the dataset into k folds, where we train the model on k-1 folds and test the model on the remaining fold. We do so until all the folds were assigned as the test set. In every of these iterations, we will train a new model that is independent of the model created from the previous i... |
I already referred these posts here. Please don't mark it as duplicate. This post is continuation of my other post here. So, am not providing the full context here. You can refer the link here
a) Is there any other regression model that can take raw input (without any data standardization/transformation using log,sqrt ... |
I am currently working on a regression problem to predict customer revenue in the next 3 or 6 months etc.
So, am currently using different regression approaches. However, I see that the predicted y values are negative (for monetary value). but monetary value cannot be negative.
But my R2 value is 90% in train and 82% i... |
I want to do some classifications on open access "Activity Recognition Using Wearable Physiological Measurements" data set. In this dataset, there are 40 subjects whose Electrocardiogram (ECG), Thoracic Electrical Bioimpedance (TEB), and Electrodermal Activity (EDA) information have been recorded for activity recogniti... |
When running tests for homoscedasticity, using R gave the following results:
Bartlett test of homogeneity of variances
data: list(Full_data_1$ICPP, Full_data_1$PI)
Bartlett's K-squared = 7.9171, df = 1, p-value = 0.00489
However, when running a Levene's test the result was a significance of 0.8397.
The data is normal... |
I am wondering why training error converges more smoothly when I am not applying randomization after each epochs?
After each epoch I am taking the loss obtained in my last minibatch. I see that when using no randomization this loss is decreasing monotonously. Contrarily when using randomization I see a convergence in m... |
I would like to ask about the difference between applying the multilevel/hierarchical models and including the moderator variable in multiple regression analysis. This is for considering the individual differences in the context of my study. Thank you!
|
Frequentism is very roughly the view that the probability of some attribute or event is identical to its actual relative frequency or hypothetical long-run, relative frequency.
My question: what is the relationship of significance tests in statistics to Frequentism?
(By "significance tests" I mean the general procedure... |
I have one data is normal distribution (VAR00004) and another data is non normal distribution (VAR00002). If I want to compare this both data, what should I do in the T-test or is there another available test?
The both Graphs are showing here too.
|
I am trying to fit the weekly forecasting model, however, I only have 60 data points.. trying tslm i.e. the linear model with time series components, and comparing it to harmonic regression, the linear model had lower AIC but higher AICc. As a further test, I then split my data into 54 training and left 6 as test data ... |
I have a doubt regarding categorical data encoding, and, missing value imputation..
Say, I have a categorical dataset whose one of the attributes is gender. The attribute is consist of two values male and female. There are some missing values on this attribute.
The dataset is coming with pre-processed encoding techniqu... |
In at least certain strands of "classical statistics", there seems to be a shared commitment to the following claim:
For any null hypothesis H, if the p-value of H and the observed test statistic is below the significance level alpha, then we should reject H.
For example, this is an excerpt from the Wikipedia page on s... |
Why are both Order and Rank conditions needed for identification with instrumental variables?
|
I started to study linear regression this autumn and got stuck at the estimation of regression parameters (in matrix form).
In parameter estimation of the general linear model, the OLS method is used to estimate the parameter
$\beta$ and result in least square estimator $\hat{\beta}$ in normal equation $$X^\top X\hat{\... |
At a vague intuitional level, I feel like, if we generated a 0%, two-tailed, truly central (or "equal-tailed") confidence interval (CI), the number it would wrap around would be a median-unbiased estimate of the population parameter in question. Am I confused, or is this right? Is there another intuition of it that i... |
Let $n \geq 1$ be an integer. Let $X \sim \operatorname{Beta}(i, n - i + 1)$ where $i \in \{1, ..., n\}$. Therefore:
$$
X = \frac{A_n}{A_n + B_n}
$$
where
$$
A_n = \sum_{r = 1}^i Z_r, \qquad B_n = \sum_{r = i + 1}^{n + 1} Z_r
$$
where $Z_r$ are i.i.d. $\operatorname{Exp}(1)$ random variables.
Why?
PS.
This is from [^Ar... |
I would like to create a gamma probability distribution in R with a median of 3 and interquartile range of [2,5]. I am familiar with the methods of moments to estimate the scale and shape of a gamma distribution but this is based on the mean and standard deviation and both are not available. Is there a way to estimate ... |
I am trying to compute probit regression that includes interaction terms. When I compute marginal effects after the main coefficients R gives me marginal effects for interaction terms and Stata doesn't. It says that Stata doesn't compute marginal effects for interaction terms because logically it's not possible. But th... |
I tried to implement a rejection sampling method in python based on something explained during class. The target distribution is the normal distribution and the proposal is the exponential distribution. To accommodate for the different domains. The following pdf was used:
\begin{align}X &\sim N(0,1)\\Z &= |X|\\ f_Z(x... |
I have coded a simple supervised ML classification using 10-20K data points for 25 samples. Linear ML models run quickly for example naive Bayes, linear regression and SVM linear on a small multi-core CPU desktop with 8 G RAM via scikit-learn.
However, non-linear models for example lasso regression and non-linear SVM v... |
I am learning about variational inference and Gibbs simpler.
I am in the process of deriving variational inference on my own. In this process, I need to make a comparison with Gibbs sampler.
I am reading the book "Machine learning a probabilistic perspective" by Kevin Murphy and I found this sentence that I need help w... |
I am looking into applying the Johansen cointegration procedure to variables of very different scales, going from units to tens of thousands. I use log(prices) but the scale difference is still very large, plus variable with values < 1 become negative.
I am wondering what's the best approach to deal with this issue. If... |
It it possible for a Convolutional Neural Network to output "no classification" for a multi-audio classifier? Is it common practice to set % thresholding to the output vector of probabilities?
I am building a CNN audio classifier that is able to detect chicken chirps in raw audio data. So far I have trained the model b... |
I am trying to find the strongest correlation between two data sets in R and one set has 9000+ columns. I used cor() and it worked well, but is there a function or way to find the strongest correlation value and column name? Note that I do have many NA values in the correlation matrix, but this is to be expected for my... |
I have two binary classifiers working on the same dataset.
If their ROC AUC values differ by at least 0.05, is it enough to declare that the performance difference between the two classifiers is statistically significant?
Because, this is the rule of thumb I have developed over the years
to have an idea of if two metho... |
I am trying to improve my understanding of lavaan::sem models when using a probit link function by comparing the output to simple probit regressions.
Currently, I see that the coefficients for each approach are approximately the same, but the regression intercept is negative, and the sem value is positive - although th... |
Let $X_1,X_2,...,X_n$ and $Y$ be random variables. I know that:
$$\label{aaa}\tag{I}
E\left[\sum_{j=1}^n X_j \Bigg | Y \right]=\sum_{j=1}^n E\left[ X_j \Big | Y \right] $$
Now, suppose that $Y$ takes values $1,2, 3,...$.
How to prove the following?
$$E\left[\sum_{j=1}^Y X_j \Bigg | Y \right]=\sum_{j=1}^Y E\left[ X... |
My goal is to understand what is PCA for in supervised learning.
Do we use the PC1, PC2, PC3 to the supervised learning?
Do we use the generated labels to the supervised learning?
If we use the PC1, PC2, PC3 and/or generated labels, do we use the original numerical features in supervised learning?
What I understand i... |
I am trying to use GammaRegressor to predict the customer revenue in the next 3 months, 6 months etc.
So, I tried using the GammaRegressor based on suggestions from the posts here.
My Y variable ranges from 0 to 6172000.9368
However, when I passed in my data, I got the below error
GammaRegressor model failed to execut... |
I have a given question that I just cannot figure out. From what I can understand, both estimators would be unbiased (since e_1 is the sample mean and e_2 is an unbiased estimator for uniform distribution), which seems unlikely. I appreciate any help or hints.
Every day you take the train to the work. You know that the... |
By Cochran's theorem, if $y_1,....,y_n\sim\mathcal{N}\left(0,\sigma^2\right)$ independently with a known variance $\sigma^2\in\mathbb{R}_{>0}$, then
\begin{equation}
(n-1)\frac{S^2}{\sigma^2}\sim\chi^2_{n-1},
\end{equation}
where
\begin{equation}
S^2=\frac{1}{n-1}\sum_{i=1}^{n}(y_i-\bar{y})^2\sim\frac{1}{n-1}\sum_{i=1}... |
I am trying to fit the function $A/x³$ to some data points (X,Y). I tried using least squares to fit the function $A x^3$ to the data points (1/X,Y) using least squares. However I do not obtain a good result. I though that maybe the data points need to be weighed somehow?
Here is the python function I am using right n... |
Consider we have a set of i.i.d. measurements $x=(x_1,...,x_n)$ corresponding to the random variabel $X$. Each of these measurements is associated with an additive error, such as $x_i=x+\epsilon_i$. A zero-mean Gaussian PDF is assumed to describe the error, $f_{\epsilon_i}$.
The random variable $X$ follows a normal dis... |
I have a pandas data frame with a target variable, which is binary (classes progressive / non-progressive), that I want to predict. Before making the model I want to do some feature selection, and that is by comparing the density distribution of each predictive feature, between the two groups in the target variable.
Fo... |
I understand "domain adaptation" to be a type of "transfer-learning" technique.
Domain Adaptation:
By applying knowledge obtained from a domain with sufficient teacher labels (Source Domain) to a target domain without sufficient information (Target Domain), a discriminator, etc. that works with high accuracy in the tar... |
Please help me with this classification question.
Say I run an experiment where I have a treatment and control group. I then measure some feature, $x$, of both groups and use MCMC to sample the posterior distribution of each group's mean $x$. I then classify the posterior draws of each group's $\overline{x}_i$ as belo... |
What is the difference between blocking in an experiment design and a split plot design?
|
I have a matrix with many rows (>18000) and few columns (6), where five are numerical and one is a binary factor and i'd like to find an efficient and simple way to visualize the relationship between the factor and the other variables.
I want to find out how observations with, for example, categorical value = 1 correl... |
Here is the resulting heatmap for train, val, test set. I also apply PCA to train,val,and test set. Because from the train set, there are a lot of features that has high correlation with each other.
According to what i searched online here and here, we should not balance the validation and test set as its better to ma... |
I am doing an experiment where participants will need to choose Yes or No at some point and then answer a question, let's say, their happiness, measured continually from 0 to 1.
Now, I split the samples into two groups based on this binary choice: a Yes group and a No group.
Then I want to check whether there is any di... |
How do we handle variables that are mixed between unordered and ordered categories? For instance, if we have a group of executives who are either CFO, COO, or CEO, we might think that CFO and COO are distinct categories but not in any particular order. CEO, however, ranks above them.
Another example could be military r... |
i have pre and post measurements of biodata (20 clinical measurements) taken before and after the treatment from a group of 30 people, out of which I have 20 successful and 10 unsuccessful subjects. I want to analyse the differences in these clinical measurements with regards to their (pre/post) measurement and the gro... |
I've seen e.g. the minitab explanation on this topic which isn't bad but though, in the end, I can't explain which statistical term or the like I would (or could) investigate with each of them.
I understood it is variability but is the variability from a replication simply greater than from repeating or is it a "differ... |
So, in this problem I am asked to find the cumulative distribution of the continuous variable T and the probability that $J=3$ given T is larger than 10 and lastly the conditional expectation of T given $j=2.$ I have tried just adding the pdf but they do not have the same range? Any idea what to do?
|
I have some questions about the spectral analysis in time series. For a zero-mean and covariance stationary time series $\{X_t\}$ with autocovariance function $\gamma(h)=Cov(X_{t+h},X_t)$. The $\textbf{spectral density}$ is defined to be the Discrete-time Fourier transform of $\gamma(h)$
$$f(\lambda)=\frac{1}{2\pi}\sum... |
I am studying ROC for model evaluation for the first time and I have two questions that are confusing me :
I totally understand how to construct ROC with a logistic regression model, in which for every threshold we compute the true and false positive rates. This makes sense with logistic regression as logistic regress... |
Say we have the latent variable $y_i^*=x_i\beta-\epsilon_i$ and $\epsilon_i \sim N(0, \sigma^2)$.
$y_i^*/\sigma=x_i\beta/\sigma-u_i$ where $u_i=\epsilon_i/\sigma \sim N(0, 1)$, and so can use Probit to estimate this regression.
$$
Pr(y_i=1|x_i) = Pr(y_i^*>0) = Pr(x_i\beta<\epsilon_i)=\Phi(x_i\beta/\sigma)
$$
Thus, $\be... |
I hope you find this problem interesting.
Consider the following model:
$Y_t = X_t'\beta + \varepsilon_t$ with $\varepsilon_t \overset{\textrm{iid}}{\sim}\mathcal{N}(0,\sigma^2)$ for $t=1,\ldots,T$. Call this model $(1)$
and the model
$Y_t = X_t'\beta + \varepsilon_t/T^{\alpha}$ with $\varepsilon_t \overset{\textrm{iid... |
Here's the question.
You are flying to Zanzibar (Tanzania) with a connection in Aachen (Germany). You checked a bag. Assumptions:
There's a 50% chance that your bag successfully made the connection in Aachen. Conversely, there's a 50% chance that your bag is stuck in Aachen.
The baggage crew in Zanzibar loads all the ... |
Suppose you have two clusters of points in the 2-D coordinate plane sampled from two Normal distributions. The clusters are centered at (0,1) and (0,-1). Is the probability that the x-axis perfectly separates the two clusters maximized when:
-the # of sampled points is small and the variances of the Normal Distribution... |
I am a student working on an original article about oral appliances that are place after the extraction of primary teeth in children. there are two variants of these appliances, fixed and removable.
I collected the data retrospectively (from 2019-2021), so I have no control of how many was placed and ended up with 345 ... |
I am using data from the National Survey on Drug Use and Health, which reports age in a combination of years and brackets of various sizes: 20, 21, 22-23, 24-25, 26-29, etc.
Rather than use these categories, I am interested in operationalizing age as a numeric predictor in a regression. Is there an established method ... |
I'm fitting a model with a 2-level categorical and a numerical predictor. As far as I'm concerned, I cannot use car::LeveneTest() to assess homoscedasticity since I have a numerical predictor, right? What should I use instead to assess homoscedasticity on both numerical and categorical predictors?
expected error:
car... |
Suppose I have a structural model parameterized by some $\theta = (\beta_i)_{i=1}^n$, but I am only interested in obtaining an unbiased/consistent/low variance estimator for $\beta_1$. For example, let's say I have the model $y = \beta_0 + \beta_1 x + \varepsilon$, where $E[\varepsilon|x] = 0$, but I am only interested... |
What are techniques or best practises to choose a forecasting model in an automatic way?
In our company, we have more than 10,000 articles with different sales characteristics. We have no chance to manually set up a model, so we need to rely on automation. Right now, we have 3-4 different models and we choose the best ... |
I am conducting a Mixed Measures Two-Way ANOVA in R to test the effect of an intervention. There are two conditions (control and intervention) with two time-points (pre-test and post-test). Each participant only went through one condition (either control or intervention) and there is only have one DV.
However, I have m... |
The last sentence of Christopher M. Bishop, Pattern Recognition and Machine Learning Section 10.1.1 Factorized distributions on p.466, states, referring to Equation $(10.9)$, that "Convergence is guaranteed because bound is convex with respect to each of the factors $q_i(Z_i)$ (Stephen Boyd and Lleven Vandenberghe (20... |
A friend from Italy pointed me to a nice Probability Theory book written in Italian by G. Dall'Aglio, a well-known Italian probabilist; Original title: Calcolo delle Probabilità, terza edizione, Zanichelli, ISBN 978-88-08-17676-9.
I discovered that the author defines the cumulative distribution function of a random var... |
When I use glm with family=binomial I get different results than if I use the direct formula, I have looked for an explanation for this and I can't find anything. I hope you can help me!
input <- mtcars[,c("am","cyl","hp","wt")]
lm_reg<-lm(formula = am ~ cyl + hp + wt, data = input)
res_lm<-predict(lm_reg, input, type ... |
Let $X_1,...,X_n\sim X$ be $n$ i.i.d. random variables. I want to to test if they follow a normal distribution, in other words, check if their distribution belongs to the Gaussian family.
These are the tests I'm considering:
Kolmogorov-Smirnov test
Kolmogorov-Lilliefors test
With these two tests I can statistically t... |
Consider two independent random variables $V$ and $Z$. Assume that $Z$ is standard normal. We only assume that $E[|V|]<\infty$ and $E[V]=0$.
Now consider the following optimization problem:
\begin{align}
\min_{a \in \mathbb{R}} E \left[ \max \left( (1-a) V, a Z \right) \right],
\end{align}
Can we show that the minimiz... |
Suppose we have two groups of students: A and B.
We want to look at the distribution of these two groups of students in each classroom in a school district by grade (e.g., 3rd) and subject (e.g., math) to determine whether or not group A students are being isolated from group B students in that subject and grade level.... |
Hy, I am replicating a study that looked into the effect that role models have on inspiration.
I am required to do a a priori power analysis to estimate what the minimum sample size would be needed. What I know from the study I am replicating is the following:
" The five adjustment items were combined into a single ind... |
I'm working through Chapter 2 of BMCP and am having trouble understanding why the plot of a Bayesian p-value looks so unexpectedly "spiky" or multimodal. Here's my code
np.random.seed(1337)
# Observations are 20 draws from a biased coin-flip
Y = stats.bernoulli(0.7).rvs(20)
# Model the observations as a vanilla Berno... |
I have been using partial least squares regression to do latent variable modeling of a few data sets. Now I am wanting to look at variable importance but am getting stumped on the reasoning behind the construction of the VIP score. I have tried to find some sources on the on this, but every source I have found simply s... |
I've been looking at the proof of Planck's Law.
This is the first law that triggered the science of quantum theory by introducing the idea of quanta (which come in the form of packets of energy of size $h\nu$ - $h$ being Planck's constant and $\nu$ being the frequency).
The simplified form of the equation, that uses P... |
In Theorem 1 in Sun et al, Functional Variational Bayesian Neural Networks, 2019, the authors state the the KL divergence between stochastic processes in the supremum over KL divergence between vectors each element of which is sampled from the respective process, meaning
\begin{equation}
KL(f \| g) = \sup_{n \in N, x_... |
I have a dataset and one of the attributes of the dataset is Race. People have multiple races on the dataset. The values for the attribute Race are following
Race
A
A,C
B
A,B,C
I cannot understand how I encode those values. If there is no multiple items for one value then I can encode it using label encoder.
I try to ... |
Question. If $Y$ is a sub-Gaussian random variable, must the regression residual $\varepsilon=Y-E(Y\mid X)$ be also sub-Gaussian? That is, whether there exists some constant $\sigma>0$ such that $E\big( e^{\lambda \varepsilon} \big) \leq e^{\lambda^2\sigma^2/2}$ for any $\lambda\in\mathbb R$.
In terms of the variance... |
I have a bunch of observations that are correlated with each other in two different ways, so I'd like to perform logistic regressions but try to account for the correlations among observations to get the best standard errors that I can. I think I can potentially do that via overlapping clusters? E.g., if observations 1... |
I want to know the differences between EGARCH, APARCH, TGARCH, QGARCH, GJRGARCH, IGARCH, AVGARCH, PGARCH, GARCH-M and the standard GARCH. I tried to find the information by myself but I cannot find the answer, so I really need your help. My work is find the different thing of GARCH and other GARCH model that why make t... |
I have two random variables: $n_1$ and $n$.
$$n_1 \sim \textrm{Bin}(m, p_1g)\\ n\sim \textrm{Bin} (m, (p_1g+p_0(1-g)))$$
What would be distribution of (or at least expectation and variance) of $n_1/n?$
$p_0,p_1,g \in (0,1).$
This is based a a small model that I am working on but this stats part is where I am stuck.
Mo... |
I am trying to work out which types of property are most affected by rolling blackouts (ie. South Africa has Load Shedding where our power utility shuts down power when demand exceeds supply). I have collated the load shedding information into MegaWatts shed per month:
Year Month
MegaWatts
201502
28400.0
2015... |
I just make sure that I understand K-Fold Cross Validation correctly. In K-Fold Cross Validation we divide the dataset into k parts, in which on observation will be in a certain part for the whole process. One fold will be a test set for that iteration, and therefore, all the folds will get only a one chance to test th... |
I have been using the hw() function from the forecast package to predict some timeseries objects. I've noticed for some of my timeseries predictions, the prediction interval sizes are almost the exact same size, no matter how far into the future I'm predicting. I would expect the size to increase as you predict further... |
Let's consider a time-series $\{X_i\}_{i\in [1, N]}$ such that $X_i, X_j$ identically distributed as priori but are not necessarily indepedent.
In fact, let's consider the two-point correlation function
$$
g_X(i-j) = E(X_i X_j) - E(X_i)E(X_j).
$$
Let's suppose that $g(x)$ has the form of $e^{-\tau x}$ where $\tau$ is ... |
What are your go to models for assessing as ACCURATELY as possible the slope and intercept of given predictor and predicted random variables? The goal is to use simulated predictors + outputted intercept and slope to get simulated predicted. I currenlty use a linear regression model but I was wondering if anybody uses ... |
I am trying to understand bayesian statistics. I am familiar with machine Learning and the way that best fit is made through loss function. I am stuck with the concept of uncertainty in coefficients.
Suppose I have a simple model, where y=trend*x, and the trend coefficient is normally distributed like,
Now suppose I h... |
I found in Wikipedia the definition of fraction of variance unexplained in the case of a regressor. Is there a meaningful definition of variance unexplained for a classifier?
|
Given the random sample $X_1,...,X_n \sim N(\mu, \sigma^2)$, I want to perform a Wald test for:
$\mathrm{H}_\mathrm{0}: \mu = \mathrm{\mu}_\mathrm{0}$
$\mathrm{H}_\mathrm{1}: \mu \neq \mathrm{\mu}_\mathrm{0}$
What would be the test statistic here?
Generally, it is $T = |W| = (\hat{\theta} - \mathrm{\theta}_\mathrm{0})/... |
Let $\mathbf{p} \in R^D$ be the first eigenvector obtained by PCA on a dataset $\mathbf{X} \in R^{N \times D}$.
$$
\mathbf{X}\mathbf{p}
$$
is the first principal component of my dataset. The relative importance of each feature in $\mathbf{X}$ can be interpreted in light of the values in $\mathbf{p}$.
With sparse PCA, I... |
I am using a DCC (and CCC) GARCH model to model volatility of electricity price returns (using spot and futures) i.e. I have more variables in my model. I need to calculate VaR using these models but I do not know how to calculate it in R. Does anyone know how to do this procedure?
Code used:
SMF.frame <- data.frame(df... |
I have two separated corpus of text, and i would like to understand wheter these are similiar or not using cosine similarity.
I'm not sure on how to approach this problem, but i was thinking as a solution to compute the Document-Term-Matrix for each corpus and calculate the cosine similiarity for these DTM.
Is this app... |
Let $X_1, ..., X_n$ be i.i.d. random variables with the same distribution as the random variable $X$. Let $F$ be the distribution function of $X$. We assume that $F$ and its quantile function $F^{-1}$ are $C^1$. Let $\alpha \in [0 ,1]$ be a probability and let $x_\alpha = F^{-1}(\alpha)$ be the corresponding quantile. ... |
I'm implementing Stochastic Search Variable Selection(SSVS) for logistic regression using R. I'm using Spike and Slab prior with indicators $\lambda_{j}$. Here's my model structure:
$Y ∼ Bernoulli(\mu(X))$
$log {μ(X)\over1−μ(X)} = X\beta$
$\beta_{j} \overset{ind}{∼}\lambda_{j}N(0,\sigma_1^2)+(1−λj)N(0,\sigma_2^2) \ for... |
Let $X_n$, $Y_n$ and $Y$ be random vectors. If $X_n \xrightarrow[]{d} X$ and $X_n - Y_n \xrightarrow[]{a.s.} 0$. Can we prove that $Y_n \xrightarrow[]{d} X$ ?
|
I was asked to compare three groups for their percentage structure. Let me explain - there is a categorical variable X with 3 levels: <100, 100-200, > 200 units. That's all I have and I have no access to the full numerical outcome.
The three levels are summarized with N and %. I was asked to compare the % across 3 grou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.