instruction
stringlengths
9
38.7k
I have been reading up a bit on LSTM's and their use for time series and its been interesting but difficult at the same time. One thing I have had difficulties with understanding is the approach to adding additional features to what is already a list of time series features. Assuming you have your dataset up like this...
Lee and Lemieux (p. 31, 2009) suggest the researcher to also present graphs while doing Regression discontinuity design analysis. They suggest the following procedure: "...for some bandwidth $h$, and for some number of bins $K_0$ and $K_1$ to the left and right of the cutoff value, respectively, the idea is to co...
Does it make sense to use datetime components (e.g. year, month, day) as grouping variables in a multi-level model? For example, I have some data that consists of repeated measures within group: group | date | measurement ------|------------|------------ 1 | 2015-05-01 | 0.5741408 1 | 2015-05-02 | 0.5...
I have 3 experimental conditions, each generate a series of values for some genes, like the following: c1 c2 c3 g1 n11 n12 n13 g2 n21 n22 n23 . . . c1, c2, c3 are conditions; g1, g2, ... are gene names; n11, ... are the expression levels. c1 & c2 belong to one group, and c3 is the other group by itself. ...
This is an imaginary question. I am asking out of curiosity. Say we have data on how fast a person can run 100 meters. We have also measured this person's weight, and also how cold the temperature was, or what season we were in (let's say we gathered info all year, so all seasons are represented). It is known that both...
What is the derivative of $F = \|X^T-S^TAX^T\|_F^2$ w.r.t $A$, where $X \in\mathbb R^{d \times N}$, $S \in\mathbb R^{k \times N}$, and $A \in \mathbb{R}^{k \times N}$? I have tried, and it is as follows: $$\frac{\partial{F}}{\partial A} = -(X^T-S^TAX^T)SX$$ but I think the result is not correct, because the dimension...
I have a question with applying Chi-squared tests to a given set of data. Let's say that my data is numbers of different-colored MM's in a bag. Suppose there are 6 red, 4 blue, 8 orange, 2 green, 10 purple, and 6 brown for a total of 36, while the expected value is 6 for each. The chi-squared test for this data, after...
Let's say I have 2 probabilistic regression models that each output a predictive mean and variance: $$f_1(x) = \mathcal{N}(\mu_1, \sigma_1^2)$$ $$f_2(x) = \mathcal{N}(\mu_2, \sigma_2^2)$$ And I want to combine them into one predictive distribution. The ensemble predicted mean is the (possibly weighted) average of the ...
The most common form of linear regression estimates the best values of $\vec{\beta}$ and $\sigma^2$ assuming that data is sampled from a model $y = \vec{\beta} \cdot \vec{x} + \vec{\epsilon}$ where $\epsilon$ is a normally distributed error with variance $\sigma^2$. In practice, a more accurate assumption is that $y = ...
So, I was reading Distributed Representations of Words and Phrases and their Compositionality, and I can't understand this part on page 3: What exactly are these representations? One-hot vectors? Resulting embeddings? Implementation-dependent stuff? This short piece is the only time they are mentioned in the paper (at...
I am interested in comparing Classifier A with Classifier B. I have accuracy of five datasets for each classifier. I want to apply non-parametric test like wilcoxon signed rank test because I want to find out if Classifier A is better than B. Is correct to apply this test using five datasets? because in some tables of...
Dirichlet regression for compositional data is described e.g. here But I do not quite understand the theory, even if I could probably manage to fit some models in R. What do I need to know before I can fully understand the theoretical underpinnings? The link above states that it develops a "GLM - like" framework, so is...
Recently I am reading a paper in 2001, Michael D. Ernst, Jake Cockrell, William G. Griswold, David Notkin Dynamically Discovering Likely Program Invariants to Support Program Evolution TSE 2001, in this paper, it says, Learning approach such as Bayesian and PAC learning, assume there is noise in the input data and he...
I did a logistic regression with bayesglm from package arm. I got different results depending on the order of the variables in the model: set.seed(334) x1 <- rnorm(100) # some continuous variables x2 <- rnorm(100) z <- 1 + 0.6*x1 + 3*x2 # linear combination with a bias pr <- 1/(1+exp(-z)) # pas...
I have in my possession a theoretical and practical test that evaluates the knowledge of a semester of the subject Probability and Statistics, that is, I am practicing for an exam by attempting questions from an exam from July 30, 2013. This test I am doing at home to evaluate myself. Activity 1 The $ 35 $% of the stu...
I have three random variables $X_1, X_2, X_3$ that are normally distributed each with different means $\mu_1, \mu_2, \mu_3$ and share the same variance $\sigma^2$. I want to find the covariance of $(X_1-\bar{X}, \bar{X})$, where $\bar{X}$ is the average of the three random variables. I did the following , $Cov(X_1-\bar...
As it is known, Kendall's coefficient of concordance (W) indicates the degree of association of ordinal assessments made by multiple appraisers when assessing the same samples. Kendall's coefficient values can range from 0 to 1. The higher the value of Kendall's, the stronger the association. Usually Kendall's coeffic...
Is there a technique for classification, where given a feature vector X = (x_1, x_2,..., x_n) and a Bayesian network for each class, which for each x_1, x_2,...,x_n there may be a corresponding node in the network. So that I can classify whether the feature vector X belongs to the "class" represented by the network? Is...
I am new to machine learning and am very lost trying to deciding on features from a data set. The data set that I have has over 25000 observations and just under 500 features. I have a churn variable 0/1 where 0 is churn. I am attempting to build a classification model for churn. Does it make sense to do a random f...
There are helpful questions and answers for how to calculate the required sample size (or carry out a power analysis) for MANOVA, but not for MANCOVA using the freely-available G Power software. Is there a way to do so for MANCOVA using G*Power? The specific MANCOVA has: three continuous response variables a categor...
H0: There is no effect of treatment (Road vs control) on rat occupancy H1: Road has an effect on rat occupancy Mod1 <- glmer(Rat.Present ~ Treatment * Set.distance + (1|Site/Trap.Night), data = df.sub1, family = binomial) summary(Mod1) Generalized linear mixed model fit by maximum likelihood (Laplace Appr...
Suppose I have a distribution from a known parametric family f(x; θ). I have a sample from that distribution. From the sample, I estimate values for the parameters. Suppose I have estimators that I know to have some desirable property. For instance, they may be minimum variance unbiased estimators, or maximum likelihoo...
I'm looking at a pdf document and can get the result of the HR. It is actually similiar to calculating the relative risk if I'm right. How do I get the 1.45 HR or 1.20 HR values based on the 3 rows above (ppis users, h2 users, nonusers). I believe I need more parameters which the researches haven't provided or am I wro...
I have several sets of count data (as below) that are overdispersed. The overdispersion likely comes as a result of the number of zeros in the data which I understand means the paramater estimates in my model are okay, but the standard error may be lower than expected. The overdispersion is not due to outliers, the pre...
I'm fairly clueless how to accomplish my goal here... Firstly a bit of back story: I have about 10 technicians, and they each make sets of concrete samples in the field. Each sample has 2 x 28 day results and we use the pair MPA differences to see if they are doing a good job (they should be as close to 0 difference a...
The first sentence of this wiki page claims that In econometrics, an endogeneity problem occurs when an explanatory variable is correlated with the error term. My question is that how can this ever happen? Isn't regression beta chosen such that the error term is orthogonal to the column space of the design matrix?
What will I do if I have data of specific 50 employees about their gender and age and I want to know if these independent variables really affect the dependent variable which is Medical Class Type (Class A, B, C, D). Class A-very fit to Class D-not fit to work. I have the yearly data from 2012 to 2016 and I want to kno...
I want to measure the fuzzy system performances directly through cross-validation. How can I do this? How the concept of training to get model and test the model?
I have data from 7 sites, which are under 3 types of AMD impairment (2 impaired, 3 recovered, 2 unimpaired); each site has 3 different treatments (Undisturbed Upstream, Disturbed, Undisturbed Downstream). Sites were sampled right before the treatment (day 0), and then 5, 10, 15, and 30 days after treatment. I want to s...
I have an estimate for the Holt-Winters model as the attached image. How do I interpret the estimates i.e. the level, trend and seasonal smoothing weight?
I hnave a computer process that does some classifications. After that I choose 10% of that data and manually classified those analyzed records into correct and incorrect. I found out that around 10% of the sample was classified in my computer process with an error. First, is my sample representative? Can I infer that 1...
When using a fully-connected network (FCN), I have problem understanding how fully-connected (FC) layer to convolutional layer conversion actually works, even after reading http://cs231n.github.io/convolutional-networks/#convert. In their explanation, it's said that: In this example, as far as I understood, the conve...
I have data, $(x_i, y_i)$ where $y_i$'s are responses and $x_i$'s are covariates, that appears to follow this model: $y_i = [0.000001^\text{th} \text{ quantile linear regression of } (x_i, y_i)] + e_i$, where $e_i \sim \operatorname{Exponential}(\lambda)$ and $\lambda$ is to be estimated. I know how to fit the minimum,...
I need to apply DBSCAN clustering on trajectory data eg collected from RFID readers from RFID tags at various points in the path defined. HOw can I do it using R ?
I am studying a modelling problem which is given as: Suppose I have a sphere(empty) and there are some particles that are entering it with Poisson distribution, and it is given that the number of incoming particles is given by: $y_i$~$Poiss(\rho)$. $\rho$ is given as rate of occurrence. Now if the center of sphere is...
I am trying to forecast a time series analysis based on auto.arima() function in R. I have a time series with 35 data points and 3 different regressors. auto.arima() gives me the following output library(forecast) fit.auto.arima <- auto.arima(Z_values, xreg=cbind(GDP_reg, EXPORT_reg, UNEMPL_reg)) summary(fit.auto.arima...
I am estimating the following noise model: \begin{equation} n \sim \mathcal N\left(\mu(x,y),\sigma(x,y)^2\right)\in\mathbb R \end{equation} \begin{equation} \begin{cases} \mu(x,y) = k_1+k_2x+k_3x^2+k_4y+k_5y^2 \\ \sigma(x,y) = k_6+k_7x+k_8x^2+k_9y+k_{10}y^2 \\ \end{cases} \end{equation} where $x\in[0,3]$ and $y\in[0,\p...
I have a set of data with continuous features $x_1, x_2,...,x_n$, as well as a continuous $y$ which is some complicated, unknown function of the $x_i$. Each data point, furthermore, has a discrete label (category). I want to somehow quantify which variables $x_i$ are most responsible for the variance of $y$ between the...
Is there some way to have Stata create bin sizes for a histogram such that when you plot the histogram on a log scale, the bins will all appear to have the same width (visually, not numerically) on the plot? Basically, instead of a histogram with fixed bin sizes, I want a histogram with variable bin sizes that increase...
So, I am looking my raw time series dataset, which is non stationary. I initially used the log transformation to stationarize the dataset. The plot the graph(down below). It is obvious that there is still a seasonal component to the data from the ACF plot. I then tried to use differencing to remove the seasonal compo...
I am working through the following tutorial about how to create clusters within a dataset. The tutorial can be found here. Using the following code, we can create a plot where we visualise the three clusters which have been formed. library(factoextra) library(cluster) library(NbClust) # data(iris) head(iris) # iris.sca...
I'm using matlab to fit a logit GLM to a data (detection problem). I have a Nx5 matrix of independent variables and a binary (i.e 0-1) column vector of responses. When I try to fit the GLM model with fitglm I get this warning Warning: Matrix is singular to working precision. which leads to the following error C must b...
I want to estimate the effect of a treatment on a subsequent growth trajectory, allowing both the level and rate of change in the response variable to depend on the treatment. To adjust for pre-treatment covariates I would like to use some sort of propensity score based adjustment, whether matching, covariate adjustme...
I'm working on a discrete choice problem in which several individuals of a given population undertake a number of trips during one day and, for each trip, the choice of mode is recorded (train, car, bus, etc.). I would like to build a hierarchical model to predict the mode for each trip of each individual. Thus, the t...
may question involves a simple neural network architecture (as simple as my expertise in neural networks): $n_I$ input nodes (binary, ordinal, real, integers); $n_H$ hidden nodes; $n_O$ output nodes (count data). There are no cycles/loops in the neural network, all nodes from a layer are connected to the previous...
As I was reading the following passage of this blog, which defines R-(replicability-)indices: To correct for the inflation in power, the R-Index uses the inflation rate. For example, if all studies are significant and average power is 75%, the inflation rate is 25% points. The R-Index subtracts the inflation ra...
I am doing a Principal Axis Factor Analysis, I found two factors and saved the factor scores for each, using the regression approach (as in the SPSS option by default). My question is, how do I calculate the reliability of each of my two factor scores variables now? In other studies, I already used factor analysis and ...
I wish to plot a continuous response variable (richness) against categorical predictors, but in doing so I need to control for a continuous 'nuisance' predictor (depth). My solution is to run a linear model of richness~depth, and then plot the residuals from the model instead of the raw data. However, in order to impro...
Let $A$ and $B$ be independent and normally distributed variables where $A \sim \mathcal{N}(\mu_1,\sigma_1^2)$ and $B \sim \mathcal{N}(\mu_2,\sigma_2^2)$. What will be the density of $A^2 + B^2 -2AB\cos(\phi)$, where $\phi$ is a constant? I read the answer in Finding the distribution of $5X_{1}^2+2X_{1}X_{2}+X_{2}^2$...
Scikit has CalibratedClassifierCV, which allows us to calibrate our models on a particular X, y pair. It also states clearly that data for fitting the classifier and for calibrating it must be disjoint. If they must be disjoint, is it legitimate to train the classifier with the following? model = CalibratedClassifierC...
I am very new in probability and statistics, and I don't know if I can post here in cross-validated this very simple question. However I have this problem: An urn has $10$ numbered balls such that $4$ of them have the number $0$ $2$ of them have the number $1$ $4$ of them have the number $2$ Let $X$ a random variabl...
My field regularly demonstrates a certain type of result with pairwise Pearson's correlation matrices between predicted and measured data. As soon as such correlations become high, Fisher-transforming the correlations will (visually) pronounce differences between the pairs better than leaving the correlations uncorrect...
I'm attempting to utilise RF regression to make predictions on the performance of a paper mill. I have minute by minute data for the inputs (rate and amount of wood pulp going in etc...) as well as for the performance of the machine (paper produced, power drawn by the machine) and am looking to make predictions 10 minu...
Say that I have calculated a probability of winning for every single horse in a collection of races (say, all the races on one day). The odds being offered by the bookmaker can be converted into an implied probability of winning. So (assuming that my probability of winning calculations are better than the bookmaker's) ...
I have some trouble getting the standard deviation of a stratified sample. I have a sample of 1600 individuals that are divided into three groups (strata), with their sample mean $y$, which is the groups average income, $s_k$ is the standard deviation, and $n_k$ is the number of indivdiuals in the strata/group. What i...
I am analyzing this data. Here is my code library(fpp) library(urca) setwd("C:/Users/kuco/Desktop") #where is the file folder dt<-read.csv("test.csv",header = FALSE) #read the file t<-ts(dt,start = c(1997,1),frequency = 12) #put it into time series data fit1<-auto.arima(t,stepwise = F,approximation = FALSE,ic="aic...
I've performed a cox regression in rstudio (version 1.0.136) using the coxph function in the package "OIsurv". I've also performed the same analysis on SPSS using the same dataset, but i keep on getting different results between the two programmes, and i cannot figure out why this is. My data are not typical cox regres...
I am running logistic models with data where I typically have proportions for the dependent variable that looks like the following: 0 1 Grp1 0.18 0.82 Grp2 0.24 0.76 Now I run a logistic regression with independent variables Grp (0 if Grp1 and 1 if Grp2) and control variables A, B and C (including a number ...
I have a classification problem with only 2 classes, about 100 features and thousands of observations, each belonging to either of the two classes. Currently I´m doing a PCA prior to machine learning algorithms, which is very successful indeed, so I was wondering whether another dimensionality reduction may be even bet...
I want to perform a forward/backward selection to build a predictive model. My data set is very large though and if I include all variables in the selection process it is way too slow. Therefore I am searching for alternative ways how I could choose the variables in an automated way. One idea is to split the data into ...
I am working on a very large linear regression problem, with data size so large that they have to be stored on a cluster of machines. It will be way too big to aggregate all the samples into one single machine's memory (even disk) To do regression these data, I am thinking about a parallel approach, i.e., run regressio...
I've encountered an interesting result when I was performing two following regression in Stata: regress y v1 v2 ... v13, robust regress y v1* v2* ... v13*, robust where $v_1$* is the growth of $v_1$, and $v_2$* is the growth of $v_2$, defined by $v^*_{1,t} = \frac{v{_{1,t}}}{v_{1,t-1}}$ - 1. $v_1$ and $v_2$ is related...
Suppose I have a simple model that looks something like this: y = {Block 1} x1 x2 x3 x4 {Block 2} x5 x6 x7 x8 If I want to conduct an F-test to see whether Block 2 produces a significant change in R^2, how would I do that?
I have following problem at hand. Your recently bought a house and are thinking about buying a flood insurance for the year 2014. Indeed, your house is unfortunately located in a “high-risk” area where it is estimated that 80% house floods occur. It is also known, that 0.05% of all houses are flooded every year and t...
I'm running an OLS regression and using the Python package statsmodels to explore the role of residuals. Specifically, I am creating an influence plot as illustrated in this tutorial. I wonder why the plot results in a bubble one with variable bubble sizes and what information does the bubble size. This here is the i...
I want to generate some synthetic data with $I$ observations across $J$ clusters. Additionally, I want the intraclass correlation coefficient ($ICC$) to be an input of my data generation process. So, at the end I want to end-up with a data frame that has 2 columns: 1. a cluster ID, 2. outcome $Y_{ij}$ is the outcome f...
When I run a linear model having one independent variable with intercept in R, the degrees of freedom for model we get 1. When I run a model without intercept still the degrees of freedom remains 1. How is this possible? What is the split of degrees of freedom in with and without intercept model? For example see below:...
If we have D dimensional training data and the covariance matrix was not exist for those data, then we have over fitting. I think this is related to make sure that the observations must has low correlation, but I cannot understand how can we observe data from the same source and we expect that they have low correlation...
I have data of a class of 50 students. My dataset consists of historical data of students in previous years. Data includes presence, homework grades and final grade of previous 10 years (X, training dataset, has 500 elements). I have a model trained with this data to predict the final grade. What would be more accura...
I'm trying to get a grasp on utility and loss functions, and at first I thought that a utility function was the flipside of a loss function and vice versa. Kind of like how if you know the probability of getting heads is p, you know the probability of getting tails (1-p). However, I can't find anything on the internet ...
Suppose I have $(\mathbf{X}_1, \cdots, \mathbf{X}_n)$ from a multivariate distribution $f$. The multivariate KDE is \begin{align*} \widehat{f}_\mathbf{H}(\mathbf{x}) = n^{-1}\sum_{i=1}^{n}K_\mathbf{H}(\mathbf{x} - \mathbf{X}_i) \end{align*} with bandwidth matrix H. The bandwidth matrix can be computed via a plethora of...
Let's say I have grade data for 5 classes of students. I also know some information about each student in each of those classes from a survey (gender, age, grade level, etc.). I want to know if a given characteristic (e.g., gender) is correlated with the grade the student gets, on average. So far so good--this suggests...
I have been studying Convolutional Neural Networks and I have a question that, AFAIK, there is no answer for it (in Google, at least :P): I already know what happens when doing backpropagation in a max-pooling unit: You just allow the backpropagation procedure to continue to input nodes with response equal to the maxi...
It's a class project (however, I want to expand it to make it bigger than just a class project for my own sake) and the professor gives us freedom to choose whatever we want as long as it includes some dataset (deal with them using R) and analysis of it. Since I'm starting to become interested in stock market, algorith...
Let's say I have 3 Random Variables $X_1, X_2, X_b$ where "$b$" stands for "background". Each one of them is Gaussian with $N(\mu_i, \sigma^2_i)$ for $ i\in\{1,2,b\}$. I will assume $\mu_b=0$. Now I make $N$ experiments which measure the variables $X_1+X_b, X_2+X_b$ (where $X_b$ is measured at the same time for both of...
I have a built an engagement model using Logistic regression uisng SAS. My approach was to identify the customers my company considers engaged, and then I built a model (using both engaged and not engaged customers) and predict "engaged".. but the most important variables are 3 months variables (time spent on site in ...
I have time-varying independent variables (IV) ($x_1,x_2,x_3...$) and a time varying dependent variable (DV) ($m_1$). I also have a time invariant dependent variable ($m_2$) that is dichotomous. I want to show that my independent variables ($x_1,x_2,x_3...$) impact time invariant DV ($m_2$) through $m_1$. I tried the ...
My data set comes from a series of five three-way full-factorial experiments, several of which are unbalanced. The three experimentally manipulated factors have two levels each. I am using R to analyze the data. The ANOVA (Type 3 SS) showed several significant three-way interactions, including one which did not involve...
I am trying to model the survival of a bird species as the function of a habitat variable, using JAGS run with the R package R2jags. When I leave the habitat variable out, I get believable estimates for the survival parameters (phiWithin and phiAmong). Here is that model: model{ for(i in 1:nBirds) { z[i, first[i...
8 x 1 x 8 Lets say there are 8 classes. The network has one hidden layer with only one neuron in it. Can the neuron learn to map the identity function between the 8 inputs and 8 outputs? Will gradient descent learn the weights of the identity? What is the difference between this network and a softmax classifier?
When I request post-hoc tests for a one-way ANOVA using ONEWAY, one of the ouput sections is "Homogeneous Groups". The bottom row of these tests is often (e.g., Tukey HSD, REGWF and REGWR, but not for Tukey B) labeled "Sig.", which in SPSS always indicates a "significance level." When this row is displayed, it often h...
I wish there were a kind of Rosetta Stone for covariance (and other) stat methods supplied by popular statistics libraries and software, so that we could understand why what is ostensibly the same method gives different results in different libraries. I am aware that most of the discrepancies are due to scaling and nor...
See: https://www.nytimes.com/interactive/2017/02/12/arts/music/how-beyonce-could-make-grammy-history.html Bonus question: is there a snappy way to make such a visualization (doesn't have to be interactive) using one of Python's visualization packages like seaborn or bokeh?
I am struggling with the output of a linear mixed model from lme4. The outcome variable is the value column. Two mixed-effect models are a follows: a) LME without covariates b) LME adjusted for covariates test (factor of 2), side (factor of 2), phase (factor of 2), and location (factor of 5). Both models correct for mu...
MVN is degenerate when the covariance matrix $\Sigma$ is singular. I am trying to understand mainly conceptual (but also theoretical) implications of this. The Wikipedia article is quite terse. It mentions the following non-trivial (atleast to me) things: MVN does not have a density. More precisely, it does not have a...
Consider an experiment that outputs a ratio $X_i$ between 0 and 1. How this ratio is obtained should not be relevant in this context. It was elaborated in a previous version of this question, but removed for clarity after a discussion on meta. This experiment is repeated $n$ times, while $n$ is small (about 3-10). The ...
I really need some help with reverse regressions. I'm trying to solve the following exercise: a) Consider the following Conditional Expectation Function model: $Y = \alpha + \beta X + \epsilon , E[Y|X] = \alpha + \beta X$ Suppose that we have transformed the above equation in the following way: $X = -(\alpha /\beta) ...
I've seen that the likelihood function of the parameter $\lambda$ of a Bernoulli variable given the training data $\boldsymbol X$ with labels $\boldsymbol y$ is modeled like this: $$p(\boldsymbol y\mid\boldsymbol X;\lambda)=\prod\limits_{i=1}^I\lambda^{y_i}(1-\lambda)^{1-y_i}$$ I understand that if we consider the nega...
I'm running a binomial logistic regression with one categorical predictor variable. I'm trying to come to terms with the meaning of the estimates returned, and I think I'm getting there, but I don't understand from where {multcomp} derived its estimates for my planned contrast: Generalized linear mixed model fit by max...
Suppose we know there is a True Effect size = + 0.2 for an experiment. Now, suppose that I want to find out what happens if I repeat the exact same experiment 10,000 times. If I believe such repetitions will create a normal distribution of effect sizes with some standard error, is the following the correct way to descr...
I am trying to learn a linear dynamical model for a data using expectation-maximization algorithm. The model is defined as follows: $$x_0 \sim \mathcal{N}(\mu_0 ,\Sigma_0)$$ $$ x_{t+1} = Fx_t + w_t, \hspace{7pt} w_t\sim \mathcal{N}(\mu^s ,Q) $$ $$y_t = Hx_t+v_t, \hspace{7pt} v_t \sim \mathcal{N}(\mu^o,R) $$ where $x_t$...
If all variables that I tested have low correlation with the class variable, would it be possible to build a good classifier? And if there was a high correlation between some variables and class label, is it a guarantee that we can build a good model?
I am confused with the likelihood for simple linear regression, in this note it says $$ \large \prod_{i=1}^n p(y_i \mid x_i; \beta_0,\beta_1,\sigma^2) = \prod_{i=1}^n \frac 1 {\sqrt{2\pi\sigma^2}} e^{-\frac{(y_i -(\beta_0 + \beta_1 x_i))^2}{2\sigma^2}} $$ But I do not understand why. Let's simplify the problem that, w...
Say you have(1,2,3,...,19,20) each with the same probability of occurring (5%). You know the distribution is normal, but you have only a discrete graph of each outcome. We do know, the normal bell curve can be overlayed. Now, let's say for this example, you know it is normally distributed (maybe not exactly, but very, ...
I've got an application where it'd be handy to cluster a noisy dataset before looking for subgroup effects within the clusters. I first looked at PCA, but it takes ~30 components to get to 90% of the variability, so clustering on just a couple of PC's will throw away a lot of information. I then tried t-SNE (for the...
This class on Coursera from Andrew Ng. Class on Learning Curve shows that high variance could be inferred as a high gap between the training and test score. However, I was wondering if we can get a sense of high variance in a model in other ways. For example, if we use multiple test sets (using cross-validation) and th...
Both methods use Gaussian process, and kriging uses the Best Linear Unbiased Predictor (BLUP) to predict the mean (this is not seen in Bayesian optimization?). At the bottom line, they also have covariance matrix, whose inverse has to be computed before moving out to the next sample point. As far as I understand, Baye...
I ran a two way ANOVA to find effect of interaction between drug and food on size of plant. I found no significant interaction but both drug and food were significant, Now, should I switch to type II ss and just report F? or perform t-tests (as each factor has two levels)? please guide me on this
Multinomial logistic regression corresponds to the setting where each data point has a vector of counts whose total we condition on. The logistic/softmax link + multinomial likelihood is appropriate here. However, I have a setting where every data point corresponds to a table of counts $y_{ij}$. Is there a likelihood ...
So I came up with this analysis scheme wherein in use a nested cross validation loop, logistic regression with an l1 penalty in the inner loop and then logistic regression w/o the penalty in the outer loop. To break it down: Step 1. Split data for outer loop into train and test. Step 2. Using the training data only use...