instruction
stringlengths
9
38.7k
I have two samples, one with $n_1 = 41,000$ and the other with $n_2 = 881$; the larger sample has a standard deviation of $13.74$, and the smaller has an $SD=10.75$. The means are different, and when I run a Welch's t-test, I get a $p < .001$. I'm not sure if that's the appropriate test. I checked the skew for both sam...
It is possible to find a lot online on intepreting correlation coefficients. But I find often difficult to decide when to drop a variable from a linear model because of its correlation with another variable. What should I consider in defining a threashold for the correlation coefficient? What coefficient (0.4?) shou...
I was reading some notes on machine learning when I came across the following sentence: First, we may have a large estimation error. This means that, even if the true relationship between x and y is linear, it is hard for us to estimate it on the basis of a small (and potentially noisy) training set $S_n$. Our e...
In my formula I have several terms with the categorical variable color and color's interaction with other variables. Color can be either white or red. When looking at the summary of my model, color is replaced by colorwhite with no mention of colorred. Can someone explain the mechanics behind R only showing one level o...
This is not homework. Just practicing for an upcoming exam. Question is taken from a web pdf : http://www.dartmouth.edu/~chance/teaching_aids/books_articles/probability_book/Chapter11.pdf Consider the following process. We have two coins, one of which is fair, and the other of which has heads on both sides. We give the...
I am acquiring samples that are Gaussian distributed and I need to calculate $$ p(x_n | x_{n-1}, x_{n-2}, \ldots , x_1) $$ for each sample $x_n$ as it comes in. I am trying to break this expression down so that I can calculate this recursively. I can not store past variables indefinitely as the system will run for long...
I'm looking through my notes on importance sampling. $\mu = \int h(x)\pi(x)dx = \int [h(x) \frac{\pi(x)}{g(x)}]g(x)dx$ draw $x^{(1)},...,x^{(m)}$ i.i.d. from proposal distribution $g(x)$ Calculate the importance weights: $w^{(i)}=\frac{\pi(x^{(i)})}{g(x^{(i)})},$ for $i = 1,...,m$ This is the part where I'm confused. W...
I was on page 66 of ESL. I don't know how equation 3.49 on that page is derived. Where does the $N$ in the denominator come from ? Can someone kindly show me the steps in between the lines of equation 3.49? In particular, why is $Var(Xv_1) = \frac{d^2_1}{N}$ ? And where does the $N$ come from ? Thanks.
I am scratching my head over this one...any help would be greatly appreciated. I want to know if the average travel time between Guell Park and the beach in Barcelona using the bus or the metro differ and which one is faster. Since I do not know the distribution of travel time, I can't use a t-test; therefore, I was su...
I have a three-node matrix with two edges (A-B and A-C). I would like to determine what the probability is starting from B and ending at C in exactly 100 steps. I have only written out probabilities: P(A|B) = 1 P(B|A) = 0.5 P(A|C) = 1 P(C|A) = 0.5 But there are so many combinations of ways to get from B to C in exactl...
I asked two different groups of subjects to answer a questionnaire of 2 yes/no questions. The "correct" way of answering the questionnaire was to answer yes to both questions. I want to prove or disprove that group2 is answering better than group1. My idea is to check if a get a "low" p-value in a Chi-square independen...
I have 7 balls to be randomly placed in four urns of size {5,3,2,2}, what is the probability of exactly three urns containing at least one ball? (Phrased differently, twelve equally likely spots for the seven balls, but the first five is considered the first urn, next three the second urn, etc.) Through simulation got ...
My research objective is that I would like to test if some sounds in languages are similar to each other in terms of duration. In my situation, I have 4 languages with 5 sounds. The first three languages have all 5 sounds but only one language has 3 sounds. My items are divided into 6 vowels and all languages have all...
Good–Turing frequency estimation is a smoothing estimator for estimating a multinomial distribution. It seems very convoluted. From mathematical statistics point of view, what is the rationale behind the construction of Good–Turing frequency estimation? Is it a shrinkage estimator? Is it based on the posterior distri...
I'm wondering how to compare the predictions of three different models - a logit, a probit and a linear probability model - when predicting a binary outcome. I'm currently working with simulated data, so I have access to both the latent variable $y$ and the binary outcome $Y$ with $\Pr(Y=1)=y$ I'm under the impression ...
I was wondering if anyone can explain to me the intuition beyond the Clopper-Pearson CI for proportions. As far as I know, every CI includes a variance in it. However, for proportions, even if my proportion is 0 or 1 (0% or 100%), the Clopper-Pearson CI can be calculated. I tried looking at the formulas, and I understa...
When should I use weights when performing a logistic regression? The weights I'm referring to are sampling weights from a survey? Or should I just use the unweighted data?
I am running an experiment in the lab where a variable is measured over time (e.g: 60 seconds) I run several times the experiment without any disturbance. Then I run the experiment again by introducing a disturbance in the starting conditions. The trajectory of the variable I am measuring will start in a similar way an...
I want to calculate the degree of slope at each point in a time series. Different time series have different scales. The final number should be normalized in the range of +/-90 degrees. Basically, when I plot my time series in Excel, I can see the degree of slope up or down, 0=flat, 70=very steep up, -20=gradual slope ...
The normal distribution can be generalized into the multivariate normal distribution. Can the logistic distribution also be generalized into a similar multivariate distribution? Is there a multivariate generalization of the logistic distribution which depends on the covariance matrix $\Sigma$, similar to the multivari...
I have 6000 sets of ~350 items each, all from the pool of ~13800 items total. Items in each set do not repeat. I want to find rules like "if 1398 is present, 1035 will most likely be present too". I've tried FPGrowth and Eclat, but the problem is, not every set has these combinations, so their support is low and they'r...
I am not sure about this plot if it looks good as the dots appear around the line. So I just want to ask if it looks okay. My data is quite large (almost 3000 observations) and maybe that is why it looks like this.
Suppose I have access to five dental surgeries, who volunteered to collect data about patients and their regular check-ups. The dental surgeries are quite up to completely different from each other (size, sociodemographics of patients etc.). The collection of data for each patient runs as a small questionnaire (14 item...
I have a number of categorical variables, each with varying numbers of levels: gender of client (m,f) age group (0-8, etc.) diagnosis (mild, moderate, severe, profound) location (community, residential) restrictive interventions used (physical restraint, chemical restraint, seclusion, etc.) (and more) I want to see if ...
It is well known that a study with low statistical power has a reduced chance of detecting a true effect. But if low power also reduces the likelihood that a statistically significant result reflects a true effect (as shown in Power failure: why small sample size undermines the reliability of neuroscience), why does o...
I am doing a study to try to explain certain behaviour using 6 predictors. I have used a questionnaire to gather the data. The questionnaire included a demographics section eg age, gender, job position. I an not sure whether I should include the demographic variables in the regression or not. I didn't originally plan ...
Is there any result showing that a sum of independent Wishart with same degrees of freedom but different scale matrices is a Wishart? For example, if I have two random variables: $$ Y \sim W_p(n,\sigma_1)\ \\ X \sim W_p(n, \sigma_2), $$ where $p$ is the dimension of matrices, will $Y+X$ be equal to $W_p(n, \sigma_1 + ...
I realise there are a lot of questions about markov here, but as we say in Dutch, I couldn't see the threes through the forest. I have a sequence of intervals between subsequent notes (pitches). Like: 2 -3 -1 0 2 3 etc I suspect that the next interval is not only dependant on the previous interval, but let's say, depe...
I have created 39 question Likert scale survey and want to cross-reference results with 5 demographic questions. I plan on assigning values for each answer 1=strongly disagree, 2=disagree, 3=neutral, etc. I am required to put info into SPSS. I am rather confused on which test I should use: ANOVA, ANCOVA etc. Any th...
I read on my machine learning course (on coursera) that random initialization performed several times and then taking the cluster with the lowest cose could help when the number of clusters is "small", but didn't help much for K>>10. Why so?
Suppose I have a set of (discrete) variables, say $X_1,\dots,X_n$. Each $i$ belongs to either class A or class B. When it belongs to A the contribution is $Y_{A,i}f(X_i)$, and when it belongs to B the contribution is $Y_{B,i}g(X_i)$, so that the final outcome is $Z=\sum_{i=1}^N Y_{A,i}f(X_i) I_{\{i \in A\}} + Y_{B,i}g(...
I have run a Poisson glm and I want to test for multicollinearity in my data. I have used the vif in R and obtained the following result. How can I interpret this? GVIF Df GVIF^(1/(2*Df)) make 1.083927 1 1.041118 cc 1.093900 1 1.045897 area 1.113460 3 1.018073 insgen 1.029887 1 ...
I need to perform clustering and classification of time series of weekly sales of different products. My data are weekly sales of different products in differest areas (stores). The challenges on this problem are: - Time-series are usually short: 10-52points(weeks). - Time-series may have a lot of zeros - sparce data...
I am having trouble figuring out what the regression equations for HLM models are with absolute effect size and relative effect size provided in a table. E.g., the outcome variable is reading test score. The predictors in level one are: student gender (absolute effect: -0.05; relative effect: -0.06) and SES (absolute...
We are building a model that adjusts for standard covariates (e.g., age, gender) and for the outcome at baseline. It would be ideal to adjust for each subject's baseline value like so: $$ Y = \beta_0 + \beta_1*{\rm age} + \beta_2*{\rm gender} + \beta_3*{\rm baseline} $$ However, we don't have baseline measures for ev...
The usual method for adapting binary classifiers like various SVMs to multilabel data is one-vs-all, which assumes that labels are independent and in case of a prediction error we don't care what label the incorrect prediction should output. But suppose I want to predict a score from 1 to 5, and I prefer to err closer ...
I have about 80 different groups, each with 3 replicates which I would like to compare against a control having always a value of 1. As I have a low number of replicates and many groups having 2 replicates with 0 values, I would rather do a randomization test than pairwise mann-u test. However, I'm not sure wether I ca...
I have been scouring CRAN and Google for a function (that I wouldn't have to code myself) that would calculate the sample size needed for a pre-post design with a dichotomous outcome - to no avail. If I'm wrong, please let me know! I came across an R script from a university course and was wondering if someone wouldn't...
I am doing some classification task with Support Vector Machines (SVM). I am using libSVM (with Matlab support) to predict probability estimates matrix. However, the libSVM displays message that; Model does not support probabiliy estimates Below is my sample code; (train_label contains labels for training data and tes...
I was trying to understand better when we can learn a unique parameter for linear regression and how much data is required to get one. Say that we want to learn a parameter $\theta$ such that empirical risk is minimized $R_n(\theta)$. For that we want: \begin{align} \bigtriangledown R_{n}( \theta )_{\theta = \hat{\the...
I am interested in finding expressions for the marginal distributions of the off-diagonal terms in a Wishart-distributed random variable. More specifically, suppose $X$ is an $n \times p$ matrix, each row of which is independently drawn from a $p$-variate normal distribution with zero mean: $X_{(i)}{=}(x_i^1,\dots,x_i^...
I am doing linear mixed models using lme4 and this is the results of model comparison: > anova(lmer5,lmer6,lmer32) Df AIC BIC logLik Chisq Chi Df Pr(>Chisq) lmer32 9 43172 43226 -21577 lmer6 21 43190 43315 -21574 6.3081 12 0.8998 lmer5 26 43162 43317 -2155...
Recall stochastic gradient descent (for regression): $\theta = 0 $ $ \text{Randomly select } t \in [1,n]\{\\ \quad \theta^{(k+1)} = \theta^{k} + \eta_{k}(y^{(t)} - \theta \cdot x^{(t)})x^{(t)}\\ \}$ I was following some notes and it said that to have stochastic gradient descent converge it would be sufficient to se...
A survey found that 70% of college professors believe that their online education courses are as good as or superior to courses that use traditional face-to face instruction. What is the null hypothesis?
I have a simple question. If I have a small number of observations of a large number of variables, is it the distribution of the variables that matters for a statistical test or the distribution of observations for each variable. For example if I ask 6 people in two groups (3 people per group) 2,000 questions and each...
I am trying to implement Holt-Winters exponential smoothing in Java program (I understand that R and Python have implementations of these algorithms, but I can't use those due to other reasons, so they are ruled out). I have been going through Rob J. Hyndman's book and formula. I am trying to execute the following form...
I have run a general linear model which includes 3 scale independent variables (IVs) and 2 categorical IVs and 1 scale dependent variable. I am testing the assumptions of regression and I a not sure how to test multicollinearity since I have categorical variables. I would usually use Pearson correlation between the IVs...
I have regressed data for rainfall on years 1990-2010. This was a simple linear regression in R using the lm() function. The data represent mean yearly amount of rainfall in mm. When I plotted the residuals, however, I noticed that they follow exactly the same pattern and grouping as my data. Is this normal or because...
I have a multivariate Gaussian parameterised by a mean vector $\mu$ and a precision matrix $\Sigma$. Now, I want to set the Gaussian along a given dimension $i$ to a point mass i.e. I set the corresponding diagonal entry i.e. $\Sigma_{ii}$ to infinity (zero variance) and also set all the entries in the ith row and colu...
I am interested in estimating a break point in response to one explanatory variable, while also including other variables as terms in the linear model. One reason to include additional terms is to account for spatial dependency/autocorrelation. The following code was adapted from code provided by @jbowman here, and als...
I am wondering how to reconstruct the design matrix for a coxph() model with a pspline() term. For example, if I fit the following model, fit <- coxph(Surv(t,delta) ~ pspline(x,df=0)) how can I calculate the linear predictor by hand for a given value of $x$? Formally, I am modeling $h(t|x) = h_0(t)\cdot e^{(X^\interc...
I am trying to compare data from 2 populations to tell if the difference between the treatments is statistically significant. The data sets appear to be normally distributed with very little difference between the two sets. The average difference is 0.00017. I performed a paired t-test, expecting that I would fail to r...
I fitted a empirical distribution to a set of time series data (Y) by following code in R: Ye=rank(Y)/(length(Y)+1) How we can find the inverse of this distribution? Thanks
I was trying to use glmnet package in R to create a lasso regression model. The details of my data are: Dependent variables $y$: 451 observations, single value for each observation. Independent variables $x$: 451 observations, 959 values for each observation. I find the optimal value of $\lambda$ by minimizing the cros...
Is it possible to test the following? Assume you have two linear regression models, one regressing $Y_1$ on $X_1$ the other $Y_2$ on $X_2$. This gives error variance $\sigma_1^2$ and $\sigma_2^2$. From a sample all variables are available. I would like to evaluate $$H_0: \sigma_1^2=\sigma_2^2,$$ or one-sided $$H_0: \si...
My problem is I have 3 biological replications (reps) withe each having 4-5 technical reps with two of the biological reps having comparable results for the treatment and control. These values represent the colonization of donor stem cells. (Treatment is about 50% of control) whereas in the third rep I still have ~50...
I am trying to derive ELM going through the basics , please help me out here : $$f = x^Tx$$ $$g = Ax-b $$ The constraint is $Ax-b = 0$ I calculated $J' = f'+\lambda^T g'$ which is $2x+(\lambda^T A)^T = 0 $ and $Ax-b=0$ . I dont know what to do next please help me out .
I have approximately 500,000 data points that were mechanically measured over about 2000 days. The equipment is manually set up each day, which likely induces some error. What I am attempting to do is use a linear mixed effects model to estimate the fixed effect of each day's potential measurement error while account...
For linear model $y=x\beta+e$, we can have a nice geometric interpretation of estimated model via OLS: $\hat{y}=x\hat{\beta}+\hat{e}$. $\hat{y}$ is the projection of y onto the space spanned by x and residual $\hat{e}$ is perpendicular to this space spanned by x. Now, my question is: is there any geometric interpretat...
What is the difference between: 1) xcov(x,y,10,'unbiased')/sqrt(xcov(x,x,0,'unbiased')*xcov(y,y,0,'unbiased')); 2) xcorr(x,y,10,'unbiased'); 3) [A, B] = crosscorr(x,y,10); ? I think (but I am not sure) that "crosscorr" removes the means and "xcorr" doesn't, but i don't get why the first one gives a completely differe...
When I do a (logistic) regression in R, I run something like this: mydata <- read.csv("data.csv") mylogit <- glm(a ~ c+d, data = mydata, family="binomial") summary(mylogit) As of a few months ago, the output for the coefficients might look like this: Call: glm(formula = a ~ c + d, family = "binomial", data = mydata) ....
It is i'm sure quite a simple question but i was not really able to find an explanation of this online and does not seem to be explicitly called out in the typical expositions i've seen. I get how 10 fold cross validation works to recursively partition the dataset into 9 train and 1 test set 10 times to get an estimat...
I'm working on a promotional response analysis. I have a really small real world dataset with 25 observations and 15 variables. The variables have a high degree of multicollinearity and some have outliers. Also, I cannot use machine learning methods because I need interpretable coefficients. Here is what I have tried s...
While reading, I came across the puzzling statement that the sample mean and variance are uncorrelated only in symmetric distributions and there is strong correlation if the distribution is heavily skewed. First of all, is it true? I already know this holds for the case of a normal population, but can that proved for e...
Note: There is another post with very similar title, but it is really on the author's specific problem with submarines. Mine is more general. I have asked a similar question before but turns out it wasn't a good question, so I am asking a modified one. (a practice recommended by the meta site I think) Question starts: ...
I would like to perform a Fixed effect logit estimation in R. Can someone point out a package that can do the job? Note: For the time being I'm not really interested in the random effect. Update; Essentially I wonder if there is the plm package for a binary response model. Here is some documentation for the plm packag...
I am trying to figure out the relationship between $\text{Cov}(x_i^2, e_i^2), V$ and $V_0$, where: $V=$ asymptotic variance of $\sqrt{n(\hat{\beta}-β)}$ under heteroskedasticity, and $V_0=$ asymptotic variance of $\sqrt{n(\hat{\beta}-β)}$ under homoscedasticity Also, I am given that that the expected value of x squared...
I am fitting a GLM to binomial data with two independent variables, a and b. I have tried to fit a binomial GLM with the form y~a+b+a*b, so that I have the contributions of the two variables as well as an interaction term. This works OK, but in the data the effect of b is very gradual in comparison to a. The best fit I...
Basically I have max, count, median and 95th percentiles for every hour for a data stream already pre-computed from an hourly workflow. Can I use these 24 snapshots to get an approximate median and 95th percentile for the day? Is there a way / formula or technique to do this? EDIT: Sorry i should have given the informa...
An regression output from STATA reg lnQ lnL lnK COOP Source | SS df MS Number of obs = 87 -------------+------------------------------ F( 3, 83) = 177.43 Model | 46.8044524 3 15.6014841 Prob > F = 0.0000 Residual | 7.29838834 ...
reg inc age educ men men_age ------------------------------------------------------------------------------ inc | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- age | .7339817 .0719376 10.20 0.000...
(Model1) . reg lnQ lnL lnK COOP ------------------------------------------------------------------------------ lnQ | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- lnL | .7682515 .0662688 11.59 ...
Often times, several theorems in mathematical statistics depend on regularity conditions. For example, there is a theorem that states: "Let $\hat{\theta}_n$ be the maximum likelihood estimator of $\theta$ based on the sample $X_n = (X_1,...,X_n)$, then under regularity conditions, $\hat{\theta}_n$ is a consistent esti...
I am doing linear mixed model using lme4. According to Winter (2013, http://www.bodowinter.com/tutorial/bw_LME_tutorial2.pdf), as the new version of R does not give p-values due to inconclusion of degree of freedom, p-values of mixed models can be derived from model comparison. From the examples on page 12, he suggeste...
I have read about Student's t-test but it appears to work when we can assume that the original distributions are normally distributed. In my case, they are definitely not. Also, if I have 13 distributions, do i need to do 13^2 tests?
A feed forward neural network trains best if the data is normalised so that each input has a mean of 0 and a standard deviation of 1. Is this true for a Restricted Boltzmann machine as well? (My experiments are saying, no it isn't.)
I am doing LMM in lme4, and have installed languageR to run pvas.fnc(), but it does not work with random intercept and slope. This is the message: Error in pvals.fnc(lmer1) : MCMC sampling is not yet implemented in lme4_0.999375 for models with random correlation parameters For model with only random intercept, ...
I'm trying to measure the influence of one event over the other. Say we have two articles $A$ and $B$. We have knowledge about the users reading these two articles, so I'm trying to measure $P(B|A)$ here. Intuitively, I feel that the larger $P(B|A)$ is, the more influence the event "one has read article $A$" will infl...
Suppose that $X_1,...,X_n$ is an iid random sample from a Poisson distribution with mean $\theta$. I would like to prove that there exists no unbiased estimator of $\frac{1}{\theta}$. To do so, I will let $\delta(X)$ be an estimator of $\frac{1}{\theta}$. Then, I'd like to equate the expectation of $\delta(X)$ and $\...
I have a sample of 72 individuals. 0 of these had the trait I'm investigating. How do I calculate the 95% CI when the proportion is 0%?
I am now working with Stata and I found out I have a unit root in my regression. How can I correct for this, because I can read everywhere what the test does but if you have a unit root, what to do next?? Sorry, it is one of my first times working with Stata so it is all really confusing..
I have lots of time series with periods: day, week or month. With stl() function or with loess(x ~ y) I can see how trends of particular time series look. I need to detect if trend of time series is increasing or decreasing. How can I manage that? I tried to compute linear regression coefficients with lm(x ~ y) and pla...
I have 399 claim amount of data, i want to fit them using a Gamma distribution. I have done so in Matlab software However i am getting this as my result: [phat,pci] = gamfit(data) phat = 1.0e+004 * 0.0001 2.8951 why i am getting the 1.0e+004*? Thanks
I was reading Andrew Ng's ML lecture notes on K-mean clustering, in which the distortion function is defined as follow $$J(c,\mu) = \sum^m_{i=1} || x^{(i)} - \mu_{c^{(i)}}||^2$$ I am puzzled about the $L_2$ norm, since $|| x^{(i)} - \mu_{c^{(i)}}||^2 $ would imply $\sum^m_{i=1} (x^{(i)} - \mu_{c^{(i)}})^2$ and this mea...
A couple of times in LMM or GEE (with SPSS, though I doubt that matters – and might occur in other analyses as well, but these are the ones with which I have seen it) I have seen something that seems contradictory: a continuous variable $X$ has completely different test values (Wald's or $F$s) and $p$s under tests of m...
I have installed the package afex with this formula: x <- mixed(duration ~ (1|item) + (1+color|speaker) + group*color*sex, data=data1.frame,REML=FALSE,type=2,method=c("KR")) The formula gave me this: Fitting 10 (g)lmer() models: [..........] Obtaining 7 p-values: [Error in list2env(data) : first argument must be a nam...
I have a repeated-measures experiment where the dependent variable is a percentage, and I have multiple factors as independent variables. I'd like to use glmer from the R package lme4 to treat it as a logistic regression problem (by specifying family=binomial) since it seems to accommodate this setup directly. My data ...
I want to test the hypothesis that IV 2 (post-test value) is a better predictor for the criteria (no success vs. success) than IV 1 (pre-test value). Those IVs are indicators for static vs. dynamic learning. I conducted a logistic regression analysis for both IVs seperately and it seems that IV 2 is indeed the better p...
I have been reading on cook's distance to identify outliers which have high influence on my regression. In Cook's original study he says that a cut-off rate of 1 should be comparable to identify influencers. However, various other studies use $\frac{4}{n}$ or $\frac{4}{n-k-1}$ as a cut-off. In my study, none of my resi...
As the title to my question says, I am confused as to when the $R^2$ of a model fit does not equal the slope of the regression between observed and predicted values. I am trying to present model prediction statistics in a similar way to those presented in the summary figures of the Globcolor validation report (link) -...
thank you very much for your time! I am currently working on a neuroimaging study comparing lateralization indexes between the two hemispheres in three different groups. I have 4 lateralisation indexes (two different independent parameters for two different fiber tracts) and am now wondering whether it's better to use ...
I have a choice of Master's programs in statistics, one of which is formally a program in applied statistics, the other is formally in math with an applied statistics "track". The courses in the 2 programs are about the same, so I am wondering how much the label of the degree really matters (I most likely will not work...
I want to calculate: $\operatorname{var}[\frac{b}{a} B(a-b)-b B(b)]$ with $b\leq a$ and $b\geq 0$; $B=$brownian motion. I started like this: $(\frac{b}{a})^2 \operatorname{var}[ B(a-b)]+-b ^2 \operatorname{var}[ B(b)]+ 2 \operatorname{Cov}(B(a-b), B(b))$ Can someone help me here or comment on my approach?
I know 2 approaches to do LDA, the Bayesian approach and the Fisher's approach. Suppose we have the data $(x,y)$, where $x$ is the $p$-dimensional predictor and $y$ is the dependent variable of $K$ classes. By Bayesian approach, we compute the posterior $$p(y_k|x)=\frac{p(x|y_k)p(y_k)}{p(x)}\propto p(x|y_k)p(y_k)$$, an...
I have a data set of repeated observations and I am trying to determine if any of the observations are outliers. The research I've done has only shown methods that would determine if one value (maximum, minimum, or one questioned value) is an outlier, or if both the highest and lowest value are outliers. What I would l...
According to the WinBUGS manual the gamma distribution is defined by: dgamma(r,mu) However, what is r? Is it the shape, scale or rate parameter? I'm pretty new to statistics and googling didn't really help. Above that in most explanations I've found ris usually not mentioned. It's either k, theta, beta or alpha.
I am trying to cluster data. Each point in this dataset is connected to some other points. I want to define clusters "depending on how much the points are connected to each other". After some research, I read about k-core clustering (and saw it has applications in social networking for instance). I think this is the al...
For Univariate Linear Regression I can calculate the parameters (And most everything else) from simple sum of squares. Is there a corresponding method for Logistic Regression? Any pointers to code (in any language) would be helpful. (Yes there are many solvers, but I want to implement as a simple Map-Reduce algorithm, ...
Let $x[n]$ be some time series in 1D or $x[m,n]$ in 2D, of length $N$ (resp. $N^2$) How can I assess whether it is stationary? At least in the weak sense. I can check whether the stdev remains constant, but this is only a necessary condition.
I'm doing my PhD in geomechanics. I thought we use a Poisson-Weibull distribution (for the variability of a parameter at the rock), but reading more about the subject I think maybe is a Poisson-Weibull process and I don't know the difference. To complete the problem I'm not too knowledgeable about the language of mathe...