instruction
stringlengths
9
38.7k
I try to run a difference-in-difference model based on single observations which I have to aggregate in order to generate an outcome variable "w.mortf" = mortality. My original data set provides a total average value that is completely different after aggregation i.e. in the different groups. Thus running a regression ...
I have read several publications attempting to justify the use of a fixed effects model with statements along the lines of "the fixed-effects model was chosen because the heterogeneity was low". However, I am concerned it may still be an inappropriate approach to data analysis. Are there reasons or publications that di...
I want to analyze the unemployment rate in Austria from 1999 to 2017, quaterly data. Here's the code for the time series: data<-ts(c(4.7,3.5,3.2,3.5,4.7,3.1,3.1,3.2,4.0,3.4,3.3,3.7,4.9, 3.6,3.6,3.8,4.8,4.2,3.9,4.3,5.8,5.4,5.3,5.4,5.7,5.7,5.6,5.6,6.0, 5.2,4.9,4.9,5.2,5.0,4.9,4.4,4.5,3.7,4.0,4.3,5.0,5.3...
I used the function l1ce from the lasso2 package in R, since I need to solve a minimization problem with a lasso constraint. min f(x) s.t. ||beta|| where beta are the parameters. The reason it cannot be done by glmnet/LARS is that I need to be able to supply the method with weights (not possible with LARS) & moreover...
Consider a binary classification task in 2D. Assume that the likelihood of both classes is Gaussian with uniform class prior, how should be the means $(\mu_1,\mu_2)$ and covariances $(\Sigma_1, \Sigma_2)$ of the discriminants $g_{y_1}(x)$ and $g_{y_1}(x)$ such that the decision surface is a spherical? For example, wit...
I am currently attempting to code out a simple example of logistic regression to better understand the concept behind it. I generated the following classification example: The code I use to optimise my decision boundary is the gradient descent algorithm which I implemented like this: def gradient_descent_iterate(alpha...
I'm trying to expand my understanding of Linear regression and to that end I'm looking at calculating a Linear regression exercise by hand. Using some dummy data x <- c(17,13,12,15,16,14,16,16,18,19) y <- c(94,73,59,80,93,85,66,79,77,91) model.test <- lm(y ~ x) summary(model.test) The output gives me: Coefficients: ...
i have two set of images. One of size 120*60 and other of size 1022*81. Most of the deep learning models require size 224*224 or some other standard dimension as an input. Can i put these images directly as an input to my model and expect the accuracy close to whatever they have been trained on initially or should i tr...
Can someone explain the meaning of generative and discriminative and the difference between them in simple language? I have watched few videos on this subject on YouTube but could not able to understand the meaning. If you can explain them in simple language, that would be very helpful.
in deep learning and machine learning, when we increse the number of batch size then we should increse the learning rate and decrese the max-steps(iterations). Also, I know that the number of epochs based on the dataset (eg. contains one objects or various of objects). If we suppose that the number of dataset equal to...
Suppose $x_1, x_2, ......, x_n$ are i.i.d. random variable of exponential distribution $Exp(1)$, i.e., $f(x)=e^{-x}, x\gt0$. Given the order statistics $x_{(1)} \le x_{(2)} \le......\le x_{(n)}$, it is easy to find out that $$F_{x(1)}(x)= 1 - \Big[1-F_{x}(x)\Big]^n = 1- \Big[1-(1-e^{-x})\Big]^n=1-e^{-nx}$$ $$F_{x(n)}(x...
I hope this question is not too vague. I have been using Matlab for a long time, but my company now wants to migrate all codes in R and I am the guy who has to do the job. Whenever I had to use new functions or toolbox in Matlab I was aware that the help is "ignorant-proof" and actually anyone who could read was able t...
Xia et al. (2017) state that the power-transformed and threshold GARCH(1,1,1) model is equivalent to the GJR-GARCH(1,1) model (see page 355 of Xia et al. (2017)). It is not clear why the first model can be rewritten as the latter model. MODEL 1: PTTGARCH(1,1,1) The power-transformed and threshold GARCH(1,1,1) model t...
Im currently trying to proove that: Let $ f:[0,1]^r\to [0,1]$ a contiunous function and $(X_{n,k})$ for $ n \in N, 0<=k<=r $. be independently and identically distributed random variables with a Uniform(0,1) distribution. Show that for $Z_n: Z_n= 1,$ if $X_{n,0}<= f(X_{n,1}, ... ,X_{n,r})$ and 0 elsewhere, that $...
From the literature I gather that exponential smoothing models can be recast as special cases of state space models. I haven't seen similar references w/r to ARIMA being considered state space models, yet the Statsmodels Python library includes SARIMAX in it's state space methods. So are both ARIMA and Exponential Sm...
I'm training my model with 20 features and getting an accuracy of 0.95, however, If I check p-values with a significance level=0.05, I'm left with only 7 features which has brought down my accuracy to 0.90. Why is accuracy going down, isn't high p-value suppose to mean not so important feature? Also, I'm confused If I ...
I am trying to penalize a likelihood function, $-\log f(Y|\theta)$, to maintain stationarity of the autoregressive process. An vector autoregressive process is said to be stationary if the spectral radius (maximum absolute value of eigenvalues) is less than unity, $\varphi(\Phi)<1$ for the process: $x_t = \mu + \Phi x...
I am studying the correlation between principal efficacy, leadership and collective teacher efficacy. How do I analyze the data from the three surveys will administer?
I am running VAR model with non-stationary time series. I am going to have a look only at impulse response functions, so I've read that I can use VAR for non-stationary time series. My model includes 4 variables. According to all ICs (AIC, HQ, SC), the lag order must be 2. But in VAR(2) model there is an autocorrelatio...
I have converted all of my features to binary variables. now I have 21 features in my data set. I am trying to cluster them with k-means. I used Hamming distance in order to measure the distance between every instance and centroids at each steps. But when I was trying to calculate the mean (in order to have a new cent...
I am currently studying mathematics at the university and I feel like there is certainly a lot of room for improvement. I am interested how you guys think the mathematical education at the university might be improved? I sometimes think that maybe the Professors should focus more on explaining the underlying ideas in ...
I have a signal (Y) with 200000 samples. I plotted probability density function (PDF) of the signal and the Gaussian distribution that has the same values of Mean and Standard deviation of original signal. The kurtosis of signal (Y) is 3.12. Looking to the signal shows that Normal distribution using same values of Mean...
I'm working through van der Vaart to improve my knowledge on asymptotic statistics, and I'm attempting the following problem. Let $F_n^{-1}(p)$ be the p-th sample quantile of a sample from a cumulative distribution $F$ on $\mathbb{R}$ that is differentiable with positive derivative at the population p-th-quantile. Defi...
I have two sets of data, in which the first dataset contains 3346 values and the second dataset contains 1168 values. The variance of the first one is 13.88% and variance of the second one 13.96% The data in both sets is not normally distributed, hence using the $F$-test here is not recommended according the literature...
What is the statistical meaning of type 2 error in graphical terms. Why it is represented under alternative hypothesis curve not under null hypothesis curve.
One of the exercises from my lecture gives us the number of the population (which are annual savings) and the population mean and standard deviation at time T. Then at time T + 1, a random sample is chosen from the population and the sample mean and sample standard deviation (which is the same as the population standar...
For a project, I am looking for idea to model for the distribution of corners in football matches. I know that the number of goals can be model by a Poisson distribution, but for the number of corners, the distribution has larger tails. I think it is partly due to the fact that after a corner, the ball is put back in ...
I've seen at least two versions from the CS229, wondering if there is a comprehensive resource around this topic The first version: $$ B(V)(s) = V'(s) = R(s) + \gamma \max_{a \in A} \sum_{s' \in S} P_{sa}(s') V(s') $$ from problem 5 in http://cs229.stanford.edu/ps/ps4/ps4.pdf. It's called Bellman update operator in the...
I understand the basic structure of variational autoencoder and normal (deterministic) autoencoder and the math behind them, but when and why would I prefer one type of autoencoder to the other? All I can think about is the prior distribution of latent variables of variational autoencoder allows us to sample the latent...
I am trying to understand the inner working of Hamiltonian Monte Carlo (HMC), but can't fully understand the part when we replace the deterministic time-integration with a Metropolis-Hasting proposal. I am reading the awesome introductory paper A Conceptual Introduction to Hamiltonian Monte Carlo by Michael Betancourt,...
I know it can happen for it to decrease dramatically as it overfits on a single datapoint. But I've never read about a component "taking everything over". See the following images (circles are stddevs). Could this be (relatively) normal behaviour? edit: For some reason changing my gaussian function made the behaviour s...
I have multiple variables (x) that I want to use to be able to forecast multiple (y) that occur at the same time (t). I've provided a very basic outline below. In doing so, my requirement is to determine an overall relationship (if any) of how (x's) influence (y). x1 x2 x3 x4 t0 y1 t0 y2 t0 y3 t0 y4 t1 y1...
Say we have data for N classes and train a classifier. Then we have a new set of data for a N+1th class. How do I train a classifier that now predicts all N+1 classes? Setting is in object detection, though I don't think it should be different between image classification and object detection. Also, I am finetuning fro...
I am a beginner in machine learning and I was reading a paper and trying to implement a model to compare my results . The paper is related to stance detection task from the Semantic Evaluation (SemEval) Workshop in 2016. I am using five datasets of tweets. Each dataset has its training and test sets .Each tweet in each...
I am fitting a set of N points $(x_i,y_i)$ with a model $y = f(x,p)$ where p is a vector of M parameters. To do so, I minimize the objective function $SS(p) = \sum_i {( f(x_i,p) - y_i)^2}$ The optimization algorithm may vary, depending on the model. After fitting and obtaining $p_{min}$ I would like to estimate the sta...
I am trying to classify different categories of plant using convolutional neural network (CNN). Each category of plant has small set of images. Size of each image is 1000 x 1000. To increase the number of images we divide each into patches of different size (i.e. 500x500, 250x250, and 125x125) and then applied data aug...
I'm a little confused about the usage of LSTM network in the Asynchronous Advantage Actor-Critic (A3C) algorithm. The input for LSTM network is a sequence and network state, so my question is that when we start learning while the game hasn't been completed, whether I should use the zero state of the network again, or ...
How do one compute the following integral: $$\int_{a}^{b}dw_u$$when $W_t$ is a wiener process. My initially guess will be $W_b-W_a$, but I cannot argue for that because I am not sure wether I can use "normal" calculus properties for Stoch calculus? Maybe a good idea will be to look at at the general case:$$\int_{a}^{b}...
I am trying to get a better understanding of the math behind logistic regression. Logistic regression is looking to give a prediction based on data likelihood. From my understanding it is making a posterior prediction. Suppose we have a two-class model. So this becomes the equation \begin{align} p(C_1|x) &= \frac{p(x|...
I am implementing linear regression using gradient descent algorithm in python. The closed form solution as well as gradient descent (without feature scaling) was giving satisfactory results. However, the moment i started using feature scaling (StandardScaler class in sklearn's preprocessing module), things have starte...
The default number of features $m$ used when making splits in a random forest regression is $m=p$ in Python's sklearn, where $p$ is the number of predictors in the regression problem (see the sklearn docs: If auto, then max_features=n_features). In R's randomForest package, the default number of features used when mak...
Let's say I have some data, and a model X that models the data. Let's say that model X has a RMSE value of 1500 and a MAE value of 200. I build a new model Y, which is better than model X. Model Y has better error metrics: it has a RMSE of 1000, and a MAE of 150. It is clear to me that model Y is a better fit than mo...
I created a model for predicting a scalar variable from a set of features. I trained a linear regression on a training set, and used the resulting coefficients to produce predictions for a test set. Then, I did simple linear regression to the predictions as a function of the ground truth values of the test set, expecti...
I'm trying to understand the impact strength of the features value's in my model. I can understand the overall feature importance based on AdaBoost's _feature_importances_ attribute. However is there a method for diving deeper into a records so to speak 'strength' for the specific feature values?
What is this type of error called? Example - Gene A is prevalent in 45% of the population. Gene B is prevalent in 60% of the population. They would be predicted to be found together in (0.45 x 0.60) 27% of the population. However, they are actually found together in the population 50% of the time because they are st...
I am new to statistics, And I am trying to work on this dataset , The format , Attribute information is given thereon dataset page. Suppose I am trying to predict highway-mpg or peak-rpm, Then if my dependent variable is highway-mpg now how to choose other independent variables, because currently there are 17 independe...
Are there any examples of distributions which behave like Exponential for small values and like Pareto for large values. $$\ln \mathbb{P}[X>x] \sim -\lambda x, \qquad \text{ for } x \text{ small}, $$ $$\ln \mathbb{P}[X>x] \sim -\alpha \ln x, \qquad \text{ for } x \text{ large}.$$ I can form a weighted sum of Exp and ...
I have created a zero-altered negative binomial model (ZNAB, using the hurdle function in R). This model consists of two parts, one which analysis zero values, and the other analysing positive values between variables. Now, I assume I would have to continue with two posthoc tests to find differences between categories ...
Is there a way to determine if all the observations made over a population are similar? The data consists of 14 variables and 10-15 observation points over a mineral grain. Some cells have null value. I have to check if that mineral grain is homogeneous and if not to what degree.
The likelihood function for the Poisson Distribution $P(X=k| \lambda)$, where $\lambda$ is the mean, has the property that the integral with respect to the mean integrates to unity (from $0$ to $\infty$): $$\int_0^\infty P(X=k|\lambda)\,d\lambda = \int_0^\infty \frac{\lambda^kexp(-\lambda)}{k!}\,d\lambda = \frac{\Gamm...
I am having trouble understanding the statistical significance of Cohen's d. My reasoning goes like this: To conclude that experimental group differs from control group significantly (p < 0.05), the experimental group's mean must be 1.96z below or above the control group's mean. In this case the Cohen's d will also b...
There is an observation of a process, that I suppose to be a Poisson process. And I'm trying to make a test, to check goodness of fit of my data with Poisson distribution. import numpy as np from scipy import stats # ... retreiving data and normalizing x_by_one = np.linspace(0,50,51) cnt = len(data) ch2, pval = stat...
To draw the lines below, generalized linear mixed model regression is used in order to model the effect of time (represented on the x-axis) on percentage of TDR (represented on the y-axis). I would expect to see a linear increase over time, as it is linear regression. Why is it not the case?
I have a dataset (see example below) with 1200 rows and 3 columns: dependent_var (yes and no), group_var (1 and 2) and var1 (1, 2, 3 and 4), where var1 belongs to either group 1 or 2. The two groups are independent. dependent_var Yes Yes Yes No No No No Yes No group_var 1 1 2 2 2 1 1 1 2 var1 1 2 3 3 4 4 4 1 2 I want t...
Suppose I have a scenario like this : For every 1-point increase in X, odds ratio of event Y happening is 0.80 Does that mean the same as 'For every 1-point increase in X, odds of event Y happening is reduced by 20%'? Whereas 'For every 1-point increase in X, event Y is 20% less likely to happen' is an incorrect interp...
Imagine we're looking to buy some commodity, say a table, and we want to make a good deal. We know the "true" price of the tables at offer and we're interested in both the absolute price difference and the relative price difference. Table 1 costs €200 but is worth €400 = €200 difference = 50%. Table 2 costs €300 but i...
Let $X_1,X_2,...,X_n$ be a random sample from a population with probability density function $$f(x\mid\theta)=\frac{\theta}{2}e^{-\theta|x|} \,,\,-\infty < x < \infty\,,\,\theta>0$$ Then a UMVUE of $\theta$ is ? Can someone tell me if i did everything right or not in the following steps. I dont have answer written fo...
I would need to estimate a time varying autocorrelation of a variable. Do you have any references or examples? I've tried to search for a package in R but I wasn't able to find it. Do you have any suggestion? (it would be fine also in Matlab or Stata).
Chhikara and Folks (1988) show that the inverse gaussian distribution arises as the first passage time for a wiener process. However, there are several steps I don't quite understand. In particular, some of the steps, e.g. the last one on p. 26, in finding the Laplace transform $f^*$, are rather opaque. Are there other...
Why does logistic regression not require residuals to be normally distributed and homoscedastic the way linear regression does? Why does this not cause problems for estimating logistic regression models?
I would like to fit a generalized linear mixed model with binary outcome using the glmer function. Currently I am using the data provided by the book from Heck, Thomas and Tabata (2012) - https://www.routledge.com/Multilevel-Modeling-of-Categorical-Outcomes-Using-IBM-SPSS/Heck-Thomas-Tabata/p/book/9781848729568. In thi...
It is evident that if two random variables $X$ and $Y$ are correlated, their changes are also correlated. This is for instance a foundation in cointegration studies, and the Engel-Granger approach, where if a long-run relationship between $X$ and $Y$ exists, there is also a short term relationship. Namely, if $y_t = ax...
I have a model following the PDF $$f_\theta(x) = \theta^2 x \exp(-\theta x)\delta_{[0, +\infty)}(x)$$ where $\theta > 0$ is the parameter and $\delta_\mathcal{S}$ denotes the indicator function of the set $\mathcal{S}$. I am ask to prove that this model is regular, for which I have to prove that it is dominated. How sh...
How does the assumption of normality of errors in the analysis of variance help in interval estimation of parameters?
In the scenario where we recommend movies that a user has not yet watched based on how he/she rated previously watched movies, it seems that: A movie released 5 years ago is [possibly] as good a candidate for recommendation as a movie released 5 hours ago. The amount of movies released over the course of a week is typ...
Say One has a certain number of observations from a population density $p(x)$ and based on the observations decides to utilize a density $q(x)$ to approximate the unknown population density $p(x)$. Can one choose $q(x)$ in such a way to get some upper bound for the $L^2$ distance or $L^1$ distance between the two densi...
When teaching GLMs, it's commonly taught that the linear and log link are collapsible but that the logit is not. The log link is collapsible because the curves are proportional and the means are modeled with ratios. The linear link is collapsible because the trend-lines are parallel and the means are modeled with diffe...
Q1 I have a multiple regression model with two continuous variables (Cont1 and Cont2) and one categorical variable (Cat1) with three levels. If I run a model containing all possible interactions (so two and three way), how many parameters would that be in my maximal model? e.g. Dependent~Cont1*Cont2*Cat1 I suppose my c...
I am fitting a linear regression model. I want to apply different importance/priority to different predictive features in the data. Like some of the features are more important than others. How do we incorporate this different importance of features ??
For a small world property, the ratio of the average path length and the mean path length of random networks has to be close to one. My question is: When generating a random graph using the Erdős-Rényi algorithm, there is a chance that some nodes are not connected. Should I consider such graphs when calculating the mea...
There is a series of complete undirected graphs $\Gamma$ with fixed starting points. Hamiltonian paths $c_\Gamma$ were obtained by a traveler who walked on $\Gamma$ and visited every vertex once. One needs to decide if the traveler's intention was more likely to minimize the total path length (TSP path) or visit the ne...
I just ran a hierarchical multiple regression with 6 control variables, 3 main effects and 2 interaction effects. To determine the critical value for the Mahalanobis distance (for identifying outliers) I need the to know the number of predictor variables to determine the critical value. This is probably a pretty straig...
I have a rather complex network (air travel in the US) with more than 500 nodes, and small-world, scale-free proprieties, spanning over 10 years, and with quarterly information. As I'm trying to characterise the network, I've pulled a couple of statistics, such as degree centrality, density, average path length, closen...
I have trained a translation seq2seq model. In my model, I have kept vocabulary size to 100,000. This constraint limits my model from generating any words which are not in this 100,000. So how does Google Translate or Bing Translate works for any word in their input? Basically, my question is how to make my model work...
I have calculated an effect size along a dataset of experiments distributed worldwide through a mixed-effects meta-regression. The effect size in the dataset depends on climate (y ~ temperature + precipitation): meta <- metafor::rma(es, var, data=df, mods= ~ 1 + precip + temp)) As I have data for temperature and precip...
I'm new in machine learning and have a question regarding a continuous variable which I want to use in my logistic regression. On the first view the variable seems to increase the probability of the event (to be true) when it recedes from 0 in both direction. In other words: when the variable approximates 0, the proba...
Say I have three (financial) variables: $X_1, X_2$ (predictors) and $Y$ (dependent variable). I suspect that both have an effect on $Y$, but I also suspect that $X_1$ has an effect on $X_2$ and that they are therefore correlated. With that in mind, it is probably inadvisable to put both predictors into a regression as ...
I'm having trouble factoring the exponent of the likelihood function to include $\bar{x} $ so that I may calculate the likelihood ratio statistic. In short, I need to show that $$\sum_{i=1}^n (x_i-\mu)^2=\sum_{i=1}^n(x_i-\bar{x})^2+\sum_{i=1}^n(\bar{x}-\mu)^2$$ For some reason (maybe lack of sleep), I can't see it.
My problem concerns an aptitude test containing a set of single choice items ($x_1 x_2 .. x_n$). For each item, the participant may have selected option 1 to 5. These choices are scored dichotomously (1 = correct, 0 = incorrect) according to a predefined scorebook and the sum score for each participant is calculated. ...
I am working on the Question 1(c) of problem set 3 from cs229. A screenshot of the question is I am not sure how this formula came to be \begin{align*} \left|\epsilon(\hat h_j) - \hat \epsilon_{S_{train}}(h_j^*) \right| \le \sqrt{\frac{2}{(1 - \beta) m} \log {\frac{4 \left|\mathcal{H}_j \right|}{\delta}}} \end{alig...
I have gathered RNAseq data from two different papers. They are measuring the same genes in supposedly the same population of cells and I would like a way to quantify how well they agree. No need to know anything about the field. The data are simply counts for ~ 20,000 genes. Each paper did triplicates. So for gene n,...
Is there a rule of thumb for excessive concurvity? For example, I've heard that a VIF of $>10$ suggests that multicollinearity may be a problem (e.g., in this CV answer), but I cannot find a similar rough guide for concurvity. I realise that such rules are very woolly and must be taken with a grain of salt, but a ballp...
Question practically rewritten as from some answers&comments became clear that I am not understanding the semantics and context. The "procedure" for Bonferroni is clear to me, my problem is a wrong and/or partial understanding of its semantics and how to use its outputs, so would need help with that. To make easier to...
I'm trying to do predictive analytics on recruitment data for a non-profit organisation. The organisation has a (small) army of recruiters which phone members and try to get them to volunteer at this yearly event. The list of members is completely new each year. My goal is to build a model which indicates whether a mem...
I am trying to locate a source/sources for this claim (from a reviewer): I (and other measurement experts) believe that a correlation of .70 or higher indicates that two constructs are very much alike because at that point, two constructs share at least half of their variance. By definition, constructs that shar...
When constructing a histogram with equal class widths, we mark the class boundaries on the horizontal axis and draw above each interval a rectangle whose height corresponds to the relative frequency of that class. However, when dealing with classes of unequal width, my book says we should calculate the height of each r...
I'm trying to go through the proof of rejection sampling and I found a paper ACCEPTANCE-REJECTION SAMPLING MADE EASY which provides several helpful explanations. For Lemma 2, the paper claims that if $Z$ has a uniform distribution $A$, and let $B \subset A$ and then the conditional distribution of $Z$ given $Z \in B$ i...
Currently I’m attending the great "How to Win a Data Science Competition" course on Coursera. At one point it’s authors claim that given their experience, the actual choice of machine learning algorithm† and parameter tuning is far less important then feature engineering. On one hand this seems to intuitively have much...
I'm working with a time series of macroeconomic data (independent variables) and bank loss rates (dependent variable) to show how bank losses vary based on the state of the economy. To estimate the relationship between the dependent and independent varaibles, I am considering two regression techniques: standard OLS and...
I would like to generate random numbers $X$'s from a desired distribution whose properties should meet the following requirements: $X \in [0, \infty) $ The mean of the r.v. is around 1, i.e., $\mathbb{E}[X] \approx 1$ The distribution shows "long tail". "Long tail" in the sense that satisfies the typical description:...
In regression, the asymptotic normality requires, other than the central limit theorem, observations are independent, and panel data clearly violates this assumption as observations are at least correlated within an observation unit (e.g., family, firm, etc.). Does it means we can't use the asymptotic normality for pan...
I'm learning for my exam which is tomorrow and in the practice exam there are a lot of questions where you can choose between those p-values, but what do they mean? an example question A test is standardized in a way that μ = 100. The population variance is unknown. In a sample of 31 persons we find x = 103 and s = 6....
i have a question where I don't get the solution. Maybee it is not asked ans answered in internet as this is a common question to drop out students: I have a model (linear regression) with a dummy variable that represents 6 categories. I know due to dummy variable trap I can use only 5 of them, the 6th (D_6) is in the ...
I was wondering what is the conjugate prior for Matrix Variate Distributions (e.g., unknown mean, known variance matrices), and what's the corresponding posterior? Is there analytical solution?
In this post - Rob Hyndman explains that: Even with that correction, the two models are not quite equivalent. In the Eviews code, the differencing is done before estimation, whereas in the R code the differencing is implicit in the model. In estimating the model in R, a state space representation is used and the non-s...
Given a random variable $X$ with CDF $F(X)$, mean $E(X)=0$, and variance $Var(X) =\sigma^2$, I would like to bound the tail conditional expectation where $X$ is in the tail with probability $1-p$: $E(X|X\geq F^{-1}(p)) = \frac{1}{1-p}\int_{F^{-1}(p)}^\infty X dF(X)$ A nice way to get an upper bound is via a Chebyshev-t...
Is the only reason why fitted probabilities of 0 or 1 occur is that some of your predicting variables(x) are perfect linear combinations of the target(y) variable? Is there any other reason?
It seems to me that it is possible that a forecasting model does very well on one step ahead forecasts (or on any other point forecast) but performs poorly on multistep forecasts (if you average the error for all forecasts on the horizon). For example, a simple exponential smoothing model might do well on the next step...
In this talk at 19:32, the following method of reducing a multivariate integral is discussed: Let $\theta \in \mathbb{R}^p$ be the parameter vector, $\mathbf{x}_i \in \mathbb{R}^p$ be the $i$-th data vector, $y_i \in \{-1,1\}$, be the corresponding binary observation. Also let $\phi(\cdot)$ denote the logistic sigmoid ...
Let $X=\max\{X_1, X_2, \cdots, X_N\}$, where each $X_i \sim N(0,1)$ and are independent. What is the approximate value of $X$ for large $N$. The term "approximate" isn't defined very clearly. I'm assuming it means the mean, but I can't really figure out a nice way to calculate that, since the PDF of the $N$th order sta...