instruction
stringlengths
9
38.7k
Consider linear model $$y = \beta_0 + \beta_1x_1 + \dots + \beta_{k-1}x_{k-1} + \beta_kx_k + u $$ where $x_k$ is correlated with $u$ which results into inconsistent estimators of $\beta$. As I understand endogenouity of $x_k$ arrises from the fact that it depends on some exogenous variables which are captured in error ...
I'm currently trying to complete the book 'Introduction to Statistical Learning' by James et al. and I'm stuck in one of the exercises, trying to get some logic out of the results. The question is this one (see in line): I collect a set of data (n = $100$ observations) containing a single predictor and a quantitative...
I wonder if someone could help me with the following. Target is to determine the intrisic rate of increase (log[lambda]) of wolves at certain plots (x) during certain period (y). I have for example the following count data of wolves at the plot: Year (Counts)--> 2005 (1); 2007 (4); 2008 (2); 2011 (6) ...and also seri...
I think that I am looking for everything outside $B$. So why is the answer $23/30$ instead of $2/3$? Thanks
Following case: We have one time-series A trending upwards. We have one time-series B trending downwards. Is there any good way to measure their relationship? Making them stationary by first differencing and then potentially measuring negative Pearson correlation? The assumption is that the increases in A affects the ...
If you have a half page to explain dropout, how would you proceed? Which is the rationale behind this technique?
I show four colored cards to subjects asking them to choose one. Ideally all four colors should have equal probability of being chosen. But I notice that red is picked more frequently than others. Is there are test which can tell me if there is a real difference between expected and observed proportions?
I am having a problem with the density of the first order statistic of a series of n random variables iid with common distribution (standard normal). I am using Arnold's book as a reference for such a density function for the k'th order stat: $$ f_{X_{k:n}}(x) = \frac{n!}{k-1! (n-k)!} F(x)^{k-1} (1-F(x))^{n-k} f(x)....
I'm new to statistics and reading stats books I found different definitions for Variance. Definition1: $ s^2 = \frac{1}{n-1} \sum_{i=1}^n (x_i - \bar{x})^2 $ Definition2: $ s^2 = \frac{1}{n} \sum_{i=1}^n (x_i - \bar{x})^2 $ I would like to know why is used different definition for same thing?
I am trying to assess a model's prediction performance, and one metric I look at is the percentage of new observations that fall within the 95% tolerance interval, and see whether or not it is actually close to 95%. If the percentage of new observations that fall in the tolerance interval is much lower than 95%, could ...
Is there an advantage to use bagging with k-NN? I constantly get better performances while doing it. Can it be that it is because of resampling with repeated instances, which will therefore be classified in the same neighborhood? Is this some kind of cheating or is it legitimate?
I have been struggling with this question. Let's say we have $m$ decks. One deck contains all (52) red cards. The rest of the decks contain 26 red and 26 black cards. Given that I draw a card and it's red, what is the probability it was drawn from the biased deck (containing all red cards)? My approach: apply Bayes' r...
Supposing I have a document-term matrix as scripted below: library(tidytext) library(dplyr) library(tidyr) library(stylo) library(ggplot2) txt1 <- c("this is a sample document about Computer Science", "Not all sample documents are about science, they can be about art too", "and sometimes they are just useless") names(...
I have 4 algorithms which are doing the same thing in different ways. Let's name them A,B,C,D. I assume that one of them may have better results than others. I'd like to confirm this by test. I'm going to create simulation (discrete event simulation). Results depend on 2 parameters: Number of update operations Number ...
Assume a distribution for the normal data and test each point $\vec {x}[κ]$ for distance from the mean. A widely used distance measure is the Mahalanobis distance. If the data are not normal, but binomial could you tell me please if there is a similar distance measure?
I have several features I'd like to use for computing cosine similarity between rows in a data set. However, two of them are latitude and longitude. Apart from the fact that it's not the "correct" way to measure the distance between points on the surface of the Earth, is there any pressing reason I can't use them along...
In my field, I frequently see researchers employ control variables which are not independent of the exposure variable. For example, numerous studies have revealed that exposure to induced abortion is associated with increased substance use and more sexual partners. But obstetricians, who may not be familiar with this ...
We want to know the mean income of the population but the statistics provided to us are divided into four groups, North, South, East, and West. We do not know the sample size for the four groups, only the estimated group populations, incomes, and standard errors. If possible, how do we estimate the mean and standard er...
So, I've been reading quite a bit about neural networks lately and from what I've read it seems that the recurrent neural networks are one of the most common once in the field of NLP. However, the recursive neural network model is also meantioned to be very effective in the same field. What I've seen is that studies ...
Suppose I have $m$ individuals from a population (not necessarily people: here "individuals" may also indicate machines of common design). $m$ is small, say, 10. For each individual I measure some quantity as a function of time: the number of time observations (the sample size) is different for each individual, i.e., $...
Normally within the model block I might specify a prior on a parameter with y ~ normal(mu, sigma); But what if I already have a posterior on y from a previous analysis, and what to use that posterior as the prior in the new analysis. Can I import a set of samples from the old posterior and sample from that? How is...
I'm trying to simulate outcomes in a zero-inflated negative binomial model. My model gives an estimate of the dispersion parameter theta, as well as a standard error for log (theta). My question is, what is the uncertainty distribution around theta? In other words, for my simulation, should I be using: theta_sim <- rn...
In logistics regression, can I still rely on the odds ratio even if the P-value is not significant? For example, p = 0.140 and OR = 2.834.
I am performing an LDA with very unequal sample size (ratio 1:10) among 3 groups. The results surprise me, as I was expected from a series of boxplot that some variables that explain much of the between group variance to show up on at least one of the first two axes but they don't. This yield me to the question: Should...
Let's say I have the following regression specification: model <- glm(income ~ education + age + married + race + left + quartile_health, family=binomial, data=data) --If I wanted to compute the marginal effect of left (a binary variable taking 1 if individual is left-handed), holding other co-variates at their mean. ...
I have two models of the following form lmod1 <- lm(response ~ predictor1 + log(predictor2)) lmod2 <- lm(response ~ predictor1 + predictor2) The question is, can I use an F-test to compare these two models? Which model provides a better fit to the data? The question is from the Faraway's Linear Models with R, by the ...
Is it possible to define orthogonal polynomials on the interval $[0, +\infty[$ ? Maybe using the Gram-Schmidt process from the monomial basis $(1, x, x^2, ...)$? My problem is that I have some data for which I defined the polynomial model $f(x) = c_0+c_1 x + c_2 x^2 + c_3 x^3$. I use afterwards the parameters $c_0, c_1...
I'm using Naive Bayes algorithm to classify movie reviews (positive and negative). I tried to eliminate stop words (by a stop words list) before running the algorithm then I realized it led to a worse accuracy than not doing that. My question is if stop words really have affection in sentiment analysis and we should no...
Recently I encountered the term Positive matrix factorization (PMF). From googling it, I found that it's a receptor model which analyses the multivariate data. First of all, can someone explain to me what is a receptor model? Secondly, what is PMF? How does it work? And can it be used for multivariable analysis of dem...
I'm trying to understand the OLS model and the assumptions behind it. I'm struggling between 2 texts with a different approach: nyu do not talk about likelihood estimation theory at all. They develop the Gauss-Markov theorem with a minimum amount of assumptions, and there's no reasoning to why OLS is a reasonable crit...
I am taking Andrew Ng's ML course. I noticed the following: When he is talking about gradient descent with J(theta0, theta1), he "descends" into a negative J(t0, t1) output. Here is a photo: After: This J(t0, t1) output is clearly negative ( < 0 ), and I though we wanted the output to be as close to 0 as possible. I ...
So I have a dataset which is just 400 instances for 4 labels (i.e. 100 examples for each label). Another issue is that each of these instances have 3000x3 features. Can anyone tell me which algorithm would be suitable to start with given that features are huge and examples are very few for each class.
Lets say I have a simple logistic regression model that is built based on 5 features: $A,B,C,D,E$. I measured its performance via Cross Validation and learned that the F-score is 0.7. I then removed features $B$ and $D$ and noticed that the F-score improved to 0.75. Is my intuition right that the model is now better ta...
I use Bidirectional RNN to detect an event of unbalanced occurence. The positive class is 100times less often than the negative class. While no regularization use I can get 100% accuracy on train set and 30% on validation set. I turn on l2 regularization and the result is only 30% accuracy on train set too instead of l...
[A question about what we optimize in FA, is FA a clustering of variables, and when/how we choose the number of factors] I have read some tutorials and looked at some of the questions here, as well, still I am unsure about the questions I ask below. I would really appreciate if you could help me clarify them, if possib...
I built a predictive logit model to measure the effect of different factors on winning in soccer. Where the dependent variable ($y_i$) is winning (1: win, 0: draw or lose), and the controls ($x_i$) are different sport statistics (ball possession (%), completed passes, fouls, shots on target, etc.): $$log \left( \frac{p...
Basically a modelling exercise, the problem can be stated as follows: Suppose there are $N$ bernoulli trials, $v_n$, with probability $p_n$ of heads. Suppose further there is for each bernoulli trial a bernoulli "signal" about the outcome of the trial. More precisely, for each $v_n$ there is a bernoulli random variable...
I have a Binomial random variable $X \sim B(n,p)$. Is there a closed form expression or an upper bound for the variance of the absolute deviation $|X-\mathbb{E}[X]|$ ?
I'm a beginner student of time series as applied in economics. When we don't have a model for the dependent variable, how do we define the error term ? If we had a model, the difference can be seen from the predicted term vs real value ..
I am currently trying to classify clothes for my final project in school. My problem is that after I gathered more data, to counteract overfitting, the validation accuracy dropped from 60% to 45%. Below I explain in detail what I did. I use the following network layout: I have five different clothing classes: T-Shirt...
I have individual level whole population registry data where each observation describes a person id receiving a certain diagnosis x over a ten year period. The nature of x is such that each individual is very likely to receive it at least once each year and many do so more than once. For all intents and purposes you ca...
In probabilistic graphical modeling, conditional independence $X\perp Y | Z$ means $P(X,Y|Z)=P(X|Z)P(Y|Z)$. How to prove it? EDIT: this post might help your understanding https://math.stackexchange.com/questions/832370/proving-conditional-independence
I'm building an algorithm in R to calculate the Shapley Value for players in a collaborative game. However, I do not have an outcome value for all possible coalitions, partially because the number of players is relatively high (in the 100s/1000s), and number of observations will never cover all permutations. My questio...
I'm getting crazy with this. I hope that someone can help me. I want to perform LASSO regression on "House Prices: Advanced Regression Techniques" dataset on Kaggle. I'm using R. This dataset is about predicting house price based on some features. Data is messy. It has a lot of missing values. So, in order to solve thi...
Specifically, I'm looking at 3 different commodity futures prices. I want to test that each is unit root and that they are cointegrated. Next, I'd like to apply a model to them to test if they (or a combination of them) are mean reverting. What I want to see is the evolution of a margin of 3 prices. X=price 1 Y=price 2...
Assume a simple regression model, $y = \beta_0 + x\beta_1 + u$. I decide to change the units of measurement for the explanatory variable and the response variable. Do the $\beta_0$ and $\beta_1$ parameters change as well? I assume that the $\beta$ parameters will stay constant. Does anyone know for sure? How does it ch...
Is the following statement true: Let $g(x)$ be some non negative continuous function of $x$.We know that$$\int_{0}^\infty e^{-\beta x}x^{\alpha-1}dx={\Gamma(\alpha)\over \beta^\alpha}$$ Does the following hold as well: $$\int_{0}^\infty e^{-\beta\cdot g(x)}g(x)^{\alpha-1}dx={\Gamma(\alpha)\over \beta^\alpha}\ \ ?$$
I am wondering if: omitting an important variable and having very high correlation between two independent variables causes the OLS estimators to become biased. If so, can you please provide a short explanation?
I have two sentences and I want to use RNNs to check whether the second sentence expresses a positive or a negative sentiment towards the first sentence. The two sentences can have different length. What type of RNN should I use? one-to-many RNN architecture with the word vectors for the two sentences separated by a d...
(This is my first question so apologies if I get something wrong/am not clear enough) As part of a school assignment, I'm testing the rate of convergence and final results of training a neural network with 3 sigmoid layers and a softMax on the MNIST dataset. I get sensible results when using SGD, SGD + momentum and Ada...
Let's take Logistic Regression as an example, typically we should do feature scaling before applying l1 or l2 regularizations. When do batch learning, feature scaling could be easily done, but how could we do this in online learning scenario, since data points come in a stream fashion and no way to know the mean and st...
When I read the Weibull Analysis Handbook (Abernethy et al., (1)), in Table 2.1 (p15), I don't really know how he gets the right-hand column ("Col 2 value - Min Col 2 value (-6,91)). Does he assume it or take it from a formula? Earlier on the same page he gives the formulas (1) Abernethy, R.B., Breneman, J.E., Medli...
I don't believe that (Why does increasing the sample size lower the variance?) appropriately handles my question! The linked questions explains why any addition of random variables (all iid) produces a new RV whose variance is less than the variance of any one RV. In this case, the effect of adding a "training example"...
I've been following along with Andrew Ng's excellent course on Machine Learning (CS 229), and have been working on Problem Set 1. I'm trying to fit a logistic regression model using Newton's Method. I have tried several approaches: 1) Calculating the components of $\mathbf{\theta} := \mathbf{\theta} - \mathbf{H}^{-1}\m...
I have two questions related to VAR and AR. First question: What exactly is the difference between a VAR and AR? Second question: Is the application of a two-variable VAR not the same as an AR with two variables?
I have a basic question regarding approaches to model averaging using IT criteria to weight models within a candidate set. Most sources that I have read on model averaging advocate averaging the parameter coefficient estimates based on model weights (either using a 'natural-average' or else a 'zero average' method). H...
I am comparing two non-normal distributions of continuous variables of a repeated-measures design (the dependent variables are reaction-times in miliseconds when reading two types of words). Therefore, I am using a Wilcoxon Signed-Rank Test, but the same phenomenon happens if I run a t-test. If I randomly re-sort one ...
We run a 3-NN classifier. We are looking at a case in which a point has 5 points (or something greater than K, which is 3 at the moment) of equal distance. What can we do in this case?
So, lets compare two normal distributions Do this x times: runs <- 100000 a.samples <- rnorm(runs, mean = 5) b.samples <- rbeta(runs, mean = 0) mc.p.value <- sum(a.samples > b.samples)/runs The mc.p.values falling below our alpha (0.05) divided by x would then give the type1 error rate. Our H0 is a.samples >= b.s...
I'm following these notes from NYU (1) for developing the OLS estimator with the Gauss-Markov theorem. By the assumptions, we can prove that $ E(\hat\beta) = \beta$ and that $E(\epsilon\epsilon'|X) = \sigma^2I$. Isn't that enough to do some hypothesis testing for $\hat\beta$ using Chebyshev's inequality? Why does the ...
I would like to compare the false positive rates (1 - specificity) from two different tests within the same sample. The false positive rate is calculated by comparing the test values against the actual prevalence of disease. Test 1 has a false positive = 17.1% Test 2 has a false positive = 15.5% I believe I am supposed...
I have been trying to get some descriptive information from my dataset using R. The following code gives me error: round(aggregate (ffqlong$DMFS_incidence~ffqlong$par_edu,ffqlong, summary),2) and the error is as follows: Error in Math.data.frame(list(`ffqlong$par_edu` = 1:3, `ffqlong$DMFS_incidence` = c(-4, : nicht ...
Say we monitor a ski jumper's consecutive jumps (distance jumped), and we assume it is a combination (sum) of the skier's skills, + luck (modelled by a random variable). We also assume that the distance jumped at trial$_N$ is independent of that jumped at trial$_{N-1}$. By some accounts (e.g., Daniel Kahneman, in his b...
We have following Impulse Response Function: # Load data and apply VAR library("vars") data(Canada) data <- Canada data <- data.frame(data[,1:2]) var <- VAR(data, p=3, type = "both") plot(irf(var, impulse = "e", response = "prod", boot = T, cumulative = FALSE, n.ahead = 20, ci=0.95)) Output: Now I want to make sure t...
Are The two concepts really two sides of the same coin ? The latter is often referred to simply as a regression, but surely this is just an unfortunate coincidence? The former is about predicting values of a dependent variable from a weighted combination of values of independent variables , whereas the second is Simpl...
I'm currently building a classification model in which a false negative is twice as bad as a false positive. That is, the cost matrix looks like (where a leading $P$ means "predicted" and a leading $T$ means "true"): $$\begin{matrix}& TP & TN \\PP & 0 & 1 \\ PN & 2 & 0.\end{matrix}$$ The class imbalance is 2:1. With t...
I have these mean centered points: X = [-0.7142;-1.7142;-1.7142;-0.7142;1.2857;1.2857;2.2857]; Y = [1.2857;0.2857;-0.7142;0.2857;0.2857;-0.7142;-0.7142]; I then calculated the PCA projection points as: X_proj = [-2.2316; 0.0648; 1.044; -0.2725; -2.1535; 1.7647; 1.2005]; Y_proj = [2.8746; 3.4734; 1.5356; 1.5142; -2.404...
I would like to write the code to forecast the status. The status 0 means non-active, 1 means active. I would like to predict the future month (e.g 2016/6/1), the status should be "0" or "1". What algorithm could be used in such a situation? date status 2016/1/10 0 2016/1/19 0 2016/2/2 1 2016/2/10 1 20...
I am conducting research using SARIMA models in my analysis. I have transformed my data to achieve stationarity (first difference and seasonal difference) and my ACF and PACF are as below. However, I have a challenge in identifying the values of p, q, P and Q. Any suggestions for these values? The data is as follows: ...
If I have $\bar{X} = 0.14$ and $\bar{Y} = 0.139$ and the population SD of $X$ is $0.0026$ and the population SD of $Y$ is $0.0024$. The population for both statistics is $6$. How can I construct a test to see if I can assume equal population standard deviations? Here is what I did. Degrees of Freedom for $X$ = $5$ De...
My analysis is about systematic changes over time. I have counted data (values range from 2 to 7) that follows a normal distribution (according to the histogram and kurtosis), but this answer recommends analyze count data with GLM (log link function). In my case, can I use simple linear regression? what would be a tes...
Do high values of regression coefficients indicate automatically that there is an overfitting? Is there a way to know when we are overfitting our data?
Suppose I have two distributions $X \sim N(a, \sigma ^2)$ and $Y \sim N(b,\sigma^2)$. From these distributions, I create a third distribution $Z$ so that there is a $\frac 12$ chance that $Z$ comes from $X$ and a $\frac 12$ chance that $Z$ comes from $Y$. Question: What is the distribution of $Z$ (i.e. expectation, var...
Why or when is the hazard ratio more than the range of the confidence interval? As I understood it, the hazard ratio must fall with in the range of the confidence interval.
I have a 9000+ sample data set composed of 9 features and one binary output upon which I'm running a neural network. I coded Octave to go through all 500 or so combinations (of these 9 features) over 100 iterations each, such that for each iteration, I train a randomly selected subset for my training set, then apply th...
The data set has around 40 variables and 50,000+ rows. Target variable is categorical with 3 levels. I have reduced the number of variables to 31 by removing or combining similar variables. Among these 31 categorical variables, there are some variables which have up to 2000 levels and hence creating dummy variables ...
I'm preparing some insights for non-technical, non-statistical background users. Most of the stats are in terms of %, but my phi coefficient is (obviously) from -1 to 1 which users find confusing because they then assume, for example, a value of 0.75 means 0.75% I could of course easily convert it to a number out of 10...
The traditional ridge regression estimate is $$ \hat{\beta}_{ridge} = (X^TX+\lambda I)^{-1} X^T Y $$ which comes from adding the penalty term $\lambda ||\beta||^2_2$. I have been struggling to find literature on regularizing towards a particular value. In particular, I have looked at a ridge regression model that uses...
I have two regression models with the following results. How can I decide upon on selecting the better regression model. Can you please help me in getting the perfect approach to start off for these kind of analysis. Model 1: Call: lm(formula = salary ~ yrs.since.phd, data = Salaries) Residuals: Min 1Q Median ...
How can I compute a distance matrix and cluster analysis on data with grouped measurements? For example, here's a table of 10 samples, A to J. Each sample has nine groups of measurements (group_2, group_3 ... group_10). The grouped measurements are not replicates, they are of closely related variables. In these data, ...
In order to simulate a process I considered two options: number of items received follows a Poisson distribution λ number of items received follows a Negative Binomial distribution (r,p): following Wikipedia definition I'd like to model both scenarios, customizing the inter-arrival time of the items. For option 1 (Po...
My question is about studies like the following: The 2015 SEDA Scores by Country, PDF is available here. The authors collect 43 indicators for 149 countries and compute a well-being index based on these numbers. Unfortunately they don't explain how they compute the index. But since the indicators comprise a wide rang...
I do deep learning for self-driving car for my graduation project. I need some advice and recommendations about the deep learning part in self-driving cars. Among all those published data, what data should I choose?
My data is : 86180, 86180, 86270, 86160, 86190, 86160, 86160, 86130, 86160, 86250, 86200, 86180, 86220, 86200, 86240, 86270, 86300, 86300, 86480, 86770, 86790, 86750, 86710, 86660, 86620, 86640, 86620, 86590, 86540, 86470, 86480, 86520, 86340, 85870, 85920, 86080, 85930, 85950, 85660, 85830, 85920, 85900, 85930, 85990,...
What does difference in the number of dots in Fitted vs Residuals plot mean? Like in the below plots of two different models: Model 1: Model 2: The length of fitted() of both models is the same, but why does it seem that Model 2 has a lot more predictions? Also does this kind of difference tell anything about the goo...
There is a huge thread on learning mathematics through guided discovery over at math SE. I hope we can get one here as well. I am currently trying to get through Pattern Classification by Duda et al (for a course). However, the book seems too dense for me. It seems like a topic that could be better learned through guid...
Can we get correlation between linear regression coefficients? I have real data (time series) with different realizations representing the same phenomenon: $\{x_j(t)\} = x_1(t), \dots, x_N(t)$. I model each one with a linear regression model: $f_j(t)=\displaystyle \sum_{i=0}^dc_{ij}\phi_i(t)$, $(j = 1, \dots, N$). $\ph...
What is the difference between between mean decrease in accuracy and mean decrease in Gini impurity in Random Forest, any simple example about it? Like how these measures are related in variable importance.
This is a small sample of the dataframe I am using: track time UTM_WGS84.Longitude UTM_WGS84.Latitude 1 1 2015-10-14 23:59:55.711 5.481687 51.43635 2 1 2015-10-14 23:59:55.717 5.481689 51.43635 3 1 2015-10-14 23:59:55.723 5.48...
From what I found out until now: A layer in a neural network consists of a parameterizable number of neurons. A neural network consists of multiple layers. A neuron consists of a function f(x1, x2, ..., xn), a sigmoid function which uses f as input and gives a binary output and a weight factor which is multiplied with ...
I'm trying to create artificial intelligence for the popular game "2048" using this page as a reference: https://stackoverflow.com/questions/22342854/what-is-the-optimal-algorithm-for-the-game-2048/22498940#22498940 My algorithm uses various heuristics such as "monotonicity" and "number of empty tiles" to select the be...
For better comparability between Principal Component Regression (PCR) and methods that do not shrink the dimension of the predictors, it would be nice to obtain the coefficients of the original regressors that are implied by PCR. I saw the claim that this mapping can be achieved before (e.g. on page 2 of this paper), b...
This is a homework problem. I am very new to Bayesian conjugate analysis, so hang on with me. I have a sample $(x_1...x_n)$ of $n=20$ observations from an experiment. These observations are breakdown times for some machinery. The average of these observations is 495 minutes. As information (given by the problem, an exp...
I am new in statistics, I don't understand what's the difference between expected value and average, only two different ways to calculate samething. For example if i am given a table(relative frequency) like this. $(1/10, 1/20, 1/2)$now if i say $f(0) = 1/10 , f(1) = 1/20 , f(2) = 1/2$ which means that one out of ten m...
I am doing a path analysis in R using the lavaan package. Because one of my endogenous variables is skewed I used a correction by Satorra & Bentler to receive robust estimators and standard errors. fit<-sem(trf.model1, data=data2, estimator="MLM") summary(fit, standardized=T, fit.measures=T, rsquare=T) My question con...
What does $μ_{22}$ stand for in the formula for the variance of a covariance estimate? I gather that $μ_{11}$ is the covariance of variables X and Y, $μ_{20}$ is the variance of X, and $μ_{02}$ is the variance of Y, but what is $μ_{22}$? The formula can be found here: https://stats.stackexchange.com/a/48393/20385
I am trying to create a classifier for the following problem: Given a patient diagnosed with glioblastoma multiforme and his age, cluster of the disease and ~16 000 of traits related to the patient's genes, predict whether the patient will survive a year after the diagnosis As dark as it is a task, I'm on the first s...
The Wikipedia page of quantile shows 9 types of quantile estimators. Here is the last type R-9: Let $h$ be the index of a sample size $N$ and $x_h$ be the quantile estimate, then $$Q_p = x_{⌊h⌋} + (h − ⌊h⌋) (x_{⌊h⌋ + 1} − x_{⌊h⌋})$$ $$where\ h=(N + 1/4)p + 3/8$$ The resulting quantile estimates are approximately unbi...
While solving a Neyman-Pearson Detection problem I need to solve this equation: $$Q\left ( \frac{\gamma^{'}-\mu_0}{d/\sqrt2}\right )=1-Q\left (\frac{\gamma^{'}-\mu_1}{d/\sqrt2}\right )$$ With $Q(x)$ being the tail probability of the standard normal distribution defined as follows: $$Q(x) = \int_x^{+\infty} \frac{1}{\sq...
I analyze how people spent their money in shops. So there are two main strategies: 1. Spent frequent but less amount; 2. Spent big amount of money but not frequent. So if we draw a plot with x as mean spent and y as count of spent we will see an exponential distribution: And the question is how to clean it up? It is e...