instruction
stringlengths
9
38.7k
I am simulating US oil prices, here is the data and a simple model: oil <- c(20, 18, 20, 23, 24, 23, 25, 24, 20, 39, 32, 23, 23, 25, 22, 23, 27, 27, 25, 25, 24, 23, 19, 20, 26, 24, 24, 26, 25, 25, 26, 29, 28, 33, 34, 29, 27, 27, 26, 21, 20, 23, 18, 22, 26, 35, 38, 44, 47, 50, 43, 42, 42, 41, 31, 39, 39, 47, 46, 49, 41...
I am currently looking to apply reinforcement learning in my recurrent neural network. I am having trouble to define the reward function for my following application. In my current setting, I am running a recurrent neural network, and each action is equivalent to generating a vector [1x5], and then the network will t...
I have a few thousands of sentences with their B/I/O NER tags. I also have access to millions of sentences for which only some words are tagged. That is, for the other words, I don't know whether they are B, I or O. Is there some literature that discusses how to leverage those partially tagged sentences to improve the ...
I am working on a project with the goal of predicting the success of a casino game. One often questions why some games do much better than others -- it's not obvious in some scenarios. We have over 100 machines and over 200 games (i.e. each machine can play about 20 games and some machines can play multiple games). Nat...
If you have a binomial likelihood, $y|n,p\sim\textsf{Bin}(n,p)$, the Jeffreys' prior for the proportion $p$ is $\textsf{Beta}(1/2,1/2)$. If we instead reparameterize the proportion as the log odds $\phi=\log(p/1-p)$, through a change of variables we arrive at the pdf for $\phi$: $p(\phi)=\frac{1}{\pi}\sqrt{\frac{e^{\ph...
I am trying to use 1D CNN for frequency domain data, where each data point is a vector of length 300. How should I mention the input shape in Keras conv1D. How should my training data be reshaped?
Tree-based methods, e.g., random forests or GBRT use trees to construct most informative space partitioning. Given a single tree, in each partition, the value of the regression function (or a class) is computed using a simple model. For example, it can be a constant or a single label. Catboost's regression trees AFAIK ...
I am looking for a solution to detect photos that are manipulated with tools such as Photoshop. For a start, I want to detect copy-pasted images. Any idea how to detect photos that are manipulated by pasting another photo on the top of the original photo? For example, detecting a photo of an id card with a photo of a ...
This might be a dumb question. I'm working on 2.11 in BDA (page 2 in this pdf http://www.uio.no/studier/emner/matnat/math/STK4021/h16/undervisningsmateriale/presentation_jariek.pdf). The problem is to find the posterior $\theta|y$ in the following model using a grid approximation: $$y|\theta\sim\textsf{Cauchy}(\theta,1...
I have a dataset with three columns A, B and C. The column A has some missing values and the column B too. Column C is complete. If I use a method like MICE for filling column A, can I then run the MICE algorithm once again using the imputed values from A to predict values for B?
Inspired by the Harry Potter: Written by Artificial Intelligence article that was going around a few days ago, I wanted to try my hand at creating a similar system. I've taken the Coursera Machine Learning course, so I have a (very!) basic understanding of the concepts involved in Neural Networks, but haven't implement...
Are there any general results for the relationship between the autocorrelation function (acf) of a random variable and the acf of a transformation of the same variable? I am particularly interested in the relationship between the acf of realized variance and the logarithm of realized variance.
Is there a way to get a confidence score (we can call it also confidence value or likelihood) for each predicted value when using algorithms like Random Forests or Extreme Gradient Boosting (XGBoost)? Let's say this confidence score would range from 0 to 1 and show how confident am I about a particular prediction. From...
I have a posterior distribution of Dirichlet form with new parameters (alpha1, x1), (alpha 2, x2) and (alpha 3, x3) and the posterior mode of each dependent variable as the Bayes estimator. I wish to find the Bayes credible interval/Bayes credible region of the posterior to know the uncertainty in my Bayes estimators. ...
This might be a really naiive question but I couldn't find an answer anyway. Say we have two populations, test and training. We apply a logistic model of interest to the training data and get a bunch of coefficients and CIs, then we do the same with the test data. How can we determine whether the coefficients are signi...
I have a mixture data. I used EM to estimate the model parameters. When I calculate the log likelihood function, I found that the values is positive. So, is that ok. Can the log likelihood function be positive? To be more clear: $ll = \sum_{n=1}^{N}\log(\sum_{k=1}^{K} \pi_{k} f(x_n;\theta_{k}))$
I am now reading Alex Graves PhD thesis.It is fantastic work, but I still need some explanations.I am not sure that I understand sequence labeling.For example,wiki says that sequence labeling is a type of pattern recognition task that involves the algorithmic assignment of a categorical label to each member of a seque...
I've got a dataset with 338 predictors and 570 instances (can't upload unfortunately) on which I'm using the Lasso to perform feature selection. In particular, I'm using the cv.glmnet function from glmnet as follows, where mydata_matrix is a 570 x 339 binary matrix and the output is binary too: library(glmnet) x_dat <-...
I have a question about how to quantify the confidence intervals of the ratio of two binomial probabilities of getting exactly k successes in n trials. Consider I have a binomial distributed random variable X ~ B(n,p). When my n is 10 and my p is 0.03 then the chance of getting 1 hit in 10 trials, 0 hits, and their rat...
I have a multivariate time series X, that is, T observations of Dimensions K. These K different factors are summed up to form an index (equally-weighted for simplicity): $ I_t = X_t^1 + X_t^2 + .. + X_t^K$ where $X_t^i$ is the i-th factor of the observation at $t$. My question would be how to choose a smaller number of...
I would like to calculate the exact p-value of a Kruskal-Wallis test. How can I do it? Is it a huge computational task? Imagine I have something like that: Group A: 2, 4, 6, 7, 10, 20, 25, 26, 28, 29, 30, 30 Group B: 2, 4, 6, 15, 17, 20, 20, 20, 30 Group C: 1, 2, 3, 3, 3, Group D: 4, 4, 6, 7, 8 Group E: 2, 20, 30, 40, ...
I'm having a hard time getting the difference between multi-class and multi-label classification with CNNs. My understanding is that if I want to classify different breeds of dogs, that is a multi-label classification as I have the same class of images and different labels classify dogs and cats, that is a multi-label...
I have a pdf that doesn't yield trivial derivatives, so I cannot differentiate it and find the root to determine where its max exactly occurs. However, I have a general formula to express all its moments (mean, var, skew, kurtosis, etc). The mean doesn't coincide with the mode because the function is not symmetrical. ...
As known, EM algorithm is sensitive to the starting values. One method to select the starting values is to run EM several times using different starting values each time. Then, the select the one that return large log -likelihood function. My question is, can we use the plot of the log-likelihood function vs iteration...
I have a simple question which I cannot find a straight answer to. I am training a neural network to classify some medical images. I initially focused on validation accuracy after each epoch (to determine how the network was generalising) and then after that, test accuracy on an unseen dataset. But I see that validati...
I have rental prices of the houses, the distribution is a bit skewed (1.84 by scipy.stats.skew). Fig. 1: I run XGBRegressor on non-transformed data (1.) and on log-transformed target variable (2.). In 2. I also exponentiate the target variable (bringing in to the raw scale) to compare the residuals plots. I run XGBR...
I saw a paper comparing two ML models based on a statistical test. They tested these two models using different datasets and then they compared their accuracy results using a statistical test to see if their is any statistical significant. I was thinking if i were the author, I would just calculate the mean of the accu...
) I am trying to simulate the three MD-Mechanisms MCAR, MAR and MNAR. MCAR was fairly easy. For MNAR I simulated 10% missing data (MD) which are lying above the median of my variable "Wind" (I'm thinking about extending it to split for example 7% MD above and 3% below the median but I'm not quite done yet). My proble...
The advantage of ROC over lift chart is stated as below: "Lift is dependent on total response rate of the population. Hence, if the response rate of the population changes, the same model will give a different lift chart. A solution to this concern can be true lift chart (finding the ratio of lift and perfect model lif...
Disclaimer: I know this is a long-ish post but I don't need code solutions just high level general direction approaches that are usually used in situations like these. So let's say I want to predict number of people on the street or city square at any given moment. I have hourly data of average number of people seen on...
I have a simple index of habitat selection. When calculated based on random numbers it results in a normal distribution of mean 0 ( no selection). I'm interested in knowing if a sample of index calculated from real animals also has mean 0. Thus, I though of using a one-sample t-test. The problem is, I collected samples...
Respondents replied in the following way: Yes: they will be attending No: they won't be attending Maybe: they attach a percentage certainty as an estimate that they'll be attending. E.g. 40% sure I'll make it or 65% sure I'll make it. I've recently read some literature on Bayesian modeling. Far from knowledgeable in t...
I'm using the Boruta package in R to select the best variables used then for my predictive model. Then I plotted the results from cross validation but I don't understand its meaning. How can I Interpret this plot?
I'm writing a study that analyses how the topic of debate changes depending on who is speaking next. I have 8,000 debates of various lengths. I have a continous measurement of how different each set of two speeches are in terms of their topic focus. For example, if a debate has 4 speeches. I compare the similarity of s...
I have been spending the last two days trying to construct a solid answer to the question: What is the distribution that best describes my sample? I did the following: Plot the histogram (nomalized as pdf) to have a first idea of the shape of the distribution Fit a theoretical distribution with paramenters estimated f...
I am trying to implement a regression tree but I do not understand the maths completely. So given this answer: https://www.quora.com/How-do-decision-trees-for-regression-work I do not understand this formula: So what is y1 bar and y2 bar ? As I build my tree while looping through splits I will have 2 parts each time. ...
Every Bayes estimator is admissible, to the best of my knowledge. (Related questions - 1,2.) I recall my professor mentioning once during a lecture that, at least as rough intuition, the converse is true as well, that is, every admissible estimator is the Bayes estimator for some choice of prior. He said something alon...
UPDATE - One of the authors of the nlme package wrote the following: Internally the nlme package uses compiled code such as LAPACK which does not have provision for missing values. The results when using na.pass will be unpredictable and invalid. I am calculating mixed models (linear growth models) with the nlme packa...
While looking into the TensorFlow documentation I came across the indicator_column described as Represents multi-hot representation of given categorical column. I haven't been able to find anything by googling these terms. The example in the documentation looks like it is really just a simple count: dense_tensor == ...
I need to calculate $P[N_{s}=k||N_{u},\,u \geq t]\,(s \leq t)$ for the Poisson process. However, I have been instructed to use the following example in order to do so: Example: The Poisson process $[N_{t}:t \geq 0]$ has independent increments. Suppose that $0 \leq t_{1} \leq \cdots \leq t_{k} \leq u$. The random vecto...
Sorry, I'm quite new at Time series analysis. I'm trying to conduct a study on the Twitter behaviour of Donald Trump and how it affects his popularity rating. I have collected the data on his tweets, created dummy's for the themes of the tweets (e.g. Obama, China, tax reforms, immigrants, etc.), time of day, etc. My qu...
I've noticed that in multiple tutorials showing how to create a convolutional neural network using the MNIST dataset, the number of feature maps (or "activation maps"), chosen is typically 32. I am wondering if 32 feature maps is arbitrary or if there's an underlying purpose for using 32 specifically. Here's an exampl...
$X$ is a multivariate Gaussian, whose confidence region I can derive. $Y$ is a function of $X$, specifically $Y = (x_1, x_2 - b x_1^2 + 100b, x_3, \dots, x_n)$. I can use change-of-variable technique to derive the pdf of $Y$. Is it possible to also derive the confidence region of $Y$ and check if a point falls into th...
In many of the papers on particle filter I've read (e.g. Douc, Moulines and Olsson, 2007), stochastic volatility is a common example to show that a newly-proposed filter is working. At the same time, I find that many papers in the time series literature (e.g. Cogley and Sargent (2005) and papers that followed) rather m...
First I’ll explain the data and then the problem. Data: Let’s say that we need to build a GLM model to predict the income of $N$ individuals. The income variable is positive and skewed to the right, thus we assume it follows Gamma distribution. We have three continuous predictors, $X_1$, $X_2$, and $X_3$, with $X_i \in...
I wish to calculate the power of each included study to detect the "true" treatment effect. For pregabalin the mean difference is -33.14. As far as I understand one way to achieve this is to calculate the pooled SD using the 95% confidence interval estimate(s). SD = (-53.98-(-33.14))/1.96*sqrt(235+151) = 208.898 Henc...
I'm looking for any algorithms or frameworks concerned with optimal selection of a subset of members of a set, subject to aggregate constraints placed on the heterogeneous features of the subset. I'm having difficulty even coming up with the proper terminology to form this question, as I don't possess formal training i...
I need to prove that for $\mathcal{G} = \mathcal{F}$ (so the largest sigma field), $\int_{G}E[X|\mathcal{G}]dP = \int_{G}XdP\, \forall G \in \mathcal{G}$ implies that $E[X|\mathcal{F}] = X$ almost everywhere. My attempt is this: $\int_{G}E[X|\mathcal{G}]dP = \int_{G}XdP = \int_{G}\left(E[X|\mathcal{G}] - X\right)dP $,...
I have a dataset where $X$ (binary), $Y$ (binary) and $Z$ (4-category ordinal) are repeated measurements taken at three different time points. I assume the direction of the relationship among these variables should be like the following graph ($X$, $Y$ and $Z$ have dependencies within and between their lags). There are...
Forgive me if these two things are completely unrelated but I often find myself confusing one for the other. From my understanding, for example in a Gaussian mixture distribution you mix $n$ Gaussian distributions and each Gaussian is multiplied by a scalar that determines the "amount" that the Gaussian makes up the m...
I have 20 balls with numbers from 1 to 20. First I write on paper two different numbers from 1 to 20 and than pick randomly 10 balls (without return). What is probability that both of my numbers are on picked balls?
What's the difference between Multivariate Gaussian and Mixture of Gaussians? If I have a Multivariate Gaussian and making all the data into ONE vector, is that a Mixture of Gaussians in 1 dimension? On the other hand, if I have a mixture of Gaussian (say two models and the mixing ratio is 0.3,0.7), Can I make it to ...
I'm trying to think of a good way to explain latent Dirichlet allocation (LDA) to an audience that knows a decent amount about clustering, but nothing about text analysis. Is it fair to draw a comparison between LDA and fuzzy c-means clustering (not sure if that terminology is official but that's how I've learned it). ...
It may be the wording of the question, but I'm not sure how to go about doing this. This is not a homework question I just want to know if my answer is correct. *Please note the wording is confusing, but please interpret however you understand. 90% of candidates to a job position can code both in Python and Perl. 70% o...
The R function survival::survfit returns under $std.err the standard error of the cumulative hazard. Using the log or log-log transformation the confidence level can be estimated if one has the standard errors of the survival predictions, but the standard error of the cumulative hazard is given. Is there a way to trans...
I am modeling claim severity by GLM in r. I want to check whether all predictors are significant. I use the likelihood ratio test (by the function anova()) in turn for all predictors. Finally, I get the reduced model > anova(severity,model.severity,test="LRT") Model 1: claimcst0 ~ gender + area + agecat Model 2: clai...
I'm interested in the linear relationship between $Y$, $X$ and an additional control $C$, all of which are continuous. I expect that the effect of $X$ on $Y$ is different for different levels of $C$. Thus, I see the following possibilities of representing this potential interactive effect: Estimate $Y = \beta_0 + \bet...
I would like to draw a Gama distribution in R but Im confused since it has different notations. Mine is in the form: $ \theta^\alpha x^{\alpha-1}e^{-\theta x} / \Gamma(\alpha) $ Let's say for example that $\alpha = 5$ Is this the correct way to represent it?: curve(dgamma(x, scale=1, shape=5),from=0, to=100, main="Ga...
This is a hypothetical example: I was assigned a section of land in an experiment station. I divided the land into 40 plots and planted grass species A in 20 randomly selected plots and grass species B on the other 20. Seeds for both grasses were purchased at the local supplier. I measured the total mass of hay produce...
I am trying to compare ZIP and ZINB models and see if there is an overdispersion. They have the same parameters except alpha. I am wondering if it is correct to use Likelihood ratio test, the same way like we do this with poisson and negbin models. Will critical value still have 1 df? (because of alpha as a difference)...
I use well known parameter estimation methods to estimate scale and shape parameters the Weibull. By the end I have a good estimation reliability function. I have failure rate that change over time of my items. Can I use the failure rate as shape or scale parameter in my weibull function. I tried to use the failure ra...
I can't seem to think of a reason why training error increases in learning curves as the number of samples increases. Would someone please explain?
Just to give you a bit of a background understanding I'm doing a study on how the construction of a motorway affects badger extraterritorial excursions. I have calculated the average excursion distance (continuous response) by each badger for each month meaning I have multiple entries involving the same badgers which i...
I have a parametric model, some data $y$, and I would like to find a maximum likelihood estimate for the model parameters $\theta$. My usual approach would be to write down the likelihood function $\mathcal{L}(\theta\,|\,y)$ and use numerical optimization to find the optimal parameters $\theta_\mathrm{MLE}$. However, I...
There is one remark in my lecture notes: if $X$ (data) is a discrete distribution then one cannot use an improper prior. Can anyone prove it?
Here is a problem using Bayes Theorem Am I doing this correctly? ..: To detect a medical condition, patients are given 2 tests. 25% of the patients receive positive results on both tests and 42% of the patients receive positive results on the first one. What percent of those who have positive results on the first also ...
This is something that I'm trying on my own. I needed some expert opinion on whether or not what I'm doing is okay. I'm using R v3.4.3. So, what I'm thinking is, having three outcomes (continuous) and 1 another variable called effect (perhaps poorly chosen name) that has two types of observations (A or B). Each outcom...
This is found in 'Deep learning' book, chap.6, ~p.178 (http://www.deeplearningbook.org/contents/mlp.html), which discusses the problem of predicting the output class of a binary variable In this section of the book $y$ is the value of a binary variable, $z:=w^Th + b$ seems to be an affine transformation of $h$, while $...
My understanding of how covariance works is that data that are correlated should have a somewhat high covariance. I've come across a situation where my data looks correlated (as shown in the scatter plot) but the covariance is near-zero. How can the covariance of the data be zero if they are correlated? import numpy as...
I want to test whether there are differences in the parameters of the Bass diffusion model (m, p, q) for Food products compared to Non-food products. My data looks as follows (including 3223 products, both food and nonfood and many more variables such as product category etc.): barcode m p q ...
I am trying to get partial derivative of standard trivariate normal cdf with respect to $x_1$. i.e. I would like to get $ \frac{\partial}{\partial x_1}\Phi(x_1,x_2,x_3;r_{12},r_{13},r_{23})$. $\Phi(x_1,x_2,x_3;r_{12},r_{13},r_{23}) = \int_{-\infty}^{x_1} \int_{-\infty}^{x_2} \int_{-\infty}^{x_3} \frac{1}{(2\pi)^{3/2} \...
I have two experimental datasets $D_1$, $D_2$. An algorithm $A$ is applied to both resulting in errors $E_1$, $E_2$. From $D_1$, $D_2$I can create another dataset by randomly sampling half of the data from $D_1$ and $D_2$ respectively and concatenate it to form $D_3$. Applying $A$ to $D_3$ yields an error $E_3$. Am I ...
I have two classes of 25 students. At the beginning of the semester, they took a personality test that measured a given variable. Let's call it "competence". Every week, each student from a particular class (class #) was paired randomly with another student from the same class and they performed a task. Then, they each...
I've been reading some posts about data imputation using multiple imputation, specifically the MICE R package. I get the main idea of creating multiple datasets with imputed data. The part that is not clear to me is the linear regressions + pooling results. At the end I'd do something like this: modelFit1 <- with(data,...
I'm trying to understand why my NN doesn't predict at all. I am using an embedding layer from gensim into keras to make a binary classification of paragraphs of text (similar to twitter sentiment analysis). Here's the code : from keras.models import Sequential from keras.layers import Flatten from keras.layers import D...
My understanding of LASSO regression is that the regression coefficients are selected to solve the minimisation problem: $$\min_\beta \|y - X \beta\|_2^2 \ \\s.t. \|\beta\|_1 \leq t$$ In practice this is done using a Lagrange multiplier, making the problem to solve $$\min_\beta \|y - X \beta\|_2^2 + \lambda \|\beta\|_1...
For example, lets say I'd like to fit a binomial GLM to predict D, the number of deaths in a hospital on a given day, where n is the number of patients, and p is the probability a patient dies. What I'm really interested in is the value of p. It seems this is what R tries to model when fitting a binomial GLM anyway..? ...
Assume following: There are ten individuals and each is represented by two properties (Size and Gender). Now I measure the distance between two individuals A and B via the Mahalanobis distance: $$ d(x, y)=\sqrt{\left(\bar{x}-\bar{y}\right)^{T}S^{-1}\left(\bar{x}-\bar{y}\right)} $$ and get a certain distance. After that...
I have dataset about file creation durring a year. From this dataset I extract subset for days when user created just one file. there is information (timestamp) when that happened. I created a bins with 15 minutes time window and this are my data. Time reflect working hours Time elapsed / frequency 0 -15 / 0 15 - 30 /...
My boss has an ice cream stand on the sea and has asked me to explain different factors contribute to the revenue of the stand. Each month my boss produces a revenue expectation. We if we miss the target he'd like me to explain how three factors contributed to the difference between the expectation and the realized res...
I have the following question on probability: "Twins can either be identical or fraternal. Identical, also called monozygotic, twins form when a single feritilized egg splits into two genetically identical parts. Consequently, identical twins always have the same set of genes. Fraternal, also called dizygotic, twins de...
I'm constructing an index made by the sum of three variables, which all vary in the range [0,1] (as they have been divided by their theoretical maximum). Depending on the sample analyzed, it is not always assured that the three variables have the same variances (and st. deviations). In order to attribute them the same ...
This question is about handling zeros in an independent variable for a regression. In particular, the zeros are not missing data or true zeros, but occur because of quantization. As a concrete example, lets say the observations are cities, and the variable is the number (or fraction) of people in some category, based o...
In various papers, I had often seen the logistic regression model for classification problems written in two forms. $$p(y =\pm1|\mathbf{x},\mathbf{w}) = \sigma(y\mathbf{w}^{T}\mathbf{x}) = \frac{1}{1+\exp(-y\mathbf{w}^T\mathbf{x})} \tag 1$$ and $$p(y =1|\mathbf{x},\mathbf{w}) = \sigma(\mathbf{w}^{T}\mathbf{x}) = \frac...
Please consider the following example: In the second column, I standardize VAR1, subtracting the mean and dividing by the standard deviation. In the third column, I normalize VAR1 with the formula: $$\frac{x - \min(x)}{\max(x)-\min(x)}$$ In the fourth column I normalize the standardized values of VAR1 (using the abov...
This seems like a straightforward questions; my apologies if it is already answered (I have looked). Problem: I would like to sample from a Gaussian Process (GP) prior over X and Y coordinates (e.g. Lat, Lon). I would then like to fit data points on these two dimensions. I would like to use the analytical form as oppo...
Multiple posts (below) show that tuneRF and caret (or manually tuning) produce quite different recommendations for mtry. Why are these different? Which approach is more reliable for controlling overfitting? https://github.com/rjonczy/r-blogs-examples/blob/master/random-forest-tuning.R https://machinelearningmastery.com...
Given a factor analysis model $$ X-\mu = LF + \epsilon$$ Lets denote $cov[\epsilon] = \Psi$ and $cov[X] = \Sigma$. $\Psi$ is assumed to be a diagnal matrix. The iterative MLE estimate exploits the fact that: $$\hat{\Psi}^{0.5}*S_n*\hat{\Psi}^{0.5}$$ has eigenvector $\hat{\Psi}^{0.5}\hat{L}$ and eigenvalue $1 + \hat\d...
I have 43 weeks of data (here) that show the resulting weekly sales of a group of test stores which received a treatment and sales of other "control" stores that did not. There were 36 test stores and 525 control stores - assumed to be very similar to the test stores. The treatment began in week 41. What is the result...
I understand that when we are doing PCA, we are choosing an axis where the data has the maximum amount of variance. Then, we are restricted to choosing only axes which are orthogonal to the first axis we chose. That means that if we want to maximize some kind of average or sum of the variances of all axes that we chose...
I'm trying to model eating behavior with this model: $y=\beta_0+\beta_1x_1+\beta_2x_2+\beta_3x_3+\beta_4x_4+ϵ$ where y is BMI and the parameters are various characteristics of the food/drink a person orders. Drink size is represented by $\beta_1$ and $\beta_2$ like so: $\beta_1$ can take two values: 1 for large and 0 ...
If Hessians are so good for optimization (see e.g. Newton's method), why stop there? Let's use the third, fourth, fifth, and sixth derivatives? Why not?
In the Elements of Statistical Learning book at page 588 the author states that the average of $B$ i.i.d. random variables, each with variance $\sigma^2$, has variance $\frac{1}{B} \sigma^2$. If the variables are simply i.d. (identically distributed, but not necessarily independent) with positive pairwise correlation $...
Let's consider independent random vectors $\hat{\boldsymbol\theta}_i$, $i = 1, \dots, m$, which are all unbiased for $\boldsymbol\theta$ and that $$\mathbb{E}\left[\left(\hat{\boldsymbol\theta}_i - \boldsymbol\theta\right)^{T}\left(\hat{\boldsymbol\theta}_i - \boldsymbol\theta\right)\right] = \sigma^2\text{.}$$ L...
Both answers to this question on imputing missing values note that, when imputing missing values in a test set for model evaluation, the replacement values should be the ones calculated and used in the training process (not calculated anew on the test data). The author of Hands-On Machine Learning with Scikit-Learn & T...
There is a famous principle in Bayesian that says: 'Yesterday’s posterior is today’s prior'. Lindley (2000). Now, suppose there are three studies conducted chronologically. Based on Lindley's (2000) principle, is it possible to use a wide prior for the oldest study, and then use its posterior as prior for the study af...
I realize that a similar question is asked here also, but my concern is related to the last section of this article from Stanford It says the decision will depend on mutual exclusivity of classes and if they are mutually exclusive then prefer softmax else k binary classifiers. Can anyone provide any rigorous explanatio...
Given the model $x_1,...,x_n$ ~ $Poi(\theta)$ (iid), and the prior $\theta$~$ Gamma(a,b)$. How do we prove the consistency of posterior distribution? Thanks in advance. Modification: The definition of posterior consistency given on my lecture slides is: “given the data $x_1,...,x_n$ iid and the model f(x;$\theta$), if...
I have a question about the Central Limit Theorem in the context of estimating a population parameter through a sample statistic. The most known case is that the CLT asserts that a sampling distribution of the means will become approximately a normal distribution for a large sample size. I saw this also works for the s...
There are many cases when the sample space is not the entire set of real numbers (for instance a Bernoulli trial or sampling from an interval). On the one hand: for the definition $F_X(x) = P(X \leq x)$, it seems fine if we define the range of $x$ to be something different than $\mathbb{R}$, for instance a finite inte...