instruction
stringlengths
9
38.7k
I am confused about the exact definitions here. Assuming I have a cross-sectional regression, let's say, Wage on Education and I additionally control for observable characteristics with a set of dummies or variables like intelligence level, age, parent's education level, urbanization area, gender, race, work experience...
The chi square formula given in my book is: $\chi^2 = \frac{(n-1)s^2}{\sigma^2} $ At first I admitted to feeling some kind of strangeness to this formula, but after a few hours I realized that $\chi^2$ was $\displaystyle \sum_{i=1}^n \left(\frac{X_i - \mu}{\sigma}\right)^2 - \left( \frac{\bar{x} - \mu}{\frac{\sigma}{\...
I am using ROC curves to compare different methods but not sure if I need to re-simulate datasets using different seeds in R in order to reduce the "by-chance" issue for a particular output. Here is a brief outline of my simulation: The function generate.data is used to simulate data of some distribution, and by simul...
I am interested to know how to calculate the joint probability mass function for two independent geometric random variables. Suppose two variables X1 and X2 are independent, such that Xi∼Geometric(theta), how to find the joint pmf distribution of X1 and X2. I am not sure but I think it should be the product of pmf of b...
I am trying to run survival analysis using the Surv and survfit functions from the survival package in R. Most of my data is left truncated, and I'm not sure if I'm entering it into the Surv function correctly. My response variable is time (measured in years) beginning from when a bridge is classified as deficient, and...
So we have a regression equation with one explained variable and 10 explanatory variables. What I have read so far: Multicollinearity doesnt affect the regression of the model as a whole. But if we start looking at the effect of individual predictor variable Xs on the explained variable, then we are going to have inac...
What is a suppressor variable in multiple regression and what might be the ways to display suppression effect visually (its mechanics or its evidence in results)? I'd like to invite everybody who has a thought, to share.
I need to find the pdf of a random variable which is a mixture of discrete and continuous random variables. I have seen on this website but it does not exist in the general case, but maybe in this one it does. In any case, I have $X \sim Bern(p)$ where $p$ is known, and I have $Y = XW+(1-X)Z$ where $W,Z$ are both conti...
I am new to statistics and have run into some trouble understanding computing confidence intervals and am seeking some help. I will outline the motivating example in my textbook and hopefully someone can offer some guidance. Example There is a population of mean values and your goal is to figure out the true mean (as...
I have $2$ $n\times p$ matrices, where $n$ are the rows (samples), and $p$ the columns (measurements). Each matrix has samples and measurements from different groups. I call these the "raw" data. I've conducted a principal components analyses of the complete raw data, and computed the mean of each PC score by group. T...
A set of final examination grades in a course is normally distributed with a mean of 73 and a standard deviation of 8. What is the probability of getting a grade below 91 on the exam? What is the probability that a student scored between 65 and 89? If the professor grades on a curve (gives A’s to the top 10% of ...
The definition of entropy for a continuous signal is: $$h[f] = \operatorname{E}[-\ln (f(X))] = -\int\limits_{-\infty}^{\infty} f(x) \ln (f(x))\, dx$$ According to Wikipedia, it can be negative. When would that happen? As far as I understand, $f(x)$ is always $\in[0,1]$ so $f(x)\cdot ln(f(x))$ can only be negative. What...
I've been working on a research project for close to five years now. For my thesis I have to show how "well" did my approach improve things. Setup: Every year we use a tool A to brainstorm and negotiate software requirements. The tool was wiki-based and had very low participation from technical and non-technical (clie...
I am trying to sample from a posterior distribution and I only have an explicit formula for likelihood but I can sample from the prior distribution. How can I sample from the posterior distribution with such a restriction. Is there any specific method? After seeing the answers I've decided to write my exact question to...
I am trying to apply MCMC on a problem, but my priors(in my case they are $\alpha\in[0,1],\beta\in[0,1]$)) are restricted to an area? Can I use normal MCMC and ignore the samples that fall outside of the restricted zone(which in my case is [0,1]^2), i.e. reuse transition function when the new transition falls out of re...
I am using JMP to find a relationship between drought index values and yearly corn yields for a 30 year period. I have drought data for seven different indeces and each index ranges from -6 (severe drought) to +6 (extremely high precipitation). The drought data contains monthly drought index values for March-September...
For a pdf $f(x)$ (i.e. continuous distribution), Entropy (differential entropy) is defined as: $H_C(X) = -\int_\mathbb{X} f(x)\log f(x)\,dx.$ For a discrete distribution with p.m.f $F(x)$, Entropy is defined as: $H_D(X) = -\sum_{i=1}^n {F(x_i) \log F(x_i)}.$ The definitions look analogous to each other. However, entrop...
I was going through Penn State's online notes and noticed this expression: $ v^2 = \frac{1}{n} \sum_{i=1}^n (y_i - \bar{y})^2$ In the line below it they stated that the $E[v^2] = (1 - \frac{1}{n})\sigma^2$. I was wondering how would you get that? Would it be wrong for me to say that since $\sum_{i=1}^n (y_i - \bar{y}...
Consider a random variable $X$ which has quartic exponential distribution: $$X \sim P(x)=\frac{1}{Z}e^{ax + bx^2 + cx^3 + dx^4}$$ How can one compute $Z$ or non-central moments $E X^k$ given that they exist? As far as I understand, there are no closed-form formulas for these quantities, but is there a good numerical pr...
I recently performed an experiment observing ants. For five days I measured the amount of food they ate, 25 ants in the fruits group and 25 ants in the vegetables group. Each ant was kept isolated in its own container. My hypothesis was that the ant (3 mg in body weight) would be able to eat 20 times more food than wh...
I'm interested in running hypothesis tests for a variety of members of the exponential family with continuous support, for different values of the parameter/s, for a sample of n i.i.d random variables (distributed according to a particular member and parametrization of the exponential family). In general, it seems the ...
At a nuclear plant great care is taken to measure the employees health.These are the number of visits made by each of the 10 employees to the doctor during a calender year. 3,6,5,7,4,2,3,5,1,4 Assuming the number of visits made by employee has a poisson distribution ,test the hypothesis that the annual mean per employe...
I want to find the similarity between a document with documents coded as TF-IDF in a pickle file (Python). TF-IDF is done as offline so there is no problem, but when I send a new document for similarity check it takes around 2 minute while I need something real-time (< 2 seconds). For this purpose I used the following ...
Not sure whether the claim is true or false. If claim is true, intuitively, it might have something to do with "least favorable priors", but am not able to figure out the connection. If claim is false, one example is when $X_i|\theta \sim $ Poisson$(\theta)$, then $\bar{X}$ is minimax. But a Gamma$(\alpha, \beta)$ prio...
I´d like to analyse the effect of a treatment (treatment : Factor w/ 2 levels "ambient","elevated") in tree diameter increment. Tree diameter is influenced by tree size. To do so, I performed the following lm: Call: lm(formula = BAI2013 ~ diameterJul12 * treatment, data = bandNA) Residuals: Min 1Q Medi...
The description of AdaBoost in Kevin Murphy's Machine Learning book (shown in a snapshot below) differs from the one in Wikipedia. I am trying to relate both definitions. Step by step, my questions are: What exactly is $\text{err}_m$ (step 4) supposed to capture below? Is this equivalent to the $\epsilon_t$ in Wikipe...
The SAS System 14:11 Thursday, October 6, 2013 1 The ARIMA Procedure Name of Variable = ln_G_S_Index Period(s) of Differencing 1 Mean...
I used an inbuilt Matlab function to check for Granger Causality between two time series P and T that have a correlation coefficient of 0.6. The function is : https://www.mathworks.com/matlabcentral/fileexchange/25467-granger-causality-test/content/granger_cause.m On running it, I got the following answer: >> [fs,cv] ...
This question is kind of a follow up of another question I had: Asymptotic normal distribution via the central limit theorem There I had to calculate the estimator for $p$ (meaning $p$ for success) and approximate it's distribution by approximation with a normal distribution. Now I would like to get the exact distribut...
I have a set of independent data and dependent data $(X,Y)$, where I would like to do an exponential regression to obtain its p-value and significant $F$ (already obtained $R^2$ and also the coefficients through mathematical calculation). Often an exponential data, $y=be^{mx}$ will be converted first to a linear data, ...
The stochastic process $(X_t)_{t\in T}$ is called Gaussian if for all $t_1,\dots,t_k\in T$, for all $k$, the joint distribution of $X_{t_1},\dots,X_{t_k}$ is multivariate normal. The process is completely characterized by its mean function $$\mu(t) = \mathbb{E}[X_t]$$ and its covariance function $$\sigma(s,t) = \operat...
I have a very particular question, I have seen a similar one here, but my knowledge is too limited to make use of it. I will try to explain myself as clearly as possible... Wish me luck! I have a sequence of (a priori) probabilities of a binary variable, we could say $X_i \sim Ber(p_i)$, i.e. $P(X_i = 1) = 1 - P(X_i = ...
I have two variables which represent two performance measures. I ranked a finite set of elements according these two variables. Therefore, I have to ranks. Suppose the ranks are performed in descending order (the highest the measure the highest the value in the decision process of each element). For instance, an ordere...
I've got some temporal data taken from a data logger that I'm trying to plot in a graphical form (as a line graph). Because it's a large amount of data, plotting it one one big graph (e.g. in Excel) makes it difficult to explore the visualised data as you can't really zoom in and scroll through the data. What I'm looki...
Also posted here and here. I have the following problem: I have N models that give me an estimation of the probability distribution function p(x) of a certain phenomenon x. Let's call them: $p_1(x),...,p_N(x)$. They come from different sources of information, so they can give different values, but they all refere to th...
I have 1750 proteins that I want to compare the expression level of them between 3 groups (cell-type) using R. How can I do it?
Kernel methods are very effective in many supervised classification tasks. So what are the limitations of kernel methods and when to use kernel methods? Especially in the large scale data era, what are the advances of kernel methods? What is the difference between kernel methods and multiple instance learning? If the d...
My question is similar to this link Creating a "certainty score" from the votes in random forests? I am trying to build a random forest for a binary response (1 & 0). Let's say we have 10,000 different records and I am building 500 trees. Is there a way to score the records in terms of the certainty / confidence / like...
Suppose I have the following time-series linear model where $\beta$ is misspecified: $Y(t+1) = \alpha + \beta X(t) + \sum_{i=1}^{10000}\gamma_i Z_i(T) + \varepsilon$ where all parameters are in $\mathbb{R}$ and all predictors are normally distributed and play nicely with respect to Gauss Markov. In the population ('cor...
In linear discriminant analysis, how is the linear discriminant function determined? Assuming equal variance-covariance matrices, is the linear discriminant function determined from the training data?
The number of faults in one metre of a thread is Poisson distributed.It is claimed that the average number of faults is 0.02 per metre.A random sample of 100 one metre lengths of the thread reveals a total of 6 faults.Does this information support the claim? What I want to know whether my H0 should be, H0:lambda=0.02 o...
I have come across the following statement: A notable feature of the Hierarchical Dirichlet Process is that all Dirichlet Processes' $G_j$ share the same set of atoms and only the atom weights differ. This is a result of the almost sure discreteness of the top-level DP. What is meant by atom and atom weights? Googlin...
A terminology problem. In machine learning we have the following problem: Choosing the optimal model (or training): $$ f^* = \arg\min_{f \in \mathcal{F}} \sum_i l(x_i,y_i) $$ Is the term "model selection" always "exactly" referring to this? Or something else?
There are many papers that are devoted to efficient inference in graphical models. Though many of these paper don't explicitly talk about the learning (training, etc) problem. For example: http://videolectures.net/mlss09uk_minka_ai/ I am a little confused on how these models being trained. I thought they are probably ...
From some reading I did online, I understand that there are various methods for determining "similarity" used by different clustering algorithms. I am curious if it is good practice to run multiple clustering algorithms/methods (i.e Hiearchical w/ Ward, single linkage, centroid, etc or maybe even K-means) on a dataset ...
I am regressing spreads in yield curves in certain countries, in the chart below, the Spanish 2-5-10 spread, against the Italian 2-5-10 spread. I want recent data to count more, so I weight the inputs using a decay weighting scheme with a 1 year halflife. A "simple" regression line and the weighted regression line a...
Can someone provide their thoughts on a structured process one might go through to understand a collection of data. The scenario is: you've been given a set of data (features and observations - with descriptions) and been told to "tell me what kind of interesting things this data can tell me". I.e., what are interestin...
I'm trying to solve a problem of the form $\min_x \frac{1}{2}||Ax-b||^2_2 + \frac{\rho}{2}||x-z||^2_F$ where both $x$ and $b$ are high dimensional, and $b$ is much higher dimensional than $x$. The solution is given by $x^* = (A^T A+\rho I)^{-1}(A^T b + z)$, but the problem is so large that even inverting $A^T A + \rho ...
I have found Cointegration based on Engle/ Granger and Johansen. However, Granger-causality is rejected for both variables. How is that possible? According to theory, if x and y are I(1) and cointegrated, x is Granger causal to y and/or y is Granger causal to x. However, Granger-causality has been rejected in my biva...
Is there any unique property of $\mathrm{Gamma}(k=e, \text{ scale})$ or a Negative binomial distribution with $r=e$? Here, $e$ is Euler's number, $e \approx 2.71828$. The reason I'm asking is that one of the variables in my computer simulations can be fitted by $\mathrm{Gamma}(k=e, \text{ scale})$ or by $\mathrm{NB}(r=...
In a recent lecture I was told that, in order for the maximum likelihood estimate to be valid, the log likelihood needs to go to minus infinity as the parameter goes to the boundary of the parameter space. But I don't understand why this is essential. Suppose the log likelihood goes to some kind of asymptote. Then the ...
The graph below shows GPS heading data (sampled every second) and I am trying to find the best way to detect (right/left) turns in the data. Appreciate suggestions for algorithms/methods for it (perhaps step detection)? While turns typically result in sharp change in heading value, heading might also change graduall...
I guess I come up with a classic question, but I failed to find any useful solutions by far. My question is about the following model $$y=x+n$$ where $x$ is a hidden random variable that cannot be observed, $n$ is the random variable of white noise, namely $n$ follows a known Gaussian distribution of variance $\sigma^...
I think I lack somewhat deeper understanding of this topic, but I thought stationarity is required in order for OLS to have asymptotic properties. "But stationarity is not at all critical for OLS to have its standard asymptotic properties"(Wooldridge, 2012) I thought stationarity is needed or otherwise OLS would not be...
I am stuggling with this problem and was hoping to find some guidance to answer it. Let $y_t=\phi_1y_{t-1}+\phi_2y_{t-2}+\epsilon_t$, with $\epsilon_t\sim N(0,1)$. Now, I want to plot the spectra of $y_t$ in the following cases: Case 1: When the AR(2) characteristic polynomial has two real reciprocal roots given by $...
I have been reading about the frequentist vs bayesian issue (this article has helped a lot, specially with the example; also this one), and I haven't come to terms with it. At the moment it seems like there are the frequentist and bayesian interpretation of probability; and, separately, the frequentist and bayesian app...
Below I have quarterly total sales on the left (dependent variable), and a sample of the sales on the right. The two variables share a correlation of 98.7%. What model should I use to predict X? For that model, should I include a constant? Seasonal adjustments? Remove outliers? The most important criteria is mini...
In the so-called incremental SVD used for collaborative filtering: http://www.machinelearning.org/proceedings/icml2007/papers/407.pdf http://www2.research.att.com/~volinsky/papers/ieeecomputer.pdf http://www.quuxlabs.com/blog/2010/09/matrix-factorization-a-simple-tutorial-and-implementation-in-python/ The user x item m...
Suppose I have standard normal features $X_i \in \{X_i : i \in \{1,...,1000\}\}$. I extend this set of predictors with transformations as follows: $\{X_i,X_i^2,X_iI(X_i > 0) : i \in \{1,...,1000\}\}$. What happens if Lasso would pick $X_i^2$ or $X_iI(X_i > 0)$ but not $X_i$ itself. What do I do? Is this even a problem?...
The question is related to this one. In this question @mpiktas gives an answer on why checking correlation is not enough but the answer doesn't seem completely correct to me for the following reason: If 2 time-series are cointegrated, i.e. there is a linear relation between them $$y_t = a + b x_t + \varepsilon_t$$ wit...
What are the scenarios where Lasso is likely to perform better than Elastic Net (out of sample prediction)?
The question is to fill out the missing numbers (A-L) of a simple linear regression model. I am having problems with converting and interpreting the given table in terms of variables. Would it be possible for someone to confirm and clarify things for me. The first table represents regression statistics True model $$ Y...
As part of a broader study I am analysing 30 websites that fall into 3 categories: Consumer (10 sites) Commercial (10 sites) Health (10 sites) The approach I used was a 'tick and flick' spreadsheet with 24 dichotomous variables that represent features of the website that are either absent or not (i.e. they receive a ...
I need to calculate the Probabilistic Sensitivity Analysis for a function. I was given this: beta distributions assigned to represent uncertainty And have this parameter with this data: variable = d_progress probability of variable : 0.1 n = 100 r = cases = 3 Now, I need to use this function or something? p <- rbeta(n...
Multiple regression model $H_0$:$\beta_2=0$, $H_1$:$\beta_2 \neq 0$ where $\beta_2$ is the vector of elements ($\beta_2, \beta_3, \dots, \beta_k$) and $\beta$ is slope of regression line. Why it is equivalent to a test based on the statistic $$\frac{R^2/(k-1)}{(1-R^2)/(T-k)}$$ where $R^2$ is the square of the multiple ...
I have points in a 2D graph (coordinates: X,Y property: Z). I would like to find for every point the closest, for example, 5 points and save their properties. What would be the easiest approach? Update: Using the following code: %Synthetic data A = {[1,1]; 'A'}; B = {[2,2]; 'B'}; C = {[3,3]; 'C'}; %plot D = {A{1};B{1}...
Suppose we have a table of finishing times for an number of 100 metre races where each competition has a different mix of entrants. We suspect that some races are slower than others due to, say, a headwind, but this wasn't measured. How do I find the underlying time for each runner and the correction for each race? I h...
I want to run a simulation in which I want to find out whether there is a relation between the independent variable $x_t$ and the dependent variable $y_t$. I.e., in the following regression I want to find out if $\beta$ is signficantly different from zero: $$ y_t = \beta x_t + \epsilon_t. $$ In empirical data, $y_t$ is...
Hi I am trying to calculate the t-statistic for a correlation coefficient between two vectors $x$ and $y$. The individual vectors shows signs of autocorrelation. I have made use of the formula: $\frac{r}{\sqrt{(1-r^2)(n-2)}}$ but I'm not sure this is the correct way of solving the problem. The correlation between the t...
I need to find a symmetric low-kurtosis distribution class, which includes the uniform, the triangular and the normal Gaussian distribution. The Irwin-Hall distribution (sum of standard uniform) offers this characteristic, but is not treating non-integer orders $N$. However, if you e.g. simply independently sum up e.g....
Let's say I have a set of instances with class labels associated. It does not matter how these instances were labelled, but how certain their class membership is. Each instancs belongs to exactly one class. Let's say I can quantify the certainty of each class membership with a nominal attribute that goes from 1 to 3 (v...
Suppose $A = X_1/X_2$ and $B = X_3/X_4$. Why would one plot the data in $(\log A, \log B)$ space as opposed to $(A,B)$ space?
Could a t-statistic for a simple regression relationship with a smaller sum of squared residuals but a smaller or less positive slope be larger than that of a plot with a larger sum of squared residuals and a large slope?
I know that the statement in question is wrong because estimators cannot have asymptotic variances that are lower than the Cramer-Rao bound. However, if asymptotic consistence means that an estimator converges in probability to a value, then doesn't this also mean that its variance becomes 0? Where in this train of tho...
I am very new to mixed/multilevel models. I have an experiment where we measured 2 scale variables (varA and varB) in 2 different groups of subjects (control and treatment) at 4 different time points. I suspect that the relationship between varA and varB is different for the 2 groups (control vs treatment), however it ...
I am trying to understand the difference between: Expectation Propagation (EP) Variational Bayes Wikipedia says: Expectation Propagation differs from other Bayesian approximation approaches such as Variational Bayesian methods. Why isn't EP considered a Variational Bayes method? Isn't EP Bayesian, and relies on m...
Plotting an ROC curve of a classifier compared to cases requires that the data set be sorted first on the classifier score. I am in a position where I need to calculate ROC on a large data set very quickly and sorting is the bottleneck (even using quicksort in C or F90). If instead of calculating ROC by thresholding ...
I am fitting two different models to the same data. In one model, there is one free parameter for three different experimental conditions. In another model, I fit three free parameters, one for each condition. I do this for 10 subjects in a dataset. For each subject, the model with fewer free parameters has a higher BI...
I have the following data for 8 runners in a 100 meter dash: runner 1 88 91 87 82 runner 2 81 85 78 91 runner 3 75 77 83 81 runner 4 92 89 84 82 runner 5 78 79 84 92 runner 6 89 75 79 83 runner 7 91 89 92 91 runner 8 87 86 88 91 The ratings represent a performance rating and are normally distributed with unknown mean ...
I want to assess the accuracy of normality tests over different sample sizes in R (I realize that normality tests may be misleading). For example, to look at the Shapiro-Wilk test, I'm conducting the following simulation (as well as plotting the results) and would expect that as the sample size increases the probabilit...
I have different groups of dolphins, some with offspring, some without. I'll count how many types of vocalizations were emitted by each group, and want to find out if there is a statistical difference between groups with and without offspring. My dataset is something like: Group_number Vocal1 Vocal2 Offspring Gr01...
Subitization is the rapid, accurate enumeration of low-numerosity displays, distinguished from counting by a sharp non-linearity in the plot of response times. Below is a representative plot, from Watson, D. G., Maylor, E. A., & Bruce, L. A. M. (2007). Notice that mean enumeration times for displays 1-3 increases roug...
I've been reading up a bit on eigenfaces. I think I understand the basic concept of it - vectorize a set of facial images then reduce the dimensionality of the images using PCA. What I don't really understand is the visualization of the lower-dimensional representation of the images. In the facial images, the number...
So, with the help of someone here in stats i could solve most of my problems. Now i'm stuck at this part: I have the below code, which worked very well if this values were fixed. immediate.amput.below.EV watchful.wait.EV Now what they are is vectors. They represent a vector with [n_psa] size. What i need to do is, i ...
I am going to estimate False Discovery Rate using permutation tests. To my knowledge, several R packages are applicable for multiple testing. I have several independent datasets for meta-analysis. I computed a Pearson correlation coefficient, converted it into a Fisher-Z score and then calculated the mean effect siz...
Suppose you randomly identify individuals with a certain disease (cases) at time $T$, then you identify a sample of individuals without disease at time $T$ (but at risk for disease) in a population of individuals undergoing routine screening for that disease. The controls are sampled in a known proportion from the popu...
The delta method/bootstrap method is used to obtain the standard error of marginal effect in case of limited dependent variable model (like tobit model). I have seen these being applied for the continuous variables, but my question is whether these can be also applied for categorical variables (say with 4 categories) o...
I have data in which the number of negative cases in response is approximately 98% of the total sample size (total # records are approximately 1 million, Response is binary). The positive cases are roughly 2%. What are the limitations of applying 'glm' and 'cart' on such data? What option do I have in such cases? On t...
Please explain to me the difference in Bayesian estimate and Maximum likelihood estimate?
$\newcommand{\implicit}{\mathrm{implicit}}$ I'm attempting to optimize model parameters $\theta$ by maximizing the likelihood function $$ f(y) = \ln \Bigl(\frac {n!}{k!(n-k)!}y^k(1-y)^{n-k}\Bigl) $$ where $y$ must be calculated iteratively, as it is defined implicitly by $g(\theta)=0$, as follows: $$ g(\theta) = -1 + ...
I have a microblog dataset with about 100k tweets and I would like to cluster them effectively using some less advanced algorithm. Is there anywhere I can find like a single-pass K-Means or similar algorithms. Thanks. I have tried using K-Means and it takes about 5 minutes to cluster 100k tweets, using standard pre-pro...
I have a homework assignment with the following question. I've attempted to solve the problems and my answers are below, but I feel like they are incorrect, and have no idea how to check. I would be very grateful for any help you can provide: Posted office hours notwithstanding, students make calls at the offices of th...
I have a data set of N people, T items. Let's say N=100, and T=10. Each person goes through the following exercise. She is shown 2 random items from the set of T=10, and ranks them as rank 1 and 2. She is next shown 2 more random items from the remaining 8 out of 10 items, and ranks as rank 1 and 2. At the end, t...
I have a set of mutually independent normal distributions $X_1$ to $X_5$ (with means and standard deviations) which represent finishing times for swimmers over a certain distance. The actual data is as follows: $$X_1(60, 3.0)$$ $$X_2(61, 1.0)$$ $$X_3(58, 2.3)$$ $$X_4(63, 2.4)$$ $$X_5(61, 1.7)$$ So swimmer 1 ($X_1$) has...
I'm trying to cluster a list of records based on a (percentage) frequency distribution of variables which add up to 100%. Like Record1 - VarA(25%) VarB(25%) varC(50%) varD(0%) Record2- VarA(50%) VarB(15%) varc(0%) VarD(35%) and so on. I have standardized variables before while dealing with different dimensions(len...
I am trying to understand the d-Separation logic in Causal Bayesian Networks. I know how the algorithm works, but I don't exactly understand why the "flow of information" works as stated in the algorithm. For example in the graph above, lets think that we are only given X and no other variable has been observed. Then ...
Is there a package in R that can do this plot on LDA data graph plot: original question: How does linear discriminant analysis reduce the dimensions?
We are currently writing a paper with several one-sample Wilcoxon tests. While visualizing two-sample tests is easy via boxplots, I was wondering whether there is any good way to visualize one-sample test results? # Example data pd <- c(0.80, 0.83, 1.89, 1.04, 1.45, 1.38, 1.91, 1.64, 0.73, 1.46, 1.15, 0.88, 0.9...
I've got some data on discrete flood events (response variable - duration) on several rivers. I've modelled the response variable by site and time using a Generalized Linear Model: mod = glm(duration ~ site + time) I've then looked at the residual plots and cannot find any evidence for temporal correlation in the res...
A password consists of 4 alphabet letters and 4 numbers. Calculate the following two probabilities: $p_1$: the probability that the letters are all equal and that the numerical part contains one eight. $p_2$: the probability that the password has 3 numbers followed by 4 letters. Although it sounds like an easy questi...