instruction
stringlengths
9
38.7k
Consider a two-way contingency table formed by variables $Y_{1}$ and $Y_{2}$ (say), each with three levels. How do I generate $N$ bootstrap samples from the given table ?
I have made some sales propensity models for my company in R. My code is a function oriented script fetching data from databases, reshaping and engineering data and then building models giving final predictions. I have to run this every month. How do I do this? What infrastructure do I require to automate this process ...
I am doing a image classification with CNN using Keras. The training process was so far so good. But when it comes to the prediction, I couldn't figure out to extract correct prediction results out of numpy array from predict(x). It is binary classification task but I used softmax layer at the end purposefully. The ori...
I am working on a sampling exercise which involves both random and stratified sampling. The sampling is for a series of experiments run on multiple populations. Some experiments may run on the same population either during non-overlapping time periods or might overlap at the same time. When the test don't overlap then ...
Suppose I have fitted a Logistic regression model that predicts $P(Y=1|\boldsymbol{X})$ the presence of a disease which is encoded to $1$, and if not then $0$. The AUROC (area under the roc curve) shows a high discriminatory power say: $85\%$. So any randomly chosen person with the disease will have a higher predicted ...
I have a continuous dependent, a categorical variable and a continuous covariate (Age). I apply linear regression and here are the results. Do you think applying the linear model is appropriate? The first plot is residuals vs Age and the second plot is dependent variable vs categorical variable and the third one is res...
Question: What is the probability a given video from a video loop will be displayed to a customer waiting in line? Assumptions: 1. Mean Wait Time = 260 Seconds 2. Standard Deviation of Wait = 120 Seconds (assumed normal distribution for simplicity, though likely has fat tails!) 3. Number of videos in loop = 32 4. T...
A coin with probability $p$ of landing a head is tossed repeatedly till the occurrence of two consecutive heads. Let $X$ be the random variable denoting the the number of trials needed. What is the distribution of $X$? We consider a partition of the sample space where the sequence of events begins with a $T$, an $HT$...
Title explains it all. I want to know which test is the most appropriate to track weight loss / weight gain on a weekly basis in order to create a confidence interval, to see if my expected rate of loss/gain is in that confidence interval. It makes it easier to see if I'm stalling and have to adjust calories. Some extr...
Just to state that I don't belong to the statistics field or something related (I am medical scientist). I've been trying to understand more about the confidence interval and how to interpret it for biological studies (in case of biological experiments). In this case, I was advised to report confidence intervals in or...
I'm experimenting with an HMM. I have a sequence of observations (10000) and the original matrices A,B and pi that generated those observations. There are 4 types of observations. What I am trying to do is to train a randomly initialized HMM (initial distributions are near uniform) with different numbers of states in o...
I have a signal that varies in time as shown below. I have just shown a 5 s interval of data (from 97 s to 102 s). The sampling frequency is 1000 Hz. My goal is to find out the frequency of the downward peaks in the signal. I used a peak-finding algorithm to detect the peaks in the signal and it turned out that there...
Consider the soft-margin SVM formulation. $$ \begin{align} \mbox{min}_{\mathbf{w},b,\boldsymbol{\xi}} & & \frac{1}{2}\|\mathbf{w}\|_2^2 + C\sum_i \xi_i \\ \mbox{s.t.} & & y_i(\mathbf{w}^Tx_i+b) \geq1-\xi_i \\ & & \xi_i\geq0 \end{align} $$ If $C$ is sufficiently small, the $\xi_i$'s can grow large, and therefore the con...
I would like to know if someone has information on the relation between knot position and degree of the regression spline, thus without penalization on the spline coefficients. If the spline can be represented with a 2-knots spline of degree 1 using the truncated power basis expansion, increasing the degree might affec...
In some statistical analyses (ie genetics), it may makes sense to perform a two-step regression analysis. In this analysis, the dependent variable is regressed against several independent variables. The residuals are taken from this first regression, and modeled against a final independent variable (ie. a SNP in a gene...
The boosting algorithm Adaboost (when using a tree) has three core parameters: number of weak learners to train learning rate max nb of splits (depth of tree) What are good practices, perhaps proven empirically, for finding the appropriate value for these parameters? One option I can think of is to do a grid search v...
I have data where for a specific threshold, I calculate what percentage of values meet a certain criteria. I want to calculate whether there is a statistically significant trend when I increase the threshold and there is a corresponding increase in the response variable. To give an example, I have the following data fo...
Question: There are n marbles in a bag, player $1$ picks out $x$ marbles where $x \leq n$, marks them, and puts them back. Player $2$ picks out $y$ marbles where $y \leq n$. What is the expected amount of marbles that are marked after player $2$ goes? I gathered that each marble player $2$ grabs has a $\frac{y}{n}$ ...
This is not a statistical question, narrowly defined, but it is a terminological question concerning a set of topics that have attracted a great deal of statistical attention, and on which I am currently trying to write a statistical software package. If you order people from lowest income to highest, then there is a ...
The simple regression model is $y=\beta_0+\beta_1 x + u$, where $Cov(x,u) \neq 0$. To obtain consistent estimators of $\beta_0$ and $\beta_1$ when $x$ and $u$ are correlated, we can use $z$ as an instrumental variable for $x$. The instrument has to satisfy the following two assumptions: $Cov(z,u)=0$ and $Cov(z,x)\neq ...
I have a panel dataset of $N=78$ with 4 repeated measures. While building my model using generalized estimation equation, I am getting correlation parameter of 0.05-0.10 with different correlation structures. My question is how much it is important to have the correlation in the panel data? Subsequently, I am calculati...
Density plots are useful in confirming the fit of a distribution or assessing which distribution to try in order to give the best fit. However, when looking at the tails on log scales, especially for long-tailed datasets, the fit becomes increasingly hard to confirm visually, due to gaps resulting in large downward spi...
I am trying to understand how CCA can be formulated as a least-squares problem in the binary class case. I understood how CCA and Least square problem works. But not getting how we can formulate a CCA to solve least square problem.
I am performing an experiment using caffeine and testing the resting blood pressure before and after caffeine consumption as well as cognitive performance using the Stroop test. I've performed dependent t-tests between the pre- and post-test for the two variables to determine their significance. Now I know that there h...
This is the question that I was working on: "An airline claims that the proportion of luggage that is lost is less than or equal to 0.06. A random sample of size 200 is taken. Out of the 200 independent observations, 23 pieces of luggage were lost. Test whether the airline's claim is true at a 1% significance level." M...
I have one continuous dependent which is measured as a concentration., one categorical IV and one continuous covariate. The min value of dependent variable is 0.05 and the max value is 70. I applied the linear regression. I have a big violation of assumptions. I was wondering if applying the linear regression is approp...
The Horvitz-Thompson Estimator is usually given by: $$ \hat{Y}_{HT} = \sum_{i=1}^n \pi_i ^{-1} Y_i $$ The proof that it is unbiased is trivial to do. In additional, there exists other estimators out there for different designs as well, like those in Rubin and Rosenbaum (1983). However, in each of the original papers, t...
I ran the below CLM (from the clm() function in the R package "ordinal"), my dependant categorical variable is agg_full and I have two categorical variables, treatment and region. The variable region has two levels, AR and OZ. In a first version of the model, AR is the reference level for region. In a second model, I u...
I have to discuss the limitations involved with an independent samples t-test. I have stated that the test was limited by the amount of data that was provided. (Samples of larger amount of values would more accurately represent the population). However I am unsure about what else I would discuss? Would the "limitation...
I have question about the $R\{.\}$ function in Bishop's book on page 254 (see snippet below). My questions are as follows: I assume $R\{\bf w\}$ in (5.97) is the premultiplication of $\bf{v}^{T}$ with gradient $\nabla\bf{w}$. However, I would expect that the argument of $R$ should be a multivariable function, rather ...
When I start with the maximal random effects structure for a repeated measures design with three within-subject factors m_1 <- lmer(y ~ a*b*c + (1 + a*b*c|subject), data) and my model doesn't converge, how do I reduce it? I think a model that converges most of the time should be the following random intercept model m_i...
I ran a regression on some data I collected. The data has one independent variable and looks as if a quadratic function would fit it well. I fit both a quadratic and a quartic model to the data and performed a likelihood ratio test. Seems that I should prefer the quartic model (p<0.001). However, the coefficients of m...
There is a coupon full of football matches for a given day from a bookkeeper. I have scrapped another website and i have aquired continuous history of a particular match between AvsB. Using data involving only the pair AvsB i created a transition matrix for the over under bet (above 2.5 goals or below). i have two sta...
I read about Gaussian, t-student and Frank copula. Gaussian copula is similar to Frank copula where both of them cannot model tail dependencies. Also, I read that, t-student copula is symmetric tails dependency. However, when the degree of freedom of t-student is high, then we get Gaussian copula. My question is, how d...
I analyzed the Iris dataset by using the Python libraries: Matplotlib, seaborn, sklearn and mlxtend. An example of a plot is shown : and my code is : def create_svm_plot(value1, value2, shape): from sklearn import svm from mlxtend.plotting import plot_decision_regions # First, we'll import pandas, a data ...
I have a time series of monthly temperature data for ~ 100 years. My aim is to turn it into a time series which has neither a trend nor autocorrelation. I want to make sure this is true for the whole time series as well as for the series of each of the months seperately (e.g. looking at a time series of August temperat...
In most basic probability theory courses your told moment generating functions (m.g.f) are useful for calculating the moments of a random variable. In particular the expectation and variance. Now in most courses the examples they provide for expectation and variance can be solved analytically using the definitions. Ar...
The Design of my experiment involved a choice chamber (see below) with two sides ( one with a black background and one with a white). Then an ant was placed in the middle and timed how long it spent in each side. We repeated this many times. This was to establish if the ants showed a preference of background. We then p...
There are many time serious questions but I can't seem to find one that explains my case. I have a set of timeseries that are the output of many simulations where the value of the same parameter is changed in each simulation. I would like to compare each time series with the time series from the control simulation. Th...
I have ten-year data for crude number of certain events (cases of disease [counts]) from one country. Would it be appropriate to use Poisson regression with dependent variable as number of cases and only one independent variable 'Year' (coded as 2001, 2002 . . . 2010) to test for linear trend over time? Hence, if 'Year...
Example: I find alpha inflation in an already published report. 300 indicators had been independently tested for statistical significance, and the "significant" results then reported as 95% confident without adjusted p-values. Multiple findings have already been taken as a fact, and decisions have been made based on th...
I will use an example of comparing two different antifraudes to better illustrate the statistical problem. (Antifraud is an algorithm that analyzes whether a transaction is a real transaction or a fraud. If the algorithm sees too much risk in the transaction it classifies it as a fraud not allowing the transaction to c...
I am not a statistician but I plan on using the appropriate term to indicate the "percentage share" of a city's population to the total population of its state. Example: City population = 1,384 State population = 15,437 (1,384/15,437)*100 = 8.97% City population of 1,384 accounts for 8.97% of the state population of ...
I'm fairly new to machine learning and I am using the Linear SVM classifier to classify some text data and I was wondering what exactly does the fit_intercept parameter does and what would be a good reason to set it either True or False. According to the scikit learn documentations what it does is: Whether to calculat...
Give the random variable $X \sim N(\mu,\sigma)$ consider the process $Y_t = tX$ with $t \in I = [t_1,t_2]$, informally a line with a random slope. I would like to find the distribution of the points in the process $\{Y_t\}$ that follow the constraint of being on a line, say $l = tS + b$. Informally, the distribution o...
There is an intuitive article in wikipedia about the Mann-Whitney U Test with an example of the classic Aesop's fable on the tortoise and the hare. https://en.wikipedia.org/wiki/Mann–Whitney_U_test Here is the situation: I have a set of 10 particles, all distinct from each other, and identifiable. They are moving toget...
I read [this] and I usually agree with the view that two-sided p-values are double of one-sided "greater" ones ("lesser" ones being 1-"greater"). But someone told me that "probability distribution of the tables with fixed marginal sums used in Fisher's exact test is not symmetric." Is it right?
It is well known that for a linear regression problem $y=X\beta+\epsilon$, we have a closed form solution $\hat{\beta}=(X^TX)^{-1}X^Ty$. Then, it's natural to ask the similar question about logistic regression, which has also been discussed (e.g. here). However, I don't understand it well that what the reason there ...
For example, suppose I am concerned with two Bernoulli RVs and want to test the alternative $p_1 < p_2$ against the null $p_1 \geq p_2$. I take some samples from each distribution, and discover that the empirical proportions satisfy $\hat{p_1} < \hat{p_2}$, but the test doesn't reject the null because I didn't take eno...
Given $N<\infty$, $0<q<1$ (arbitrarily close to 1) and $\epsilon>0$ (arbitrarily small) one can construct an example of a one parameter family of distributions $P_\theta$, $\theta\in[0,1)$, on the unit circle (viewed as a group, namely the unit interval with addition modulo 1) such that $$ P_\theta=\theta+P_0 $$ and...
In their paper "Catching cheating students", Levitt and Lin propose a simple reduced-form method to identify cheating of students in exams. The strategy works as follows: For each possible pair of students, they calculate the number of questions for which those students gave the same answer. They then estimate the fol...
I have initial parameters for HMM model and I want to use depmixS4 package in R on these. The parameters are in the form intial_prob_matrix=matrix(c(0.07614213, 0.45177665, 0.47208122), nrow=1, ncol=3, byrow = TRUE) transition_matrix=matrix(c(0.46666667,0.46666667,0.06666667, 0.06741573,0.561...
Quantile regression (QR) is sometimes said to reveal different relationships between variables at different quantiles of the distribution. E.g. Le Cook et al. "Thinking beyond the mean: a practical guide for using quantile regression methods for health services research" imply that QR allows for relationships between t...
Here is a sample of 20 rows from some data I'm working with (everything below is consistent with the full dataset): lat cond id trial 1388 0 9627850 Pleasing| 2102 1 9654467 Disgust| 747 0 9644328 Happy| 211...
What are the relation between mean and standard deviation with the 68–95–99.7% upper limits on a half gaussian distribution ? The problem is that if I want to compute that myself, I will be stuck with computing this integral : to be equal at my confidence limit. I'm sure that was already computed but I did not find i...
I'm trying to compare the predictive power of different models (in PyMC3) using Leave-One-Out Cross-Validation. Most models are in the form $y = f(x)$, but one important model is in the form $x = g(y)$. The latter does happen to fit well, but the LOO score is an order of magnitude better, which is unrealistic. I assume...
Using R, I have built a linear model from the fluorescence produced by a set of genetic sequences under certain experimental conditions. The final linear model provides a number of different metrics about the model, such as RMSE, R-Squared, the estimates of the predictors' coefficients, standard errors, t-statistics, a...
I have a problem. I use 'glmnet' package to fit my multinomial logistic regression using lasso in R. Well, I have 4 categories in my response: 'SMA', 'SMK', 'MA' and 'Tidak Melanjutkan'. I want 'SMA' as reference category. When i use the 'coef' function, I should get the coefficient of 3 categories ('SMK', 'MA' and 'T...
I am trying to understand the abstract below from Pearlmutter's paper. Can someone clarify to me why $R_{\bf{v}}\{\bf{w}\}=\bf{v}$? Thanks a lot!
I'm studying VAEs (Variational Auto Encoders) from this link after failing to understand the official paper and stumbling upon the latence variables cost term: The author seems to be trying to say that the probability distribution p(x) is equal to the max-likelihood estimation for parameters $\phi$ and $\theta$ plus t...
Let $X = (X_1, X_2,...,X_k) \sim \text{Multinomial}(n, \theta)$ on $k$ elements (i.e. each $X_i$ is the count of the element $i$ on $n$ trials). Let $\theta \sim \text{Dirichlet}(\alpha)$, where $\alpha = (\alpha_1, \alpha_2, ..., \alpha_k)$. I'm trying to derive the MAP estimate $\hat \theta_{MAP}$ for $\theta$. My a...
I've never seen the following notation before: What does it mean? Example in the cost function here
I have two groups of clinical subjects i.e healthy (25 subjects) and patient group (25 subjects) ,for each subject i have volumetric data for several regions of brain (15 regions ). I would like to analyze if there is any considerable volumetric atrophy in brain between healthy and patient group i.e. whether volume i...
I am trying to run the following 3SLS regression in Stata, but I keep getting the error: "Equation is not identified: Does not meet first order conditions." reg3 (Y1 Y2 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14) /// (Y2 Y1 Y3 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14) /// (Y3 Y1 X1 X2 X3 X4 X5 X6 X7 X8...
Let a half gaussian distribution with this pdf : What is the simplest way to demonstrate the following relation between $\sigma$ and the variance ? $$\sigma =\sqrt{ \frac{variance}{1-\frac{2}{\pi}}}$$
I am working on an "object recognition" project. I have 3 types of objects. I am always able to detect them but unable to correctly classify them using an SVM. Very often, for example, an "unknown" object is misclassified as object 1 with very high certainty. My SVM only contains 3 classes actually: object 1,2 and 3, w...
I have an experiment that has two possible outcomes: A and B. The experiment is performed a large number of times and I am trying to find the proportion confidence interval. The problem, however, is that the measurement is very imprecise and outcome A has a probability p of being measured as outcome B. Is it possible t...
A hypothetical: a vocational school measures satisfaction scores from its students on a yearly basis. Students graduate in less than a year so the students that are being questioned are not the same batch of students from one year to another but the demographical characteristics are pretty constant. Is it proper to do ...
I have done a GLZ model for to find the relationship of my categorical predictor variable (palatability.score) and my continuous response variable (Impact). My output is as such: **glm(formula = Trees$ï..Impact. ~ Trees$Palatability.score.) Deviance Residuals: Min 1Q Median 3Q Max -4.566 ...
I'm working on a Kaggle multiple regression tutorial competition and inspecting plots of my residuals. I followed a suggestion and log transformed several independent variables and the dependent variable. These are the plots I got after fitting a Ridge regression model (sample size is 1500): I'm trying to determine h...
We have a dataset of subgroups of the bacteria E. coli. We have frequency data for four subgroups in 38 locations and we want to cluster these locations by using the frequencies of subgroups which occur in each. Initially we used two clustering methods: Euclidian distance using the dist{stats} function in R; and clust...
I am trying to do goodness-of-fit for an ordinal model namely, proportional odds regression (PO). I performed PO on two sets of data (data A, data B) to compare McFadden and Lipsitz test results. We know that McFadden Pseudo R squared is presented by: R^2=1- (Log(L_c) )/(Log(L_null)). If the model predictability is b...
I believe this is a statistics problem relating to my misunderstanding GLM's. But there's a chance it's a programming problem. If that turns out to be the case, I'll move over to Stack Overflow. I've simulated data in a way that I believe would be perfectly captured by a gaussian GLM with the inverse link. But when I...
I presented my paper in a conference, I used Poisson model to see the relationship between "number of comments" users receive for their topic with the "number of days until posting the second topic". In fact I wanted to see how the feedback affects individuals to come back and post in the website. one of the audience ...
Confidence intervals on means in regression widen as predictions approach the edges of model fit. My intuition then leads me to believe that if I do pairwise comparisons using my model, adjusting for a covariate, I expect that confidence intervals on the difference of means (e.g. u1 - u2) should also get wider near the...
When I was learning data-analysis course online, the lecturer spoke of two advantages of ROC curve. He said "that AUC results do not change with changes in the incidents of the actual condition, nor is AUC affected by changes in the relative cost of the two different types of binary classification errors, false positiv...
Independent Component Analysis (ICA) requires that at most one of the additive subcomponents of a multivariate signal is Gaussian. If I do not know the distributions of the subcomponents, how do I check if there are two or more Gaussian components? I guess usual normality tests do not apply, because, if there are two G...
I wish to examine the relationship between individuals with (cardiovascular disesase) and 9 predictors of coping strategies on the Dependant variable of Depression. If I want to assess whether the coping strategies predict depression in men and women differently, do I add gender to the 9 predictors (making 10 predictor...
In logistic regression, we learn coefficients which have magnitude and direction (positive or negative). If the direction of a coefficient is negative, we say that the variable associated with the coefficient has a "protective effect". Is there a similar term or phrase to describe a coefficient that is positive? This ...
I have an empirical sample of multivariate data and I want to generate surrogate data X that matches certain characterizations of my data: cov(X,X) = A, and cov(X,X.*X) = B where X.*X is the Hadamard power of X. I know I can use the Cholesky decomposition of A with normally distributed random values to construct a samp...
I am fitting a linear regression (X and Y are all continuous) and I want to standardize X to range [0,1] due to the nature of the project. I am wondering do I need to standardize y the same way? If I standardize X to range [0,1] and normalize Y (mean 0 and variance 1), can I still omit $\beta_0$ in my regression model?...
Not Sure if this is the right stack site, but here goes. How does the .similiarity method work? Wow spaCy is great! Its tfidf model could be easier, but w2v with only one line of code?! In his 10 line tutorial on spaCy andrazhribernik show's us the .similarity method that can be run on tokens, sents, word chunks, and ...
Let $X_1, X_2, ..., X_n \sim Bernoulli(p)$, where $n > 5$. Let $\hat p = \frac{1}{5} \sum_{i=1}^{5} X_i$ be the estimator of $p$. Is it biased? My guess is no, since $E[\hat p] = \frac{1}{5} \sum_{i=1}^{5} E[X_i] = \frac{1}{5} \sum_{i=1}^{5} p = \frac{5p}{5} = p$. However, I find this counterintuitive. If I flip a fa...
I have a multilinear regression with two x variables. Here are my key values: R square = .407 Adjusted R square = .370 Observations = 36 Significance of F -s super low (.00018) x1 coef = -.0021; tstat = .013; P-value = .893 x2 coef = 1.06; tstat = .539; P-value = .593 I think this means that: something is going on (...
In finance, factor analysis is used to model the forecast returns of stocks: $$r_i = \alpha_i + \beta_1f_{i1} + \cdots + \beta_Kf_{iK} + \epsilon_i$$ where $r_i$ is the next return of stock $i$ $\alpha_i$ is the part of the return unexplained by factors, $f_{i1},..., f_{iK}$ are factor exposures (could be something li...
When optimizing an expected value, why is it true that stochastic updates will converge as long as the expected value of the update is equal to the corresponding gradient of the expected value? For example, I see this fact used in the proof of the Gradient Bandit Algorithm in Section 2.8 of the Reinforcement Learning b...
I am working on a series of chapters for a book on Machine Learning, in particular on the mathematics behind it, but with clear references to how to implement it in Python (see vectorization for example). My question to the community is (and apologies if this is the wrong place): would you prefer a classical book (pdf)...
I have 47 years of rainfall data, like. days year rf 1 1961 0.0 2 1961 0.5 3 1961 0.01 4 1961 0.0 5 1961 0.2 .. .... . 17153 2007 0.0 17154 2007 0.0 17155 2007 0.0 I was trying to find out trends in extreme events using quantreg package in R. If ...
For a GLM in R, is it correct to interpret that Higher the difference between NULL & RESIDUAL deviance, better is your model? If not, then how do i know if my model is good or bad (for GLM - poisson, gamma, tweedie)
According to the example given on this blogpost on wildml (see image below), it seems like it makes no difference what size the input because the size of the max-pooling layer is constant. However, I swear I've heard people talk about various methods of normalizing input images by rescaling and cropping so that they ...
I am making a model to discern people who would most possibly buy stock then offer a list for the bank to make a better sales calling. I have selected some features and create some features based on time-series to train logistics regression(which its code has already finished by others) And now I have the outcomes ,and...
I am trying to cluster employees based on their check in-check out time. Employee can check-in/checkout any number of times in a day. My plan is to use one month data. Please let me know how to represent multiple check in-check out intervals to clustering algorithms ? Sample test data of 6 employees for a week period ...
I am struggling with the problem in the title. Intuitively, I know what value k should be; if n is an even number, then k = n/2; if n is odd, then k is the "central" trial, the number in the middle. I know this because, IIRC, the binomial coefficient nCk increases, then reaches its maximum at the central number, and th...
I've tried to find an article that explains the procedure of permutation tests for the exhaustive sampling of all permutations (not the monte carlo method) and couldn't find a resource that was specific enough to help me with the ambiguity outlined below. For example, the Wikipedia article (https://en.wikipedia.org/wik...
I understand that Imbens has several papers on IPW, but was wondering if there was a default text one would recommend to understand IPW. For example, where does the estimator: $$ \tau = \frac{1}{N^T}\sum_{i=1}^N \frac{W_iY_i}{e_i(X_i)} - \frac{1}{N^C}\sum_{i=1}^N \frac{(1-W_i)Y_i}{1-e_i(X_i)} $$ come from? Specificall...
As in this post, my understanding of the standard IPTW estimator is that it is $$\frac{1}{n} \sum_i \frac{Y_i T_i}{\hat{e}_i} - \frac{Y_i (1 -T_i)}{1 - \hat{e}_i}$$ This can straightforwardly be shown to unbiasedly estimate the Average Treatment Effect (ATE) when the propensity score model is correctly specified, as t...
Claims can be of two types: "severe" or "light" $$\text{severe claims ~ } \exp(\lambda = 3)$$ $$\text{light claims ~ } \exp(\lambda = 5)$$ The insurer has established that two thirds of all claims are "light" and the rest are "severe". Let $f(x)$ denote the probability density function of any claim payment. Show that: ...
I am trying to decide whether to use linear dimensionality reduction methods (eg. PCA) vs. non-linear dimensionality reduction methods (eg. t-SNE) for my high-dimensional data set. However, I know nothing about the underlying structure of the data. Is there a test to know whether it is better to use one or the other?...
I have an experiment with two groups under different conditions where a single dependent variable is measured repeatedly at multiple times. It seems the right parametric test to use here is two-factor mixed ANOVA: "A mixed ANOVA compares the mean differences between groups that have been split on two "factors" (als...
I have only very rudimentary knowledge of RNNs and LSTMs. My question is whether it is possible to use LSTMs to learn from many time series what is "ordinary" behavior and then for a new time series to compute the probability of it belonging to the same population as the training data, thus deciding whether it is anoma...