instruction
stringlengths
9
38.7k
I was reading Andrew Ng's lecture notes on reinforcement learning and on page 3 he defines the value function: $$V^{\pi}(s) = E[R(s_0) + \gamma R(s_1)+\gamma^2 R(s_2) + ... |s_0 = s, \pi]$$ Which means the expected total pay off, given that we start on state s and execute policy $\pi$. However, in his footnotes he says...
Basically I have a function to efficiently sample one variable in my model that I would like PyMC to use, along with its normal samplers for everything else. Since I have this function I don't have a need to define a log likelihood for the variable either. Can I do this using the Stochastic class and making a random fu...
The question . I'm kinda a bit confused on how to make use of the information to answer the questions. I think I need to use the Bayesian Method to answer this question but I'm not sure if I'm right. would the prior density of the mean be $\mathcal{N}(738,13.4^2)$? Then what do I do with the $\mathcal{N}(692,42.5^2)$ ...
proc iml; call randseed(4545); * initialize the stream (like streaminit); x = J(5000,1,.); * pre-allocate space for random numbers; call randgen(x,'normal',0,1); * fill x with N(0,1) deviates; y = y + (x**2 - 3*x**3 + 5x < 1); p = y / 5000; * MEAN acts on each matrix column; se = sqrt(y*(1-y)/5000); * VAR, but n...
I am working on a machine learning + NLP project. The corpora is from a very specific domain. Someone tells me I need a language model for that specific domain. So I decide to build one myself since there's none yet. My questions are: What does a language model look like? Is it in the form of a bunch of n-gram words ...
My name is Hugh, and I'm a PhD student using generalised additive models to do some exploratory analysis. I'm not sure how to interpret the p-values that come from the MGCV package and wanted to check my understanding (I'm using version 1.7-29, and have consulted some of Simon Wood's documentation). I looked for othe...
I have two different models which estimate a continuous variable $X$ depending on N categorial covariates $V_i$. Is there a way to test if both models produce significantly different results? I could test for differences of their mean, median, variance, and distribution. However, how can I account for the categorial c...
We are using lavaan in R to calculate CFAs (confirmatory factor analyses) and SEMs (structural equation models). We now want to test whether two latent constructs can be assumed to be unrelated (discriminant validity). Refering to Fornell, C. & Larcker, D. F. (1981). Evaluating structural equation models with unobser...
Gradient Descent has a problem of getting stuck in Local Minima. We need to run gradient descent exponential times in order to find global minima. Can anybody tell me about any alternatives of gradient descent as applied in neural network learning, along with their pros and cons.
Let $X_1,\dots,X_n$ are i.i.d with distribution function $F$. Let $\hat F_n$ be its empirical distribution function, i.e., $$ \hat F_n(x)=\frac1n\sum_{i=1}^n1_{\{X_\le x\}}(x) $$ where $1_A(x)$ is the characteristic function. I am going to know the order of $$ T_n=\sum_{i=1}^n\left(\{\Phi^{-1}(\hat F_n(X_i))\}^2-\{\Ph...
I use four feature descriptors for five independent runs with each run randomly selecting the training set and testing set from the total labeled samples. SVM is the classifier. After acquiring the classification accuracy of each run for each descriptor, I get a accuracy matrix whose size is $5 \times 4$. Then I use th...
We have three years of data for online visits at a daily level. We want to forecast the daily visits for the next 90 days. What would be the best method to capture weekday seasonality , holiday seasons, and also the drift. Can this be successfully done in R? We are currently using R. We have considered ARIMA but it doe...
I have a large panel data set. Examination of a pooled OLS regression with Breusch Pagan showed heteroskedasticity with all model specifications. I consequently chose to use panel-corrected standard error parameter estimates (PCSE, after Beck and Katz, 1996). Nonetheless, I decided to test the robustness of my model ag...
I have 10 models analysing pupal developmental rates (DR) and developmental times (DT) depending on a number of factors: m1 <- lm(DR ~ population+sex+temperature+weight+population*temperature) m2 <- lm(DR ~ population+sex+population*sex) m3 <- lm(DR ~ population+sex+temperature+population*temperature) m4 <- gls(DR ~ po...
Suppose we have outcome variable Y and two predictors X1 and X2, where X1 and X2 sort of come from a type of category. For example, X1 is the relationship score with friends and X2 relationship score with family. Not the same, but they reflect some thing together (social relationship, in this case). I want to set up a ...
I was wondering if there is a way to determine the significance of a covariance? So, if have two vectors of returns, and then calculate the covariance, how do I determine if the sample covariance is significantly different from zero? A professor at the university told me to look for the confidence interval? Can use the...
Suppose I have a 2D point dataset and I want to detect the directions of all the local maxima's of variance in the data, for example: PCA does not help in this situation as it is an orthogonal decomposition and therefore cannot detect both the lines I indicated in blue, rather its output may look like the one shown by...
I have a set of samples with two labels red and black. I can build a logistic regression model to predict the label colour. Once a model is built, I would like to test whether it is overfitting or not. Normally, I will set aside, say, 30% of my sample as out-of sample. Build a logistic regression model on the 70% devel...
I am going through this paper Orthogonal series density estimation. I have a doubt in following Assume that the random variable X is supported on [0, 1], that is, P(X ∈ [0, 1]) = 1, and that the probability density f of X is square integrable. Then the density may be approximated with any wished accuracy by a partial s...
According to some articles (e.g. here) correlation is just a centered version of cosine similarity. I use the following code to calculate the cosine similarity matrix of the column vectors of a matrix X (slightly modified from here): cos.sim <- function(ix) { A = X[,ix[1]] B = X[,ix[2]] return(t(A)%*%B/sqrt(sum(...
I wish to measure the "diversity" of a group of objects. Right now I'm using Euclidean distance to compute the similarity matrix between all the objects in the group. I'm searching for a measure of this diversity to decide if replacing an element of this matrix with a new one will make the group more or less homogeneou...
Following the wiki page and the form of the likelihood function for a generalized Tobit model presented here, I am thinking about applying a model of this type to a problem I'm facing but need some help in the interpretation. I have a variable $Y$ which I assume to linearly depend on $X$ via a parameter $\beta$. My mo...
I am creating a testing dashboard for displaying the results of our website testing. We run A/B tests and Multivariate tests. My testing code is sound (the gathering of the raw conversion data), but now I am working on finishing out our results reporting admin dashboard. (before we used a very old version of JMP to ana...
When you're fitting a model $y=f(x)$ to data (${x_i, y_i}$) with errorbars on both the independent ($x$) and response ($y$) variables, it's standard that you can define an 'effective variance' when calculating the chi-squared $$(\delta y_i)^2 + \left(\delta x_i \left(\frac{df}{dx}\right)_{x=x_i} \right)^2$$ Here the di...
Assume you have much more variables than samples and you want to reduce the number of variables (because you think some of them are redundant). The natural approach to do this is PCA, but is it possible to apply clustering algorithms where you consider the features as samples and try to regroup them? If so: is there a ...
I have a data set which has data about 1 million people. Data about each person consists of a 'Score' and about 100 features (each of which refers to some characteristic of the person - example - age, location, ethnicity, level of education, access to internet, etc. etc. ) I want to find the clusters/pockets within thi...
I'd like to compare different kinds of imputation techniques, i.e. methods which allow to fill missing data fields in a data frame. For now, I'm only using the R package mice, which uses multiple imputation with chained equations. Below, I'm describing the steps I am following, and I'd appreciate comments if this is a ...
We have three years of data for online visits at a daily level. We want to forecast the daily visits for the next 90 days. What would be the best method to capture weekday seasonality , holiday seasons, and also the drift. Can this be successfully done in R? We are currently using R. We have considered ARIMA but it doe...
I trained two svms (LIBSVM) with 15451 samples after I did a 10-fold cross-validation and found the best parameter values for gamma and C (RBF kernel). In one svm I used just 1 feature and in the second an additional one (to see whether this additional is improving prediction). After CV I have am accuracy of 75 % (SVM ...
I have two variables, both percentages but have been converted to decimal numbers, and one variable ranges from roughly 15-30 percent and the other ranges from 55-70 percent. The lower range is my response, dependent variable. The residuals are really high but should have some correlation. Would scaling one of the vari...
I was reading Andrew Ng's lecture notes on reinforcement learning, and I was trying to understand why policy iteration converged to the optimal value function $V^*$ and optimum policy $\pi^*$. Recall policy iteration is: $ \text{Initialize $\pi$ randomly} \\ \text{Repeat}\{\\ \quad Let \ V := V^{\pi} \text{ \\for t...
How are the results of the Spearman-Brown prophecy formula affected by having test questions of differing difficulties or raters who are easy or hard graders. One respected text says the S-B is affected, but does not give details. (See quote below.) Guion, R. M (2011). Assessment, Measurement, And Prediction For Per...
I meet this real life problem. The simplified version is this: Assuming I have 10000 apples, either good or bad. What is the sample size if I want to be 95% sure that all the apples are good?
I am hoping someone can point me in the right direction with this problem I am having. I am trying to cluster geographical areas (basically using latitude and longitude as the zip code centroid) which have the highest number of deaths in a given state. But, the added constraint is that those clustered areas have to be ...
I'm trying to determine what constitutes a family of hypotheses when measuring multiple response variables. In particular I have an A/B type test where I'm comparing several marketing campaigns against a baseline campaign. For each campaign I want to measure increase in revenue, clicks, and purchases. What I'm not sure...
suppose $X$ has an F distribution with $\nu_1$ and $\nu_2$ degrees of freedom . it is well known that as $\nu_2$ approaches infinity. how can show limiting distribution of $Y=\nu_1X$ is chi-square with $\nu_1$ degrees of freedom
I have samples from normal distributions with the same mean but different standard deviations. I know the corresponding standard deviation for each sample. Is there a way to more accurately estimate mean other than taking an average over all the samples?
I'm working on an algorithm which needs to calculate the size of a set generated by the intersections of at least 2 sets. More specifically: $$ z = \left |A_0 \cap \ldots \cap A_n \right | $$ The sets that are intersected are generated by SQL queries, and in an effort to keep things fast, I get a count of each query ah...
This isn't a strictly stats question--I can read all the textbooks about ANOVA assumptions--I'm trying to figure out how actual working analysts handle data that doesn't quite meet the assumptions. I've gone through a lot of questions on this site looking for answers and I keep finding posts about when not to use ANOVA...
I'm trying to figure out what next steps to take. I created a model and ran OLS on a very large sample of data (over 400000 observations) and got an R-squared value of 0.80. So the model fit seems really good. However, I ran a Ramsey RESET test and its test statistic strongly suggested that there were omitted variab...
I am studying Sethuraman's paper on the Dirichlet process and having difficulty showing a lemma. He states: Let $\boldsymbol\gamma=(\gamma_1,...\gamma_k)$ and $\gamma=\sum_j \gamma_j$ and let $\beta_j=\frac{\gamma_j}{\gamma}$, $j=1,2,...,k$. Then, $\sum_j \beta_j\mathcal{D}_{\boldsymbol\gamma+e_j}=\mathcal{D}_{\boldsy...
Say we fitted quantile regression models with a set of quantiles between 0 and 1 and a linear regression (i.e. mean regression) to a same dataset with the same set of covariates. In terms of the estimate for regression coefficient for a specific covariate, say x, we will get nine estimates from the quantile regression ...
I have a survival model with patients nested in hospitals that includes a random-effect for the hospitals. The random effect is gamma-distributed, and I am trying to report the 'relevance' of this term on a scale that is easily understood. I have found the following references which use the Median Hazard Ratio (a bit l...
I am trying again to explain my problem, and I have more concrete results. I have tried every potentially relevant test I can find, and none seem to work quite right. The question is illustrated here: The actual data are protein sequences. I have two categories of specimens, shown by the black and grey circles, and ma...
My dataset is not quite large enough to be split into training and testing sets, so I am using bootstrapped optimism to account for overfitting when reporting model performance. The cases in my data set have a low prevalence, such that in some iterations of sampling they're missed. To account for this I've increased th...
What's the formula for a equation that can produce the continuum from the red to green lines in this graph below? I can easily get anywhere from the green line to the blue with $$y = B_0 + B_1x + B_2x^3$$ but getting anywhere from the blue line to the red line requires an inverse of the cube or x^(1/3) which doesn't wo...
With given data, I need a line of slope 1 with minimized SSE. Anyone know how I could do this in R or Excel or another program? If you could tell me how to do it mathematically that might help. Thanks.
I'm trying to do this project that creates a sort of "universal score" across a set of games - if I play a game that gives me a certain score, and I have a friend who plays a different game and has a certain score in that game, how can I tell whether I am higher or lower ranked than him without playing his game? What I...
I ran ind. t-test and find that no significant different for the two means. So, does this meant discouraging? Mean for A is higher than B, so i did planned to conclude that A is actually favoring compared to B. However, in my current state with no significant different btw the two means, what can i conclude from the di...
I'm running a multiple linear regression on a set of sports data. When I run the regression on one season, which has 380 data points and which I thought was a fair amount, I get quite a high p-value on one of my independent variables. However, when I run the regression on all my data points (I have more than 3000 data ...
This question occurred to me when I sat in a public lecture on unsolved questions in mathematics. It is well known that there are still many unsolved mathematical questions out there. It made me thinking what the unsolved problems in statistics are. After spending some time on googleing this topic, I do not think there...
I would like to calculate a compound scores of several normal distributed continues standardized (z-score) variables. Some of these measures are correlated, some are not. Hence, I would like to take into account to correlation among them. If I understand correctly, the Mahalanobis distance (MD) gives me the compound di...
I am looking to build a regression model to understand the impact of signing up on a website with sales. I took a random 200k sample of active customers (out of the 30 million or so).. it turns out none of them signed up on the website. So then, I took the population of people who signed up on the website in a given mo...
I came across an interesting little quirk when I was coding up a hypothesis test in Python. I was wondering why very time I tested some values for normalcy using the Anderson–Darling test, I was getting a positive. Turns out my loop was just testing over one single value (oops)! But then I got to thinking, I wonde...
I have a set of Mechanical Turk-like workers who have been paid $0.25 per task to complete tasks from a finite, but very large, pool of tasks, and I have data on how many tasks they've completed and how accurately/quickly they've completed them for the last year. On April 1, I dropped the price paid to the workers per...
libsvm 3.18 Features: 10 I have used following, parameter range: C-parameters: 2^-3 , 2^-2 .. 2^11, g-parameters: 2^-11 , 2^-10 .. 2^-3, with 10-fold cross validation(-v 10). Maximum accuracy(81.8646%) at c-value 2048 and g-value 0.125. When I used default c and g: 80.9531% accuracy is noticed. Question 1: If high ...
I need to generate binomial random numbers: For example, consider binomial random numbers. A binomial random number is the number of heads in N tosses of a coin with probability p of a heads on any single toss. If you generate N uniform random numbers on the interval (0,1) and count the number less than p, then ...
I want to solve an equation with Lagrange multiplier. I know elimination method but I need to know this method. I wonder if anyone let me know how to estimate $\mu$ and 3 unknown variables ($\hat A$) algebraically . $n.\hat\mu$ + $n_1\hat A_1$ + $n_2\hat A_2$ + $n_3 \hat A_3$ + $0 \lambda$ = $y_{..}$ $n_1\hat\mu$ + $...
I have the following data set: | Scenario 1 | Scenario 2 | |Trial 1|Trial 2| Trial 3|Trial 1|Trial 2| Trial 3| ------------------------------------------------------------------- S1 | ... Condition 1 S2 | ... S3 | ----------------...
I am trying to provide help to an NGO in the non-profit sector that is running a disease screening program: The program visits thousands of villages a year. A village has a population (on average around 800), with an unknown number of infected individuals. Each village is visited by the NGO for mass screening. For a ...
I have conducted a binary logistic regression (with 7 predictor variables) in R using "year" as a random effect, i.e. a generalized linear mixed model (GLMM). For a few of the predictor variables, I would now like to find the inflection point, i.e. the value of the predictor variable for which the probability of the re...
I'm afraid this is an extremely simple question, but I didn't understand completely why if both $O_1$ and $O_2$ can be marginalised over $R$ the following holds: $ P(O_2 = o_i | O_1 = o_j) = \sum_r P(O_2 = o_i | R = r) P(R = r | O_1 = o_j)$ Thanks
I have data to fit a one-way ANOVA model to categorical data. I used a simple model first, getting significant coefficients, but with an $R^2$ of 0.2. I then tried a log model and got more significant coefficients, but the $R^2$ is still only 0.3. Is this normal for categorical data? Are there any other methods I shoul...
I wanted to run a quick and easy (or so I thought) regression on some data I have but now I am starting to doubt whether or not the regression makes any sense. I have seen some similar questions but they don't really answer what I want to know. I want to run an ordered probit/logit with the dependent variable having fi...
Initially we have this regression: $$ \text{hourly wage} = 12.69 + 5.44\text{CollegeEducation} - 2.64\text{Female} $$ with standard errors of $0.21$ on $\text{CollegeEducation}$ and $0.20$ on $\text{Female}$. The variable $\text{Age}$ is added to the regression, which has a coefficient $0.29$, but the standards errors ...
I analyze a dataset consisting of responses to two conditions with a multiple regression analysis. I dummy code the two conditions to retrieve the contribution of each of them to the data. Up to here, no problem, I know what I am doing. Second, I want to check that the difference between the two conditions (Co1 and Co2...
In Excel, if I get a value that is less than alpha (i.e. I get a value near zero) for the CHISQ.TEST function, does this mean that the my observed data follows the expected distribution or is it the other way around?
What makes the results differ for fixed-effects models vis-à-vis random effects models? The Cochrane Collaboration's website indicated that two models can produce different results for a meta analysis. I would like to understand this point better.
Suppose that $X_1 ,X_2,...X_N$ are independent identically distributed positive random variables. How to find the variance of $\frac{X_i}{\sum\limits_{j=1}^n X_j}$, $i \in 1, 2, \ldots, n$?
I am a newbie in statistics. I have two columns of numerical data of unequal length, motion data. I need difference of the two columns, by shortening the longer column. 766.5 543.8 764.9 544.3 764.0 544.0 765.5 543.7 764.0 543.2 764.4 765.3 765.8 Now I want a third column of data which is the subtraction of column tw...
When conducting a GLM, why do I have to square my independent value in order to model an unimodal distribution? for example (Matlab code) %GLM [logit_rain,dev,stats] = glmfit([(rain) (rain).^2 ],[dependend_variable],'binomial','logit');
I've hit an interesting general problem and cannot work it out. I would be grateful for any pointers: The problem: 5 players are randomly assigned a number x=1-5. A player compares his number with another random player. The player with the lower score leaves and the player with the higher score goes into the next rou...
I'm trying to understand what is happening in my Poisson regression. I have the following variables: Dependent variable: transactions(number of transactions(continuous)). Independent variables: education(years of education (continuous)),sex(binary),health(health status), income(continuous) other than salary, loan(binar...
My goal is to find risk factors for a disease. I think that a malnutrition is a risk factor for this disease. I have 5 variables that indicate the frequencies of eaten meals (lets say per a fixed period, e.g. every month). I put the variables in a logistic regression model, but none of them was significant. My questi...
My question is quite elementary but I need help understanding the basic concepts. In the following example from the Mathworks documentation page of the princomp function load hald; [pc,score,latent,tsquare] = princomp(ingredients); pc,latent we get the following values for: pc = -0.0678 -0.6460 0.5673 0.50...
DESIGN: I have 4 laboratory mice (= 4 subjects). My factor is a condition with 5 levels (control condition and 4 testing conditions): [gr0], [gr1], [gr2], [gr3], [gr4]. My response variable is concentration (measured in pg/mL) of 5 cytokines. ISSUE: When we analysed my results we faced a problem of big variation among ...
I am having coding the following in R I want to pick 10 random numbers from a standard normal distribution whose sum equals 5. I have the following code so far (below), but this returns "numeric(0)" when the random numbers don't satisfy the condition. What I want is to choose 10 random numbers that do satisfy this cond...
I have the following python dataframe (5 rows out of nearly 15,000): N0_YLDF MAT MAP 0 6.286333 11.669069 548.8765 1 6.317000 11.669069 548.8765 2 6.324889 11.516454 531.5035 3 6.320667 11.516454 531.5035 4 6.325556 11.516454 531.5035 I run OLS using following formula: N0_YLDF ~ MAT + MA...
I have a two column table consisting of: date, user_id. I'd like to visualize a grid with date along the x axis, and user_id along the y. If date, user_id exists, I'd like to show a grid with a color, say green. If date, user_id does not exist, I'd like to show a grid in white. Bonus points if date, user_id shows up mu...
I am confused about the output I am getting for a neural network analysis. What I am trying to do is take in the features from features.csv and use them to create a neural network to predict the variable Murder.per.100.000. The first column is a label for each observation so I exclude that. The problem I am having is ...
suppose joint probability density function of $X,Y$ is $$f(x,y)=\frac{1}{2}\\ x>0 ,y>0,x+y<2$$how can i find probability density function $U=Y-X$
My time series professor passed a comment today, that running this model implies losing k+1 observations. I think I have understood how the observations are wasted, but I am notorious for falsely believing that I have understood something(self-diagnosed). A simple explanation would be appreciated!
This question is derived from this one about the ".632 Rule." I am writing with particular reference to user603's answer/notation to the extent it simplifies matters. That answer begins with a sample of size $n,$ with replacement, from $n$ distinct items in collection (call) it N. The probability that the $i^{th}$ sam...
In this community wiki page a twice-upvoted comment asserted by @probabilityislogic asserted that "Multi-level modelling is definitely easier for bayesian, especially conceptually." Is that true, and if so/not why?
I want to compare 6 designs of spoons (D1,D2,D3,D4,D5,D6) in 20 children (blocks).I also want to see whether holding the spoon in right or left hand affects food-pinching response(number of M&M's picked and placed in cup). I have dataset with response % noted for each design type on all of the 20 children, and the inf...
I want to create two random variables $X \sim N(0,1)$ and $Y \sim N(0,1)$ that satisfy $E(X,Y)=0.5 $ That is I want to create $Z=(X,Y)^\top $ with a joint bivariate normal distribution $ Z \sim N\left( \left(\begin{array}{c} 0\\ 0 \end{array}\right) , \left(\begin{array}{cc} 1 & 0.5\\ 0.5 & 1 \end{array}\right) \right)...
Consider the ARMA(2,1) time series $$ x_t−0.1x_{t−1}−0.06x_{t−2}=w_t−0.5w_{t−1} , $$ where $w_t$ is white noise with mean zero and variance $\sigma^2_w$. Find the expectation of $$ (x_t−0.1x_{t−1}−0.06x_{t−2})x_{t−h}, \quad h=0,1,... $$ and $$ (w_t−0.5w_{t−1})x_{t−h}, \quad h=0,1,... $$ and show how this can be used to...
I am a medical scientist doing observer agreement analysis on some very simple data using Cohen's Kappa. I have 2 observers. They score a bunch of scans on a 3 point scale for a pattern called honeycombing (definitely present, possibly present, absent). They also score for emphysema on the same 3 point scale. It is com...
My main field is machine learning and 90 % of what I do is to try to improve the prediction error. Recently I have started to work with a medical group. They are mainly doctors so I do not know how much I can trust their statistical knowledge. What they commonly do is to fit logistic regression and without any consid...
Does the plotted data look like a garch model? If it does, with which test, I can support this claim [1] 0.187415738 0.477868164 0.295777631 0.575167970 0.469157108 [6] 0.328171826 1.292894322 -0.847711535 0.392077876 0.116540719 [11] 0.314835442 -0.131731938 0.090753214 0.326724648 -0.50...
How does the stepwise regression method work for both direction in R with the step() function. I would think that one variable will be placed into the model and then another that will improve the measuring criteria and the significance of the older variable gets assessed. If the older variable's coefficient is not sign...
What is the critical p-value used by the step() function in R for stepwise regression? I assume it is 0.15, but is my assumption correct? How can I change the critical p-value?
I am trying to plot an ideal ROC plot as predicted by Signal Detection Theory. Here are the formulas I try to plot: hi = Φ((d′−ci)/σ) (3) fi = Φ(−ci) (4)  where d′ and σ are the mean and standard deviation of strength for old items, and ci is the criterial bound for the ith condition. The function Φ is the cumulati...
I ran a Confirmatory Factor Analysis (CFA) in Amos and obtained a model with high covariance between the factors. James described this covariance in his video as alarming. What can I do to tackle this problem? All my factor loadings are high and it seems to be a good model, except that I have high covariance between th...
Does someone know how the "best" split at a node is determined in the MATLAB RF package? I have more than two classes, and just wondered how it is working. Is the package using the Gini impurity? (Well I would not know exactly how that works, but at least I would know then what to google for.)
Suppose you have a new algorithm that you want to publish. Are there any best practices and methodologies you usually consider in order to test the robustness and performance of a new method? The case is a novel classification algorithm of matrices composed by observations x features (e.g. a gene expression matrix).
Let $X$ be any distribution with defined mean, $\mu$, and standard deviation, $\sigma$. The central limit theorem says that $$ \sqrt{n}\frac{\bar{X} - \mu}{\sigma} $$ converges in distribution to a standard normal distribution. If we replace $\sigma$ by the sample standard deviation $S$, is there a theorem stating ...
The mean squared error of an estimator $\hat{\theta}$ with respect to an unknown parameter $\theta$ is defined as $$ MSE(\hat{\theta})=E[(\hat{\theta}-\theta)^{2}]. $$ It is well known that there is the following bias-variance decomposition: $$ MSE(\hat{\theta})=Var(\hat{\theta})+\left(Bias(\hat{\theta},\theta)\right...
The plots show the output of NbClust(). By looking at the plot, is that correct to say that k=5 is the optimal number of clusters? > nc <- NbClust(m3, distance="euclidean", min.nc=2, max.nc=20, + method="kmeans", index="dindex") [1] "*** : The D index is a graphical method of determining the number of cl...
This question is more about learning statistics than about statistics per se, so please suggest another forum if this one is not appropriate. I found this textbook (ISLR by James, Witten, Hastie, and Tibshirani) online and it seems like a great resource. I read a few chapters and then realized that I wasn't getting go...