instruction
stringlengths
9
38.7k
As a learning exercise, I have been implementing multiple linear regression from scratch using gradient descent to fit the parameters. Following the conventional approach to the algorithm, I have managed to dramatically speed up the convergence by standardising all of the features such that they have mean 0 and standa...
Assume we observe in paris $(x_i,y_i)_{i=1}^n$. For example, X: 45,23,37,89 Y: 13,78,23,13 Here we maintain the assumption that $(x_i,y_i)_{i=1}^n$ are i.i.d. samples from the joint distribution of $P_{X,Y}$. Now we want to test whether $X$ and $Y$ are uncorrelated, which is much weaker than the claim of independence...
Let us have some data $x_i\in\mathbb{R}^2$ for $i=1,\dots,n$. Let $m=1000$. Let a small number is given, e.g. $m=5$. The goals is to cover $n$ data by $m$ squares of the same size. The size shall be as small as possible. In the other words $$ \arg\min_{p\in P} a $$ where $$ p = \left(c_{1,1},c_{1,2},\dots,c_{m,1},c_{m...
I'm trying to understand/recall, what does $E[ \cdot ]$ attach to? E.g. if the expression is $$\beta = (X^T V^{-1}X)^{-1} X^T V^{-1}y$$ then why is $$E[\beta] = (X^T V^{-1}X)^{-1} X^T V^{-1} E[y]$$ ?
I tried to use below R code to model inverse gamma distribution (alpha=1,beta=1). However, the resulting histogram is not alike the one plotted in the wiki. Could anyone provide any hint about this? Thank for you help. v <- rgamma(1,1,100000) v <- 1 / v dv <- as.data.frame(v) ggplot(data=dv,aes(x=v)) + geom_histogr...
Let $(Y_i, K_i)$, $i=1,\dotsc,N$ be pairs of observations drawn from discrete labels $L$ and discrete clusters IDs $C$. For example $Y$ could be individual birds, $L$ could be a set of species and $C$ could be the location of bird feeders where the birds are observed. (In this contrived example assume the birds may ...
I run rake function from the survey package of R in my data and got the weights by calling the weights() function. Sample code small.svy.unweighted <- svydesign(ids=~1, strata = ~HZIP ,data=HHdata, weights=~Weights_1) small.svy.rake <- rake(design = small.svy.unweighted, sample.margins = list(~agec...
I have $X_1,...,X_n$ iid as gamma($\alpha,\beta$). Defined also is the harmonic mean $Y_n=\frac{n}{\sum{x_i^{-1}}}$. I'm trying to figure out if $Y_n$ converges in probability to some constant $c$. My intuition says c=0, but I do not really know any ways to solve for convergence in probability outside of Chebychev's In...
I am watching the lecture here and the author says that in the machine learning setting where data is assumed to be generated by a model with a few parameters: Max Likelihood parameters are NP hard to find in general (non convex objective). And in practice heuristics such as EM are used. I guess everywhere these things...
This is probably a very basic question but I cannot find the answer after experimenting a lot with it. I am using the Davis dataset from https://vincentarelbundock.github.io/Rdatasets/datasets.html (Self-Reports of Height and Weight) from 200 individuals. The question that I am trying to answer is what weight is to be ...
I have 15 independent variables and 3 correlated, binary, dependent variables. It seems like for predicting correlated dependent variables the general recommendation is multivariate regression. One recommendation was to use a multivariate GLM with a log link. However, since my dependent variables are binary, it also ...
I am new In data mining and Weka. I am working on "Ta_Feng" data set and my Intention is to apply Pearosn's Correlation coefficient to calculate correlation between User and Item attribute in my case UserID, and ProductId are the attributes and both of them are numeric where productID is class(Numeric class) but is ...
Setting. Two different individual characteristics, $X$ and $Y$, are measured for a subject repeatedly in time. Both variables are assumed to be continuous and non-negative. I'm looking for a measure of association between $X$ and $Y$ that will account for their absolute measured values, account for relative change in...
I am estimating an Error Correction Model using the two step approach. In the usual form the ECM second-step regression includes lagged first differences of independent variables $X_{1}, ..., X_{k}$ : $\Delta Y_t = \alpha + \beta_1\Delta X_{1,t-1} + ... + \beta_k\Delta X_{k,t-1} + \lambda resid_{t-1} + \varepsilon_t$...
Let c refer to a class (such as Positive or Negative), and let w refer to a token or word. Define $count(w,c) = $ $counts \ w \ in\ class \ c$ $count(c) = counts \ of \ words \ in \ class \ c$ P(w|c)= $( count(w,c)+1 ) \div ( count(c)+|V|+1)$, $|V|$ refers to the vocabulary (the words in the training set). In ...
I have four numbers ($k_1 \dots k_4$) that come from 4 binomial trials with parameters $n$ and $\theta_1 \dots \theta_4$. I want to test (via likelihood ratio test) the hypotheses $$H_0: \theta_1 = \theta_2 = \theta_3 = \theta_4$$ versus $$H_1: \theta_1 > \theta_2 > \theta_3 > \theta_4$$ I tried to calculate $$P(k_1,...
I'm trying to work through a theorem in the Lehmann statistical inference book and I'm confused about a proof. They are proving that a set of tests are UMP unbiased level-alpha tests for a series of hypotheses in a multiparameter exponential family. Write the following exponential family as: $f_{X}(x\mid {\boldsymbo...
Are there any single indices to roughly measure the degree of total randomness of a multivariate distribution (or data)? For example, assuming I know the covariance matrix $S$ of a multivariate random variable $X$, how can I measure $X$'s "total randomness" by some single number? Some of my wild guesses, The Frobenius...
Suppose $P$ is our true probability distribution with mean $\mu$ and variance $\sigma^2$, and we have samples $X_1,\cdots,X_n$. Suppose also that we bootstrap sample with replacement. Let $P_n$ be our bootstrap distribution. We choose $R_n$ such that: $$ P_n \left(\vert\bar{X}_n^*-\bar{X}_n\vert \leq \frac{R_n}{\sqrt{...
Suppose my training data contains ~100 variables, and each example is tagged as "success" or "failure". I understand how a neural network can be used to try and predict success vs failure based on the variables. However I am interested in the neural network outputting the posterior probability rather than success or fa...
Say $X \in \mathbb{R}^n$ is a random variable with covariance $\Sigma \in \mathbb{R}^{n\times n}$. By definition, entries of the covariance matrix are covariances: $$ \Sigma_{ij} = Cov( X_i,X_j). $$ Also, it is known that entries of the precision $\Sigma^{-1}$ satisfy: $$ \Sigma^{-1}_{ij} = Cov(X_i,X_j| \{X_k\}_{k=1}^...
I have a bunch of curves $f(x)$, and I have a parameter $\lambda$ that rescales $x$, such that $x \rightarrow x' = g(x, \lambda)$. I find the value of $\lambda$ that collapses all the curves on top of each other in a window of $x'$ values. After I do the minimization, I need an uncertainty in the parameter $\lambda^*$ ...
I'm studying Statistical Methods and trying to revise for the upcoming exam. Looking at the past exam paper, there is a question: X ~ N (µ, 10²), and P ( X > 50) = 0.9, find µ I've only before done the calculations finding z = (x - mean)/standard deviation and looking at the values from the Normal distribution funct...
Suppose we have some samples, each sample is with two vectors and the corresponding label. That is, it looks like ($\mathbf{u}_i, \mathbf{v}_i, y_i$), where $y_i \in \{0, 1\}$ We can calculate the cosine similarity between the two vectors $\mathbf{u}_i$ and $\mathbf{v}_i$. According to the ranking of similarity scores,...
I have two questions: 1) When one says an ARMA process is 'stationary,' do they mean strongly stationary or weakly stationary? 2) Is there a quick way to find the variance of a stationary AR(2) model $$y_t = \beta_1 y_{t-1} + \beta_2 y_{t-2} + \epsilon_t?$$ The only way I can think of doing this is by multiplying by $y...
I have been given a question: If X ~ N (3, 2²) and Y ~ N(1, 2²) what is the distribution of 2X-Y ? The answer is given as N(5,20) I assume the value for 5 is = 2x-y = (3 x 2) - 1 but where does the 20 come from ? I am very new to statistics and any help would be appreciated.
First let me explain what I mean by "transitive" Suppose that the price of product A and the price of product B has a correlation of .5 Suppose also that the price of product B and product C has a correlation of .5 One might thing that if correlation(A,B) = .5 and correlation(B,C) = .5 then correlation(A,C) > 0, but wi...
Suppose $X$ is i.i.d from a continuous distribution Why is$$P(X_{i_1}<X_{i_2}<\cdots<X_{i_3})=P(X_{j_1}<X_{j_2}<\cdots<X_{j_3})=\frac{1}{n!}$$for all $i,j$? I think we can reason this by probability measure is translational invariant? (But I don't think this is true in general) Update: I know the intuition but please g...
Looking at my time trend plot, I wonder how to test the statistical significance in the trend shown in the plot here given this simple "years vs. rate" ecological data? I tried ANOVA turned in $p<0.05$ treating year variable as categorical. But it's not satisfactory. Also, there is one article I reviewed suggested Wald...
In statistics, people often talk about unbiased estimators. In machine learning, bias variance trade-off is mentioned all the time. Does bias in both contexts mean the same thing? Does an unbiased estimator have a bias for the data it tries to model?
I see people often ensemble Gradient Boosted Decision Trees and Random Forests together. Does it make sense to ensemble a Decision Tree and a GBDT together? Isn't this DT already a part of GBDT?
This is an understanding question regarding the method of moments: It's basic idea is that any $k^{th}$ moment $m_{k}$ converges in probability to its empirical estimate as follows: $$m_{k} = \frac{1}{n} \sum_{i=1}^{n} X_{i}^k \overset{p}{\rightarrow} E(X_{i}^k) = \mu_{k}(\theta)$$ where $X_{i}$ is the random variable....
After the football match each football fan leave on the stadium 2 empty bottles. The janitor finds the bottle with probability 0.3. Find the approximate meaning of probability that the janitor collects at least 14/45 of all the bottles left at the stadium after the match if this match visited 6000 fans ? Also, If anyon...
I have 1st quartile, median and 3rd quartile. I want to find mean and SD. I want to use Bland’s method1 but i do not have max, min values of the data. How can i solve this problem? Is there any R package? 1 Bland, Martin. 2014. “Estimating Mean and Standard Deviation from the Sample Size, Three Quartiles, Minimum, and ...
I need to evaluate the goodness of fit of a set of data points (the measures) to a straight horizontal line / constant (the model). The ultimate goal is to evaluate the effectiveness of a noise equalisation method applied to an image, i.e. a method that transforms intensity-dependent noise to non-intensity-dependent (=...
I read "Improving Distributional Similarity with Lessons Learned from Word Embeddings" and authors mentioned that Glove is a prediction-based model while it is clearly factorizing co-occorrence matrix which brings it close to SVD or LDA. Also in Glove paper they said: Unlike the matrix factorization methods, the shall...
I'm taking a look at what I have identified as being a subset sum problem. I have around 650 potential values which could form part of my single sum value. I've began looking into the typical theories to solve for this problem, however I have identified a number of constraints which may allow me to confine the problem...
As part of a multi-task prediction problem I'm building a neural network for a regression problem where the target/response value lies on the unit interval, i.e. is a real value between 0 and 1. Right now, I'm using a sigmoid output layer (logistic function) to bound the output to the unit interval, but I'm not sure th...
I have the solution of the quiz below but. in that solution, I cannot understand the choice of the test statistic and would need help to understand that. (I do not need help with the full solution, don't need the numeric result.) The quiz is: "Researchers would like to conduct a study of 100 healthy adults to detect a...
I am reading about Roc curves and have encountered the term ""D-prime experiment" does anyone know what it is?
In negative binomial regression, the distribution is specified in terms of its mean, $\frac{pr}{1-p}$, which is then related to explanatory variables as in linear regression or other Generalized linear models. From the expression for the mean m, one can derive $\frac{m}{m+r}$ and $1-p=\frac{r}{m+r}$. Then, substituti...
I have a spectrum of some counts against wavelength, where both the counts and wavelength have a known error. I then have applied a Hermite interpolation to the spectrum in Mathematica. From what I gather, an upper bound on the error between the interpolation and the spectrum is, $$\max_x |f''(x)|\prod_{i=1}^n (x-x_i)$...
I have a random Poisson variable, $$X\sim Po(\lambda)$$ Also, the value of $X$ determines the value of $Y$: $$X=k\Rightarrow Y={k\choose{2}}= \frac{k^{2}-k}{2}$$ I guess there is no elegant way of writing a PMF, other than: $$\text{Pr}\left[Y={k\choose{2}}\right]=\text{Pr}\left[X=k\right]$$ What more can we say about ...
Given n trials, where, on each trial, you have a given probability of either winning or losing a set amount of money (with both the amount of money and the probability changing for each trial)- what is your probability of walking away ahead or at least breaking even? Edit: From reading Wikipedia, it looks like it might...
Say I have a frequency density data, for example 1,2,3,3,4,5,5,6,6,6,7,8,8,8,9,10 and then I compute the frequency of each number. Than I would like to know within what range 95%, 50%, and 10% of the data falls into. I imagine if I calculate 10% it will give me multiple ranges. What are these statistics called and how...
I have problems to understand when a non-centrality parameter is relevant. As far as I understood, if the t distribution is not centered on 0, a non-central t distribution is used. For example, in power analysis, it is assumed that an effect is present, therefore, a non-central t is used to calculate the probabilities....
Can we interpret p-value: $$P(T(x)>t\mid H_0:\mu=\mu_0)$$ in terms of usual conditional probability, which some random variable (T - test statistics) is conditioned on an event that some population parameter ($\mu$, which is a random variable) takes a certain value ($\mu_0$ in case of one sample hypothesis)? The, it co...
I have a limited statistics background, so I will try to be as specific as possible. I'm reading a paper on a method to fingerprint mobile devices using their accelerometer. To demonstrate that the method is robust, the author measures parameters from 16.000 devices; I don't know if it's relevant, but the parameters ar...
Recently, I ran into a case where I used two different methods to perform parameter estimation, and ended up with contradictory results. I am going to use a very simple example to illustrate the problem: estimating the parameter of a coin. I'll present two solutions to the same problem, and they seem to produce contrad...
I'm looking for a suitable test for the difference in two proportions when dealing with finite populations. The standard z-test seems to only apply to infinite populations, so you lose some power. It is of course possible to just do two confidence intervals with the finite population correction and check that they don'...
I have a time series of monthly sales data that is incomplete. That is, the product was partly out of stock and the sales of those periods are too low. I manually fixed this and wanted to plot the data and a forecast to see if my fixes are reasonable. So I came across this easy to implement excel forecasting technique ...
A problem from Chapter 10, section 8 of the Online Stat Book: I consulted a table of critical values of Student's t distribution, and it said 1.729 is the critical value for the 95% CI when the degrees of freedom is 19. Thus my calculation had this form: Upper Limit = 14.25 + (1.729)*(1.78425) = 17.334968 Was I mist...
I have a hazard function $\lambda$ for survival time T, is there a way to find the hazard function $\lambda_\alpha$ for T + $\alpha$, where alpha is some integer. I'm thinking $$S_\alpha(t)=P(T+\alpha > t)=P(T>t-\alpha)=\exp(-\int_0^{t-\alpha}\lambda(s)ds)$$$$=\exp(-\int_0^{t}\lambda(s)ds+\int_{t-\alpha}^{t}\lambda(s)d...
Background: coding in Python, utilizing pandas, statsmodels and scikitlearn (the former supports Poisson, the latter can easily split sample for training and testing). Very little experience in statistics. Let's assume I have a hypothesis: for every soccer game, several figures (predictors) can be used to estimate the ...
What is the difference between technique and model? Some say Linear Regression Model Some say linear regression Technique Do both of terms means the same?
I just learned the basics of SVM, and I have 2 questions about the solution for the non-separable case: In the separable case, the distance of all the support vectors from the hyperplane is the same, and they determine the margin. Now, in the non-separable case, is it possible that no support vector falls on the edge ...
I wanted to estimate confidence interval for standard deviation for some data. R code looks like follows: library(boot) sd_boot <- function (x, ind) { res <- sd(x$ReadyChange[ind], na.rm = TRUE) return(res) } data_boot <- boot::boot(data, statistic = sd_boot, R = 10000) plot(...
From Online Stat Book: I used the Stat Trek t-distribution calculator instead, and got this: Why is the result different from the one provided in the test, and the one calculated using the Online Stat Book t-distibution calculator?
I'm having troubles in understanding the steps performed by the ur.df function in R. I'm performing an Augmented Dickey-Fuller Test with drift to assess if my series has a unit root or not. The first time i chose to set maximum lags equal to 9 and the second time i set the maximum lag equal to 5. The function should se...
I would like to extract features from (without loss of generality) numerical data using unsupervised learning methods among these: transformations: PCA/ICA/NMF embeddings: T-distributed stochastic neighbor embedding. cluster based methods: k-means or similar kernel based: kernel PCA I also think about using auto-enco...
Based on this answer, and following the Applied Predictive Modeling text, I am running the following 10-fold cross-validated PCR analysis: library(AppliedPredictiveModeling) # data library(caret) # train, cv library(pls) # pcr function data(solubility) # cross-validation setup set.seed(1) cv_index <- createFolds(sol...
I wanted to develop an app similar to this on my own which is based on image classification using neural nets. While in early phases of my research I came across through terms Deep Neural Nets and Convolutional Neural Nets. What is the difference between two and which will be the best bet for me to work on for this pr...
I am struggling with one assumption usually made when using linear mixed models: the nature of the distribution of the random factor. (The first part of the question is more about biology --whether the assumption is justified-- but the second part is more about the consequences for the model if they are not.) Often we ...
I would like to know if there is a common recipe for when you have a dataset with a lot of variables. I have read about PCA, ICA and feature selection, but I'm not sure what I should try first and how to mix those techniques, for example with logistic regression. What is the most recommended approach?
I have 30 observations and 60 variables. I conducted a k-means cluster in R with 5 clusters. If I am supposed to choose only 10 variables to show that they have the impact on creating clusters more than other variables, what criteria should I consider?
I have been given a question: if U is uniformly distributed with mean 5, and variance 3, what is P(U<4)? This is all the information that has been given. I'm new to statistics and have tried to solve this using the formula: $f(x)=\frac{1}{b-a}$ $\text{Mean} = \frac{a+b}{2}$ $\text{Var} = \frac{(b-a)^2}{12}$ and...
I have paired data that come in the form of a pre-treatment ($Pre$) measurement and a post-treatment ($Post$) measurement. So for sake of example you can imagine my data set is the following $n=5$ pairs of measurements: Subject Pre-treatment Post-treatment 1 10 20 2 28 ...
Let's say you have a system to ask random people a polling question with an offer to buy something at the end of the poll. So your respondents fall into one of three categories Refused to answer at all Provided an answer or two but didn't buy anything Provided answers and also bought something at the end I want to cr...
Figure below shows the accuracy using different alpha values in L2 regularisation. As long as alpha is small in the range of $10^{-12}$ to $10^{-2}$ the accuracy remain the same. I do undarstand when alpha value is $10^{1}$ or greater it will increase the weights to a point where they do not fit the data optimal and th...
I'm working on a dataset to describe the relationship between length and age of bluegill fish and the linear model based plot looks like this: I hence tried using recursive partitioning algorithm as answered here by Matthew Drury. I tried the following code: df <- data.frame(x=length, y= age) tree <- rpart(y ~ x, data...
There are several measures of association (or contingency or correlation) between two binary random variables $X$ and $Y$, among others Pearson's phi coefficient Cramér's V I wonder how the following number $\kappa$ relates to known measures, if it is statistically interesting, and under which name it is (possibly)...
I am generating 8 random bits (either a 0 or a 1) and concatenating them together to form an 8-bit number. A simple Python simulation yields a uniform distribution on the discrete set [0, 255]. I am trying to justify why this makes sense in my head. If I compare this to flipping 8 coins, wouldn't the expected value b...
I came across the following standard multi-armed bandit problem: There are $k$ arms each generates rewards with unknown means $\mu_i$, $i=1,...,k$. Each observed (estimate) rewards $\hat{\mu}_i$ are within $\epsilon$ of true means, that is, $|\hat{\mu}_i-\mu_i| \leq \epsilon$. Let $\mu^\ast = \max_{i} \mu_i$ be the tr...
I have five ordinal variables with a 7-point likert scale attached to them, where all 7 possible answers have a "meaning" (for example: 1 = totally disagree, 7 = totally agree). These five variables together are presumed to measure "Feelings of Autonomy", this has been confirmed by several analyses. Now I have construc...
I am self-studying statistics (I am a undergrad mathematician). I learned all of my statistics from a mathematical statistics book based on measure theory. I learned (by "learned", I mean "read a book which contained one detailed chapter on this topic"): Estimation theory (MLE + other methods + asymptotic results) Hyp...
I'm new to R, statistics and time series, so I would really appreciate any help, explanations or suggestion on good readings on the topic. I have two time series representing the number of times a word, say "election", was used on Twitter and the number of times it was used on television, in a day for a month. I want t...
Suppose you have a training set and a testing set. You learn a clustering model (e.g., k-means) from the training set, and then you take the observations from your testing set and put them in the appropriate cluster. If the clustering you have learned is meaningful for the population that generated the training and tes...
I tried an artificial neural network (ANN) model. Using same data set, it gives a different answer every time I run it in MATLAB. Does anyone why this happens and can suggested the best way to analyze the result?
Problem definition: Predict user's next event date, based on previous event occurrences. The aim is to inter-corporate time dependent and time independent features. Data: +10 year transactional data generated by millions of users. 80% of users have less than 3 events. Prediction: Next event date I've gone through many ...
I have different N gram language models trained on a corpus. I want to show that increasing N really leads to an improvement in modeling the training set. I don't understand how to generate random sentences using them? Please explain mathematically using probability terms and if possible any directions to implement. I...
I would like to examine the inter-individual variation in foraging duration by a small seabird species (a storm petrel). I sampled small petrels in their burrows on a small island, and using telemetry devices I have quantified the time that birds spent away from the colony on foraging trips. However due to sampling and...
If I want to separate my data into training, validation and forecast, should the number of forecast and validation data be the same length?
I am trying to understand how logistic regression can use multiple variables to predict an outcome that is non-numeric. For example I have a titanic data set with 14 variables, 4 variables are strings, 4 are numeric, 2 are ints, and 4 are categorical factors. Now I use the built in logistic regression model in R to pre...
Say we have survival-time data that has a long right tail. Does it make analytical/statistical sense to set a time limit and then manually right-censor (top-code) all times-to-event that exceed this limit, then use survival analysis techniques to analyze this "censored" data? The censoring I'm asking about is not due t...
If we have X1,...,Xn iid with normal distribution $(\mu, \theta)$ where $\theta$ is the variance of the normal distribution, and an improper prior of $1/\theta$. How would I derive the posterior distribution for $\frac{n^{1/2}(\mu-\overline{x})}{s}$ where $s^2=\frac{\sum(x_i-\overline{x})^2}{(n-1)}$. I have gotten to...
Frank Harrell has started a blog (Statistical Thinking). In his premier post, he lists some key features of his statistical philosophy. Among other items, it includes: Make the sample size a random variable when possible What does it mean to "make the sample size a random variable"? What are the advantages o...
Working my way through a copy of Draper and Smith's Applied Regression Analysis. I am on the first chapter and looking at the section that involves deriving the OLS equations. No linear algebra has been used yet. The section I am looking at has started by presenting the sum of squared deviations equation, which has the...
I have data where the independent/predictor variable is a proportion (i.e., % of cognitive task trials on which speech used to support performance) and contains many zeros and many 100%. In some cases I'm looking at the bivariate relation between age and % speech, and in other cases I'm using % speech to predict perfor...
Is it acceptable to estimate panel equation with fixed effects when the common unit root is rejected, but individual unit root tests aren`t rejected ?
I had done a simulation study to see which model is better in prediction between ANN and SVM. ANN show good RMSE but high in bias. Is the result acceptable? What is the purpose of bias in simulation study? There are a lot researcher use bias in simulation.
Consider a simple linear regression model $Y = X\beta + \epsilon$ $ \ $. Let $Y_O$ be the least square predictor of $Y$ at $X = x_o$ , based on $n$ observations $ (X_i ,Y_i) $and $\overline X$ = sample mean for $ X_i $ then the standard error of the predictor $Y_O$ a) increases as $ x_o $ moves away from $\overline...
I'm studying machine learning and find an example question on the book which really confused me. Q: A scoring classifier is evaluated on a test set of 10 examples resulting in the following probability scores: 0.9, 0.8, 0.7, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1 with true classes: 1 1 0 1...
I know that for supervised classification one can use a confusion matrix to present the results. Is there an equivalent for this for clustering? And what's the best way to present clustering-unsupervised classification-results (k-means results for example)? By presenting the clustering results I don't necessarily mean ...
In my current project, I'm using PLS regression on infrared spectra (FTIR). For this I'm using R and the pls function from the plsr package. pls always mean centers both the input data and the infrared spectra. When predicting using a fitted PLS model, the means fitted during the estimation process will be subtracted f...
I would like to draw (Bayesian) inference in a dynamic linear regression with regression parameters following independent AR(1) processes $\beta_{t,i} = \mu_i+\beta_{t-1,i}+w_{t,i}$. However, I encounter problems with my Gibbs sampler and I do not find the mistake in my approach - every comment is highly appreciated: 1...
Let $(X_1, X_2, \ldots X_n) \sim \text{Dirichlet}(\alpha_1, \alpha_2, \ldots \alpha_n)$, what is the marginal distribution of $X_i - X_j$?
I have time series with objects and their geo points. X1 = [(time1, (longitude1, latitude1)), ...] X2 = [(time2, (longitude2, latitude2)), ...] ... XN = [(timeN, (longitudeN, latitudeN)), ...] This dataset represents moving objects on a plane. How can I detect anomalies within these dataset? I know that the majority o...
If you compare patients and controls with respect to many clinical variables, making a large number of statistical tests and finding that only few of the variables are significantly different, whereas most of the variables show no significant difference between patients and controls. Then it is obvious that the obtaine...
I am working through the book "Elements of Statistical Learning" and I do not understand why $Pr(dx,dy)$ is in equation 2.10 Background: This is what I understand so far: I am calculating the expectation value of the loss function $L(Y,f(x))$, thus: $$ \begin{eqnarray} E[L(Y,f(x))] &=& \int L(Y,f(x))\,\, Pr(X,Y)\,dxdy...
When dealing with a Cox regression model, we have to assume that the proportionality assumption holds. I have read about a lot of methods to check if this assumption holds or not but I have not really understood what does this assumption mean in practice. My professor explained it as the fact that given that a covaria...