instruction
stringlengths
9
38.7k
I have a set of ~100 forested natural reserves surrounded by multiple non-overlapping buffers of 100, 500, 1000 and 2000m. I would like to understand if there is a higher rates of disturbances in the natural reserves, or in surrounding buffers. The null hypothesis assumes that the disturbance rates are the same in nat...
I am using MCMC with the Metropolos-Hasting algorithm to generate solutions of a non linear regression problem. Likelihood My likelihood is a gaussian distribution centered in 0 of the residuals with sigma as the measurements uncertainties. Such as: $l(\theta|x)= \exp[ \frac{-\sum\limits_{i=1}^n (x_i-y_i(θ))^2}{ 2\sigm...
$X_1, X_2,...,X_n$ are iid $N(\theta,1/2)$ random variables. $\bar{X}^3$ can be used to estimate $\mu^3_X = \theta^3$ How do you determine the first-order and second-order approximations of the mean of $\bar{X}^3$? additionally, how do you determine the first order approximation of the variance? I know for the first or...
How do I calulate the R2 score of a fitted polynomial regression curve whereby one x point has multiple true y-values? The sklearn r2_score(ytrue, ypred) method fails with this error because i have 13 ypred points, but 48 ytrue points ValueError: Found input variables with inconsistent numbers of samples: [48, 13] ...
I have a large network for which I'm using iGraph in R to handle. However, I would like to take some small random samples of that network, and calculate for example the standard deviation of parallel edges weights, to see how much do they actually vary. When looking at the data on a table format, it looks like this: Or...
Suppose I have a GARCH(p,q) model with constant conditional mean, \begin{aligned} y_t &= \mu + u_t, \\ u_t &= \sigma_t \varepsilon_t, \\ \sigma_t^2 &= \omega + \alpha_1 u_{t-1}^2 + \dotsc + \alpha_s u_{t-q}^2 + \beta_1 \sigma_{t-1}^2 + \dotsc + \beta_r \sigma_{t-p}^2, \\ \varepsilon_t &\sim i.i.d(0,1). \\ \end{aligned}...
I have a question similar to this thread. Although there was one answer, it did not capture the essence of the poster's question. In essence, I am trying to estimate $y = a + \beta x^* + \epsilon$. Unfortunately, I do not observe $x^*$, but rather a proxy $x = x^* + \nu$. I know that in such cases, the model suffers...
Let $Y_1,Y_2,...$ be $\text{iid}$ Poisson random variables having mean $1$. Define $$U_n = \sqrt{\frac{1}{n}\sum\limits_{i=1}^n Y_i^2}.$$ How to determine the limiting distribution of the sequence $U_1,U_2, ...$? I know that the weak law of large numbers can be used to deal with the $n^{-1}\sqrt{\sum Y_i^2}$, but not ...
I'm wondering which statistical test to chose to find out which of my five DV is the difference between Country X and Country Y not statistically significant? My Variables are: 1 Independent variable: Nation (Divided into two categories, Country X and Country Y) 5 dependent variables sumscores (comprised of different ...
My goal is to model individual credits spreads against a "benchmark" credit spread in order to generate a beta that is the fixed-income equivalent of the market beta used in capital asset pricing models in equity markets. (E.g. in CAPM, a $ \beta $ > 1 indicates that the individual stock has more systematic risk than t...
I'm trying to use mice package to do imputations, I'm pretty new to all of this. I have 9 continuous variables and I used the following code to impute, using the 'cart' (Classification and regression trees) method: imp <- mice(incomplete.data, method="cart", m=10, maxit=20, seed=456, pred=quickpred(incompl...
I have performed a rather tricky analysis of some longitudinal data and now wish to do a retrospective power calculation. I ran a generalised estimating equation analysis for data that consisted of several covariates (some factorial and some continuous) and a binary dependent variable measured once weekly for 10 weeks....
Please tell me why I'm wrong :) I have a dataset collected in a 2 by 4 repeated measures design, where 2 separate groups of people were tested 4 times on the same task. I have analysed my data with nparLD (https://www.jstatsoft.org/article/view/v050i12) because it is non normally distributed. On top of these results,...
I recently got into a debate on how to best measure when my Facebook/Twitter/Instagram friends are most active. Imagine that I have the input data set that consists of (timestamp, user_id), where timestamp is the time when the user did something like posting a new status. Given this information, how would you measure w...
I run a multinomial logistic regression model on a dependent variable Y with five levels (with one of them set as a reference). Though the outputs of the model were in line with my expectations, I have HUGE relative risk estimates on the intercept values of some variables (in the thousands). I believe this can be due ...
I am trying to replicate Bertrand et al. (2004)'s study, and I am having some troubles understanding what exactly they do in the "Ignoring Time Series Information" section, especially the staggered Diff-in-Diff part. They write "First, one can regress Yst on state fixed effects, year dummies and any relevant covariates...
1.-I am calculating the probability of default with Chi-squared test Null Hypothesis [chisq.test() function]. 2.- My dependent variable is "default" that has two values: 1 (applicant defaulted on loan) and 0 (applicant paid loan). 3.- For predicting the probability of student (an informative variable) to be defaulted [...
I am studying the one-vs-one multi-class classification approach using these slides. I understand the middle green region cannot be properly classified using this approach. What don't I understand is the below line? Two way preferences need not be transitive. Can someone explain this in the context of multi-class clas...
Even though there are some great QAs related to this problem in SE such as this and this, I still have problem finding a good strategy for a one-sided test for a regression's coefficient. To describe the problem properly, let's go by a simple example, consider the following table: > table # not.B B # not.A 8...
I thought K-fold cross-validation consists of the following steps. Split data randomly into $K$ chunks. Fit on $K-1$ chunks. Predict on remaining chunk. Keep predictions. Repeat 2-3 for all remanining $K-1$ combinations of the $K$ chunks that omit 1 chunk. Evaluate Loss statistic that compares all predictions to true ...
link to data I am having a problem conducting post hoc analyses on a binomial glm using the data linked above. Experiment: I am looking at the detectability (presence/absence) of an insect marker given 3 explanatory variables; application method (apptreat - factor, 2 levels), marker (factor, 2 levels), and exposure ti...
I'm running a PCA using prcomp in R and I get a table like this from the summary function: Importance of components: PC1 PC2 PC3 PC4 Standard deviation 227.5998 86.2614 6.76700 3.29498 Proportion of Variance 0.8736 0.1255 0.00077 0.00018 Cumulative Proportion 0.8736 0.999...
Given the following system of equations: $\textbf{y} = \textbf{x}_{1} + \sum_{l=2}^{L}\textbf{x}_{l} + \textbf{w}$ where $\textbf{y}$, $\textbf{x}_{l}, \; \forall l$ and $\textbf{w}$ are Gaussian random vectors with zero mean and variances $ \gt 0$. How can we check if $\textbf{y}$ and $\textbf{x}_{1}$ are jointly Gau...
I am trying to model the probability of a team winning a football match. I am able to model this probability accurately for a given team and given opp using logistic regression. What I am unable to do (or lack the knowledge to do) is model the probability for both teams within a certain match (and the draw). For examp...
I'm looking at example solutions to Kaggle's Titantic competition. In short: Given passenger information such as age, sex, fare, class, can you predict whether or not they survived? A lot of people like to preprocess the data by binning age and fare into ranges. But then they throw a Random Forest at the problem, and I...
I have a relatively small dataset (n < 130) based on a questionnaire set up with 5-point likert type scale. Each respondent has filled out the questionnaire at 4 time points, i.e. a longitudinal (or panel) data study. In papers and other theory that address Maximum Likelihood estimation in case of non-normal data, the...
Suppose that you can assign $s$ employees on a project, where $s\in\{1,\ldots,m\}$. Suppose you simulate the progress of the project $n$ times for each $s$. You retrieve an estimate of the optimal $s^*$, by choosing the $s$ for which the number of times the employees completed the project was the largest. The probabili...
In order to assess the reliability of a self-recording system, I want to check the effect of the day of the week on the biological phenomenon I study. Apart from the habits and convenience of the users, there is no reason at all the day of the week would have any effect on the recording of the aformentioned phenomeneno...
Here's a brief snippet of my data (the first two columns are measured spectral data attributes, and the latter columns are indexes calculated from the first two): The issue I'm running into is that the variance of the two measured attributes are drastically different (first column StdDev is <.5% of mean, second column...
I read that Kalman filter can be applied to perform regression with a dynamic beta, calculated on the fly. Can someone please break this down for me, with some simple example of single-variable regression? What are the assumptions, what are the inputs, what are the equations? By inputs I also mean user-set parameters(c...
I need to simulate data from a cox model with specified values of the parameters: $$\lambda_0(t)exp(X \beta)$$ For reasons I don't want to get into, the scale of my X's is very large. They range between 0 and 100. When I apply the algorithm of Bender et. all (2005) explained very well in this post on Cross Validated, I...
Suppose I have two independent random deviates $A$ and $B$ sampled from Gaussian (Normal) distributions with means $\mu_a$ and $\mu_b$ and standard deviations $\sigma_a$ and $\sigma_b$. I can't observe $A$ or $B$ directly, but see only their difference $C = A - B$. Given that I observe $C=c$, what's $Pr\{A = a | C=c\}$...
I've heard that some people like to operate directly on X'X and X'Y rather than X and Y. I think this may be in the context of big data, to save space, but I am not sure. What is the point of such approach, what does it achieve? Is this a standard trick I am not aware of?
We recently received peer review on a manuscript that contained reasonable feedback but also this item: when the p-value is larger than the alpha level chosen (here is .05), it is not necessary to report effect size. To me it seems clear that effect sizes should be reported regardless of categorical significance/non-...
Must a time series be stationary if it has no unit root? I am not quite sure.
I am trying to do a simple Naive Bayes classification, but I am getting a probability greater than zero. What am I doing wrong? I have included my calculations below. Step 1: Prior. Calculate the prior probability of the class, i.e., the probability we would assign to the class before seeing any evidence. What percent...
How to run a t-test for two groups with one group including only one value? Example: group A: 7, 8, 9 group B: 5
I'm using the lme4 package in R to run a multilevel model and to calculate confidence intervals: model <- lmer(cadence ~ fd + height + (1+fd|id), data=df, REML=FALSE) confint.merMod(model, method = "boot", boot.type = "perc", nsim = 500, oldNames = FALSE) I'm trying to underst...
In the brms package the function bayes_factor allows you to compare two models. Personally, I prefer the WAIC or LOO methods of comparing, but it is helpful to have both these and bayes factors for those who like bayes factors for these purposes. I fit my models with the option to save prior samples in order to be abl...
Logistic regression model is defined as $$\mathbb{P}\left\{ Y = 1\mid X\right\}=\frac{e^{\beta^T X}}{1 + e^{\beta^T X}}$$ where $Y$ is a random variable in $\left\{0,1\right\}$, and $X$ is a random vector in $\mathbb{R}^d$. Consider the MLE of this model. Under what conditions is the MLE estimator $\hat{\beta}_n$ consi...
Suppose I set [Smin, Smax] to be the limits of slope of a regression, are they hyperparameter? If not, what are they called?
Planing to implement Mini Batch K-Means on a large scale dataset resembles to sklean.cluster.MiniBatchKMeans. In the first step, b samples are drawn randomly from the dataset, to form a mini-batch. These are then assigned to the nearest centroid. In the second step, the centroids are updated. In contrast to k-means, t...
I am wondering why in the Causal Inference literature that the Average Treatment Effect is usually written as $\tau = E[Y_i(1) - Y_i(0) ]$ instead of $\tau_i = E[Y_i(1) - Y_i(0) ]$? In other words, why is it that typically $\tau$ is NOT indexed by $i$? Is it to be taken that $\tau = E[Y_i(1) - Y_i(0) ]$ is averaging o...
I am working with data on individual trajectories, defined as a categorical state defined for each time period, using R's TraMineR package to visualize and calculate distances between each pair of trajectories for the sake of cluster analysis One phenomenon I'm seeing is that trajectories like: 1: baaaa 2: abaaa 3: aaa...
I am wondering how to calculate information gain using mutual information. With the help of python's sckit-learn, i have calculated mutual information between two features directly, but there is no library which can calculate information gain. Could you please describe the way to calculate Information gain. Thank you. ...
I'm very new in statistics. I was learning the PDF of Normal Distribution. But sometime before I learned that probability of getting exactly x in continuous distribution in 0. But what if I replace the value of x in PDF of normal distribution? It gives me the height and that is essentially the probability of getting x....
I've built a lmertree model using the GLMERTREE package with random slope and intercept, a treatment variable, and a "partitioning" variable. I've attached a toy dataset and the associated model: Dataset: toy_data<- structure(list(abund_per_night = c(3.5572510116355, 4.01750851327412, 3.46350126499831, 3.4633291627691...
I'm wondering whether red dots in the example scatterplot shown in the attached graphic can be used as an argument against reverse causation. If the main effect was $Y \to X$, then we would assume that for high values of $Y$, we also get high values of $X$. However, $X$ appears to be assigned independently from $Y$, wh...
This is how my Training dataset look like i want to predict revenue of the Restraunt I have been told to use logistic Regression to predict the revenue of the restaurant how can i achieve this using logistic Regression what is the good tutorial for how can i achieve it.
I have simulated a dataset containing individual level variables that results from two processes. In the first process there is a selection of individuals according to one variable, say "indQual". There is another individual variable that is a categorical variable, say "indBin", with three levels, say, "A", "B", and "...
Does minimizing the $RSS$ in your model always equate to minimizing the $MSE$ as $MSE=\frac{1}{n}\cdot RSS$?
Let $X\in \mathbb{R}$ be a univariate random varible for which it holds that $$ X \sim N(\mu,\sigma^2).$$ where $\mu\in \mathbb{R}$ gives the expected value and $\sigma^2>0$ is the variance. If we are interested in the first two moments of $X$, given that $X$ is smaller some threshold $b$, Wikipedia provides rather s...
I have a sequence of numbers of quarterly sales spanning a decade, say $\{Z_i; 1\leq i \leq m\}$. These numbers are not observed until much later. I do have incomplete observations of this sequence however in the form of the sequence $\{X_{ij}; i+1 \leq j \leq m\}$, where $X_{ij}$ is the reported number of sales (gener...
I have small dataset of 5 samples: [ 0.95,0.9,0.05,0.92,0.9] the mean is 0.74 and stdev is 0.38. Is it reasonable to say samples that are 2 standard deviations further from the mean are outliers and can be removed? Later I need to find the minimum of the dataset. Is it possile than for example to remove 0.05 and say th...
I consider consumer choice over time $t$ over a set of alternatives $J$, whereby a consumer's perceived utility of option $j$ is $u_{jt}=x_{j}+\mu_{jt}$ with $\mu_{j0}=\epsilon_{j0}\sim\mathcal{F}(\sigma)$ (for example a normal distribution or a Gumbel distribution with $\sigma$ a precision parameter) and $\mu_{jt}=\...
I am reading an article in which the author states that given two i.i.d random variables $X,Y\sim\mathcal{N}(0,1)$, we have $\mathbb{P}(\frac{X}{Y}\le t)=\mathbb{P}(\frac{X}{|Y|}\le t)$ since the random varaibles $\frac{X}{Y}$ and $\frac{X}{|Y|}$ are identically distributed by the symmetry of the standard normal distri...
I answered this question in three ways: classical, p-value, and confidence interval. Data:553, 552, 567, 579, 550, 541, 537, 553, 552, 546, 538, 553, 581, 539, 529 n = 15 sample mean = 551.3 normally distributed, sigma = 20 Question: Is there evidence to support the claim that the mean life exceeds 540 hours? Class...
Background I have a time-series prediction model which aggregates historic analogues to make predictions about potential future positions. It works really well in that it makes accurate predictions and is driven by strong business intuitions. However, making predictions is prohibitively calculation intensive (it compar...
I got some groups to compare. My variabels are in the physical fitness area so BMI, bodyfat etc... I have 4 groups, categorized in gender and two school classes from 2010 and 2012 (Men2010 Men2011, Women2010 and Women 2012). I have used box plots to work them all in one figure for each variable. Box plots was used due ...
I have a dataset with $m$ observations and $p$ categorical variables (nominal), each variable $X_1,X_2...X_p$ has several different classes (possible values). Ultimately I am looking for a way to find anomalies i.e. to identify rows for which the combination of values seems incorrect with respect to the data I saw so f...
I have a test of a skill which will return a value between 0 and 30 for a participant as a measure of that skill. I have five ordinal groups of participants (they are corresponding to university level attainment - first years, honours students, PhD students, etc) and I intend to have a number of participants from each ...
I have a cancer patients data which consists of more than half million features and my task is to apply feature selection algorithm to extract the most relevant features from it. My question is which feature selection model would me more appropriate in this case... Any suggestions will be more appreciated...
Maybe it is a basic question, how can I calculate what is the probality the x>=2 based on this data: (95% conf level) Mean 5,954774 Standard Error 0,112709 Median 6 Mode 5 Standard Deviation 2,248529 Sample Variance 5,055884 Kurtosis 1,722383 Skewness ...
We know he fitted estimator for $\beta_1$ is $$ \hat{\beta_1} = \frac{\sum_{i=1}^{n}{(x_i-\bar{x})(y_i-\bar{y})}}{\sum_{i=1}^{n}{(x_i-\bar{x})^2}} $$ Now, given the following estimator: $$ \beta_1' = \frac{1}{n}\sum_{i=1}^{n}\frac{y_i-\bar{y}}{x_i-\bar{x}} $$ How can I find out its bias? How can I calculate its $MSE$? ...
I think I barely understand how k-fold CV is working and I have a question about it. For example, when I run 5-fold cross-validation (in SAS), I use 5 subsets of the training data, and end up with 5 different models. But I have only one output for it. I understand the error rate is the average of those 5-folds' errors...
I've been digging into the source code of lifelines the excellent package in Python from Cameron Davidson-Pilon. However something I'm struggling with is that there's no p-values on regression coefficients or on covariates. I'd like to have an easy way to calculate these, but the literature hasn't been as easy to expl...
I am working on a project where I have to build a deep-learning model that classifies the kind of stop a vehicle at. My dataset consists of some vehicle related data such as vehicle Id, type of vehicle and so on, and GPS related data like longitude and latitude of the vehicle along the route, standard deviation and dur...
Suppose in a situation where there is one questionnaire question which allows N participant to give response from a scale of 1 to 10. To find the standard deviation from this case we can first calculate the mean from all N participant. Then for each i participant's observation we can find how far this observation is to...
Call: lm(formula = GROWTH ~ log(X1) + log(X2) + log(X3) + log(X4) + log(X5) + log(1 +X6) + log(1 + X7) + log(X8) + log(X9) + log(X10) + log(X11) + log(X12) + log(X13) + X14 + X14:X9 + X14:X10 ...
Demonstrate that the Jeffreys' prior for the mean and variance parameters of normally distributed data $x=\{x_1,x_2,x_3,...,x_n\}$ is given by $p(\theta,\phi)\propto \phi^{-3/2}$.
We have that $X_1,X_2,...$ are iid exponential variables having mean 1. $Y_1,Y_2,...$ are iid Poisson random variables having mean 1. $Z_1, Z_2,...$ are iid standard normal random variables. $X_i, Y_i, Z_i$ are all independent. $$V_n = \frac{\sum (X_i-Y_i+Z_i)}{\sum Y_i^2}$$ I am trying to find the pdf of the limiting...
I am using PCA in R to analyze groundwater level changes. I used: PC.data<-prcomp(data,center=T,scale. = T) #prcomp scores<-PC.data$x head(scores)` PC1 PC2 PC3 PC4 PC5 [1,] -5.921258 -2.704683 -0.5652839 0.04388705 0.84945464 [2,] -5.991433 -2.89017...
I've got a continuous y (bounded between 0 and 10) and a 3 level categorical x (small, medium, large) and some other covariates (age, gender). After OLS regression, both the residual vs fitted plot and Breusch-Pagan / Cook-Weisberg test for heteroskedasticity seem to suggested heteroskedasticity isn't a problem. Howeve...
The bias and variance of a classifier determines the degree to which it can underfit and overfit the data respectively. How could one determine a classifier to be characterized as high bias or high variance? I am pretty clear of what is a bias-variance trade-off and its decomposition and how it could depend on the trai...
I was learning the optimization part in deep learning. Let's take linear regression as a simple example. Let $m$ be the total number of data points in the training set $(X,y)$ and $n$ is the number of iterations. For (Batch) Gradient Descent (GD), we do for i in range(n): y_hat = np.dot(X, theta) theta = thet...
I understand that the OLS slope estimator of a simple linear regression model is unbiased and consistent when all the usual assumptions are satisfied (eg. random sample, E(u | X) = 0 etc.) However, instead of using the entire sample in the OLS slope estimator, if I only use half the observations or a quarter of the ob...
I build a GAN to train on the fashion mnist dataset. To facilitate the training, I have added gaussian noise with mean 0 and stddev 0.15 on the images. My generator is a 2 layer MLP with sigmoid activation, discriminator is a logistic regression I trained this for 100k rounds and the loss started to stablize at around...
So I've been back and forth on whether linearity and constant variance assumptions are satisfied by these plots (for a linear model). What's throwing me off is how in the first plot above we have like a gaussian circle and also the region of highest point density seems to shift upwards (which affects the mean trend li...
I tried to run Elastic Net in R with just one predictor (don't ask me why). It seems that, at least theoretically, it should be possible. I can run a regression with just one predictor and I might be overfitting - hence, I could reduce the size of the regression coefficient using regularization. However, both 'glmnet' ...
We have several time series, which are basiclly chunks of numeric values. We use Dynamic Time Warping to calculate the distance between these time series. This is working well and gives us some distances like 75.397 or 3752.34. Our goal is to have somekind of a threshold to determine when two series are "similar". For ...
Generalized Linear Mixed Models (GLMMs) and Multilevel Models (MLMs) seem to sometimes be used in similar contexts. What is the difference between the two. Can both be used for hierarchical linear models (HLMs)?
I have a model generated using an imputed data set with imputation accuracy of 75%. If the model using imputed data has an accuracy of 80% What would be the community consensus to report the accuracy of such models with imputed data? I assume the 80% accuracy has an error-rate of 25% because of the imputation error?...
I have a set of 100 images of a man moving on the street. I remove the background and try to cluster the man using dbscan in each image seperately. Instead of getting one cluster (for the man), I get more than one cluster, ofcourse in all the images, the moving man is clustered but there is noise as well but noise is n...
What is the definition of the distance of a random walk? In the Statistical significance of a cluster of this paper, and this blog, they both mention the distance of a random walk. I think it should be a different concept from the length of a random walk.
I've been using the R package 'survival' recently. I understand the way to read the survival curves is given time X what is the percent of widgets still in the field Y. And I can get a confidence interval around Y. But I've been asked if I can go the other way around. Given a percent still in field Y, can I get a time...
I want to use the Gradient Boosting algorithm with exponential loss function and I am struggling to understand how to use the Newton-Raphson update step for predictions. In python's sklearn GradientBoostingClassifier the update step is the following: numerator = np.sum(y_ * sample_weight * np.exp(-y_ * pred)) d...
I want to fit a multiple regression to test the relationship between several independent variables and a dependent variable. A few independent variables are standard demographic variables, the rest of the IVs are summed scores of responses to likert items. The dv is also a sum of responses to likert items. The books I...
As part of my research I have developed a software and I wanted to test it with 2 other softwares that does similar work. The problem is I could find only few users of these two softwares (20 users for software 1 and 10 users for software 2 and 5 users used both software 1 and software 2). This is what I have done Def...
In this blog figure 4 shows that the principal components of a random walk are sinusoidal with increasing frequency for decreasing eigenvalue. Is there an intuitive way of understanding this? If I generate two independent random walks with a mean of zero, why is there a covariance (or correlation) between these trajec...
Is there a closed form expression for the convolution of a normal distribution (ND) with a gamma distribution (GD)? There does not seem to be a direct method of solving this convolution.
I have an hourly time series, so when I plot the ACF it shows decimal lags. I can solve this by setting l=frequency of data times the numeber of integer lags I want to study. Ex: acf(data, l=8765*4) For selecting ARMA order, should i look at integer lags or decimal lags?
I'm attending a course in Advanced Statistics and I want to find materials and exercises (like the MIT Open Courses) which cover the syllabus. We're using the book Stochastic Modeling and Mathematical Statistics. The topics are: Review of discrete and continuous random variables. Random vectors. Transformations of ran...
I have often heard people mention the importance of standardization when using PCA, but not with respect to GAMs. Is this because standardization is not important for GAMs? Should I standardize my predictors and/or response variables?
UCB uses a padding function such as $$c_t(i)=B\sqrt{\xi \log(t) / N_t(i)},$$ where $B$ is an upper-bound on the reward. This description comes from reference 2 (also see reference 3). But I have seen it described it as such elsewhere. I see many people using $B=1$. My question is, what is $B$ exactly? An upper-bound on...
Recently I played a bit around with the Caffe Classification Demo and recognized bad classification results with images of people. I guessed the model is trained with the ILSVRC'12 classification dataset. When looking at it in more detail I realized there isn't a human/person class. The most related classes are just "s...
I am making a survey and I want to post the results with 95% confidence interval. The problem is I found multiple formulas to compute it and I don't know which one I have to choose. The 2 formulas are : $I_c = \left[\bar x - t_{\alpha}\frac{s}{\sqrt{n}}\ ;\ \bar x + t_{\alpha}\frac{s}{\sqrt{n}}\right]$ $I_c = \left[\b...
The mutual information gain expression is $$ H(X) - H(X | Y) $$ If I have a set of data sources, $ \mathbf{X} = \lbrace X_0, X_1,\ldots,X_m \rbrace $, then I start with the simplest mutual information analysis I could think of: "Leave One Out" mutual information gain. So, for each $X_i \in \mathbf{X}$, I calculate $$...
The title essentially says it all. Below are some details regarding my data and model. This is the current class distribution within my training set: 0 1353849 1 26217 Name: binary, dtype: int64 My training set includes 104 features. My current recall is at 94%; My current precision is at 20% Here are the hype...
A pdf is usually written as $f(x|\theta)$, where the lowercase $x$ is treated as a realization or outcome of the random variable $X$ which has that pdf. Similarly, a cdf is written as $F_X(x)$, which has the meaning $P(X<x)$. However, in some circumstances, such as the definition of the score function and this derivati...
I'm building some zero-inflated models that need to include random effects, and I can't find a definitive answer for whether I should include the random effects in the part of the model that describes counts, the part that describes the probability that a zero is structural or not, or both. Below is Ben Bolker et al.'s...