instruction
stringlengths
9
38.7k
Suppose $\{Y_1,\ldots,Y_n\}$ are iid uniform on $[0,\theta]$ where $\theta$ is the unknown parameter. I'm trying to understand how to create a GMM estimator for $\theta$ and I'm not really sure how. I know I can use $E(Y-\frac{\theta}{2}) = E(Y^2 - \frac{\theta^2}{3})=0$ but once again I'm confused as to how to create ...
I have a significant three-way interaction (with no significant two-way interactions and no significant main effects). To begin with I have followed this up with two two-way ANOVAs (one at each level of the third variable). The first part of my question is whether this is an appropriate follow-up. This showed no signif...
I am reading the article I’m A Stats Prof. Here’s Why Nate Silver’s Model Was All Over The Place on a news website (not an academic publication). The author (Dale Rosenthal, Clinical Assistant Professor of Finance, University of Illinois at Chicago) is trying to articulate a critique of Nate Silver's presidential elect...
I asked this question on Math Stack Exchange (here) but it did not generate much interest. Since it is a question from probability theory, perhaps the crowd on cross validated will be more interested...(maybe this is incorrect etiquette to post the same question twice, but I am interested in the answer...) The followin...
I'm editing this question in hopes of improving it, and thus receiving some advice on it. I have collected info on diet from several populations. There are different groups (e.g. ElMolo) made of individuals and each individual eats different foods (e.g. cheese). Each food has a specific weight (g) (dependent variable) ...
I have data in a longitudinal format that I would like to analyze. A sample of My data looks like this in R: ID Location Type DateTime Test Result 8 4 6 2016-10-01 04:14:19 4 8.2000 8 4 6 2016-10-01 04:14:19 11 32.0000 8 4 6 2016-10-01 15:54:25 4 ...
I'm having some problems understanding when multicollinearity is acceptable and when it becomes a problem. Can someone give me some insight on what should I focus on? Here's an example of what I'm struggling with.
After working for a while on this text classification problem, I realize that some documents belong to more than one class. I am using multinomial logistic regression which also provides a probability distribution over the classes (labels). I wonder if it is a good idea to use this distribution for multi labeling. For ...
I've been doing some learning for Native Bayes classification. I came across this formula, but I'm having trouble remembering it because I don't know how to get this formula. Can anyone explain how to get ${\displaystyle P(A|B)={\frac {P(A\cap B)}{P(B)}}}$?
My question pertains to logistic regression. The overall model was significant, but the main IV (study group), which has 4 levels, was not (p = 0.1098): Testing Global Null Hypothesis: BETA=0 Test Chi-Square DF Pr > ChiSq Likelihood Ratio 149.7148 9 <.0001 Score 175.16...
I have data from 73 temperature sensors in form of a time series. The data looks like: TimeStamp (minutes) Sensor1 (degrees) Sensor2 ... Sensor N 1 25 41 -5 ... 2 ... 3 ... 4 ... A. Is there a way I can find multidimensional (cross)correlations between different sensors, as in whic...
Suppose I trained an LDA model (latent dirichlet allocation). This gives me for each topic a word-distribution. Now I receive a new document and I want to calculate what the distribution of topics is for this new distribution. My only guess for how to do this would be the following: Say we have 30 topics and the corp...
So I was reading about the alternating least square algorithm used for movie recommendations. Let's say that: X - user ratings Y - movie ratings The result is computed by this formula: In the book I am reading about this it is mentioned that at each step we compute: Why do we use this formula and not $X_i = A_i(Y^T)^...
I have a question on behalf of a friend. Given the following values: p=0.193 n=4778 beta=1.94E-01 SE(beta)= 2.72E-02 And this fact: var(p) = p*(1-p)/n What is the overall variance of this? var( 2 * p * (1-p) * beta**2 ) Thanks!
Let $Y \in \mathbb{R}^p$ be a vector of $n$ draws from a standard normal distribution $\mathcal{N}(0,1)$. Let $w_1, w_2 \in \mathbb{R}^p$ be $n$ independent draws from a normal distribution with $\mathcal{N}(0,\sigma^2)$. Now, we define $X_1 = Y + w_1$ and $X_2 = Y + w_2$ and let $X$ be a matrix with the columns $X_1,...
I have some questions concerning the ANOVA techniques assumptions: 1) If i have some treatments to test but these were not selected on the basis of a design of experiment method but randomly can they however be tested in some way? 2) If the response variable isn't a continuous variable the ANOVA is still valid? (i don'...
I have a time series data y (response variable) which I want to predict using 3 independent time series data x1, x2 and x3. My goal is to build a multivariate regression model for which I want to identify useful lags of x1, x2 and x3 (also possibly lags of y) that might be useful predictors for y. Snapshot of y, x1, x...
I've read a lot about batch normalization and how it is implemented. But I couldn't understand when to use batch normalization or not. What should we notice about the Convolutional Neural Network to know that a batch normalization would give us an improvement on the accuracy?
I'm wondering if the following statement is correct: After applying PCA distance between the same points (of course dimensions changed) have the same relation in comparison to distance between other points in relation to the original matrix. In other words, if points have been close together in original matrix D, then ...
I have a training dataset with 20 columns, all of which are factors which I have to use for training a model, I have been given a test dataset on which I have to apply my model for predictions and submit. I was doing initial data exploration and just out of curiosity checked the levels of training data and the testing ...
I suppose "multivariate" refers to a function w/ multiple inputs. What function? One that, given an output sequence of a HMM, returns the probability distribution of state switch sequences of the HMM for the output? Something else? Suppose we've 3 outputs: ax, ab, Ax. Would a multivariate (bivariate) HMM rather refer t...
I am currently working through a workbook that is supposed to help me 'ease' into R (I've used SPSS before). However, there are some questions I am having a hard time with regardless of the program. I'm not very experienced with multiple regression etc and am finding it difficult to understand what it is that I am supp...
I am having trouble plotting multivariate ols regression in R using ggplot2. When I run the model without "control" variables, the regression lines are fine: library(dplyr) library(ggplot2) library(broom) # model without "controls" # dt = mtcars %>% do(lm0 = lm(wt ~ disp + am, data = .)) %>% augment(.,lm0) dt$am =...
I have a regular case-control study where I can calculate the proportion of patients infected when exposed to say, UV vs regular light. For hypothesis testing, how do I decide which is a better measure - relative risk or absolute risk? I found this answer with comparison of the two approaches - How do you explain the d...
Let's say we want to predict house prices and have the following 3 features with their possible categorical values: Slope of land property: 1) Gentle 2) Moderate 3) Severe Type of utilities available: 1) All public Utilities 2) Electricity, Gas, and Water 3) Electricity and Gas Style of dwelling: 1) 1s - One story 2)...
I'm using a Generalized Additive Model (GAM) to assess the effect of longitudinal changes in proportion of forests on abundance of skunks. My GAM has the following structure where X are the X coordinates of the centroids of trapping sites. mod <- gam(nb_unique ~ s(x,prop_forest), offset=log_trap_eff, family=nb(theta=NU...
I have preference ratings (integers from 1-to-7) for k=80 stimuli, obtained from N=30 subjects. I want to use a mixed-effects model to test how well the following variables - as fixed effects - can predict the responses(ratings): Predictor 1, called "Parncutt" below = value describing each stimulus Predictor 2, called ...
I did logistic regression in r having 35,000 rows and 284 variables in dataset. After removing alias variables, vif and backward selection 25 variables remained on which logistic regression was performed using glm function of which 15 came significant. Dependent variable is binary( 1's & 0's) of which 30% is 1. The c...
I think I got this, I just want to double check whether I'm interpreting the SPSS output correctly. So I am running a $2 \times 3$ mixed ANOVA with $3$ between-subject groups and a within-subject factor with $2$ levels. I also run post-hoc tests for the grouping variable (using the Post-Hoc option in the Repeated Meas...
Consider three events $A$, $X$ and $Y$. My intuition tells me, for a specific problem that I am working on, that the following inequality may always hold: $p(A|X,Y) \le p(A|X)$ How do we go about proving (or disproving) it using probability axioms, Bayes rule, or an intuitive example My attempt using Bayes rule takes ...
I am trying to find the best and simplest (easy for me to understand) analysis for my habitat selection data. I have used/available data (binary response variable), fixed effects (aspect, slope, %rock, %litter, %shrub), and random effects (grouped by individual). I have eight veg cover % variables, not all included i...
I'm currently working on a classification task where certain features were intentionally oversampled, so I calculated using the R survey package to adjust my model evaluation based on the true population proportions. I am not using the weights as a feature when training models; rather I am using them to adjust the RO...
Given $Y = [Y_1, Y_2, \ldots, Y_n]^T \sim N(0, \Sigma)$. That is $f_{Y}(y_1, y_2, \ldots, y_n)$ is a multivariate gaussian with mean $0$ and covariance matrix $\Sigma$. I'm asked to compute the conditional correlation of $y_i, y_j$ given $y_k$, that is $\rho(y_i, y_j | y_k)$. I know that in order to do this, I need to ...
One of my hypotheses is: There is a significant difference in metabolical syndrome (dependent variable, quantitative, resultant range from 0 to 5) between patients and control group (one independent variable: 0 = patient id, 1 = control group) regarding to gender (independent variable, 0 = male, 1 = female). Can someo...
I am starting to work on a meta-analysis project and I have received the data. The data includes both randomized trial and observational studies. Is there any article, book, or website that explains how to deal with both studies? Is it simply impossible to deal with them together? Is there different way to deal with th...
I am measuring the net change in opinion after an event. For example, if this is the question "This university is a leader in academic research" then the available answers are "1) Completely disagree, 2) Somewhat disagree, 3) Neutral, 4) Somewhat agree, 5) Completely agree" My sample is a set of attendees who took both...
This problem actually has a solution in below I am just curious how does the first line after "so that" get into the second line.
If the random variable X has a continuous distribution with the density $ f(x) = \frac{1}{x^2}\Bbb {1}_{(1, ∞)}(x)$, can you find the distribution of $Y = 2X+1$? My attempt: $CDF(Y)$ $\Rightarrow P(Y\le y)$ $\Rightarrow P(2X + 1 \le y)$ $\Rightarrow P(X \le \frac{y-1}{2})$ $\Rightarrow \int_{1}^{(y-1)/2} f(x) dx$...
Johnnie runs a race with mean M1 and standard deviation S1 Fred runs a the same race with mean M2 and standard deviation S2 Both runners' times are approximately normally distributed. How do I determine the probability that Johnnie's time will be at least x seconds faster than Freds?
auto.arima(ldeaths) Here is the output I got from R, but I am not sure how to read ARIMA(1,0,0)(2,0,0)[12]. What does it mean? How to put ar1, sar1, and sar2 into a model? Series: ldeaths ARIMA(1,0,0)(2,0,0)[12] with non-zero mean Coefficients: ar1 sar1 sar2 intercept 0.4418 0.3098 0.5078 20...
I am trying to determine the joint distribution of two sums of Poisson random variables. Let's say $X \sim \text{Pois}(\lambda_{1})$, $Y \sim \text{Pois}(\lambda_{2})$, and $Z \sim \text{Pois}(\lambda_{3})$. Moreover assume that $X,Y$ and $Z$ are all mutually independent. I want to find $P(X=k|X+Y=n_{1}, X+Z=n_{2})$. ...
I would like to know if i can reject, using a linear regression and a t-distribution, the following Null hypothesis: b=1 where b is the slope of my linear regression. My hypothesis is that b>1. I am using R, and i know how to test whether my slope is significantly different than 0 but not if it is significantly differe...
I am trying to fit my data with a bimodal distribution using two beta distributions, however it seems to me that the two peaks are not captured very well. The reason that I notice from the data is that it has too many zeros and 100s. I had tried to use mixtool, gamlss and flexmix in R but none of them provided me a sat...
for example, study report smokers as current, smoker, a former smoker, and occasional smoker, how can we combine smokers with occasional smokers to create one group. Cochrane has given method but it s mainly for the RCT and only reports adding the total sample and total events from the 2 groups to generate one group. ...
Say that we have a set of objects X. These objects are partitioned into several clusters. Two objects $x_i$ and $x_j$ belong to the same cluster iff $a_i = a_j$, where $a_i$ and $a_j$ - cluster labels of objects $x_i$ and $x_j$. Clustering given by those labels $a_i$ is considered to be "true" clustering. Now we use cl...
In reading a blog post, I encountered the following paragraph: This is a classical convolutional neural network with three convolutional layers, followed by two fully connected layers. People familiar with object recognition networks may notice that there are no pooling layers. But if you really think about that...
So I am trying to do pretraining on MIDI (music input) of humans using recurrent neural networks. I read the papers https://arxiv.org/pdf/1412.6581v6.pdf and http://www.hexahedria.com/2015/08/03/composing-music-with-recurrent-neural-networks/ And this video https://www.youtube.com/watch?v=cu1_uJ9qkHA but I am not sure ...
I am new to R and statistics, and am having a hard time determining which non-parametric test is appropriate to run (data not normal/can't be transformed to fit normality). I am looking at bite rate of fish both pre and post a treatment, and want to see if it changes significantly with the different treatments. If any...
Say I have a vector x which defines the number of samples in a given class: x <- c(250,362,10,246,30) In this case, there are five classes. The resulting class proportion vector is given by: p <- x/sum(x) [1] 0.27839644 0.40311804 0.01113586 0.27394209 0.03340757 How to update this class proportion vector so tha...
recently I wondered about the correct formulation of the null hypothesis in R's t.test() function for One-Sample-tests. Let's assume our known population mean a is 0.3: H0: μ = a; Ha: μ ≠ a : t.test(rnorm(100, 0, 1), alternative = "two.sided", mu=0.3) H0: μ < a; Ha: μ > a : t.test(rnorm(100, 0, 1), alternative = "grea...
If variance(X) = variance(Y), is the correlation between X and Y equal to 1, i.e., $\text{Var}(X) = \text{Var}(Y) \implies \text{Corr}(X,Y) = 1$?
I have recently encountered a problem with the function confusionMatrix in R from the caret package regarding a machine learning procedure. In detail, I have trained a binary classifier with two levels ("Cancer" & "Normal") and I'm trying to test it in independent datasets. However, one of my test datasets had represen...
I am analyzing a randomized trial, and aiming at appraising the impact of a given treatment on a non-fatal outcome, followed occasionally by death. I am thus conducting an event-free survival analysis with a time-dependent covariate (a preceding event). This can be easily modeled with Cox proportional hazard analysis. ...
A system can take only two states 1 and 2. We wish to compare two decisions D1 and D2 causing transitions between these two states. Each of these decisions entails given costs (in €) in the following table: In the long term what is the best decision? Here is my work: I deduced the following transition matrices: T1 = ...
I am doing supervised land value modelling (900 observations) and I am comparing two approaches to do a variable selection (51 variables). I am using R. The first one is a backward step-wise regression using OLS fitting and evaluating the differences in the Akaike Information Criterion (AIC). The difference in the seco...
I'm new to the whole programming on R thing, and I've hit a wall. I'm trying to set up forecasts using using a GARCH while controlling for seasonality using a Fourier series as an external regressor. Using 672 data points, with the data recorded every half-hour over the course of the day, I've set up the code up like ...
I have a simulator which simulates the jobs processed on different machines. I wish to model production of defective parts on the machines. So on a machine, I can model the time before the next defect happens. So should I consider Weibull distribution or Poisson distribution? How to choose? I do not have any data to fi...
I am new to qqplot and trying to figure out the labels on the x-axis of this plot: The left plot is the Verbal SAT score of 105 college students majoring in CS. The right plot is the GPA score. Source of the plot I understand that the qqplot means "quantile vs quantile", the y-axis is each student's test score, but wh...
I need a list of distributions that obey the power-law, beside the commonly used Pareto and Zipfian distributions. A comprehensive list or a reference to a comprehensive list will be particularly appreciated.
First time poster, have had a browse of the open question forum but cant find an answer to my problem... I dont know if "normalising" is the correct term here... so be gentle... :-) I am required to generate a "score" for a team of managers, based around a list of different criteria. Each criteria ultimately gives a re...
I'm trying to study fluctuations of a disease's activity over time, for example the f;uctiation in severity of chronic pain (in the absence of obvious triggers). Individuals generally demonstrate one of a number of trajectories; eg. those with constant severe pain, those with minimal pain, those with flares once/year,...
My data is as shown below where ROE is being defined as (Revenue - Expenses)/Capital Revenue | Expenses | Capital | ROE I'm trying to do a cluster analysis (hclust in R) hoping to get some benchmarks for clusters like High Rev & High ROE, Low Capital & High ROE etc. But since the variables are so correlated (which I th...
I'm having a hard time making a centered binary variable in a multilevel model interpretable. Here is what I'm working with: at Level 1, I have a binary variable indicating whether a participant gets free/reduced lunch (0= No; 1= Yes). Participants are nested within schools (Level 2), so to disentangle person and schoo...
I would like to construct features from the result of apply k-means clustering to construct features of my data that I can later use for a classifier. Assume I have fixed the $k$ (e.g. 5) and performed the clustering. Then I could use the indicator of the cluster the center of the cluster as new features. What else ...
Example data: Temp Site Bleached Year 20 A Y 2001 25 A Y 2004 20 A Y 2008 25 A Y 2011 32 A N 2001 35 A N 2004 32 A N 2008 35 A N 2011 ...
I have about 80 predictor variables (with some multicollinearity, I assume) and a non-normal count data response variable (n=570) which is arranged into groups (n=34). I need to reduce the number of predictors for the use of GLM and/or GLMM. Ideally, the number for regression model in this case would be about 4 or 5 pr...
I have a small data set for a binary classification problem, with N_0=18 and N_1=11 instances in 0 and 1 classes respectively. The problem is how to make sense of the classification procedure with this tiny data set and assess the classification quality. I compared a simple cross validated logistic regression to the du...
Let the random sample $Y_1,\ldots,Y_n\sim N_p(0,\Sigma)$, then the likelihood is given by, \begin{align*} L(\Sigma)=\frac{1}{(2\pi)^{np/2}|\Sigma|^{n/2}} e^{-\frac{1}{2}\sum_i Y'_i\Sigma^{-1}Y_i} \end{align*} Let $\Sigma^{-1}=\Theta$ and $S=Y'Y$, then the $l_2$ norm penalized likelihood is given by, \begin{align*} l_p(...
Consider data $x ∈ R^3$ that is represented in a 3D space, i.e., using 3 coordinates $(x^1, x^2, x^3)$. Consider that we observe a large dataset $x_1, x_2, · · · , x_n$, where n = 100. Suppose each datum $x_i$ is known to be such that its coordinates exhibit a functional relationship such that $ax_1^i + bx_2^i + cx_3^i...
Let $F(t) \sim \operatorname{Ber}(p)$ for every $t \in [0,1]$. Let $X = \int_0^1 F(t)\,dt$. $X$ is of course itself a random variable. Questions: Does $X$ exist? If so, what is the distribution of $X$? I think that $\Pr[X = p] = 1$, because if we approximate $X$ as $Y$ where $Y = \sum_{i=0}^N F(t+iN^{-1})N^{-1}$ then ...
I'd like to know if there is a method for defining significant level based on a pilot study e.g. 73% successful rate. The background problem of my current study is at a very small sample size (N=9), which always yields non significant results when testing against the standard 0.10, 0.05 or 0.01 alpha values. Any pointe...
I am doing a univariate time series analysis on regional sea-surface temperatures which has missing data, and I am thinking about using the R package, 'imputeTS.' My model is simple, it has MA errors and a term linear in time. I would like to impute the missing data, but I am not sure which package method to use. Al...
I'm reading Analysis of Neural Data, by Kass et al (2014), where Kass argues that spike trains can be viewed as point processes (in chapter 19). Furthermore, he goes on to convert spike trains (that are events in continuous time) to discrete time by dividing the timeline into bins of equal size. Now, let $Y_i$ be the ...
I do not exactly know whether the question fits SE stats criteria, if it doesn't let me know. I am looking for a approach which can be used to improve a GP regression esimate if the derivatives are also known. This paper by Solak et al. discussions similar to this, but I could not understand it properly. I tried to sea...
Say there are two independent random variables, $X$ and $Y$, and we have samples $\{x_1,\dots x_n\},\{y_1,\dots y_n\}$. I am interested in bounding the probability of the event $C = \mathbb{1}_{X<Y}$, namely bounding $\mathbb{P}(C)=\mathbb{E}(C) $. I know that I can define $c_i=\mathbb{1}_{x_i<y_i}$, and use Chernoff...
My question is a bit long, with 2 major parts. Here are the variables: Number of cells (C): main dependent variable Disease severity 1 (D1): continuous Disease severity 2 (D2): continuous but only quantifiable on diseased organ Age Sex Organ side: L or R Lateralization (L or R = 1, L and R = 2) Location of disease i...
I am experimenting a bit autoencoders, and with tensorflow I created a model that tries to reconstruct the MNIST dataset. My network is very simple: X, e1, e2, d1, Y, where e1 and e2 are encoding layers, d2 and Y are decoding layers (and Y is the reconstructed output). X has 784 units, e1 has 100, e2 has 50, d1 has 100...
I recently tried to build a classification model that tries to predict product returns based on retail data. I decided to build a random forest classifier based on features derived from both product and customer data. When I tried to assess the performance of the classifier, I looked at the confusion matrix based on al...
I want to estimate the following regression: $y_t=a+bx_t+e_t$ where $x_t$ is an endogenous ratio variable, i.e., continuous values bound between 0 and 1 and $y_t$ is a continuous variable. I want to instrument for $x_t$ using $z_t$. The first stage regression will take the form: $x_t=a+bz_t+e_t$ As $x_t$ is a ratio var...
So Zuur et al (2009) state that to validate a linear mixed model: -the residuals of the model have to be normally distributed -the plot: "residuals of the model vs each explanatory variable" have to be homogeneous. In the case of a continuous explanatory variable that shows a pattern when we plot the residuals against ...
So I fit a set of (nested) growth models (logistic, gompertz, richards, plus some variants, eg. https://en.wikipedia.org/wiki/Generalised_logistic_function ) to random sub-samples of my data to figure out which of the models is the 'correct' one. I'm aiming at two results: 1) The model that explains my data best 2) The...
I want to cluster a dataset using spectral clustering. Assuming $X$ is $d \times n$ data matrix as $n$ is the number of data samples. I construct a directed Adjacency matrix $W, n \times n$ in which each row $i$ relates $x_i$ to other data points with positive weights. Then using the following Adjacency matrix with "Sp...
Looking at the frames of a video, we can see that many frames are almost identical. Is there any algorithm to identify these frames, so I can delete them all but one?
We know that forward chaining a.k.a. time series cross validation is more appropriate than standard CV techniques in a time-series dataset. However, there's relatively little discussion around the choice of inner CV loop of time series data when trying to evaluate the model's expected accuracy. Generally speaking, what...
I've a matrix $P$ of size $Time \times EventClass$, such that $P_{t,c}$ specifies the probability of event of class $c$ happening at time $t$. From this I'd like to generate a discrete event list, $(e_0,e_1,..,e_k)$, where each event $e_i=(t_i,c_i,P_{t_i,c_i})$, such that the list meets certain constraints. The number ...
In "A First Course in Bayesian Methods", Hoff writes that: $p(\theta, \sigma^2|y_1,...y_n) = p(\theta|\sigma^2,y_1,...y_n)p(\sigma^2|y_1,...y_n)$ when describing joint inference for the mean and variance for normal data. How do we arrive at this starting from $p(A|B) = \frac{p(B|A)P(A)}{P(B)}$?
One of my colleagues is collecting data from an experiment, and analyzing the average value and standard deviation of each sample set individually. My plan is to do some extra analysis on this same data, but I may not get access to his original data other than his statistics. So say, if he takes eight measurements ten ...
I was reading a slidie on time series but could not figure how to derive the covirance term in the picture. Basically, it is just the expecation of the product of two mean normal variables, right?
I am estimating a structural VAR Model in levels with $p=3$ and plot orthogonalised impulse response functions. A structural VAR with p lags (sometimes abbreviated SVAR) is $B_0 y_t = c_0 + B_1 y_{t-1} + B_2 y_{t-2} + \cdots + B_p y_{t-p} + \epsilon_t,$ where c0 is a k × 1 vector of constants, Bi is a k × k matrix (fo...
Can anyone help me out with plotting a Hazard Ratio Plot for a Weibull distribution. The following link specifies how a Hazard Ratio could be plotted for a Cox PH model: Plot of the estimated log hazard ratio in R
How do you explain a significant variable (p-value less than 0.05) in a linear regression equation in layman terms?
I perfomed a 2 (groups) x 5 (emotion) repeated measures anova in SPSS. The interaction between groups x emotion is not significant, but Bonferroni post hoc comparisons of this interaction reported a significant difference (p<.0005) between the two groups for each emotion. Is it possible the case in which the interact...
For those unfamiliar with census geography, census tracts are made up of multiple block groups. Suppose I have three data tables (all categorical): Block Group Geography x Home Value Block Group Geography x Household Income Census Tract Geography x Home Value x Household Income Would I be able to use Bayes' Theorem ...
I want to calculate precision and recall for word sense disambiguation. Naturally, for that I need to calculate TP, TN, FP and FN. I know TP is the number of documents that the tag of the test sentences equals to the tag of the classifier and FN is the number of documents that the tag of test sentences is not equal to ...
So I have a lot of time series with a hierarchical structure, and need to produce forecast for each base series and its aggregates by the hierarchical structure. I have decided to produce forecast using the R hts package by Rob J Hyndman. I have produced reasonable point forecast for each series using the auto.arima ...
I'm performing a bioinformatic study using a method to detect selection within cattle genome. A previous author developed this method with a statistic calculated from DNA genotypes. The method consists in performing a null distribution with values calculated from between chromosomes genotype data and stablish a critic...
I use kernel k-means algorithm with different kernels and want to see which one is the best. The way i do it is to fix the number of $K$ equal to number of classes (ground truth) and check the accuracy of the clustering result comparing to the true labels. I also try it 1000 times with different initial point to take ...
I am interested in evaluating the algorithmic complexity of an estimator of the form: $$\hat{\theta} = \text{argmin}_{\theta} \;\; Q_n (\theta)$$ where $Q_n(\theta)$ denotes some objective function of interest (e.g. - log likelihood) computed on a sample of length $n$. $\hat{\theta}$ is assumed to be obtain through som...
In the mini-batch training of a neural network, I heard that an important practice is to shuffle the training data before every epoch. Can somebody explain why the shuffling at each epoch helps? From the google search, I found the following answers: it helps the training converge fast it prevents any bias during the ...
I see that in PCA the first principal component maximizes the variances amongst all the points within the data set. What exactly does this mean, what does it show and what does every other principal component thereafter tell me? I read these really nice simple explanation on PCA that helped me understand PCA as a whole...