instruction
stringlengths
9
38.7k
Confidence intervals around two AUCs were generated using bootstrapping with a confidence level of 95 %. The CIs overlap each other, hence I conduct significance testing by bootstrapping the difference of AUC CIs. This confidence interval did not include zero, and therefore I conclude that there is an effect when using...
Does test classification rate and training time the best evaluation criteria for a classifier! Basically I have used the training time and test classification rate as a criteria to evaluate my classifier ( as in many papers, many studies they used training test CR) Is there anyone could explain why test CR and train...
Introduction: Say I have a design matrix $X\in \mathbb{R}^{m\times n}$ with rows $x^{(i)} \in \mathbb{R}^{n}, i = 1,...,m$ and I also have a data vector $y \in \mathbb{R}^m$. I construct a "local" linear model for some $x \in \mathbb{R}^n$ as follows: First, define, $$ w_i = \exp \Big ( -\|x - x^{(i)}\|^2 \Big ) = \exp...
In glmnet using caret my the model is trained and tuned by cross validation on my training set. I have a 10 fold cross validation, over a grid of 10 alphas and 10 lambdas. The best model chosen by glmnet is the model with the combination of alpha and lambda which has the best performance. This performance is an average...
So suppose I'm predicting "A" using a linear regression model : A = a + bx1 + cx2 I'm positive that X1 and X2 have a linear relationship with A The problem is: I have historical data on my independent variable x1 and x2 but do not know what their exact value will be a month to three months from now (my predicting time ...
Edit Purpose of my study I have weather stations collecting data inside and outside low-tech greenhouses. Four of the weather stations are inside, and one is outside. They are collecting temperature, humidity, solar radiation, wind speed, etc. I am testing to see if the differences between the weather station data insi...
I am trying to understand the difference between f(x) and g(x) below. I am not a mathematician or statistician, so please bear with me. Basically, I'm trying to specifically understand: what g is doing to the data what motivation, if any, there is to use g what relationship there is, if any, between f, and g (I do not...
Given the comments below, I reformed my questions with more background information and simulation/examples. My question also includes the validity of the method in theory. Please correct me if any statement is not accurate. Background: 1) For our client (policy makers), it is often interesting for them to check whether...
I am trying to do classification to separate two groups and try to extract important features by calculating variable importance using PLS. However, number of inputs are different. for instance for A condition I have 1300 and for B I have 3209. Shall I do kind of normalization to compensate for the different number of ...
Consider the following VECM, from a VAR(1) model $$ \Delta y_t=c-AB'y_{t-1}+\epsilon _t $$ and the following VMA representation $$ y_t = \delta t+Cz_t+\eta_t $$ where $z_t=\sum_{s=1}^t \epsilon _t$ and $\eta_t \sim I(0)$. a. From the VECM specification, find a VMA representation, that is, show that $\delta$ and $C$ can...
I am trying to specify a Bayesian hierarchical split-plot model in JAGS. I have been following Doing Bayesian Data Analysis by John K. Kruschke, however the model I am attempting is not included in his book. It is a split-plot longitudinal design with one three-level, between-Subjects categorical predictor XGroup and o...
Here is one definition of the proportional odds model: $$\frac{S(t;{\bf Z})}{1-S(t;{\bf Z})}=e^{-{\bf Z}^T\pmb{\beta}}\frac{S_0(t;{\bf Z})}{1-S_0(t;{\bf Z})},$$ where ${\bf Z}$ = covariates, $\pmb{\beta}$ = regression coefficients, $T$ = survival time, $S(\cdot)$ = survival function, $S_0(\cdot)$ = baseline survival fu...
I have a fundamental question about "Bayes Factors". Specifically, I understand if we want to compute the posterior probability of a hypothesis (e.g., $p(H_1 |Data)$, we need a prior probability (i.e., $p(H_1)$) for the hypothesis in question as per Bayes' rule. BUT I'm wondering when computing only a "Bayes Factor" w...
I'm fascinated by the concept of graph, be it the social network, the book-topic relationship and others. By graph I mean something like this: I want to know, how to visualize the data, and is there any mathmatical background/properties behind it? Speficially, I want to know: How is the graph data layed out? How the ...
I am trying to understand how probability works with a threshold for logistic regression. I understand the basics of how to calculate probability. log odds = intercept+value1*coef1 odds = exp(log odds) prob = odds / (1+odds) I understand that a threshold is used to find the optimal mix of correct predictions (precisi...
Hi I'm studying regression techniques. My data has 15 features and 60 million examples (regression task). When I tried many known regression techniques (gradient boosted tree, Decision tree regression, AdaBoostRegressor etc) linear regression performed great. Scored almost best among those algorithms. What can be the ...
I have some maximum temperature data. Here is the histogram and qqplot: Visually they look pretty good and I would reasonably say they are from a normal distribution but the Shapiro-Wilk Normality Test (shapiro.test in R) is saying that it is not from a normal distribution. I found this post which basically says: don'...
I am getting familiar with SPSS, specifically the Automatic Linear Modeling functionality. I first ran SPSS, using Best Subset method which gives me the result of "best" variables. Being uncertain, I run again in Excel with the same data. Much to my surprise, the coefficients of one variable are not the same: they are...
I'm a beginner of survival analysis. I think I could understand the Survival Function. But the hazard function, I feel very confuse. I've been told, the hazard function is the instantaneous risk at a certain time spot. It can be complex if we assume the time is continuous. But if we treat the time as discrete, say, yea...
I have carried out a behavioural task on two groups of participants: a patient group and a healthy control group. The patient group was tested in two separate sessions, to include the effects of medication (on or off). I'd like to carry out a Bayesian ANOVA on this data to jointly assess the within-subject effect of me...
multiple articles on the internet proclaim that logistic regression as a method is not able to deal with categorical independent features well. Unfortunately i was not able to find any explanation for it. Can anybody help me out on why this is so? quoting from the article "Too many categorical variables are also a pro...
So I'm stuck on a problem. It's related for some work I'm doing but I'll keep it simple here. Here's the scenario: I flip a coin 11 times and I record the results without telling you what the results are. Now you have to try and predict what I tossed. What are the odds that you will guess 8 out of those 11 tosses corre...
From a survey I have answers towards a yes/no question and the survey-respondents are grouped into multiple groups. I now want to know if the proportion of yes-answers for one group differs from the whole survey sample (thus including the subgroup). I would do this by calculating the standard error. I could do it usin...
I have a black-box model of a system with an internal state that is characterized by a $n-$dimensional binary vector variable $\vec{x}=(x_1,x_2,\dots,x_n)$ (i.e. $x_i\in\{0,1\},\;i=1,\dots,n$). However, I have access only to an external binary vector of obsevations $\vec{y}=(y_1,y_2,\dots,y_n)$ of the same size ($y_i\i...
I use dirichlet regression to analyze the result of a membership matrix (compositional data). For each observation, I have membership probabilities to different groups and these probabilities sum to one. For sake of simplicity, let’s say that I have three groups. I use the DirichletReg package in R to estimate the mode...
I am trying to build a captcha recognizer. I found CNN play very well if there are enough labeled data. For example, I use this https://github.com/lepture/captcha to generate 4 size char+number captcha sample. But I found it only could recognize captchas with similar style, didn't work when I gave it a different style ...
I am working with a colleague who wants to include a term in our linear mixed effect model that is also an individual component of a scale that we constructed and have in our model (both as predictors). For example, it's something like this: d1 <- data.frame(A=rnorm(100), B=rnorm(100), ...
so I have this graph What test can I use to show that the three methods are different / not equal? The data is not normally distributed, nor has it a common variance. I also failed to transform it to a normal distribution. I'm working in R if that helps. The sample size is 1000, maybe that solves all problems of non-n...
I was taking an online course and saw linear regression being by gradient descent The intuition behind why the method would work seemed plausible. I tried understanding normal equation as to why setting individual partial derivates to 0 and solving the equations give the optimal values of theta, but that didn't ring a ...
I reasoned a bit on where to post this question if stats, quant or stack. I will post it here because it is merely a statistical problem. I have a vector x of numbers in Python (you might also imagine for simplicity that is normal) I simulate its Kernel density starting from this vector: import scikits.statsmodels.api ...
At the near past when I was a student NN concerned as an arbitrary function learner (13 Hilbert problem, Holmogorov stuff like that). But today I am seeing that vanilla Feed Forward NN is no more actual and complicated ones like LSTMs, GRU, CNN etc are come into live. For me this NNs are nothing more than just clever h...
I've dataset that looks something like this: Let us call this data "df" ID var1 var2 var3 ... varn val 1 v11 v12 v13 ... v1n v1 2 v21 v22 v23 ... v2n v2 .......... m vm1 vm2 vm3 ... vmn vm This data is divided into two parts based on "val" variable. That is if it's greater than threshold, it's ...
I am new to time series analysis and I am trying to model a time series. I know there are similar questions but I could not figure out the solution to my problem. I have a time series like the one below (Blue color). To remove the trend I fitted a polynomial curve of degree 6. As can be seen in the above picture with...
I tried to understand it, by applying an regression-tree on the Friedman#1 dataset: library("mlbench") dataset <- list() random.forest <- list() regression.tree <- list() train.data.in.test.leaf <- list() test.data.in.test.leaf <- list() test.leaf.size <- 0 test.leaf.prediction <- 0 test.leaf.index <- 1 all.l...
I've been using logistic regression for a specific problem and the loss function the paper used is the following : $$ L(Y,\hat{Y})=\sum_{i=1}^{N} \log(1+\exp(-y_i\hat{y}_{i}))$$ Yesterday, I came accross Andrew Ng's course (Stanford notes) and he gave another loss function that was intuitive, according to his saying....
How do I judge whether the dataset is unbalanced (is it when the minority class inferior of 15%) could us use the test CR after balancing the data?
My question pertains to necessary caution/downfalls in adjustment of a binomial mixed effect model with a low number of "success" outcomes (p̂ = .05). I have a data frame in the form: data <- data.frame("SubjectID"=1:221, "Group"=sample(gl(8, 28, labels = 280:288), size=221), "Condition"=sample(relevel...
I'm learning about neural networks and I've been trying to figure out wether it's a good idea to normalize/standardiza data before training. From what I've read there's divided opinions about this, some sources says it will imrpove the result/make the training faster while other sources state there's no real need for i...
For learning purposes I have been using a subset of the MNIST data--just the training set and just the digits 3 and 8. I want to try linear regression for doing this classification. (Yes I realise that logistic regression is more appropriate). In R syntax (this is not an R specific question), I do: b<-qr.solve(cbind(...
I implemented Deming Regression in a known programming language, using the algorithm from here: https://en.wikipedia.org/wiki/Deming_regression However, the algo does not specify what to do in case we want to force intercept to 0. I am assuming slope will slightly change as well as R^2 parameter (goodness of fit). Kind...
In software development, unit testing is (basically) executing an algorithm with a fixed input and test if the output is as expected. Example : "test that MyFactorial(4) returns 24" where "MyFactorial" is a piece of code you have written. Unit testing is used very often to detect regressions : a bug that wasn't here be...
I have done a robust regression on my training-dataset and would now like to see whether the model fits the test-training set. However, I do not know how to do this. I have already made sure my test-set only contains the variables used in the model, that is the firs step I believe, but what is next?
I have been reading a Facebook paper, read here, and am confused about certain features of the architecture. I do not understand why they have a tanh layer, max-pooling layer, and then another tanh layer. I understand what each layer does, but I don't understand why they have this sequence. Wouldn't this output basical...
I'm working on a nonlinear mixed effects model with 4 parameters. I've simulated some data to fit my model to, and I would like to check that the model is identifiable. I'm trying to outline some approaches that I can use to check this If no 2 distinct sets of parameters can give rise to the same log-likelihood for an ...
I have a system 4 I(1) variables. Normal Johansen test in Eviews tell me there are two cointegrated relationship. Yet, if I include an exogenous variable, namely log(oilprice) the test gives me three cointegrations. I am not sure I understand the test well as Eviews onle reports the critical values without exogenous va...
Is there a way in scikit-learn to compute (or to obtain) the features importance of each class to predict? I known feature_importances_ properties of tree models, but I'm interested in a separate list of more importante predictors for the first class, a separate list for the second class and so on. E.G: which are the m...
Hi: I'm reading a proof in Halbert White's "asymptotic theory for econometricians" and I don't understand one of the steps. The theorem supposes the following: $E(X^2_{thi})^{1+\delta} < \triangle < \infty$ for some $\delta > 0 $ and all $h = 1, \ldots p, ~i = 1, \ldots k$, and all $t$. Then, it starts off the proof by...
Is there a way, after calibrating a logistic regression, to average out the 3 resulting logistic regressions' coefficients into a single Logit? Example (in sklearn): from sklearn.calibration import CalibratedClassifierCV from sklearn.linear_model import LogisticRegression calibrated_logit = CalibratedClassifierCV(Log...
I am reading the Deep Learning (Ian Goodfellow and Yoshua Bengio and Aaron Courville, 2016) book. I don't have a statistical background, so I couldn't follow this part: How come by only dividing Equation (5.58) by m one can get Equation (5.59). As a follow-up question, many equations that involve summation are express...
n00b question: Lets say I am looking at a sample of records, say, sales data from several McDonald's restaurants. Lets say I detect a difference between two groups of McDonalds. For example, McDonald's stores located in Oregon sell fewer McRibs per month than do stores in Tennessee. Some descriptive stats (let's assum...
I'm well aware of word embeddings (word2vec or Glove) and I know of four papers treating the subject of more general embeddings : Distributed Representations of Sentences and Documents - Quoc V. Le, Tomas Mikolov https://arxiv.org/abs/1405.4053 Document Embedding with Paragraph Vectors - Andrew M. Dai, Christopher O...
I have a non-significant moderation. However, when I plot it, the lines are not parallel, even crossing at a certain point. Does this mean anything? Should I still present a plot that can be misleading, as it shows an interaction that is not significant?
Is there a way to test whether a binary vector of size $n$ was sampled from an $n$-variate Bernoulli distribution with some success probabilities?
I'd like to compare the difference in rates obtained by two different methods for the same population. Here's a contrived example (please ignore the semantics): I randomly survey 5,000 people in the same state and ask how many times they experienced Disease Y over the past year. I also set up a surveillance system in h...
I need to add an hour feature to my data. Assigning "dummy variables" (which is what I usually do) does not work in this case, apparently (wouldn't elaborate - but believe me this is so). At first, I simply assigned the hour itself (13:00 - 13, 14:00 - 14, etc...) But then I realized this means 23:00=23 is radically ...
I found in the R vignettes a nice article about perform time transformations in coxph (R function, package survival). This works fine for me in coxph, but I need to use cph (RMS package) because of the added functionality. This should be easy to translate, since cph is coxph with added features, but I can't get it to w...
Below (in R code), I'm showing the Bayesian estimation of the Difference between two proportions resulted from two binomially distributed groups (groups) of scores (y). My question is how can I now compute a Bayes Factor to understand which hypothesis (i.e., $H_1$ or $H_0$) my data supports? set.seed(0) n1 = 100 ; n2 =...
Assume I have a program which we'll model as bool Worked = f(param1,param2,...) Assume these parameters are positive integers, and a starting set exists s/t Worked returns true. Is there a smarter way than parametric sweep to map/estimate the stable surface of the parameters, that is, the surface under which the functi...
In the picture below, why is u the direction of greatest variance? Aren't the data points further away from v than from u? Variance is the sum over the squared distances of each data point from the mean, right? It would just seem to me that if I measured and summed the distances of the data points to v, it would be gr...
So my training set labels are bounded by 1-10, but if I fit a regression curve it will predict outside this range as well, including negative numbers. Is there a good way to constrain the model outputs besides simply changing all < 1 values to 1 and > 10 values to 10? I am coding in Python with sklearn.
I have a survey data set with missing values and I generated 10 multiple imputations in which the missing values were imputed. I'd like to compare certain groups in my data set using the Mann-Whitney U. However, I've been searching how to run this analysis in either SAS or SPSS but didn't find a solution. It seems tha...
I'm running a mediation model in PROCESS (Model 4) with a categorical predictor which has 3 categories. The predictor was further dichotomized using dummy coding into 2 dummy variables. The outcome is binary (yes/no). The mediator is an interval variable with a range 0-14. I am looking at the difference between a cont...
I'm studying variational inference and I'm checking an example from Bishop, Pattern recognition and machine learning (2006). In the page 470 (10.1.3) there is an example with the univariate Gaussian. There is a dataset $ \mathcal{D} = \{x_1, \ldots, x_N \} $ of observed values which are drawn from a Gaussian (independe...
Given a set of asset classes (specifically their log-returns), I would like to decompose their returns in to the principle components, in a manner that will preserve the scale of the returns. I'm not sure if I'm explaining properly so I'll try using an example: if I look at US large-cap equities, small-cap equities and...
I have a question about confounding. It is about controlling for confounders in an observational study that investigated the effect of several genetic polymorphisms on the occurrence of cardiovascular events. We had to answer questions about this article, but I became confused by the answer provided by my teacher. Thi...
I have a large dataset like this: +-----+------+---------+-----------+------------------+-------+-----------------+---------+-------+ | Mat | Cust | Qty(Ag) | Net V(Ag) | Demand Hits (Ag) | Qty% | Demand Hits (%) | Net V % | Month | +-----+------+---------+-----------+------------------+-------+-----------------+-----...
For a side project, I need some measure of gaussianity of a probability density, such that by optimizing to maximize the measure, I optimize for the density to become gaussian-shaped. Typically you can do this using negentropy, but the problem is the variance of the optimized probability density is not set beforehand -...
I am comparing the survival of 2 insect larvae under identical conditions. I have the cumulative survival rate (%) for each day. In my case, I have 100% survival on day 0 (the start of the test) and survival goes down from there. When I plot this for both insects, I get 2 curves with cumulated survival on the Y-axis ...
I have a best-estimate value for some quantity $H$, along with uncertainty $\delta H$. I am told that the best-estimate $H$ was determined by fitting some unknown function involving $H$ and an arbitrary number $n$ of other parameters, $g(H; x_0...x_n)$, to a set of data. $H$ is thus the resultant best-fit parameter wit...
I have a report being generated from some transaction data (basically a list of items that should have been purchased) and I can also randomly sample the true transactions as they happen as an audit of the reporting process. If I have a report with 1000 items included (today's reported sales) and during today I randoml...
I have an application where some of my states are constant and therefore have no process noise. Over the course of the estimation process, the uncertainty in these states drops several orders of magnitude, so it doesn't work to just use the initial scatter in these dimensions. I've had some success with various ad-ho...
I'm working on a comparison of two different algorithms that detect weather features. The input data produced by each of the two detection methods is 3D arrays of binary (0/1) data with axes (lon,lat,time). For now, I'm just looking at comparing individual time slices with dimensions (lon,lat). The goal is to quantify ...
Consider the Poisson binomial distribution with $n$ coins and coin probabilities ${1 \over n}, {2\over n}, \dots, {n-1 \over n}, 1$. Do we know an asymptotic for this distribution? Le Cam's theorem says when the $p_i$ are small the distribution approaches Poisson($\mu)$, but the $p_i$ are not small here. We can even sa...
Is there a way to do unsupervised clustering based on similarity (like all other methods), but create clusters by splitting on just one (or specific) features? For example, I have customer data with lots of features, but I want to find the best clustering of data by segmenting the data on specific bands of customer rev...
I feel really thick asking this question, but I'm afraid I don't really understand the Wikipedia article explaining how to do a weighted average with expontentially decreasing weights. I really have two questions, I guess: I don't see anywhere in the Wiki article an explicit statement of the actual function to impleme...
I am working on a project that involves comparing spatial autocorrelation models. Why does the AIC reported for the base OLS model, titled "AIC for lm" in the output, differ between spatial lag and spatial durbin models? I estimate both the spaital lag and durbin models using the same command, lagsarlm(), included in t...
Suppose we measure 13 teachers in creativity, $X$. Each of these teachers has 4 students that we then measure in emotional intelligence, $Y$. Therefore, there are 13 unique observations for $X$, and 52 theoretically unique observations for $Y$. How would I go about calculating the relationship (correlation preferred) ...
I am examining a problem that has elements of both regression and classification. The domain is speech processing, and the example problem is a bit of a "toy" problem where existing algorithms can yield a good approximation of ground truth. Specifically, an input is a "frame" of data representing a short length of a...
I was looking at the example from "Statistical Decision Theory and Bayesian Analysis" by Jim Berger (page 10) -- below. And I had trouble understanding how the expression underlined by the upper redline gets expanded to the lower underlined expression.
I'm struggling to figure out the right model specification for my data. Here's my design: a between-subject longitudinal study, with two Type of participants (Test and Control), with 8 Subject in each Type, each of which is tested multiple times (different numbers of times across participants, unfortunately). At each ...
I wanted to build a POS tagger but found the HMM Tagger to be too mainstream. Any other Classifier/Statistical Model that I could use?
Im running an experiment and im not sure what stats Test should i use. I have 2 groups of male mice (n=9) where one group will recieve a drug dose, and the other one won't. My goal here is to understand the effect of the drug on weight during the experiment. For example: Day 1. Ctrl vs Drug, Day 2 Ctrl vs Drug Day 3 ...
I am using pairwise deletion to compute the correlation matrix of a data set. I think this approach is appropriate because: I have well under 10% missing values (~2%) I have only around 50% complete cases (so casewise deletion disregards too much data) Missing values are distributed evenly across cases and evenly acr...
I would like to test two stationary time series (say a and b) for Granger Causality. I am familiar with the method of running two regressions: a=const+a[-1]+e_1 a=const+a[-1]+b[-1]+e_1 And then using an F Test (I omitted the degrees of freedom): (R2f-R2r)/(1-R2r) Afterwards I do the same the other way around: b=const...
On this website the appropriate statistical test for comparing two independent proportions is described as a $Z$-test (a normal distribution is used to obtain a $p$-value). However, in R prop.test, a Chi-square distribution is invoked to obtain the $p$-value comparing two independent proportions. An R example is: prop....
I was reading this tutorial about loan prediction: https://rstudio-pubs-static.s3.amazonaws.com/190551_15f6124632824534b7e397ce7ad2f2b8.html In the 'Preparation' section, the author cuts down the dataset from 111 variables down to 18 by "selecting out irrelevant data, poorly documented data and less important features"...
My regression models have heteroscedasticity problems. Gujarati (2008 and 2011) suggests that we can either transform one variable or do WLS. I choose transform by transforming my dependent variable to (1/Y) like what this tells me. The problem is I don't understand about how to interpret $\hat{Y} = \frac{1}{b_0 + b_1x...
So I've read about imputation already, but what can I do when the data is categorical, where there is no mean or median? For example, if the categories are Male/Female. Would assigning missing entries randomly be okay? Or should I just go with the most common gender in the sample?
I did see the related question here but my question is more related to the actual explanation of the orthogonality itself. So the following design is orthogonal (this is a latin square to be precise): 1234 2341 3412 4123 As noted in one of the afore mentioned answers: "An experimental design is orthogonal if the effec...
Suppose the frequency distribution of radii of $n$ spheres is symmetric. Show that the frequency distribution of the volumes of these spheres is positively skew. I am trying to show this using Bowley's measure of skewness. Denoting the radius by $r(>0)$, we have $Q_3(r)-Q_2(r)=Q_2(r)-Q_1(r)$ where $Q_i$ denotes the $...
Suppose we have following objective function that we want to minimize: $$ \mathcal{L} = \frac{1}{2} \sum_{u}\sum_{j \in I(u)}((b_u + b_j + \mu + q_j^T(p_u + \lvert I(u)\rvert ^ {-\frac{1}{2}}\sum_{i \in I(u)}y_i)) - r_{u,j})^2 + \ldots $$ $u$ is set of users, $I(u)$ is the index of items rated by user $u$, $p_u$ is a v...
Suppose you need to give a talk about your final model for a machine learning project to the project partner. Take for example that you used a random forest model/neural network, where you cannot really interpret any coefficients. What can/should/should not/is great to present in such a talk? All i can think of is the ...
Could you please say I am right or wrong in the following exercise attached. Sorry for I couldn't type formula here.
I estimated an ARDL model of 6 variables. After several attempts (using different lags) to find a better estimate, I got a selected ARDL model using AIC as (1,1,0,0,1,2) while using SIC is ARDL (1,0,0,0,1,2). My questions are: Can I still use this model given these lag selections? ARDL (1,1,0,0,1,2) = AIC ARDL (1,0,0,...
Someone pointed out this puzzle in Kahneman's Thinking, Fast and Slow. I paraphrase. A game rewards participants based on how long it takes to obtain the first heads in a toss of a fair coin. If the first toss results in heads, then the player gets reward $r(1) = \$2$. If the first heads appears only in the second tos...
In his Introduction to this paper, Ferguson says that we can model an arbitrary density f(x) on the real line as the mixture of a countable number of normal distributions in the form: $f(x) = \sum_1^{\infty} p_i h(x|\mu_i,\sigma_i)$ with $h(x|\mu,\sigma)$ is the density of normal distribution, $N(\mu,\sigma^2)$. There...
Why do p-values and ks-test statistics decrease with increasing sample size? Take this Python code as an example: import numpy as np from scipy.stats import norm, ks_2samp np.random.seed(0) for n in [10, 100, 1000, 10000, 100000, 1000000]: x = norm(0, 4).rvs(n) y = norm(0, 4.1).rvs(n) print ks_2samp(x, y) The re...
I am not an expert in statistics but I am facing the following problem: I have a random variable that basically arrises as difference of count data. I have 67 points and they don't seem to be normally distributed. Nevertheless I would like to estimate the probability that the underlying random variable takes values lar...
I am collecting 20 Mid-IR spectra from 10 samples by taking two measurements for each sample. I want to create a prediction model using PLS. What would be the best way to split the data between training and test sets for cross-validation, while avoiding overly optimistic results because of the replicates? One idea is t...
It is a well-known fact that ML estimates are not efficient in the class of consistent, asymptotically normal estimates due to the existence of superefficient estimates. The right way to put it is that they are efficient in the class of extremum estimates. One of my professors told me that "in the class of extremum est...