instruction
stringlengths
9
38.7k
I am working on various risk score estimation problems. I assume individual subjects are associated with a true risk $$r_i = f(x_i; \epsilon_i), \quad 0 \leq r_i \leq 1,$$ where $x_i$ is some available information about the subject and $\epsilon_i$ describes aleatoric uncertainty about the risk, which I assume to be he...
I'm trying to do an exercise but I can't figure out how to proceed. OLS is run for this model, with 100 observations. $$ y_i=b_0+b_1x_i+\epsilon_i $$ The results are $$ \hat\beta =\begin{pmatrix} 9 \\1 \end{pmatrix} $$ $$ V(\hat\beta)=\hat\sigma^2 (X'X)^{-1}=\begin{pmatrix} 3 &0.12 \\ 0.12 &0.064 \end{pmatrix} $$ It a...
I recently submitted a paper where I performed a cox proportional hazards regression model modelling the effect of group allocation in a randomised controlled trial on treatment retention. The event was dropping out of the study (non-reversible binary event) and the time to event variable was the week that the particip...
Let the response be $Y_i \in \mathbb{Z}$ and the covariate $X_i \in \mathbb{R}^p$. For counting data where $Y_i$ are restricted to be nonnegative, we have Poisson regression or negative binomial regression. Now, I consider the situation where the response is a kind of integral score which can range from negative to pos...
I've noticed in several resources on variational autoencoders (for example the Wikipedia article), we use the same parameters theta ($\theta$) for the prior, likelihood, posterior, etc distributions. For example the equation $p_\theta(x) = \int_z p_\theta(x|z)p_\theta(z)dz$. Aren't $p_\theta(x)$ and $p_\theta(z)$ two d...
I need to do the 'cleaning' of the dataset, ie preprocessing. I noticed that I have two columns in the dataset that are totally linearly dependent. Is it okay to delete one, both or am I not allowed to do any one that? This is a school project and a ‘wild dataset’ where the emphasis is on a data processing. It's necess...
I am studying statistics. I know that to calculate the p-value, we usually take the area under the curve for the left/right/two tail based on the observation and null hypothesis, but this is for a known distribution. My question is, what if we only have the samples and do not know the distribution? Do we just calculate...
Statistics background I'm relatively new to experimentation and causal inference. I took up to graduate level stats in school but forget a ton after entering industry. Situation I am running an experiment to see if deploying a different machine learning algorithm is lower variance than the current one in production. Bo...
I have to program this in some environment so I won't be able to access other softwares. Let's say I've got some 50 numbers that is more or less skewed to one side. If we are to assume that it is like a normal distribution, there's a handy equation that simply calculates the standard deviation, and that would already b...
I have two input variables revenue and age. Am trying to find different bins within that variables. For ex: I have revenue and age. I see that my revenue data is skewly distributed and regular methods like quantiles, binning etc cannot be applied due to skewness (and gives misleading results). Is it a good practice to ...
I am doing STL decomposition on Kaggle dataset. Below is just example for one region. I have summed up the values for type (conventional, organic). So data is grouped on date and region. My question is the seasonality component doesn't seem like seasonality. It seems like entire series. This is not specific to this reg...
I am trying to use LSTM model to do prediction on index, but I find that it has quite obvious time lag on prediction. I tried different timestep and seems no significant improvement. Actually what, in LSTM model, is affecting the lagging issue? Below is part of my code. Dataset (moving average, Stop&Reverse, Exponentia...
Is it possible to get the probe2WayMC() function from SEMtools package for Lavaan in R to give estimates based upon the fully standardized solution of a SEM model? (i.e., using the estimates from the "Std.all" output column rather than the "Estimate" column). I tried setting std.lv=TRUE, std.ov=TRUE to make the Estimat...
Suppose I perform a truncated SVD on a symmetric, PSD matrix $A \in R^{N \times d}$ (lowering the dimensionality from $d$ to $k$). Further suppose that there is a rotation matrix $Q$ such that some of the rows in $A$ are given by applying $Q$ on another subset of the rows (I.e some rows are rotation of the others). Int...
I have two sets of data (courtesy of Statsbomb), where each contains the x,y location of where passes occured during a football game as well as the minute of the event for the two different teams. My idea was to visualize this data using heatmaps, in order to get an overview of how each respective team passed the ball ...
Suppose I fit a probit model (with two regressors) to data and obtain predicted probabilities: $\widehat{Pr}(Y=1|x_1,x_2)=\Phi(\beta_0+\widehat{\beta}_1x_1+\widehat{\beta}_2x_2)$. For simplicity, suppose $x_2\in\{0,1\}$, and suppose that $\widehat{\beta}_2$ is insignificant at 5% significance level. Does this imply tha...
Can I get some help in answering the following task? I figured it is generalized difference-in-differences (DiD) (the task is called "RCT and DiD"), but I don't know how to circumvent the fact that I don't have farm specific data. Task: You are interested in the impact of a new fertilizer on the yield of wheat. You hav...
(Please read until the end) Consider two ways of writing the exponential distribution: (A) $\frac{1}{\beta} e^{-\frac{x}{\beta}}$ and (B) $\theta e^{-x\theta}$ If I estimate $\beta$ or $\theta$ from a random sample $\{x_1,x_2,...,x_n\}$ via the Maximum Likelihood estimation, I get similar expressions: (A) $\hat{\b...
I have the following problem. I've been given a dataset where the features are binary which can be interpret as seen or not seen. The target value is categorical. My goal is to generate a list of rules. For example: $${v_1, v_3, v_4} \mapsto y_1 $$ One idea I had in mind is to train a logistic regression model (One ver...
I'm rather new to statistics. I'm learning on my own and I'm trying to understand confidence levels. I read, "How Confident Do You Need to be in Your Research?" by Jeff Sauro, Ph.D., 5 Jan 2015, and in it he states: if you find that there’s little or no downside to being wrong, and if you have to pick among poor alter...
I'm comparing the AIC of these two models. Tensor Product Smooth vs. Thin Plate Spline both fit using REML library(mgcv) ThinPlateSpline <- gam(Z ~ s(X1, X2, bs="tp", k = 17), data = DF, method="REML") TensorProductSmooth <- gam(Z ~ te(X1, X2, k = 6), data = DF, method="REML") AIC(ThinPlateSpline, TensorProductSmoo...
The Kalman filter makes sense to me as the repeated application of Bayes' theorem - if you correctly propagate the gaussian prior at each step and then update on new observation, you get a gaussian posterior, and now you can repeat the whole process. When I derive the mean and covariance of the posterior, I arrive at t...
Would really appreciate some help as I don't know how to proceed given my GAM results. I haven't had much luck getting answers to my GAM questions (not sure if there is something wrong with the way I am asking questions), and don't know anyone working with GAMs. I have run two GAMs (in R/ mgcv) which I would like to co...
I am currently trying to create a regression model in R. I have a time series (ts_1). I converted this TS to a df and set the name of the column to 'Sales': ts_1_reg <- as.data.frame(ts_1) colnames(ts_1_reg) <- c("Sales") For a task I have to create seasonal dummies to build a model with. The data is monthly, and henc...
Say one has two variables that change with time in a cyclical manner but instead of plotting time on the x-axis, one plots them directly —without applying a transform or any kind of manipulation. I know it is absolutely not brain surgery, but I once encountered a name for this and I cannot recall what it is. What is it...
I have this deep neural network model with an integer label to predict. The label is heavily skewed so we cap the labels at some value (let's say 90 %ile). Now when we build and run the model, it performs well in general. But in online experiment shows degradation in business metrics for a fraction of users that have h...
I am confused by this part when trying to revise the parts on survival analysis. As I understand if I want to estimate the MLE I can, in most cases, take the first derivative on that parameter and set the value to zero to find the maximum. Even if I am interested in the fisher information, the survival function at d di...
This is the description of logistic regression and probit regression as generalized linear model from wiki: Both the logistic and normal distributions are symmetric with a basic unimodal, "bell curve" shape. The only difference is that the logistic distribution has somewhat heavier tails, which means that it is less s...
Say I fit a $DCC$-$GARCH(1,1)$ model to a dataset of weekly returns for four assets. I forecast the covariance matrix for the next month (so four weekly steps ahead). This gives me four $4 \times 4$ covariance matrices, one for each of $t+1$, $t+2$, $t+3$ and $t+4$, where each covariance matrix is of 'weekly' data. How...
The data are observations of, $x$, the length of time in excess of $14$ days that it took for a random sample of $10$ grasshoppers infected with a fungal disease to die, where the times are measured from infection. It is believed that a gamma distribution may be a good model here, so that the p.d.f. of $x$ is $$ f(x) =...
Say I pull $n$ balls from a box while blinfolded. The balls can be either red or blue. I do not know the distribution of the balls. After that I receive a list predicting the color of every ball I pulled out. I am also told that every prediction has a $70\%$ chance of being right and $30\%$ chance of claiming the wrong...
I'm following the proof in Cramer's book Mathematical Methods of Statistics, $\S 29.4$. There it is assumed that we have two independent samples $x_1,\ldots, x_{n_1}$ and $y_1,\ldots,y_{n_2}$ drawn from the same normal population $N(\mu,\sigma^2)$. The author claims that we may assume without loss of generality that $\...
I'm having an issue with binary logistic regression for a project I'm working on. For some of the variables, I'm receiving a significance value of 0.999 and exp(B) of 0. Is this normal?
I'm looking for a bit more clarification on the selection of the $\lambda$ value for the Hodrick-Prescott Filter, aka HP filter. Which stems from a time-series in the form of $$y_t=g_t+\epsilon_t$$ with $\epsilon_t$ as the residuals, $g_t$ as the trend of the time series. Kauermann and Krivobokova (2011) show that this...
I have a dataset like this: Fileds Profit x Product: It is the variable that I can change, and is the independent variable. %Sales: Number of sales/Customer %Sales With subscription: Number of Sales with subscription/ Sales Question: I would like to make a model that captures the relation between %Sales and %Sales ...
I am conducting a study and wanted to fully understand what my results are indicating. To me, they are reading that when factoring Z, there is a statistically significant relationship between X and Y, Is this the case or am I misinterpreting?
What is the best format to feed the input data, which are time series with fixed density over time, to a deep learning network to get minute to minute predictions? I have a dataset with nd days of entries each one with only 1 minute of interval so we have 1440 entries per each day. And I want to get nm number of minute...
The code that I would like to generate is something like: I want to have a categorical variable that maps to another value different from the index given by the categorical distribution, and fits as a parameter in the next level with pm.Model() as model: gamma = np.ones(3) h = pm.Dirichlet("theta", a=gamma) ...
Some public commentators say that the chance of dying in a school shooting is very low, so they conclude that Americans over-react to them. https://www.washingtonpost.com/outlook/school-shootings-are-extraordinarily-rare-why-is-fear-of-them-driving-policy/2018/03/08/f4ead9f2-2247-11e8-94da-ebf9d112159c_story.html The ...
Let's assume I have a repeated data study with 100 subjects. Now let's assume I have just pairs. I want to use the GLS estimation for it. Let's assume the compound symmetry residual structure, so we have here just 1 parameter estimated - the correlation. There should be 100/2=50 pairs (assume no gaps in data), but the ...
I am doing a regression where I use the hedonic pricing model. Hedonic pricing treats a marketed good, usually a house, as a sum of individual goods (characteristics or attributes) that cannot be sold separately in the market. The main objective of a hedonic pricing model is to estimate the contribution of such charact...
I have some data on the frequency that a particular claim is referenced by two distinct types of sources. The first is traditional news media, and the second source are conspiracy theory sites. I want to test the hypothesis that conspiracy sites more frequency cite a given claim than conventional mainstream media sites...
Suppose $U$ is the uniform distribution from $0$ to $1$. I wish to compute $E(U|U<1/2)$. Intuition suggests that this should just be $\frac{1}{4}$. However, when I try and compute it explicitly, I get $\int_{0}^{\frac{1}{2}} y dy = \frac{1}{8}.$ This makes me think there is something fundamentally wrong with how I comp...
Good morning everyone! I am a PhD student and I am performing some statistical analysis on a behavioral dataset related to aggression of pied flycatchers males against other male intruders. The aggression variables I am using are "males peck rate" (M_PECKS_H) and "males attack rate" (M_ATTACKS_H) and both have a Poisso...
I am training a model on a dataset and all types of relevant algorithms I have used converge close to the same accuracy score, meaning that no one is significantly better performing than the other. For example, if you're training a random forest and a neural network on MNIST, you'll observe an accuracy score of around ...
I am trying to assign costs to the confusion matrix. That is, in my problem, a false positive (FP) does not have the same cost as a false negative (FN), so I want to assign to these cases a cost "x" so that the algorithm learns based on those costs. I will explain my case a little more with an example: When we want to...
It has been well understood that the asymptotic distribution of MLEs of model parameters are jointly normally distributed. But in many cases, the true value of model parameter is bounded. For example, to estimate the failure rate rho, the MLE is total number of failures divided by total number of items. So in this case...
I am working on a customer segmentation using 5 features such as recency, frequency, monetary, tenure, unique_product_cnt etc. So, I did a RFM based segmentation where I used jenks optimization to find clusters/groups of each of the variables. Later, based on some if-else condition, I created labels (segment names) for...
Balanced Incomplete Block Design (BIBD) is defined to be a block design which is proper, equireplicate, incomplete and binary such that every distinct pair of treatments appear together $\lambda$ times. Is it somehow equivalent to what the name suggests? In other words, is every block design which is balanced and inco...
I have a model of a physical system, $f(\pmb{x})$, where $f$ is the output of a mathematical model and $\pmb{x}$ are inputs to the model, which are available as observations. My goal is to find the expectation of $f(\pmb{x})$ with respect to the observed distribution of $\pmb{x}$ values via Bayesian quadrature. Since m...
Initially, the coefficient of lnFDI was positive. However, after adding year FE, it became negative. Both were statistically significant. Could someone help me out? I really don't know how to explain or address this problem. Thank you
I build an ARIMA model to predict price oil from a monthly data. After differencing the time series it become stationary with d = 1. But in order to identify the AR order and MA order the PACF is not significant until lag 18 and the ACF in not significant at all as shown below. How do I interpret this? Should I use AR...
I am supposed to find model for the following time series. It looks to me that it has trend, so I tried regression, here is code: t<-1:length(exchangeRate) t2<-t*t trend<-lm(exchangeRate~t+t2) res<-residuals(trend) Then I plotted residuals: I see that residuals are autocorrelated, so I tried harmonic regression: exc...
I'm trying to understand reproducing kernel Hilbert spaces (RKHSs) from scientific papers, however I don't find any gentle introduction. However, my main problem, at the moment, seems to be to understand the used notation. I understand that a kernel $k$ is a function which maps features to the respective inner product ...
I found myself repeating an analysis I don't fully understand. Example data: chisq_data <- data.frame(rx = c(rep(1, 7), rep(2,7)) ,Vital.Status = rep(1, 14) ,EFS = (c(150, 260, 110, 111, 550, 1, 1, 1,140 , 60, 1, 70, 1, 1)) ) I then want to know whether survival of t...
I am working with a model to evaluate the impact of implementing individual prevention measures on property damage. Not only is it my hypothesis that they have a reducing effect on the damage variable (my dependent variable), but also there is a clear difference in mean damage when comparing whether a measure was imple...
I read in one article that the number of epochs in a deep learning network are varied according to a validation frequency of 300. I am not sure what it means. Does it mean after every 300 weight updates, a round of validation is performed? Also how are epochs related to that, as epoch count stays fixed. What is the rel...
I have run a multilevel logistic regression model using the glme package in R. I now need to test the assumptions but I am not sure how to interpret the graphs I get, nor whether I'm doing the correct assumption tests. Some background: my outcome variable is binary (spelling accuracy: 1= correct, 0= incorrect) my predi...
I've been exploring VAE for non-image data. I consider small to medium-sized continuous vector spaces and I want to learn the distribution of a dataset in that space. As a warm up exercise, I tried the dummy case of learning a 2d Gaussian Mixture distribution, naïvely thinking this would be a piece of cake for the VAE....
I am reading the paper from here: https://www.medrxiv.org/content/10.1101/2020.03.25.20043893v1 The problem is to predict the inflection point of daily Covid cases. The method that is employed is to estimate the cumulative case as function of time $t$ as $I(t) = c t^w e^{-d t}$ (with $c,d,w$ being parameters to be esti...
Despite reading this other StatsExchange post, I am still struggling to understand what iterations do in multiple imputation, i.e. the parameter "maxit" in the mice() function. My understanding of iterations was that in the case of multiple predictor variables, since predictor variables would be used to impute other pr...
It might not be clear from the question what I want to say, but how can we apply masked language modelling with the text and image given using multimodal models like lxmert. For example, if there is some text given (This is a MASK) and we mask some word in it, and there is an image given (maybe of a cat), how can we ap...
Let $X$ be a real random variable with absolutely continuous cumulative distribution function $F$. Let $x_{(1)}, ..., x_{(n)}$ be a i.i.d. ordered sample of size $n$ of $X$: $$ x_{(1)} \leq x_{(2)} \leq ... \leq x_{(n)}. $$ I am interested by the interval $[x_{(1)}, x_{(n)}]$ defined by the sample minimum and maximum. ...
I have a model with two variables, $X_1$ and $X_2$. A regression of $Y$ on both of these yields significant positive coefficients with a larger effect for $X_1$ than $X_2$. $X_1$ and $X_2$ are very likely to be bidirectionally related so I ran a two-way fixed effects model to identify the channels of causality. What I ...
I am trying to model the relationship between real-world events and specific features present in tweets related to these events. Whereas my dependent variable (events) is a count variable and its time series is non-stationary, the independent variable is stationary. Therefore, the variables aren't cointegrated either. ...
I am trying to estimate incidence rate differences from a glmer model using poisson. I can obtained the incidence rate ratio, but when I try to use identity link I get an error: glmIRD<-glmer(event~treat+x1+x2+x3+(1|x4)+offset(logtime),control = glmerControl(optimizer="Nelder_Mead"), data=Data, family=poisson(link = "...
I want to design a MLM model that shows there is inconsistency in Y variable on group level. Any ideas on how to do that? When I add more predictors, the ICC goes up. But I need to demonstrate that there is meaningful difference across groups (I know for a fact that each group's data comes from a different data source,...
I have a stratified population. I want to estimate a population total $T$ from a stratified simple random sample. I have two strategies: I compute $\displaystyle T=\sum_h N_h\bar x_h$ where $x_h$ is the sample mean of the stratum $h$ and $N_h$ is the number of elements of the population in stratum $h$. I compute $T$ ...
I have a process generating random variables X_1, ... X_n. From each of these I've sampled a set of samples S_i = (s_i1, ... s_im), respectively. I want to test whether the process/real-world dynamic generating the variables X_i is consistently (or pretty consistently) generating normally distributed variables (not id...
I have a question about deriving the asymptotic distribution of an explosive AR(1) process: $$X_t=\rho X_{t-1}+\epsilon_t; X_0=0; \rho\gt1 $$ In particular, I have been given the following identity, but I do not understand how to derive it. Can anyone lend me a helping hand? $$\sum_{t=1}^{n} X_{t-1}^2=\frac{1}{\rho^2-1...
I performed a fit of some SP500 returns with two heavy tailed distributions, using MATLAB. These are like two guess about what distribution has generated the data. This is the output In both cases standard error for estimated parameters are reported. This sound me as suggestion to use z-test for hypothesis testing ab...
I'm writing a work on the Aitchison geometry for compositional data and I have seen an Image I want to reproduce in R. I work with the "compositions" library and I want to understand how to plot the grid they have used in the image below after centering the data. Here is my code: library(compositions) sigma = 1 mu = c...
For my PhD I use a Lasso approach in R for variable selection. Now, I used the package glmnet and also hdm. What is the difference of the basic lasso estimator for logistic regression in these two packages? I read the docs and also googled a lot but the only hint that I found was this one which was not very helpful for...
I've been having trouble figuring out an appropriate distribution for this data. I wanted to ask for any thoughts. I have percent incidence data (0-100%; not integers) for disease. Using fitDist from the gamlss package, it thinks the distribution is an exp distribution, but when I plot it on a worm plot it's significan...
My question is can variance of the random slope be larger than random intercept variance? And if so, what would it mean in terms of group level variation?
Two teams, A and B, play a soccer match. The number of goals scored by Team A is modelled by a Poisson process $X_t$ with rate $\lambda = 0.03$ goals per minute. The number of goals scored by Team B is modelled by a Poisson process $Y_t$ with rate $\mu = 0.02$ goals per minute. The two processes are assumed to be indep...
Good day for everybody. My name is Brayan, I am mechanical engineer student, in this moment I have a problem with my first neural network. The problem is: I found in kaggle a dataset (50 datas) about 3D printing parameter settings in FDM process and their relationship with mechanical properties. My objecive is predict...
Suppose I have 5 players on each team in a game where each player selects a character (League of legends, Valorant, etc.). I am considering the overall win rates of the characters, and the unique win rate attached to the player is not considered (i.e some players focus on using X character, so their win rate may be hig...
I'm running A/B testing on YouTube thumbnails using proprietary software. After only two days (one day using one thumbnail and another day using the other), my results come back as favoring the new thumbnail with something upward of a 96% confidence level. However, it's only been two days and the sample sizes are what ...
I am attempting to apply a chi-squared test to determine the goodness of fit between modeled and experimental data of a photon counting experiment. My data sets are two histograms, each with 75 bins. The histograms represent the number of photons detected at different energy level. More clearly stated, each bin is an e...
I have a multivariate student distribution fitted on some data on 4 dimensions (so I know the parameters). I am trying to calculate the $P(X_4\le x_4| X_1=x_1, X_2=x_2, X_3=x_3)$ but falling short. I found a paper stating that conditional distribution of multivariate students are student distributions but that's about ...
I have a time-series forecasting problem at hand. My data is such that multiple events occur at every time-step, and exhibit onto-mapping with the target column. The current representation has a unique row for each event regardless of its time-step. However, in this representation, there is no clear indication that all...
I have a grayscale digital image with noise and I would like to test for uniformity in small neighborhoods. One hypothesis says that the mean is independent of the spatial coordinates, against the hypothesis that the mean does significantly depend on them. I don't know how to formalize that problem and formulate the te...
The Variation of Information, $VI(X;Y)$, can be defined by the respective conditional entropies through the identity, $VI(X;Y) = H(X|Y)+H(Y|X)$. I am curious as to what the relative weightings of the conditional entropies mean that make up the Variation of Information. For example, if we let $w =\frac{H(Y|X)}{H(X|Y)}$,...
Is there a way for generating Heteroskedasticity- and autocorrelation-consistent (HAC) standard errors for panel linear model with two fixed effects? I came across vcovHAC but it only seems to work for linear model.
I'm very new to Machine Learning and I'm making a Random Forest Classifier to classify if a file is a malware or benign. This is done through analyzing the PE file's headers. The dataset used contains approximately 40k clean file data and 90k malware file data. I put the n_estimators to 1000, but this is the only hyper...
The question is related to strange result from fused lasso estimator Let us consider fussed lasso estimator: $$ \hat{\beta}^{FL} = \underset{\beta \in \mathbb{R}^{n}}{\arg \min} [(y_{i} - \beta_{i})^{2} + \lambda_{1} \sum_{i=1}^{n-1}|\beta_{i} - \beta_{i+1}| + \lambda_{2}\sum_{i=1}^{n}|\beta_{i}|], $$ From PATHWISE CO...
If I have a cascade of 3 random variables, represented as a Bayesian Graph: $X\rightarrow Y \rightarrow Z$, is there a simple formula for $\sigma_{X|Z}$? Further, assume all the variables are normal, so as part of the graph specification I have $\sigma_{Z|Y}$ and $\sigma_{Y|X}$, could $\sigma_{X|Z}$ be represented in t...
https://es.mathworks.com/help/deeplearning/ref/trainnetwork.html?s_tid=doc_ta#bu6sn4c-traininfo In the above link, there is an example for train network with augmented images. The number of iterations per epoch is 31 and the validation frequency is 50. Why the validation frequency is higher than the number of iteration...
The terms column percent and row percent are quite self describing. With column percent here in this example each sum for GroupA and GroupB is 100%. | | GroupA | GroupB | |:--------|:---------|:---------| | Sex | - | - | | female | 45 | 40 | | male | 55 | 60 | ...
I'm in the process of fitting a hidden markov model with gaussian mixtures to time series health data. The primary purpose of this is descriptive, not predictive – I'm using the fitted model to give a broad description of the different 'clusters' within the data, and how the observed data points tended to move from one...
I have run 6 different classifiers (Naive Bayes, Decision Trees, Linear Discriminant Analysis, k-Nearest Neighbors, Support Vector Machine and one-layer Perceptron) on the same data set (7 features and 2 classes), using random sampling with 80% of the samples being for training and 20% for testing and have computed the...
So for the MLP regressor in sklearn there is the option to shuffle. And I assume it means that before dividing into batches the data is shuffled and thus at each iteration the batches are different from the batches in the previous iteration? Now, I did read about why to shuffle but are there also instances when not to ...
The equation below stands for multiple linear regression model. $$Y = \beta_0 + \beta_1 X_1 + \beta_2 X_2 + \cdots+ \beta_n X_n + \epsilon$$ The regression coefficients ($\beta$) are interpreted as the effect of each variable ($X$) on $Y$, if all of the other explanatory variables are held constant (Siegel & Wagner, 20...
As I was doing some research about survival analysis, I found the following article stating that, if we have right censored data, we can estimate the parameters of a distribution with the following modified MLE : $L(\theta, X) = \prod_{i=1}^{n}f(x_i;\theta)^{\delta_i} [1-F(x_i;\theta)]^{1-\delta_i}$ $\delta_i = \begin{...
Let's say that I have a classifier C ( for example a random forest classifier) and a Dataset. From what I understand I can: prefit the classifier on a portion of data and then "calibrate it" on the other portion. use the method option to fit both the classifier and the regressor (calibrator) using a CV approach. I ha...
OLS population estimator can be derived by running the coverience operator throught the model: cov (y,x)= acov (1,x) +b cov (x,x) +cov(u,x) the estimator requires cov(u,x)=cov(1,x)=0. Explain why one can write cov (1,x)=0 (useing the definition of the coverence (cov(W,Z)=E[ ... etc
So far I know, the cross-correlation of two time-series $a(t)$ and $b(t)$ for which $N$ observations are available is given by $r^N(\tau)=\frac{1}{N} \sum_{t=\tau+1}^Na(t-\tau)b(t)$, where $\tau$ indicates the time-lag. However, I am not sure how to cross-correlate two multi-dimensional time-series. For instance, let $...
In this resource, towards the bottom, the authors write: The next step is to estimate the standard error of the mean. If we knew the population variance, we could use the following formula, $sigma_M = \frac{\sigma}{\sqrt{N}}$. Instead we compute an estimate of the standard error (sM): $s_M = \frac{s}{\sqrt{N}}$. I'm co...
I have a monthly time series and my objective is to provide my client with the next 12 point forecasts along with a yearly forecast. To obtain the yearly forecast, I simply summed up the 12 points forecasts. And, to associate this yearly forecast with a prediction interval, I came up with the following solution which d...