instruction
stringlengths
9
38.7k
I want to compare two arbitrary distributions and know that Kolmogorov-Smirnov is one such test that can handle any non-normal distribution. I noticed however, that p-values returned by the KS test are increasingly hard to interpret as dataset size increases. To demonstrate, I created sample distributions using np.rand...
In classification problems, "non-probabilistic" machine learning models such as boosted trees, neural networks, etc. are known to produce poorly-calibrated class scores, which aren't suitable for use as posterior probability estimates. See e.g. "On Calibration of Modern Neural Networks" (Guo et al, 2017) and "Obtaining...
I am collecting data on the effect calorie labeling has. Each study provides a value for mean calories consumed before the calorie label and after. Each number has a standard error or deviation associated with it. I want to combine multiple studies and calculate a mean percentage change with a standard error value. ...
In a recent paper, Andrew Tredennick and colleagues (2021) suggested to use the drop1() function in R for exploratory modelling (that is to generate new hypotheses meant to be tested on new data). Their paper is very interesting but, since the drop1() function belongs to stepwise regression approaches (which are badly...
Sorry if this is a straightforward question, but I have tried digging into econometrics book and cannot find anything about it. I worked on a model with log(wage) = experience + experience^2 + experience^3 and i have the results for that now. However, my results are in the form of E(log(wage)). Instead, now, I wanna mo...
In our mathematical statistics course we've learnt about Pearson chi-squared test. Our lecturer told us that when we want to test a hypothesis about the distribution (parameters of which can only be estimated and are unknown) which was used to create the random sample we have, we should use the chi-squared distribution...
Lets say I simulate a immigration-death process: $P(X(t + \delta t) = x+ 1 | X(t) = x) = \lambda \delta t$ $P(X(t + \delta t) = x-1 | X(t) =x) = v x \delta t$ using a Gillespie simulation - I pick a waiting time using $\tau = \frac{1}{\lambda + v x(t)} \times ln(1/r_1)$ where $r_1 \sim U(0,1)$ then select a reaction us...
I'm trying to build a covariance-based structural equation model, more precisely a mediation model, using both reflective and formative specifications of latent variables. The purpose of that mediation modal, is to verify if the association between SS and PTGtot is mediated by the mediators STRAP and STRAN (both mediat...
Given a sample of $X_1, X_2$. $X_1 = 0.35, X_2 = 0.342$. Test the hypothesis $H_0: X_i \sim U(-1/2, 1/2)$ against the alternative $H_1: X_i \sim N(0, 1/4)$ based on the Neyman-Pearson lemma. The significance level can be taken as 0.1 Find the probabilities of errors of the 1st and 2nd kind. There is no problem at the f...
I have two models M1 and M2 and each models the probability of having cancer with logistic regression. M1 is based on independent variables IV1 measured on a given sample of individuals and M2 is based on another set of independent variables IV2 measured on another sample of individuals. Suppose now I want to rank all ...
I'm struggling with understanding the concept of splitting data for unsupervised anomaly/outlier detection. You can find all approaches here. I found some papers and implementations that didn't split the data in their analysis or evaluate their algorithm: Unsupervised Anomaly Detection:XBOS/HBOS/IForest Histogram-base...
I am going through my econometrics textbook right now and the textbook writes the log-likelihood equation for a sample of normal random variables in a way I have never seen before. Specifically, for a sample of $x_1...x_n$ random variables where $x_i \sim N(0,\sigma^2)$, . They write as follows: (1) $\text{ln }l_t(0, \...
In the simple case where I have N trials with mean result $\mu$ and I want a measure of how on the whole they differ from a theoretical model of a normal distribution with mean 0 and standard deviation 1, is there actually a difference between Cohen's $d$ and Wilcoxon's $r$? I'm getting $d=\frac{\Delta\mu}{\sigma_{poo...
I have two biological groups - each with multiple subjects (7 in one and 10 in another). Each subject provides 40-80 observations, which can be classified into either of two ordinal categories. I have converted the individual observations of a subject into a proportion falling in one category (resulting in one degree o...
I am trying to solve following exercise: Suppose I have 500 chemicals for affecting the bacteria growth. My null hypothesis is that applying chemical or not doesn't have any effect on bacteria growth. And then suppose that 50 of these compounds have p-values smaller than 0.05 and their p-values are statistically indepe...
Or is that not necessarily a reasonable approach? For example, my model is a linear mixed-effects model with only one explanatory variable, such that model <- lme(log(continuousvariable + 0.1) ~ factor(2-levels), random=~1 | block/plot, data=stand) running ANOVA on the model yields a p-value < 0.05 for the factor. Usu...
Say I have some true values of some variable of interest $y_i^t$ for a population of individuals indexed by $i$. Now say I have some model-based predictions of those true values, which I'll denote by $y_i^p$. In my discipline, people often use the $R^2$ to assess how good the predictions are and I'm specifically intere...
If Z-statistics, when population variance is unknown, is a close approssimation of the T-statistics, which is better suited for the case, why do we overcomplicate things by using Z if sample size is over 30 and T if sample size is under 30 and not simply always use T?
I have recently been writing an R program on the inverse of the gamma function and the derivative of the inverse function. Now there is some confusion I would like to ask for advice. I have written the program on how to find the inverse function of the gamma function. invgamma=function(x,k) { c=sqrt(2*pi)/exp(1)-gamm...
everyone! I am a newbie on machine learning, and I am now interested on classification modeling. I used logistic regression, linear discriminant analysis (LDA), and naive Bayes on my notebook DataCamp Certification - Travel Insurance as a tool to exploratory data analysis. A thing that caught my attention is the differ...
This question is related to the normalizing flows concept in machine learning. Let $X \sim P_X$ and $U \sim P_U$ be, respectively, the distribution of the data and a base distribution (e.g. an isotropic gaussian). We define a normalizing flow as $F: \mathcal{U} \rightarrow \mathcal{X}$ parametrized by $\theta$. Startin...
I trying to model the probability of a women having received a mammogram in the past year (MAMHAD1YR). This variable is 0 or 1. Where 1 indicates that they have received a mammogram and 0 indicates that they haven't. All of my explanatory variables are either binary indicators, or categorical (range from 1-3). HISPETH ...
I'm trying to test to see if BMI is affected by some variables in three specific states, KY,CO,NY, such as Marital status, Race, Age, Exercise in the last 30 days, Sleep amount at night, Education level. Some of the values for the data has more than 2 variables, for example Marital status has values, 1 = married, 2 = d...
I have about 100 ARIMA models, where each models the demand of a separate household using the temperature as an exogenous value. I've used the auto.arima from the forecast package on R and used xreg to input the temperature. Now I changed/simulated several series of temperature values and want to use the new temperatur...
Let $X$ and $Y$ be dependent random variables. Is there a typical way to quantify how much more/less knowing $X$ tells you about $Y$ than knowing $Y$ tells you about $X$? For example, if $Y=X^2$, then $X$ completely determines $Y$ whereas $Y$ can only reduce the possibilities of $X$ down to two. \begin{align} p(Y|X{=}x...
I was exploring some of the projects I've done years ago in high school, and my current understanding of Principal Component Analysis differs from what I have performed back then. Experiment: Our project was to find a correlation between a certain acquired value, $x$, from each subject group, and three other features ...
Let's adopt for the second the notation from the R package mgcv. library(mgcv) dat <- gamSim(scale = 3, verbose = FALSE) # Generate a dataset additive_model <- gam(y ~ s(x0) + s(x1) + s(x2), data = dat) spline_model <- gam(y ~ te(x0, x1, x2), data = dat) One clear...
What are the consequences of comparing the AIC from a logistic regression model (glm) to the AIC from a generalized additive model (gam with binomial link and REML)? Here's an example of two models, are the AIC values comparable? library(mgcv) nobs <- 100 set.seed(1) x1 <- rnorm(nobs, 3, 3) x2 <- rnorm(nobs) z <- -...
I run ggforest on a cox model and I wonder now, how I have to interpret the output: Here, several factors of the variable country are shown. I stumble over the fact, that only countries with very few amounts (Lithuania, Macedonia and Slovenia, yet, Japan e.g. does not) show significances while countries with a lot of ...
I am investigating whether the value of a biological marker (LRG) is significantly different in two groups (Anemic, Non-Anemic). I tried with t test which gives a p-value = 0.1. I also tried it with simple linear regression which gives me a p-value < 0.05. Why do these two methods contradict? Please find the sample dat...
I am trying to develop a way to compare items. Each item has the same two properties associated with it, say, $p_{1}$ and $p_{2}$. All I am given are these two measures for each item, each of which may be given as a range, say $x_{1} \le p_{1} \le x_{2}$ and $y_{1} \le p_{2} \le y_{2}$. Do you think that something like...
I have data for number of patients used to collect the data in a hospital for each day. I want to display them as a graphical representation of number of patients used to collect the data for each week. Which graph is more suitable for this? Histogram or Bar Graph? Please explain the pros and cons of each of them. Also...
I am working on a time series project with non-seasonal data which has a non-constant variance. So in order to solve that issue I used box cox transformation to get the data in a suitable format, data %>% BoxCox(lambda) %>% autoplot() data1 = data %>% BoxCox(lambda) then I observed that first order differenci...
I got this explanation of the Ward's method of hierarchical clustering from Malhotra et. al (2017), and I don't really get what it means: Ward’s procedure is a variance method which attempts to generate clusters to minimise the within-cluster variance. For each cluster, the means for all the variables are computed. Ne...
I want to use Bayesian optimisation for my project and I plan to build a closed-loop system, such that there is a model, robot to conduct experiments, measurement of experimental data which updates the model and continues to iterate until the optimise output is produced. The experiment part involves a liquid handling r...
I am not sure if what I'm trying to achieve makes sense or is even possible, but I'd like to do MLE on a Dirichlet process mixture model. My reasoning is the following: If we can write out the likelihood of some probability density function, then we should be able to just plug that into an autograd framework like pytor...
Hi I am exploring VAR functions from vars packages Ive a model fit using following command model_fit <- VAR(diff_raw_prices, p = 5, type = "none") Now i want to perform one step ahead forecasts i.e updating the model with new test data point every time a new value comes in. I did same in arima by using the model param...
I would like to test some functions that I wrote related to the kriging applied to rain data. In order to do that, I would like to generate a synthetic log-normal 2D random field. The idea is to extract from it some points with their two dimensional coordinates and (of course) their values. These should represent the r...
I am taking a quiz which is a sample of $g$ questions from a pool of $n$ total questions. At every iteration $i$ I get a new sample of $g$ questions. I want to know the expected number of new questions (ie questions that I have not seen before) at iteration $i$ If $X_i$ is the random variable that models the number of ...
I recently stumbled upon this article. In the paper they use DWT and I am having trouble understanding how to construct them. Does anyone have a guide on where to start learning wavelets and slowly move to DWT? I am a beginner in this part so I am really trying to understand from step 0. I will apply the math in python...
I'm conducting 3-way (2x2x2) repeated measures ANOVA in JASP with a main factor of interest called symm, and two other factors: emotion (neutral/fearful) and masking (masked/unmasked). I want to resolve a significant 3-way interaction. I assumed that I can do that either by looking at contrasts between levels of symm o...
I have this exercise question, what is your prediction of $x_{10}$ knowing that $\Delta^2 x_t = \epsilon_t $, knowing $x_9 = 1.56$ and $x_8 = 1.64$. I take this to mean that $$ x_t = x_{t-2} +\epsilon_t $$ where I assume the error term is iid with mean zero. I would then answer that my best prediction is simply $x_8$ b...
I want to obtain the analytical expression of variance for simple exponential smoothing . Please help verify and see if the expression could be further simplified , thanks . Assume the discrete time process $(D_i)_{1 \le i\le t}$ is i.i.d , $(\hat{D}_i)_{1 \le i\le t}$ is the predictor . The standard practice is to def...
I performed the Anderson darling test from scipy.stats on multiple different variables but the test is outputting similar critical values for all the varaibles. Only the test statistics values are different. I hope someone can explain this. $$\begin{array}{c|c|c|} & \text{critical values at predefined significance} &...
What clustering methods are suitable for weighted graphs, where the weights cannot be interpreted as a metric ? (e.g. they do not respect the triangle inequality). At the moment I found Markov clustering and affinity propagation. Are there others ? Intuitevely e.g. single linkage clustering has issues because if e.g. w...
Can someone with more experience explain this statement to me? If one, with a hypothesis test, tests for equal means in two samples and gets the result p<0.05, does this imply that the probability that a difference in the sample means occurs by chance, while there is no difference in the population, is less than 5%?...
Let $Y=X\beta$, where $X=(\begin{matrix}1 & 1 & 1\end{matrix})^T$, $Y=(\begin{matrix}6 & 5 & 4\end{matrix})^T$ and $\beta=(\begin{matrix}\beta_0 \end{matrix})$. Now $X\beta=(\begin{matrix}\beta_0 & \beta_0 & \beta_0\end{matrix})^T=(\begin{matrix}6 & 5 & 4\end{matrix})^T$ which does not make sense to me. How can $\beta_...
I have a vector x, lower_bound < x < upper_bound. I would like to fit a truncated normal mixture distribution to x. I can use the package mixtools to fit a normal mixture: library(mixtools) mix_fit <- normalmixEM(x) but that does not account for the upper and lower bounds. Is there any package in R that fits truncated...
I know that the VC dimension for a perceptron is 3, but what is it for a logistic regression model?
I am carrying out a statistical analysis where I run the simulation (Matlab) 5000 times, to get 5000 results. The objective is to estimate the probability of having a result that is less than or equal to a specific value. The resulted data does not follow any known statistical distribution. Therefore, in order to estim...
I was running a regression that test the effects of the following variables on BMI in three different states. 1 = Kentucky, 2 = Colorado, 3 = New York. Each variable was a categorical variable that I factored and converted to numeric. I would a ppreciate if someone can help interpreting the results. if you need any inf...
I have two random variables $X$ (price of a commodity) and $Y$ (default rate of that commodity), that are correlated through $\rho$. $X$ follows a log-normal distribution and $Y$ has not enough datapoints to affirm that follows a normal distribution or two perform a linear model of $X$ on $Y$. I estimate $X$ multiple t...
I've found the internet fairly unhelpful with this issue and thought I'd turn. I have the following arima model: y = data$produced_diff regs = data[,c(10,11,12)] ar1ma1x = arima(y, xreg=regs, order=c(1,0,1)) Pretty simple. The data is daily and I'm trying to add a weekly seasonality. I'm currently doing it like t...
Let data-generating function $f$ be fixed, $D = \{(x_1,y_1),...,(x_N,y_N)\}$, $A$ is set of all possible deterministic learning algorithms and $h:X\rightarrow Y$ is a classifier trained by the algorithm $ a\in A $(meaning algorithm $a_D$ outputs a classifier $h$ ). $L(f(x),y)$ is 1/0-loss function. Then i want to sho...
I have $X_1,\dots,X_n,X_{n+1}\overset{iid}{\sim}F_X(x)$, where $F_X$ has a finite mean $\mu$ and variance $\sigma^2$. If I calculate $\bar X_n = \dfrac{1}{n}\sum_{i=1}^n$ and $S^2_n = \dfrac{1}{n-1}\sum_{i=1}^n\left(x_i - \bar x_n\right)^2$ based on the first $n$ observations, I am able to use those, along with $n$ an...
Can you calculate confidence intervals when performing a chi square test of independence. Someone asked me to provide CI but I'm not sure how this is possible since the test only tests for indepedence. Im comparing countries and whether or not they are single offenders or repeatable offenders. I found that a 5% level o...
I measured the happiness of my respondents. I used a questionnaire for this which uses a 5-point Likert scale and has 25 items with 5 items measuring each component (5). I want to know which component is the predominant one. What can I use? I was advised to use repeated measures ANOVA which was possible in SPSS. But, I...
Suppose I have the following linear expression: $S = x_1 + x_2+ \dots + x_n$, in which each $x_i$ can only assume the following values: -2, -1, 0, 1, 2 whose probabilities are 0.1, 0.2, 0.2, 0.25, 0.25 respectivelly. I want to know two things: 1 - Is there an analytical way to express how many combinations of $x_i$ mak...
I am trying to understand the intuition behind Bayesian and frequentist hypothesis testing and came up with the following example to understand the differences. Do you agree that the following reasoning and intuition is correct? Especially the intuitive reason for needing a prior. Suppose that a covid test has 95% prob...
Consider a probability distribution $P_t$ at time $t \in \mathbb{N}$ which evolves in time, but is assumed to become stationary at some unknown time $t_0$, i.e $P_{t_0+1} = P_{t_0}$ To make matters worse, I do not know the actual probability distributions $P_t$, but only the emperical distributions $\hat{P}_t$ which I ...
I am doing an ‘Ordinal Logistic Regression’ in R but I am struggling to interpret the output. When looking at regression with continuous values I can understand the values and what they represent but when it becomes ordinal (categorical) data I don’t see how these numbers translate. I will give an explanation of what I...
I have a sample of around 100 that has been annotated as either 0, 0,5, or 1 by 5 annotators. For some reason, I found that some of the annotations need to be deleted. Thus, for some samples, we have less than 5 annotations. If there were no missed annotations, I'd use the Fleiss kappa test to measure the inter-annotat...
I have two observed time series $x_i$ and $y_i$ and I want to test if $x_i$ is a good predictor of of $y_i$. So I run a simple linear regression Y ~ X and use $R^2$ as a measure of goodness of fit. However $x_i$ and $y_i$ are both noisy observations and don't have constant variance: for each entry i, the uncertainty in...
I have a question regarding survival analyses: Imagine I have a large cohort, where most participants have been given one treatment (treatment A), and a much much smaller subpopulation which has been given another treatment (say, treatment B). We follow both groups for 5 years. In group receiving treatment B, no one di...
I am working on an image classification problem with only a few samples (10 images). As part of the challenge, we aren't allowed to use any external data or pretrained models. I was wondering whether the self-supervised learning techniques that are normally done on unlabelled data would work if I only used them on just...
I'll admit right off the bat that degrees of freedom is not a concept I understand very well in general. That being said, I was reading a study that reported the following results: I struck me that the df for most of these factors is way, way higher than I'm used to seeing in other contexts (when I actually pay attent...
In DAGs, parents are defined as follows: A is a parent of B if 'A -> B' edge is in the graph. In PAGs, there are mixed type of edges, so you can have A -> B, A o-> B. Obviously if A -> B, then A is a parent of B in the PAG, but what if A o-> B? Is A still considered a parent of B in the PAG, or does the idea of a par...
Suppose the population regression function is as follows: $$y=\beta_{0}+\beta_{1}x_{1}+\epsilon$$ In this case, the assumptions of the linear model for obtain unbiased and consistent estimates are satisfied, namely that $E[\epsilon| x_{1}]$=0. However, we mistakenly estimate instead $$y=\gamma_{0}+\gamma_{1}x_{1}+\gamm...
Simple question, but I'm overthinking it. Say that I already have a cumulative failure distribution, cdf, (Weibull, but let's just assume any type of distribution) calculated from historical part data. Now I have a specific part that has already lived to time t1. How do I calculate that part's probability of failure, ...
My question is about the credibility from the statistical point of view of what I have seen in some papers where the researchers (non-statistician) define some kind of staged factor analysis (FA) and in each step they look for the variable(s) and its loading on the common factors. Then they build a rule which says if a...
Why is 'internal consistency' a measure of reliability? It looks like a measure of validity instead. Definitions: "Internal consistency reflects the extent to which items within an instrument measure various aspects of the same characteristic or construct." (Revicki, 2014) "Reliability refers to the extent to which a m...
The thing is that I am implementing LR with SGD. Here is my cross error function: def crossErr(x,y,w): sz = len(x) error = 0 for i in range(sz): error += np.log( 1 + np.exp(-y[i]*(w.T.dot(x[i])))) return error/sz Where x are the set of features, w the weights and y the labels. Then I have the gradient of the cross...
I've been working on a time series forecasting model. I can't use a scale-dependent error measurement. And my target outputs also occasionally have zeros, meaning I can't use MAPE either. What is the best choice for me in this situation? I've thought about adding some amount (for example, the mean) to all of the output...
Consider the following discrete autoregressive $\epsilon_t$, where $\epsilon_t \in (\pm 1 ) \forall \ t \geq 1$. We think of $\epsilon_t$ as the child of a previous sign at time $t-l$, where $l$ is randomly distributed according to unknown distribution $\mathbb{K}(l)$, with $$\sum_{l \geq 1}\mathbb{K}(l) = 1.$$ Once th...
I trained the VGG Network on cifar10. Use my customized noise label dataset and clean dataset, then divide them into train, validation and test sets. In clean dataset everything went well, high performance on training and testing, but in the noise label dataset (60% wrong label), I'm confused which one should I choose,...
I've been trying to estimate the standard deviation from a sample with N = 8149. I've seen a few alternatives to perform this and they all use the IQR. Here's the sample data I have: +--------------+----------+ | 1st quartile | 1,390.61 | +--------------+----------+ | Median | 2,343.00 | +--------------+---------...
I have 23 dummy variables that are generated through a multiple-answer question. Respondents could choose more than one option. I ran a PCA and could see meaningful components emerging. I then calculated the values of components as the new variables (they are 7); varimax is used for rotation. I however wonder if there ...
I am generating random normal samples Y with covariance C using a well known procedure: Let L be the Cholesky decomposition of C, such that $C = LL^T$. Now given a matrix of random numbers $X, x_{ij} \sim N(0,1)$, compute $Y = XL$. We expect $\mathrm{var}[Y] \approx C$. Except that in testing this I am finding tha...
I am trying to understand if my model is sound even if there is rank deficiency. I am performing a generalized linear model with a binomial (or binary) distribution. My model has the fixed effect of Lineage, which is also nested in Status (fixed factor). I have another fixed factor called Density and there is an inter...
I have already checked the suggested links and they do not answer my questions; my question is simple and does not need to be reinterpreted. So please do not close the question until it receives its proper answer. What would question the credibility of a PCA used on dummy variables that generate components as the under...
I am tring to calculate a measure of income gap of my individual-level sample (by group) and use it in regressions. What I want to do is to divide the mean income of individuals whose imcome are above 70th percentile (top 30%) by that of individuals whose income are at lowest 30%. What I am not sure is: (1) whether I s...
I would like to confirm that I am understanding the relationship between a sampling distribution of a statistic (an example of a 'statistic' would be a sample mean $\bar{x}$) and a population distribution in the context of a hypothesis test (such as a $t$-test and its associated $t$-distribution). Suppose we have the d...
Suppose I am a company eager to get at the (causal) effect between age and the event of contract termination. However, people can also die instead of actively terminating a contract. This seems like a classic competing events scenario to me. Similar to, e.g., death from cancer vs death from stroke. As I am no expert on...
Say I have two independent random variables - one is drawn from a uniform distribution on [0, 50] while the other is drawn from a uniform distribution on [0, 100]. How would I calculate the probability that one is greater than the other? TIA
I want to draw samples from the mollified Uniform distribution presented in another Cross Validated thread, cf the answer from whuber. What is the best way to do so? I have tried drawing $\mu \sim U[0, 1]$, and then drawing $x|\mu \sim \mathcal{N}(\mu, \sigma)$, where $\sigma$ is the standard deviation of the mollifier...
I'm sort of having a trouble finding what statistical test to use in a specific project of mine. My experiment was as follows: I have 10 friends and they all prefer Coke cola then Pepsi. Each of them bought Coke or Pepsi once for almost every day. To measure the preference, I investigated the their purchase over 5 days...
I have the following AR(1): $y_{t}=\phi y_{t-1}+\epsilon_{t}$, where $|\phi|<1$. $\epsilon_{t}$ is assumed to be a margintale difference process, such that $\mathbb{E}[\epsilon_{t}|I_{t-1}]=0$. ($I_{t}$ is an information set containing all realisations of $y$, and $\epsilon$, in the periods up to, and including, $t$). ...
Joint Models are mainly viewed in the literature within the context of longitudinal and time-to-event data. For this reason R packages as JMBayes were built to fit these kind of models. Nonetheless I would like to fit Joint Model for longitudinal and binary data, where the binary stands for the outcomes (e.g. death/ali...
I am trying to use the doresmeta package in R to evaluate the dose-response relationship between supplemental intake of a micronutrient and risk of a disease. When I try to fit a quadratic model for the association between supplemental intake and disease risk using a dataset (9 studies and 26 exposure values), I run i...
Is there any "online" clustering approach? I mean that the procedure should be like this: Can be fitted with the initial portion of data. Can be updated with the upcoming batch of data. The size of metadata to store should be significantly smaller than all available training data. The data is GPS signals.
Let $Y$ be a non-negative random variable, $k$ be any positive constant, show that $Pr(Y \geq k) \leq E(Y)/k$. My attempt (using integration by parts): \begin{align} \int_0^k y \,dF(y) &\leq E(Y) \\ \bigg[yF(y)\bigg]_0^k - \int_0^kF(y)dy &\leq E(Y) \\ kF(k) - \int_0^kF(y)dy &\leq E(Y) \end{align} The second term o...
I have 40 continuous variables with missing data. I imputed the missing data using predictive mean matching through the MICE package in R, I did 5 iterations for each imputation. My question is how do I choose which iteration to use for the whole dataset? I know that for each variable it should be as close as possible ...
I've been wondering recently about covariance stationarity. Say we have a stationary series with statsmodels' ADF and KPSS results: ADF: (-17.69367433194328, 3.562758332968972e-30, 0, 326, {'1%': -3.4505694423906546, '5%': -2.8704469462727795, '10%': -2.5715154495841017}, 4125.109339911818) KPSS: (0.277926207048549...
I've implemented the word2vec algorithm according to its negative sampling architecture,using a shallow neural network that performs binary classification on word-embedding vector pairs. The network is expected to output 1 for pairs that occur in the corpus and 0 for the random negative pairs. In the final neuron, my i...
Given a model where $ x_i | \mu \sim \mathcal{N} ( \mu, \sigma^2 ) $ where $ \mu \sim \mathcal{N} ( \mu_0, \sigma_0^2 ) $, is there a closed form formula for the PDF of $ x_i $? Namely, what's $ p (x_i) $? I know the solution by Bayes, but I wonder if there is a closed form solution. My intuition is a Normal distributi...
Background: Imagine you are running a survey, asking 1000 random people: "do you like blue marbles?" Now, 200 people respond. 150 say yes, 50 say no. If I had only sent that survey to only those 200 peoples, I know how to make pymc3 give me a Bayesian estimation of the proportion of people that like blue marbles. Howev...
Given Equation $$\LARGE\varepsilon_t=\delta\varepsilon_{t-1}+u_t$$ How would I work out the correlogram for this AR(1) error processes? $E(e_t,x_t)=0$ $E(e_0)=0$, and $u_t$ is white noise process i.e. $E(u_t)=0$, $E(u_{t^2})=\sigma^2$, $E(u_t,u_s)=0$. Also how would I show that $E(e_t)=0$?
I have two fields in my dataset. The first field has records that return a final score (0-5) from the customer. The second field has records that show the total number of customer power outages. I want to see if a correlation exists between these two. The values do not appear to be normal. Would I need to utilize Kenda...
Given a model where $ x_i | \beta \sim \mathcal{Gamma} ( \alpha, \beta ) $ where $ \beta \sim \mathcal{Gamma} ( \alpha0, \beta0 ) $, is there a closed form formula for the PDF of $ x_i $? Namely, what's $ p ( x_i ) $? In the Gamma Distribution above I assume the shape ($\alpha$) and rate ($\beta$) variant of the Gamma ...
It's a simple question but hard to explain. At the end of a (say, political) poll n candidates will receive their respective percentage of votes, according to ballots. At this point, all the ballots will have been examinated. Now, before this time, the percentage of each candidate's votes varies as the examination of t...