instruction
stringlengths
9
38.7k
That $X-Y$ should be symmetrically distributed for iid $X,Y$ is obvious simply by interchanging the roles of $X$ and $Y$ -- informally we might argue Let $Z=X-Y$ have distribution $F$. The roles of which observation was called $X$ and which $Y$ is arbitrary; therefore $-Z=Y-X$ must have the same distribution. If $-Z$ ...
My data looks like this: I want to see how weight is distributed. How do I do this? This just gives me a weird line: plot(nc['weight']) That isn't right. Any suggestions? I just want to see how the data is distributed.
I am working on a homework problem from the book Applied Linear Statistical Models , specifically problem 2.7b (Page 114 of the linked pdf) 2.7. Refer to Plastic hardness Problem 1.22. b) The plastic manufacturer has stated that the mean hardness should increase by 2 Brinell units per hour. Conduct a two-sided test to...
I'm trying to choose a district metric that falls between 0 to 1 and lets me compare the distance between a uniform probability distribution and any given probability distribution (could be random, could be uniform, could have all probability mass at one value, etc.). How I've been computing distance currently is by ba...
I needed assistance with the following proof. I truly appreciate your assistance. It is the final line following "Prove that" that I don't understand. Here we go: We generate a sample of n=50 observations from a model using uniformly spaced design points: t${}_{i}$=(2i-1)/100, i= 1, 2... 50. normally distributed ran...
I have the following plot in time series and would like to extrapolate it to derive a value in X[n+20], for instance. I tried poly fitting it but extrapolation does come out correct that way. Any proposed approaches? The data comes from blood glucose after a meal overtime, it usually starts at some value, say 90mg/dl...
My question is about the inverse of covariance matrix that is used in CCA (canonical correlation analysis). Since the answer(i.e. the weights) to the CCA problem is the eigen vector corresponding to the maximum eigenvalue of the matrix A=$Cov_{XX}^{-1}$ * $Cov_{XY}$* $Cov_{YY}^{-1}$ *$Cov_{YX}$, I need the $Cov_{XX}$ ...
An answer to a previous question on how to manually calculate the MLE for beta coefficients from a logistic regression was given the below answer (see previous question here: How to manually calculate the intercept and coefficient in logistic regression). Take for example, the crosstab bellow shows how many males/fema...
In our research we're conducting now, the dependent variables are well-being (self-esteem, self-worth, and mental health), our independent variables are the social media use (number of social media accounts, time spent using social media, amount of followings). We're supposed to have self-rated time, by rating how much...
This question is purely about a single convolutional layer in a neural network - not about the number of layers. Aside from computational time what are the downsides of increasing the number of convolutional filters in a given layer? My intuition would be the risk of overfitting the data - for a fixed training data siz...
LMMSE approach estimates $x$ as $$\hat{x} = \mathbb{E}[xz^H]\mathbb{E}[zz^H]^{-1}z$$ where $z$ is an observation and a function of $x$. However, $\hat{x}$ can be interpreted as a projection of $x$ onto $z$: $$\hat{x} = Proj(x|z) = \langle x, z \cdot (||z||_2)^{-1} \rangle (||z||_2)^{-1} \cdot z$$ and since $||z||_2^2...
I am working on a particular distribution whose inverse cdf does not exist in closed form. The cdf of the distribution is given by $$F(x; d, m, p, \alpha, \beta) = \frac{1-(1+x^m)^{-d} \exp(-\beta x^\alpha)}{1-p(1+x^m)^{-d} \exp(-\beta x^\alpha)}$$ for strictly positive $m, d, \alpha, \beta$ and $0\lt p \lt 1$. My prob...
In linear measurement with noise, we denote the measurement as $$y = Ax+v$$ where $x$ is the measure we want to estimate, $y$ is the measurement, $A$ characterizes some sensor, and $v$ is sensor noise. We assume that $$x \sim \mathcal{N}(\bar{x}, \Sigma_x), v \sim \mathcal{N}(\bar{v}, \Sigma_v)$$ and that $x$ and $v$ ...
I was going through a brief tutorial on "transfer learning" available here. In this blog, a distinction has been made between training the initial layers and training the dense layers of a neural network. The author highlights that when the data similarity is less between two domains, it is better to fine-tune the lowe...
I have a regression model and used some independent variables to estimate dependent variables.Now I am trying to evaluate the model performance by using percentage bias (p_bias) and Model efficiency (ME). Now I am confused here: In my result percentage bias is 146 while I am getting ME of 4.3. Is is reasonable to have ...
I'm reading the "Introduction to Statistical Learning" book and I have some questions regarding the book. The first one is the derivation of the least squares equation where the author talks about the residual, which effectively is the difference between the $i$-th observed response and the $i$-th response value that ...
I am using methods from R forecast package to forecast revenue for 20,000 sectors. How to choose best time series model for each sector at run time?
I am reading about smoothing methods for language model ( I am working on unigram model). If you are not familiar with unigram model, it is closely related to multinomial distribution (with the multinomial coefficient ignored in most cases ). We want to model unigram with a parameter vector $\theta$. It is well-known t...
This multi-part question is motivated by the often used customer satisfaction measure "Net Promoter Score". I understand there is already a much liked Q&A for the margin of error for NPS however, this uses a normal approximation (please correct if wrong) so I'm looking for a more general treatment of NPS and hopefully ...
When I do 4 comparisons (namely 4 groups of data) using Fisher test, do I have to correct the results for multiple comparisons (therefore reducing the accepted p for significance to everything below 0.0125)? Is it something that I am required to do, or IN PARTICULAR WITH THIS TEST, is there a way to avoid it?
I have a 3-way interaction model as follows: Y = A + B + C + A*B + A*C + B*C + A*B*C A is a dummy and B and C are centred continuous variables. I am mainly interested in the parameters for BC and B. The interpretation of these parameters depends on the inclusion of AB*C and all 2-way interactions. I am using SAS and P...
This data is repeated measures data and groups are included.(Mixed Design) I want to Non-parametric test between Group effect (Kruskal-Wallis Test) and Within effect(Friedman Test) separatedly. (Don't want Parametric Test. and Friedman Test is testing Later.) Like testing 'difference between Grand mean effect' & 'diffe...
I am taking $N$ i.i.d. samples ${y}_{1},{y}_{2},\dots,{y}_{N}$ from the following distribution: $f\left( y,\theta \right) =\begin{cases} \frac { { y }^{ 2 } }{ 2{ \theta }^{ 3 } } { e }^{ -\frac { y }{ \theta } }, & y\ge 0 \\ 0, & y<0 \end{cases}$ where $\theta > 0$. I have computed its Maximum Likelihood estimator...
I’m taking a first graduate course on Time Series Econometrics and this question regarding ARMA processes has come to my mind. I see that the ability to represent AR processes as MA or the converse has theoretical advantages when trying to establish some results and this holds true even with ARMA models. However, from ...
i am a scientific management student. i am studying about the estimate about surgery time. this is a paper by Norman T. J. Bailey. the paper is<< A Study of Queues and Appointment Systems in Hospital Out-Patient Departments, with Special Reference to Waiting-Times >> which illustrate the Bailey rule but due to my lack ...
I've been learning about Markov Chains for a reading course I'm doing and I've become stuck on some of the notes I was given. It defines a discrete time queuing chain for a server by $$X_{t+1}=\begin{cases} X_{t}+Y_{t+1}-1 & , X_{t}>0\\Y_{t+1} &, X_{t}=0\end{cases}$$ where $X_{t}$ is the number of job requests in the q...
I am trying to fit some data using python scipy.fit with the gamma distribution. This returns three parameters (alpha, loc, beta). I would like to use these parameters to generate some data in excel, but the gamma function in excel only take values of alpha and beta. Could someone explain how the "loc" parameter is rel...
I am working on a feature extraction scheme and finally I need to report the correct classification rate (CCR) in a table with confusion matrix. I made a Monte Carlo iteration procedure to see the result of CCR for our algorithm (means with different set of cross validation). In fact, there is no big tolerance among al...
Let's say I am interested in whether a certain type of objects "X" possess a certain fancy property. I devised a test for whether each individual object X has this property, and this test produces a p-value for each one object. The test itself is a bit convoluted, but I verified on dummy objects that it detects the eff...
Multi-relational data expressed in terms of a 3 order tensor, has been used to perform statistical relational learning (SRL) on heterogeneous networks using tensor factorization (eg. RESCAL). The tensor representation can be expressed as $N \times N \times R$, where $N$ is the set of nodes in the graph, and $R$ is the ...
I have the following summary of data point values: Under 600: 38% 601-800: 51% Over 801: 11% Assuming a normal distribution of values, how can I calculate the mean? Note: it doesn't have to be precise, just a rough estimation to the nearest 10 would be sufficient. Many thanks!
In a study, we compared, using the Student t-test (data are normal), the means of a protein expression for 2 groups of patients (n=100). We found that the expression was statistically different (p-value < 0.005). One reviewer of our work is asking if the ages of the patients, in the two different groups, can affect th...
I know that the very similar question has been asked many times, but I hope that somebody can explain the mechanics in simple terms. Let's say there is a population of N=1000 people. A certain share p of them are honest, and 1-p are liars. This share is unknown to the individuals, but each individual has a prior belief...
Apart from the Granger test for Granger causality, which tests whether one time series contains information to help predict the other time series, are there any methods to test if on time series lags/leads another most of the time?
A circle with a random radius R∼Unif(0,1) is generated. Let A be its area.(a) Find the mean and variance of A, without first finding the CDF or PDF of A.(b) Find the CDF and PDF of A. So, quite obviously, we know the equation of a circle as A = ${\pi}r^2$. If we are given a uniform distribution, can we not just find...
What would be the approach needed for creating a text generator. Most of the tutorials such https://chunml.github.io/ChunML.github.io/project/Creating-Text-Generator-Using-Recurrent-Neural-Network/ follow using characters instead of words. Could someone tell me what are the tradeoffs using words vs characters. I belie...
I'm in AP Statistics, an introductory college course taught at high school. We learned that if a residual plot has a pattern, we must re-express the data until the residual plot is scattered. This is because a scattered residual plot indicates a linear correlation. But why is this the case? For example, if all the dat...
In Kernel Principal Component Analysis (KPCA), data comes in as a $n\times d$ matrix $X$ where $n$ is the number of observations and $d$ is the number of features. The process has been explained in this answer. After the kernel matrix is developed, an scaling process is taken place as explained by this post. Based on ...
What is better to use for calculating the score of a season of television: the mean or the median? I will say from the outset that my question may be somewhat subjective. That being said, my question is also based on calculating central tendency so I posted it here. A little bit of background: I enjoy watching episodes...
Two random variables such as $X_{1}, X_{2},...,X_{n}$ be iid's has pdf $\theta x^{\theta-1}$ where $0<x<1$ and $Y_{1}, Y_{2},...,Y_{n}$ be iid discrete random variables have power series distribution $p(Y=y)=\frac{\gamma(y)\theta^y}{c(\theta)}$ where $y=0,1,2,...$. Assume $X$'s and $Y$'s are independent. I am trying t...
According to English wikipedia, there are Statistical noise and Random noise (e.g., white noise). However, I've never seen definitions of what statistical noise is. So, what is the difference if any? Does statistics have it's own noise or is it just an informal term, depending on the usage context?
I've seen multiple explanations of comparisons of heteroscedasticity tests, but am still confused. (Part of the problem is that some of it is quite technical and has lost me.) I've collected a few heteroscedasticity test functions in R and compared the results, some of which baffle me. Here's a graph of a linear regres...
Scenario: You are given a standard deck of cards and told to draw one card at a time from the deck and record the color of that card. Continue until all the cards have been drawn without replacing any cards. Let the random variable $Z$ represent the number of times that you see a red card followed by a black card. Ques...
I would like to know how to interpret the coefficient on an interaction term as a percentage change when the dependent variable is logged. I provide an example below using the mtcars data set in R where am is binary and wt is continuous. $\ln(mpg)= \beta_0 + \beta_1\cdot wt + \beta_2\cdot am + \beta_3\cdot wt\cdot am$...
Application/Desire : I want to be able to cluster word2vec vectors using density based clustering algorithms (say dbscan/hdbscan; due to too much noise in data) using python or R. I cannot compute pairwise distance b/w vectors as the size is too big (>2.5 million vocab). DBSCAN/HDBSCAN in both R and python does not dir...
Lets say I have age as the independent variable; education (1=college; 2=masters; 3=phd) and employment (1=unemployed; 2=part-time; 3=full-time) are the dependent variables. If I was trying to check for a non-linear relationship between this single continuous independent variable and multiple ordinal dependent variable...
I have a data set of twins, which means that my data has dependent observations. Each family is a cluster that has two observations inside (or less in some cases with missing values). I want to do a CFA. Now, because my observed variables have only 5 levels and are not normally distributed, I use the 'DWLS' estimator a...
Are there specific conditions under which the following is true? E.g., certain distributions, positive RV? $$\mathbb{E}\left[\dfrac{1}{\sum X_{i}}\right] = \dfrac{1}{\mathbb{E}\left[\sum X_{i}\right]}$$
Part of my project requires that I do some sampling and although I can find some answers, i find my questions to be rather basic ( like sampling from a truncated normal or sampling from a marginal distribution). I could find answers here, but I feel that it should be easy to find an answer to such questions in a book, ...
I was wondering if anyone can point me to anywhere or in the right direction. Which approach is the best for tackling a nested classification problem. So we want to classify species of animal say etc. We have split this into three layers - cellular level, organ level, organism level. So we have different real world tes...
The correlation of the imputed values under regression imputation is always equal to 1,since the first step in regression imputation involves building a model from the observed data,then predictions for the incomplete cases are calculated under the fitted model, and serve as replacements for the missing data,hence the...
My son asked me this, and so far I have failed to answer it... To complete a task a player must cover nine stepping stones to reach the opposite bank of a river. To be clear, the tenth step is onto the opposite bank, and that is the end. On each go, the player takes a number of steps, with equal likelihood, from 1 up t...
In Finding scientific topics (PNAS 2004) the authors derive the (marginalized) posterior distribution of topic assignments given the observed word and arrive at equation (4). Then, immediately after, they write that this is intractable to compute by brute force since: Unfortunately, this distribution cannot be compute...
Here's what I've learned about general test problems: Let $X_1,\ldots X_n$ be random variables whose distributions depend on a parameter $\theta$ in some parameter space $\Theta.$ A general test problem is of the form $$ H_0: \theta\in \Theta_0, H_1: \theta\in \Theta_1, $$ where $\Theta_0, \Theta_1 \subset \Theta....
I would like to simulate a dataset to perform simulations with - I would like to set a specific P value a priori and not perse the beta-coefficient, so that I can do follow-up simulations. So taking the following example of https://stats.stackexchange.com/a/46525/40998 , is it possible somehow to create a random datas...
Given a uniformly distributed sample of data, It's needed to sub-sample out the points in a Normal distribution fashion, i.e. more around mean and sparser as we move out. What could be the steps?
I have three sets of measurements of the same samples - one 'reference' case, and two 'test' cases (Test 1 and Test 2). The residuals are non-parametric, so I am comparing each test case to the reference using a Wilcoxon test. I'm using a paired test because my ultimate goal is to find out which test case is most simil...
Why do you have to define a likelihood function then say you are maximising the likelihood function? Why can't you just maximize $p(x|\theta)$, which is an expression in $\theta$ ? What is technically wrong with doing that?
I have some data which contains the mean values from some distribution. Each value also has its standard error. Now I want to re-average those values. Which it will be just the sum of the mean values divided by the number of them, but I wonder how to treat the standard error associated? For example, if I have the foll...
I know what the probability mass function of a multinomial logit model is. However, I do not know what the probability mass function of an individual observation i, $f(y_i|x_i)$, is for a multinomial logit model.
I have only summary statistics for each state in the United States. I have the mean and median prices for each state and that’s it. How can I estimate an “overall” median price for the nation? I understand whatever I calculate won’t be a “true” median due to the lack of raw data, but I still need a number. Can I some...
For a SVM with soft margin, we want to minimize the following: $$ \lambda||\hat w||^2 +(1/n)\sum max(0,1-y_i(\hat w \hat x_i -b)) $$ we know that $2/||\hat w||$ is the width of the margin. The second term penalizes a misclassified point for how far away it is from the margin relative to the width of the margin. E....
I have a dataset consisting of pairs of points, $(x_i,y_i)$. Visually, I see that the points are not completely smeared, but that $x$ seems to exert some control on $y$. In fact, I suspect that $y$ is a function of $x$ plus some noise. But I have not idea of the shape of this function. Is there a statistical test to de...
I have a time series of Micex Index volatility and cannot define whether it is stationary or not. On the one hand, Dickey–Fuller test, performed in Python (statsmodels adfuller) gives me a p-value of 0.000003 which is really small. On the other hand, the autocorrelation plot is not random and variance seems to change o...
I am reading a paper and getting stuck with some involved formula transformations. Here comes the settings of the problem corresponding to the formula: Initially, we have a fixed parameter vector $θ=(θ_1,θ_2,θ_3), ∑θ_i =1$ We have the following generative story: Draw $n\sim Poisson(\lambda)$ With respect to $n$, w...
I have created a linear regression model for a set of data. I have calculated the slope and intercept of the line. If given a theoretical slope for this kind of data, how can I test to see if the slope that I calculated and the theoretical slope are significantly different? For example, the slope I calculated is 0.02 ...
I have found that SSerror = SStotal - SStreatment which makes sense to me alongside an example of a one-way ANOVA, however, how does this apply to a factorial ANOVA?
Let $X$ be a random variable with PDF $f(\cdot)$ and CDF $\Phi(\cdot)$. I want to compute $E(X \mid X < c)$, where $c$ is some constant. Using definition of the expected value $$E(X \mid X < c) = \int_{-\infty}^{+\infty}xf(x\mid x<c)dx.$$ I know that conditional density should simplify to $$f(x\mid x<c) = \frac{f(x)}...
So there's Standard Deviation, Variance, and Covariance, but is there a co standard deviation? If not why not? Is there a fundamental mathematical reason or is it just convention? If so why is it not used more, or at least really hard to find using Google searches? I don't mean this to be a flippant question, I'm tryi...
In 'The Elements of Statistical Learning', the expression for bias-variance decomposition of linear-model is given as $$Err(x_0)=\sigma_\epsilon^2+E[f(x_0)-E\hat f(x_0)]^2+||h(x_0)||^2\sigma_\epsilon^2,$$ where $f(x_0)$ is the actual target function, $ \sigma_\epsilon^2$ is variance of random error in the model $y=f(x)...
I’m working on a problem that is analyzing purchases at a store and determining the effect from advertising. There are many advertising variables, but to keep things simple, assume there are three types of media: Television, desktop, mobile four types of creatives (ad speak for advertisement type): tv_crt_A, tv_crt_B,...
I have a fairly large sample ($n= $ 3000) of adolescents answering various questions on their psychological well-being. These questions are supposed to address various categories of psychopathology. For example, regarding depression, you can ask 9 questions that address various aspects of depression; however, two of th...
I am working on some content to teach ANN's to gradeschool kids. I've run across a couple good articles, most of which model a simple XOR problem, using three layers (input, 1 hidden, output). however, this article is a little different in that it simply goes straight from inputs to outputs, with no hidden layer in bet...
If a time series is unevenly spaced, the simple moving average is not the best option to smooth it out (the window will be larger or narrower depending on the time distance of the events within that interval). Which method would you suggest that can be implemented when the time sampling of data is not constant?
I need to fit a large number (thousands) of GAMs (using package mgcv in R with automated selection of smoothing terms, if that matters), and for each GAM I need to know whether the slope of the smooth term is negative over a certain range of my independent variable. Well that's easy: I just extract the fitted value at ...
The project I'm working on attempts to explain why an NGO is present (1=present,0=not present) in some countries (15) but not others. As I'm working with country-level data, my sample size is naturally limited to the number of existing countries (193). Moreover, many countries criminalize the existence of the NGO in qu...
Related to glm() in R, I saw a few post recommending modeling underdispersed data using the Conway–Maxwell–Poisson distribution, specifically with the R package CompGLM, however, I'm not sure I saw anybody confirming that the quasi-poisson cannot be used. Therefore, I ask: why not use quasi-poisson in glm for underdisp...
I have a three-factor (1, 2, 3), two-level (-, +) factorial design shown below (contrast coefficients for interaction effects and response parameters shown here as well). The overall goal is to determine which effects are significant and what their respective confidence intervals are. I've figured out how to determine ...
Suppose I know that 40% of the population are single but my sampling procedure is non-random and skewed towards singles in a way such that in my sample 60% are single. So my data would not be i.i.d. because we do not draw randomly from the population. But would that violate the independence assumption or the identical ...
According to the WP definition of MAP: In Bayesian statistics, a maximum a posteriori probability (MAP) estimate is an estimate of an unknown quantity, that equals the mode of the posterior distribution. (emphasis added) which, given a posterior $f(\theta \mid x)$, can be defined as: $$\hat{\theta}_{\mathrm{MAP}}...
Besides ease of implementation, due to the certainty of having binary splits, what are the advantages of coding categorical features into dummy variables in the context of decision trees? Does using dummy variables speed up the tree growing process? Does it reduce underfitting/overfitting?
This question is partly a question from ignorance of the statistics, and part an R question. I've moved this question over from Stack Overflow since it's more about the theory. I have growth data for multiple animals, in different habitats, across a time-span of their life. I have fitted linear regression models to ea...
Let X be the random variable representing the claim amount for flooding damage from house insurance policies of bungalow type houses. Past claims show evidence that X is a normally distributed random variable with an average claim amount of μ = 21000 euro and a standard deviation of σ = 4000 euro. e) An insurance compa...
The user guide on Cohen's kappa of the scikit-learn documentation states the following: The function cohen_kappa_score computes Cohen’s kappa statistic. This measure is intended to compare labelings by different human annotators, not a classifier versus a ground truth. (emphasis added) I wonder why it explicitly s...
Why the lasso method in multinomial logistic regression differ from the traditional method using maximum likelihood? I found that the significant coefficients in lasso have different values against the regular one. The significant coefficients mean the coefficient included in the model. If i'm using the p value (sig.) ...
Given the following data: Treatment <- as.factor(c(rep("Ploughed",8),rep("Mowed",8), rep("Ploughed",9),rep("Mowed",10))) Strata <- as.factor(c(rep("Canopy",16), rep("Ground",19))) Herbivores <- as.integer(c(4,3,39,15,22,10,61,11,3,3,1,6,7,3,3,4,10,37,44,6, 77,222,49,101,74,112,23,47,86,42,104,203,111,310,41)) ...
I have to do an hypothesis test for two series, both distributed as a Poisson. The first groups has its mean, and the second another one: i have to test the significance of this difference. Which test should i use? The t-test for the difference between two means? I try the U-test, but I don't think it's ok cause it's o...
I am trying to model the effect of weather condition on number of crashes in a road. Weather is categorized as dry and wet. Most of the cases, crashes in dry weather condition are frequent as the dry condition is dominating. For instance, after analyzing the weather data, I found that the weather was dry in 90% time of...
I have stumbled upon R behavior involving set.seed(), sample() and rbinom() which I don't understand. Background: I am solving problems from Richard McElreath's "Statistical Rethinking". Medium problems 1-3 in Ch.3 basically ask to do the following: Suppose you throw a coin 15 times and get 8 heads. Given this and a un...
I'm having trouble deriving the matrix form of backpropagation. As an example, let's suppose we have the following network: There are two nodes in the input layer plus a bias node fixed at 1, three nodes in the hidden layer plus a bias node fixed at 1, and two output nodes. The signal going into the hidden layer is s...
I am trying to learn ensemble methods and came across that ada-boosting can be built on top of the ordinary machine learning methods such as Random forest. the method can use the misclassified data in training set to build more accurate classification models. However, I searched online but I couldn't find answers for t...
The Solomonoff universal prior is fixed relative to a specific choice of universal Turing machine (UTM). Now, I understand that a UTM can simulate any other UTM, so that they assign a complexity to any bitstring that differs by at most a constant. Doesn't this invalidate the whole point of the universal prior? Haven't ...
It is well known that for the basic AR(1) model $X_k=\phi X_{k-1}+\varepsilon_k$ where $\vert\phi\vert<1$ and $\varepsilon\propto\mathrm{WN}(0,\sigma^2)$ the sample mean $\bar{X}_n$ (after being scaled properly) is asymptotically normal with mean 0 and variance $\sigma^2/(1-\phi)^2$. This fact can be used to construct ...
I am reading about canonical correlation analysis (CCA), and I understand that it is a technique to find linear combinations of a set of variables X that have the highest correlations with linear combinations of variables Y such that the canonical weight vectors are all orthogonal to each other. If I have only one vari...
I have a 50x50 correlation matrix, and I'd like to avoid directly trying to compute and return all n choose k subsets s.t. the subset of variables have correlation less than some threshold x. As such, I'd like to create a hierarchical clustering scheme in python s.t: variable x is related to variable y iff their corr...
I am trying to obtain the variance of each attribute given the eigenvalues for each attribute. I know the eigenvalues come from the covariance matrix and that the diagonals of the covariance matrix are the variance of each attribute. I then know that when you diagonalize the covariance matrix you get the eigenvalue in ...
When executing the DBSCAN algorithm over multiple runs on similar data (but not the same), I would like to generate persistent ID's so we can monitor how the clusters changed over time. Selection of another algorithm is not possible. This question also applies to similar stochastic methods such as k-means. The goal is...
I know this has been already asked, but I am quite confused about the interpretation of logit regression estimates if I have interacted variables (continuous and binary ones). I run the following regression: model <- glm(elected ~ treat + factor(School) + factor(Race) + treat*Treat.City, data = subset(d...
First of all, let me briefly describe my task: There are about 10^9 sets of words, each sets contains about 10^4 words, which indicates it will be very space consuming to store all those sets in disk. I want to know the number of common words between two sets. However, I don't care what those common words are. I even d...
An interesting question my friend told me: I have two simple linear regression models with R$^2$ = 0.1 Y ~ X1 Y ~ X2 If I combine these two models, Y ~ X1 + X2, is it possible that R$^2$ > 0.2? If so, can you provide an example?