instruction
stringlengths
9
38.7k
Optimizing the full likelihood function is sometimes time consuming and contains a lot of numerical issues and instabilities especially when matrix inversion is needed. If we have 3 input vectors $\boldsymbol{y}_{1},\boldsymbol{y}_{2},\boldsymbol{y}_{3}$ let $\mathbf{y}=[\boldsymbol{y}_{1},\boldsymbol{y}_{2},\boldsymbo...
I wonder if there some existing work of Linear Regression or Logistic Regression with partially known coefficients ($\beta$). For a linear regression, $Y=X\beta$, when we already have knowledge about some coefficient of $\beta$, say $\beta_{0,...,j}$ and still need to solve for $\beta_{j,..., p}$. This should be triv...
Each training example has 100 numeric attributes plus one output class and about 80% of the attributes are 'zero' (means no data collected). The value of attributes varies in a small range, like $(-20,20)$. I have 100 examples like this. What method/classifier should I use? I tried KNN, Naive Bayes, SVM, random forest/...
I have a question that occurred when thinking about the following use case: A bank wants to group their customers into segments using the database tables 'customer', 'account' and 'transaction'. The first table contains customer information (e.g. id, birth date, sex, age), the second one account information (e.g. id, c...
I have the following model (from theory): $$ y_{ij} = \beta x_{i} + e_{ij} $$ where $y_{ij}$ and $x_{i}$ are observed, $i$ is individual and $j$ is occupation, and there is no constant. Is $E(e_{ij}|x_{i})=E(e_{ij})$ the only condition required for consistency of Pooled OLS?
I am relatively new in this field and have my final thesis on crude oil price forecasting. I am stuck in identifying the optimal ARIMA model for my time series. I am using Stata 13. The daily five year series of ICE crude oil futures is shown on a line graph below. As it is obvious this time series needs differencing...
I've been having difficulty in obtaining the exact solution given by the author. I need help as my solution doesn't factorize completely to the same term given by the author. Obtaining the kth moments entails computing the integral given in the picture. I carried out the integration but I did not get the exact term the...
There is a kind of (pretty simple) visualization we use a lot in my office, but none of us knows what it's called: The idea is that the second bar drills down into the indicated data from the first bar. As pictured here, 69% of the first bar is highlighted. The second bar shows that 76% of that initial 69% is highli...
What would be a good test to check if two sample variances are significantly different when data are non normal (leptokurtic, slight negative skew) and heteroskedastic? The samples are of equal size, 500. My impression are that most tests assume normality and homoskedasticity. Edit: I see that my original post was a bi...
I ran the following Quadratic regression. I want to report my findings, and I want to include the DFs for x and x^2. Can I assume they are 55? (2+53). The R output is not very clear on this. Sorry, I know it's a basic question but I just wanted some confirmation. lm(formula = y ~ x + x2) Residuals: Min 1Q ...
Which is the best/most reliable representation of a model's predictive accuracy, the accuracy based on the n-fold cross validation or the model's accuracy on an unseen dataset? At a glance, I would definitely have thought that predicting the unseen dataset would be a better measure of predictive accuracy but on second ...
I have 20 students, 1000 questions with five options a, b, c, d, e. First, I am using rmultinom(1000,1,c(0.2,0.2,0.2,0.2,0.2) to generate the truth. Next, I want to simulate what a student chooses for each question. Suppose for Q1, the correct answer is a, I need to simulate the probability of student 1 of choosing the...
I am trying to test whether the difference between the two proportion I have found is significant or not. I am just unsure as to whether my samples are independent or dependent and as a result what test to use. I have a sample of patients from one GP practice. Some have been sent recalls by text message and some have b...
I have a panel data with sales rank of an app on appstore over a period of 11 months. Some of the apps were promoted during this period and form the treatment groups (treated=1), while others form the control group. While there are 180 treated apps, there are close to 21k controls apps. I wish to find the nearest neigh...
I am interested in estimating a nested logit model following McFadden (1978)'s formulation. It is simple to numerically verify the result in a standard situation with independently drawn error terms, but I do not know what the cdf is when error can be correlated. To review, McFadden shows that the expectation of the ma...
I have not really seen any probability books calculate conditional expectation, except for $\sigma$-algebras generated by a discrete random variable. They simply state the existence of conditional expectation, along with its properties, and leave it at that. I find this a little upsetting and am trying to find a method...
I have been struggling with understanding the solution to one of exercises in Blitzstein's book Introduction to Probability. My question is: in part b), why can we just drop $X=15$ in the term $P(Y=k|X=15,B)$? As I understand it, we could do this if $B$ happened which would imply that $X=15$ must have happened too in w...
I perform clustering of time series into k=[2,N] number of clusters by using either DTW+kmedoids or DTW+single linkage+hierarchical clustering (HC), as advised in a previous post: Dynamic Time Warping Clustering Regarding the evaluation of optimum number of clusters, I want to use expectation–maximization (EM) Gaussia...
The definition of a compound Poisson process and its characteristic function I have are the following: Let $\lambda>0$ and $N\sim\text{Poisson}(\lambda T)$. Also, $\{X_i\}_{i=1}^N$ are i.i.d. and independent of $N$. And $\{U_i\}_{i=1}^N$ are i.i.d., $U_i\sim\text{Uniform}([0,T])$, and independent from $X_i,N$. Define:...
We have the equation: $P(C|X)=\sum_{i}P(C|X,M_{i})P(M_{i}|X)$ I should technically be able to prove that it works even when the total number of models is 1, so I go from the right hand side of the equation $P(C|X,M_{1})P(M_{1}|X)=\frac{P(C,X,M_{1})P(X,M_{1})}{P(X,M_{1})P(X)}=P(C,M_{1}|X)$ But I should be able to get P(...
How are Bayesian networks related to deep belief networks? Are they the same? From the post What is the difference between a neural network and a deep belief network?, I gathered that deep belief networks are like deep neural networks where the weights and biases are set by iterations of an unsupervised algorithm. (I...
Editing the original question. I am trying to use Q learning to figure out an optimal policy to follow given initial conditions. My question is regarding what to do after learning Q values. I have a history of different episodes where in each episode, I have followed random actions in different states until I reach fin...
I want to know how to simulate arima if there is drift. I have google it, and i search this text http://mgmt.iisc.ernet.in/CM/MG226/Handouts/Simulations.pdf but i dont understand For instance , if i want to simulate ARIMA(1,1,1),for n=100 if there is no drift,the code should be:x=arima.sim(n=100,list(ar=0.1,ma=0.2,orde...
Forgive me for the crummy title. Not sure how to describe what I want without giving an explicit example... Suppose you go to various geographic regions and measure the population of some species. Your resulting data looks something like this: train <- data.frame( Region=c(1,2,3,4,5), BlackBears=c(NA, 45, 109, 63...
I will have longitudinal data in which I hope to compare samples at "surveillance" and "disease" time points. However, "disease" can occur more than once, and "surveillance" occurs before "disease", such that each "disease" sample can be paired with a unique "surveillance" sample that occurs before disease. If I were t...
I would like to understand how the gradient and hessian of the logloss function are computed in an xgboost sample script. I've simplified the function to take numpy arrays, and generated y_hat and y_true which are a sample of the values used in the script. Here is the simplified example: import numpy as np def logli...
I've read somewhere that we often choose an estimator for the parameter in H0, H1 as the test statistic. I've also noticed that we use the sampling distribution as the chosen distribution very often. Do we always do this?
I have 425 sample points that have been classified according to land cover in two time periods. When comparing how percent land cover has changed over time, is this a one sample test (ie. because the same points are sampled), or a two sample test (ie. because two separate time periods)? I'm pretty sure that each time p...
Following Gelman et al. 2008, we can use e.g. in the case of complete separation, weakly informative prior distributions to estimate a bayesian logistic regression. However I wonder, whether there is a way to do something similar for a multinominal regression (I have 3 outcomes). It would be awesome if there is someth...
I would like to be able to perform a sample size calculation for an Ordinal Logistic regression with mixed effects. The proposed design would have two different tests each with 5 different items, each participant does both tests and each item. (i.e. wide format data would be: ten columns of data - five for test 1 and f...
I want to use Bayesian approach to test whether a single data point $x$ came from model $M_1$ or model $M_2$. I am having difficult time to get my head around this very basic setting. I make a few steps a long the way and then I get stuck \ confused. So the two models are: $$ M_1: X \sim N(0, 1)\,, $$ $$ M_2: X \si...
I am reading an article in Systems Biology where the authors use the term background model which I guess refers to something related to statistics in general. However, my Googlesearch did not result in any significant finding of what the term means! Here is the context (Drake et al., 2016): The input sets were found t...
I'm doing a regression using R.Initially I used the fit=lm(data).Got all of my variables are significant including intercept.I checked the VIF using vif(fit) & got maximum VIF as 2.5. But my customer wants model without intercept and I don't have any option other than removing intercept. So I used following line of cod...
I have a 2d data set where one dimension is circular (direction and speed). I would like to create a kernel density estimate but am unsure how to create a kernel. One idea I had was to use a von mises distribution in one direction, a gaussian in the other and then take the outer product of the results to give a 2d kern...
It is a general question on linear regression with polynomial terms. I am using x and x^2 as my independent variables and my regression equation is as follows y=a0+a1*x+a2*x^2+a3*z+e. I am doing regression to find the coefficients. I have read through this article, which explains that I need to de-mean the variable x b...
If there were no ARCH effects in the residuals, the ACF & PACF should be zero at all lags. However, here in the ACF the first two lags are out of the band; and in the PACF lags 1, 2 and 18 are out of band. What can I conclude? Can I say volatility clustering or ARCH is present?
After using weight of evidence & Information value mechanism, of the 40 odd variables I am left with 8 variables which are highly or moderately significant. One of the independent variable which is categorical has 60+ categories. This is a very highly predictable variable hence please suggest as to how should I use t...
This is my first post here, so please bear with me! I'm comparing several biomarkers with Kaplan-Meier curves and calculating hazard ratios for different risk groups (defined by a certain, well established cut-off value of the biomarker) by using Cox regression in R. We have 3 tiers with a low, intermediate and high ri...
Quoting from An Introduction to Statistical Learning with Applications in R (James, Witten, Hastie, Tibshirani), Chapter 3 on Linear Regression. I used numbered superscripts _1, _2, _3 to mark the areas where I have a corresponding question: We have established that the average of $\hat{\mu}$ over many data sets will ...
I'm conducting a meta-analysis with a data set that is somewhat similar in structure to this post, where there are multiple effect sizes per study. Specifically, most studies I'm analyzing contain multiple experiments, and the effect sizes from these experiments are dependent (i.e., are derived from the same participan...
After running a linear mixed model, I want to obtain the 95% confidence interval for the variance estimation of my random effect. The function confint() in R gives me the 95% CI of the standard deviation of the random effect. Can I square the lower and upper limits to get obtain the 95% CI for the variance?
How do I calculate a statistic for one mixture component? My samples are drawn from a distribution which is an additive mixture of two overlapping component distributions. Given a probabilistic estimate for the labelling of all the data-points (e.g. sample #13 has a 4% plausibility of having arisen from component-B), h...
I'm interested in changing my A/B tests to Bayesian A/B tests, since I recently read several interesting articles and papers on the subject. In particular I would like to apply the approach given in the paper 'Bayesian A/B Testing at VWO' since I think that the expected loss concept is exactly what I have been looking ...
My code is very simpe require(rugarch) require(quantmod) #Daily GARCH(1,1) date_from = c("1996-01-01", "2000-01-02", "2004-01-03", "2008-01-04", "2012-01-05") date_to = c("2000-01-01", "2004-01-02", "2008-01-03", "2012-01-04", "2016-08-20") forex = vector(mode = 'list', length = 5) for (i in 1:5) { ...
My understanding is that in machine learning it can be a problem if your dataset has highly correlated features, as they effectively encode the same information. Recently someone pointed out that when you do one-hot encoding on a categorical variable you end up with correlated features, so you should drop one of them a...
I am confused when I read the boosting papers. In boosting our model is a sum of base learners: $$ f(x)=\sum_{m=1}^M b_m(x) $$ where $M$ is number of iterations in boosting, $b_m$ is the model for $m^{th}$ iteration. Now, here is my question: can the base learner be linear? If the base learner is linear, does the whol...
Here is my way of viewing inferential statistics so far: Sampling distribution - basic concept What's the point of inferential statistics here? Oh, well, estimating parameters! OK so here comes: Estimation: a. point estimation; b. interval estimation = confidence interval. Pretty well. But now comes: Hypothesis testin...
I’m planning a regression analysis. The outcome is the score of an achievement test. Assuming there are 120 items and a person has answered 90 items correctly, the person gets a raw value of 90. This raw value can be converted in an age related t score. Do I use the age related t score or the raw score in conjunction w...
How can I represent a Multivariate Gaussian distribution as a Bayesian network? How can I represent a Multivariate Gaussian distribution as a Markov network/Markov Process?
Decision stump is a decision tree with only one split. It can also be written as a piecewise function. For example, assume $x$ is a vector, and $x_1$ is the first component of $x$, in regression setting, some decision stump can be $f(x)= \begin{cases} 3& x_1\leq 2 \\ 5 & x_1 > 2 \\ \end{cases} $ But is it a ...
First of all I'm studying machine learning with Bishop's pattern recognition I'm stuck with chapter two Gaussian parts. It requires a lot of linear Algebra and Statistics. which books you recommending to form the base for Gaussian part? and this is my second question about chapter 2(Gaussian) this equation is fro...
I'm currently analyzing items from a bank for K-12 education. I have a separate data set for each grade/subject combination (for example, 1st grade English is a set, 2nd grade English is a set, etc). Each data set contains 400-7000(!) items. I would love to able to run various DIF analyses, but missing data is a huge p...
Normally the null hypothesis for a f-test in ANOVA is $H_0:\mu_1=\mu_2=...=\mu_m$ for a comparison of $m$ groups. How do I alter the f-statistic so that the null hypothesis is $H_0:\mu_1=\mu_2=...=\mu_m=0$ ? When comparing two groups with a t-test this is simple: $t=\frac{\bar{x}-0}{SE}$ Can this be done for an f-test?...
I have 4 conditions, (Control, Stim-1, Stim-2, Stim-3) and 9 different proteins expression levels in each conditions. The sample number of each protein expression level in each conditions are about 40 ~ 130 individuals. I would like to set significant level as 0.05. In order to control for the overall significance l...
I'm aware of testing the proportional hazards assumption in the context of the Cox PH models, but I haven't encountered anything relating to parametric models? Is there a feasible way to test the PH assumption of certain parametric models? It seems like there should be given that parametric models are only slightly dif...
A statistician tests the null hypothesis that the proportion of men favoring a tax reform proposal is the same as the proportion of women. Based on sample data, the null hypothesis is rejected at the 5% significance level. Does this imply that the probability is at least 0.95 that the null hypothesis is false? If not, ...
I am build a neural network (NN). Its input include the parameters of a distribution, e.g., mean, median, standard deviation. For example, I am using NN to predict the height of a person. The input features include some attributes of the person. A subset of the attributes are the parameters of the height distribution o...
I am currently trying to perform PCA on time series data and I'm having some confusion. I need to make my data stationary first before I can perform PCA on it and here is the confusion. I have 128 observations for each time series but some time series require second differencing while some others require just a single ...
In lecture notes on introductory graduate course on Bayesian statistics, there is a short discussion of how Multiple linear regression may be treated in the paradigm of "borrowing strength" aka "hierarchical models". The outline of the treatment is given in the lecture note, and the rest is left as an easy exercise fo...
I have experience with both regression and R but am a bit puzzled with how exactly to set up this regression. I am looking at sporting events where two teams play head to head. From each of these games I have the statistics for those games for the winning team and the losing team. I want to predict the MOV based on a n...
I just recently started learning about principal component regression (PCR) and I'm wondering if it's possible to use both principal components and original variables as predictors of a given outcome (the outcome is binary, so I'll need to perform a logistic regression). I have 34 predictor variables about perceptions...
In SPSS, I conducted a general linear model with repeated measures to determine changes in various blood markers, BMI, waist circumference, and blood pressure in youth from pre to post intervention comparing an intervention and control group using SPSS. The within-subject factor is time with 2 levels (pre and post), t...
I'm writing a concept recognition self-test. (This is less weird than it sounds, but only slightly. Don't worry about it.) Partly to prevent people from clicking everything in sight, but mostly just to force people to think about the items harder, I have included a number of fake items on the list. For example, suppose...
I was following the ACF and PACF Plot but it didn't fulfill paramater significance, white noise assumption and normality assumption. So I did model identification for several times to get the model which fulfill those assumptions and didn't . and then I pick an ARIMA Seasonal model (2,1,0)(0,0,4)7 and it already fulfil...
I'm working at Score test realization and I need to calculate the Fisher information in basic logistic model, $$\text{Logit}(\Pr(Y_i=1))=\beta_0+\beta_1X_i$$ And I have stuck at the calculation of this expectation: $$I=E\big(\sum_iX_i^2f(\beta_0+\beta_1X_i)(1-f(\beta_0+\beta_1X_i)\big)$$ such that $ f=\frac1{1+e^{-\bet...
Here are some interesting statistics at the bottom of a news article from today: "Up to 6% of children have food allergies, ..." "Nearly nine in 10 schools nationally had one or more students with food allergies." I readily found a 15-year-old source that showed that, for public schools at least, the average popula...
I am trying to classify short natural language documents, for which I have a small labeled dataset. Using out-of-the-box document classifiers and basic td-idf representation, I am able to get "reasonable" performance. But the data is so sparse that it is doing little more than keyword matching. However, I also have a ...
I have been asked to develop a predictive model to optimize call times from a call center. We have historical data on successful calls, date/time, member-specific attributes, etc. Ideally, the output would be an hour of day and day of week to call a member to have the best chance of reaching them based on the members a...
I am having a hard time understanding how to do model diagnostics, and in particular how to understand the residuals of a fit ARI(1,1) model. I analyzed some data (n=96) and found that it was non-stationary as the autocorrelations were significant up until lag 22. I did first differencing to correct for this issue,...
Suppose that random variables X and Y are positively correlated, with mean zero and variance 1. Suppose Z is a positive random variable. Can it be said that X/Z and Y/Z are also positively correlated? If no, are there some simple conditions that would make this true?
I have a linear panel data model: $$ y_{it} = \alpha + x_{it}\beta + e_{it} $$ for individuals $i$ and period $t$. Assume conditions for Pooled OLS consistency hold. I also observe the region $r$ where the individual lives. Define as the new cluster the pair individual-region, $k(i,r)$, where the same individual living...
I am studying Applied Linear Statistical Models (Kutner et al, 2005). They present a proof for minimum variance unbiased estimator of $\beta_1$ as follows: For regression model $Y_i=\beta_0+\beta_1x_i+\epsilon_i$, the estimator $b_1$ $b_1 = \dfrac{\sum(X_i-\bar{X})(Y_i-\bar{Y})}{\sum(X_i-\bar{X})^2}$ has the minim...
I am using the prop.test function in R to test the differences of proportions against the alternative that the difference of the two proportions are significantly different from zero, however I wish to perform the same test, but instead of testing if they are significantly different from zero I want to test if they are...
I am familiar with how to interpret the regression coefficients on dummy categorical variables when one chooses a reference category by dropping it. However, how does one interpret the regression coefficients on each categorical variable when all categories are included (i.e. one dummy variable for each category) and t...
Given a sample of $n$ iid variables $$ \{X_i\}_{i=1}^{n} $$ distributed as a multinomial distribution $MN(p,1)$ where $$ p = (p_1,...,p_n) $$ I will have that each $X_i$ is a n-tuple with all zeros except a 1 in a certain (random) position. I have the following doubts: Can I say that the j-th coordinate of each $X_i...
I am looking to get a pseudo $R^2$ metric from a beta-regression model fit using JAGS in the runjags package for R. To do so I have calculated the deviance of the fitted model, and the deviance of a null model. I plan to calculate McFadden's pseudo $R^2$ as $$1-\frac{\text{Residual Deviance}}{\text{Null Deviance}}$$. W...
This is probably an easy question, but it's really confusing me. Suppose that, given that the result is NOT a draw, Team A has a probability of beating Team B of 60%. I want to ignore every external factor (players tired, different strategies, etc) and focus only on the math. If the first half was also not a draw, is ...
Following this post Bivariate probit model with sample selection, what would be an example of negative correlation between errors of selection and outcome equation? I have also found an example where rho is negative: http://personal.rhul.ac.uk/uhte/006/ec5040/selectivity.pdf. Based on this example, unobserved factors o...
We have a $$ \boldsymbol\mu= \begin{bmatrix} \mu_1 \\ \mu_2 \end{bmatrix} $$ $$ \boldsymbol Y= \begin{bmatrix} Y_1 \\ Y_2 \end{bmatrix} $$ with $$ \begin{bmatrix} \Sigma_{11} & \Sigma_{12}\\ \Sigma_{21} & \Sigma_{22} \end{bmatrix} $$ Why they represent covariance with 4 separated matrix? and what does $$ \Sigma_{11...
What does the symmetry requirement for the Conover rank squared tests entail? In that link it is stated that the Conover test assumes the data is symmetric about a common median. Is this symmetry of the ranked distribution about the median, and whatever it is, how stringent a requirement is it?
While logistic regression has a set of easier to meet assumptions than linear regression, logistic regression can still suffer from outliers in the independent input variables. This can manifest itself when one variable can drown out another in certain cases. It has been suggested that those could be handled by clippin...
Its is known that in ordinary Kriging (Gaussian Process) the mean and variance at any new point is given as $$\\\begin{pmatrix} \mathbf{y}\\y^{*} \end{pmatrix} \sim N(\mathbf{0},\begin{bmatrix} K & K_{*}^{T} \\ K_{*} & K_{**} \end{bmatrix})\\y^{*}|\mathbf{y} \sim N(K_{*}K^{-1}\mathbf{y},K_{**}-K_{*}K^{-1}K_{*}^{T}...
I am fitting a mixed effects model with a binary outcome. I have one fixed effect (Offset, a 3 level factor) and one random effect (chamber, with multiple data points coming from each chamber). I have included random intercepts that vary across chambers to account for the non-independence of data points that come from ...
I want to model a variable in the form of fit <- gam(y ~ x + s(z,k=-1,bs=?)) To let the function decide the ideal number of knots, I am using k=-1 but I am not able to figure out what type of spline to use. I have added a plot below. Please advise or if possible direct me to sources where I can learn about it. Thanks...
Abridged question version Given the constraints I face when mixing frequentist SAR specifications (e.g. regressand autoregressive process, involving binary correlation structure) with Bayesian estimation methods, it looks like I shouldn't. Is there a theoretical ground which forbids me to do so ? Original question ver...
In SPPS, how does one interpret the last two symbols/letters 'E4' in an arithmetic mean? For example, mean monthly family income is shown as 3.79E4. What does E4 symbolise? How can we interpret it?
Let's say, X and Y are discrete/continuous random variables from gaussian distribution for simplicity. To get the probability density function of f(X,Y), you need to calculate "inverse" of f-function as shown below. http://www.randomservices.org/random/dist/Transformations.html For continuous case, you need to calculat...
The tricky thing of manually implement optimization algorithm is that, even there are some errors, such as wrong gradient, the algorithm still can work in some way, i.e., decrease the objective, and even find the optimal parameters. I am manually implementing gradient boosting algorithm (gradient descent), can I checki...
Note: This is a revision of my original question. I have read the critique of stepwise variable selection and "all possible subsets regression" by Professor Frank Harrell here. Are factor analysis, principal component analysis, structural equation modelling selection and loading of variables more reliable than selecti...
I have a pandas dataframe with several columns, for example let's say: A B C D(labels) 45 88 44 0 62 34 2 1 85 65 11 1 74 43 42 1 90 38 34 0 ... 0 94 45 1 58 23 23 0 How can I detect which columns are useless and which columns are useful to a machine learnin...
I designed my own neural network for solving the problem of text summarization. The number of documents in my training dataset is big (more than 100,000 documents) so it is hard to check it on the whole data. In order to verify that my model is good, I train it on a very small dataset (100 documents) in about 100 epoch...
To explain my problem, I will start right away with a simplified example: Assume we can measure "happiness" in the range of 0 (totally unhappy) to 1 (perfectly happy). We have these measurements for morning, noon and evening time. There are 5 different factors, contributing to happiness: level of hunger, fun, social re...
I am studying the randomForest package to deal with an extremely imbalanced dataset (target: 98% vs 2%). I realize I can utilize parameters sampsize and strata to do Balanced Random Forest (downsizing). However, assuming I am taking 70% of the minor group and the same size of the major group as my sample size (e.g. s...
In statistics, does independent and random describe the same characteristics? What's the difference between them? We often come across the description like "two independent random variables" or "random sampling". I am wondering what's the exact difference between them. Can someone explain this and give some examples? f...
Ok so I am building a text classifier with approx. 20000 entries and 20 categories. I have heard several times that using a bigram representation of my input instead of the classic "Bag of Words" representation could potentially boost my classifier's accuracy. Unfortunately it was not the case for me, so now I wonder :...
This is probably a trivial question, but I can't find it online or in the textbooks I have access to. For a simple model: $$y_{it} = x_{it}\beta + c_{i} + \epsilon_{it} $$ After a random-effects estimation, what is the method used to predict $c_{i}$? I know how to obtain them using several software, but I am interest ...
I'm trying to make a "triplot" to illustrate Bayesian inference (so I'd like to have prior, likelihood and posterior in the same picture). For likelihood I'm using \begin{equation}\label{eq:lik} f(y|\tau) = \prod_{i=1}^{n}\frac{\tau}{\sqrt{2\pi}}\exp\left(-\frac{\tau(y_{i}-\mu)^{2}}{2}\right) = \frac{\tau}{\sqrt{2\pi...
I have a text classification problem. There are 100 articles. Each article contains from 5 up to 20 sentences (an article cannot be separated into sentences, we cannot train and test on sentence-level). I have two classifiers: classifier1 and classifier2. The macro-average F1 of classifier1 on 10-fold cross validatio...
I was reading the paper by Gromping (2007) about variance decomposition. I was refering to page 141 (LMG) but I do not know what is meant in statistics by $\operatorname{svar}\left(\{1\}| \emptyset \right)$. Could you clarify this aspect? In addition do you know any good package for variance decomposition that follows ...
Suppose that the pdf for $T$ is exponentially distributed $$f(x; θ) = \frac{1} {θ} e ^{−x/θ} , 0 ≤ x < ∞$$. Suppose we test n components and record the failure times $T_1, . . . , T_n$. (a) Show that $\hatθ = \overline{T} = n^{-1}\sum_{i=1}^{\infty} T_i$ is an unbiased estimator of $θ$. (b) What is the variance of $\ha...