instruction
stringlengths
9
38.7k
Given an event rate at 1 year= 7% and a Kaplan Meier survival estimate for the same event at 1 year = 8.5%, is it possible (and how) to back calculate n(%) of subjects censored before 1 year, e.g lost at follow-up/not completing study?
I have been asked why and how entering time series data in a random order (i.e. not consecutively in the order they were observed) can have an effect on the outcome of a test for autocorrelation. Additionally, what the relationship between the estimates of the coefficients of the two data sets (ordered by time and rand...
If my conditional posterior $\pi(\sigma^{-2}|\mathbf{y },\mu)\sim Gamma(a,b)$, how can I get the conditional posterior $\pi(\sigma^{2}|\mathbf{y },\mu)$ with a transformation? The reason I ask is that the question asked to find the latter posterior but gave the prior $\pi(\sigma^{-2})$. I would really appreciated your...
For designing a spike generator within a computer program, we can use the fact that the probability of firing a spike within a short interval is P(one spike)=r.dt. Now imagine that our rate, r, is composed of two other rates, i.e., r1 and r2. assuming that r1 and r2 are independent therefore we have P(one spike)=r1...
Suppose that $X_1$ and $X_2$ are i.i.d normal random variables with mean 0 and variance $\sigma^2$. Let $(X_1, X_2)$ determine the coordinates of a point moving randomly in $\mathbb{R}^2$. What is the probability that the point is at least $c$ from the origin? This is the same as $[1 -\mathbb{P}\left(||(X_1, X_2)||_2 <...
I would like to estimate a SUR model with an unbalanced panel and with cross equation restrictions. This does not seem possible with the standard SUR commands in Stata or R. Do you have an idea which program and or package I could use? Thx
I have often read that predictors can or should be transformed to ease interpretation of the slope or intercept, or to standardize the coefficients. With this in mind, I attempted to rescale year in a data set, and met with unexpected behavior. The following reproducible example stemmed from data including a year effec...
I'm trying to find the probability that someone will return a product they purchased given a certain amount of days that have passed since their initial purchase. For example, assuming a normal distribution and that I have 60 samples, with a S.D. = 34 days and Mean = 55 days, how can I determine the probability that so...
Study design: pre-test (questionnaire) treatment post-test (same questionnaire as in pre). A higher questionnaire score in the post compared to the pre indicated a successful treatment effect. Like in a t-Test I want to compare significant differences between pre and post scores (if the treatment had an effect) but not...
I have data with $N$ genes, each having some $m$ observations. I am testing two hypothesis for each gene. These hypotheses are distinct (they test different parameters), but are assumed to be correlated due to the underlying science. They are distinct in the sense that they are measuring different parameter $\theta_1$ ...
I have a question regarding logistic regressions. Meyers et al. (2013) say that "It is possible to create a linear relationship between the predictors and odds" (p.533). They are referring to the predictors in a logistic regression. However, they also say, after introducing the idea of log odds, that "This transformati...
Say I have the classic mediation scenario, with predictor X, potential mediator M, and outcome Y. My thought to test whether mediation is present would be to do the following: Set up one structural equation model with only the direct effect of X on M (i.e., setting the mediating coefficients from X to M and M to Y equa...
I have one natural data set of biological data from my lab such as binding energy, exon type and oligo length etc. And my goal is to train a model to predict skipping rate. I used weka with no filter on my data and set the number of fold for cross-validation to be 10. (I have 515 instances in total) I used the greedy o...
Recently I am working on a project and I found my cross-validation error rate very low but the testing set error rate is high, which might indicate the overfiting of my model. But why my cross-validation does not overfit while test set overfits?? More specifically, I have about 2 million data with 100 variables (n>>p)....
Let's imagine a Q-learning version of the supervised learning problem of guessing a digit from MNIST database. In this game, the initial state is the 28x28 image pixels. You have 10 possible actions, labeled from 0 to 9. And the reward you get is $R$ if you correctly guessed the digit, 0 otherwise. After each image/gue...
Let $X \sim Gamma(3,3)$ and $Y \sim Exp(1)$. How do I calculate $P(X>Y)$? I believe I rewrite it as $P(X-Y>0)$ but I am unsure how to calculate $X-Y$ for two different distributions?
I have been thinking about a path from p-value to Leave One Out Cross Validation (LOOCV). I figure if I can get to AIC then I am good as AIC is asymptotically equivalent to LOOCV. This is the basic flow. pvalue -> wilks statistic -> KL distance -> AIC -> LOOCV p-value can be linked to the LRT from the Wilk’s Likelihoo...
In linear regression, I've seen (granted, not many) situations where basic transformations to some of the predictors can significantly improve the fit and stability of the model, and often a scatterplot of the response variable vs each individual predictor can provide useful clues as to whether a transformation can hel...
I have a questionnaire that asked people to endorse the top three types of internet based activity they engage in (binary yes/no for each category of activity, 22 categories). I want to examine whether type of internet use is related to a continuous measure of social behaviors. My first thought was linear regression,...
If I take Fig.3 of the paper "Deep residual learning for image recognition", and look at the following piece of the residual network: $3\times3$ conv, 64 filters | (X) (suppose shape is 14*14*64 v $3\times3$ conv, 128 filters, stride=2 | (X') (shape will be 7*7*128 v $3\times3$ conv, 128 filters | v...
For some reason, I am a bit confused about interpreting regression coefficients. Some of my regression independent variables are in percentages (expressed as decimal values) and some in integers. The dependent variable is price expressed in USD. How do I interpret coefficient of a percentage variable? Is it, keeping ...
I have a dataset of 480 cells (observations) by 57 variables (48 are gene expression levels). Multiple cells (approximately 24) are sampled from within each patient. Therefore, I have have a variable for patient ID, 48 genes, and clinical information for each patient. My main exposure of interest is location by which t...
I'm plotting my RF feature importance using the method shown here. Where the error bars in the plot are defined by: std = np.std([tree.feature_importances_ for tree in forest.estimators_], axis=0) However, the resulting error bars are huge, and even range into the negative range. I'm not quite sure what m...
Can generative adversarial networks be applied to reinforcement learning? Like imitation learning or inverse reinforcement learning?
Do there exist standard methods for summarizing high-dimensional multivariate posteriors, in particular to determine how much overlap exists between two separately estimated posteriors? The R package 'ks' provides functionality for kernel smooths in up to 6 dimensions. In a different context (designed for summarizing m...
I am analyzing the accuracy of different clinicians when it comes to providing presumptive diagnoses. I am comparing dentists and physicians for accuracy of referrals. My data is as follows: 33 cases the MD diagnosed correct, 14 cases the MD was incorrect. 115 cases the DDS diagnosed correctly. 76 cases the DDS was i...
I have 2 time series for temperature recorded with 2 sensors in 2 site in a bay. The sensors were recording with the same frequency and during the same period of time. The 2 sites have different depth (A=deep, B= shallow). I want to be able to say if the shallow site is warmer than the deep one or not. I am not inter...
I am trying to solve the equation 2.19 to 2.20, but I'm struggling to find the end of the problem. $ \sum [L(G,\hat{G}(X)]p(G,\hat{G}(X))$ $ \sum_k \sum_X [L(G,\hat{G}(X)]p(G)p(\hat{G}(X)|G)$ And then I cannot find the same equation if I try to replace by expected value
Let's say that I have a Truncated Normal Distribution (from a to b) with mean $m$ (where $m$ is the mean of the truncated Normal) and not known std. I know the probability for the range $m-d$ and $m+d$ (this range is within the truncation points, of course). How do I proceed in calculating the variance of this RV? Th...
I am doing a one way analysis of variance to test whether the mean of an observation varies across groups. I'm using R's oneway.test rather than anova because I have thousands of groups and oneway.test is faster. How can I measure the effect size? Is there a way to calculate the $\eta^2$ using the output of oneway.test...
I want to perform a test to compare education level of living people and education level of death people. I got the data of education level for living people from the census of 2010. The data of education level for death people from the CDC. The data looks like this... Living people education level +-------------------...
Let $Z_{1},\ldots, Z_{N}$ be i.i.d. continuous random variables with rank vector $\mathbf{R}^{*}=(R^{*}_{1},\ldots,R_{N}^{*})$, where $R_{i}^{*}$ denotes the rank of $Z_{i}$ among $Z_{1},\ldots, Z_{N}$, that is, if $Z_{(1)}\leq \cdots \leq Z_{N}$ are the orders statistics of $Z_{1},\ldots, Z_{N}$, then $Z_{(R_{i}^{*})}...
Suppose I have a jar of equal numbers of 10 different types of marbles (green, blue, etc.), and I randomly select (and then replace) a marble a thousand times. Consequently I can expect that I will pick each type of marble roughly 100 times, but how can I calculate the formula which describes the probability density fu...
In the paper introducing DQN "Playing Atari with Deep Reinforcement Learning", it mentioned: Note that when learning by experience replay, it is necessary to learn off-policy (because our current parameters are different to those used to generate the sample), which motivates the choice of Q-learning. I didn't qui...
RMSE (Root mean square error) and SD (Standard deviation) have similar formulas. This link says The only difference is that you divide by $n$ and not $n−1$ since you are not subtracting the sample mean here. The RMSE would then correspond to $\sigma$ . Therefore, the population RMSE is $\sigma$ and you want ...
I have a set of 500 values out of which 20 are relevant to my project and will be used to train for ML. Should I take the 20 values and then normalize them or normalize all 500 and then extract the subset? What factors influence this decision?
I have recently realised that the way I thought the multinom function in nnet was running is not actually the way it is coded. I have looked high and low for information on how the models are actually created with regards to baseline, continuous etc. I thought it worked on the baseline method, by creating a reference...
I have a large 400000 $\times$ 400000 dataset (dissimilarity matrix) and I want to do multi-dimensional scaling on it. However, after looking at the generic cmdscale() function in R, it only takes maximum 46340 $\times$ 46340 matrix as input. Is there any way I can work around this? Also, does Python has the same kind ...
Let $X_1, X_2, \ldots, X_n$ be independent random variables, where $X_k \sim Unif(0,k)$. Let $Y_n = X_{(1)} =\min\{X_1, X_2, \ldots, X_n\}$ Show that $Y_n$ converges in distribution to $Y \sim exp(1)$ (the exponential distribution with mean 1). I will let $F_k(y) = \mathbb{P}(X_k \leq y)$ be the CDF of $X_k$. Then, I ...
Following PyMC3 code fails: import pymc3 as pm with pm.Model(): pm.Poisson("pois", 10) trace = pm.sample(1000, step=pm.Metropolis()) Any idea why? (fails also if I switch to NUTS sampler). Stack trace: --------------------------------------------------------------------------- TypeError ...
I am doing regularized logistic regression (elastic net) on a set of variables that have different ranges (i.e. one ranges from 0~1, another ranges from 2~6, another ranges in the hundreds, and some involves negative numbers as well). I understand that in a case like this where each variable has very different range of...
In unbiased data, RMSE and standard deviation is same? Let $x_{i}$ be your true value for the $i^{th}$ data point and $\hat{x}_{i}$ the estimated value. If we assume that the differences between the estimated and true values have mean zero (i.e. the $\hat{x}_{i}$ are distributed around $x_{i}$) (Unbiasd) follow a No...
A probability problem: In how many different ways can 5 people sit around a round table? Is the symmetry of the table important? Answer: If the symmetry of the table is not taken into account the number of possibilities is 5! = 120. In this case it would be the same as ordering people on a line. However if rotation sym...
The negative loglikelihood is as follows: $$\dfrac{nd}{2} \log 2\pi + \dfrac{n}{2} \log |\Sigma| + \dfrac{1}{2}\sum_{i=1}^n(x_i-\mu)^T\Sigma^{-1}(x_i-\mu) \tag{1}$$ If I take differentiation with respect to $\mu$ on $(x_i-\mu)^T\Sigma^{-1}(x_i-\mu)$, the result becomes as follows: $$2\Sigma^{-1}\mu - 2\Sigma^{-1} = 2\S...
I want to calculate confidence interval for relative difference using bootstrap. I have two sample $s_a$ and $s_b$ from two difference populations $P_A$ and $P_B$ respectively. I used relative difference to compare mean value of two samples from the following formula: $ relative\_difference = \frac{m_a -m_b}{\frac{m_a...
I'm trying to understand the implications of an intervention which is not randomly allocated in a quasi-experimental setting. The intervention is receiving a license for shale gas exploration in the UK. Receipt of licensure is based on certain characteristics, such as viability of shale gas development, population dens...
I have a data set with the amount of bicycle accidents and the year in which the bicycle accident occurred. I would like to see if there is a significant increase in the amount of bicycle accident per years and by which amount. I am doubting between Pearson's correlation and Spearman's Correlation. (Or should I use a l...
I am starting a mixed-model selection analysis with lme in R. But when I start to fit the full model: fullmodOver <- lme(rrF ~ Old_N_dep+Overstory_old+Altitude+MAT+MAP+EIV_R+EIV_F+Overstory_diff+SCA_old+SCA_diff, data = regdata, random = ~ 1|PlotNR, method = "REML") I get the following error: Error in na.fail.default...
I'm stydying In the Wikipedia page on Errors and Residuals, it is written that However, because of the behavior of the process of regression, the distributions of residuals at different data points (of the input variable) may vary even if the errors themselves are identically distributed. Concretely, in a linear regre...
This is real basic, but a question that is annoying me: $\Omega = \left \{ 1,2,3 \right \}$ $T = \left \{ \emptyset , \Omega , \left \{ 1,2 \right \}, \left \{ 2,3 \right \}, \left \{ 1,3 \right \}\right \}$ Is $T$ a sigma-field? Apparently the answer is no because $\left \{ 2,3 \right \}^{c} = \{1\}$ and $\{1\}\noti...
Can you explain why the confidence interval of binomial distribution shrinks with the number of successes terms? n <- 100 res <- vector(length = n) for ( i in 1:n) { p <- binom.test(i, 1000, conf.level = 0.95, alternative = "two.sided") res[i] <- diff(p$conf.int) } plot(res, type = "l", ylim=c(0, 0.09)) grid() For...
When I read the paper by Neal, 'MCMC using Hamiltonian dynamics, https://arxiv.org/pdf/1206.1901.pdf In page 4, final paragraph, it says 'The reversibility of Hamiltonian dynamics is important for showing that MCMC updates that use the dynamics leave the desired distribution invariant, since this is most easily proved...
How would you compare error metrics of a multiple output regression? Normalised mean square error for each variable? How about for the overall performance of the model, would you just take the mean value of the NMSE for each variable?
Suppose you have a system of 2 servers with service times exponentially distributed with service rate $\mu_1 =2$ jobs/s and $\mu_2= 4$ jobs/s. Whenever a job arrives in the system, it is served from one of the available servers. If both servers are available, the faster server is chosen with q probability. If both serv...
Let's say cor(A,B) > 0 and cor(B,C)>0. What can we say about cor(A,C)? So, I am reasoning this way, if A is increasing, B is increasing, since the correlation is >0. Same holds between B and C, i.e. when B increases then C increases. So according to my logic, cor(A,C)>0. So what's wrong with my intuition? An explana...
I am conducting analysis to determine what attracts FDI (foreign direct investment) flows into 3 different states for the period of 1996 - 2015. I have multiple independent variables for each of these states for the mentioned period. I have combined the 3 data sets together. I am intending to run one multiple linear re...
I'm working on a model to predict the probability of (very) rare events. Out of 900.000 rows, only around 1000 are "positive" events, and the correlation between variables and outcome is not strong (i.e. the probability of a positive outcome is always < 0.5%) I'm using logistic regression to predict the probability of ...
For a task on data cleaning and analysis using SPSS I have two research questions for which I should pick an appropriate statistical test. It's been over a few years though since my last statistics course and I feel like some sources are contradicting each other. The analysis is done on a set of 5000 women giving birth...
I wish to conduct factor analysis on data that I have. The data is collected from a questionnaire and contains different types of data, for example, there are answers to the following questions: What is your age? (Number) What is your gender? (4 - Female, 5 - Male) Which country are you from? (Number - different number...
Trying to know the steps to find the maximum likelihood estimate for the covariance matrix, assuming normal probability distribution, I want to differentiate log-likelihood function but what confuses me is that in the equation, shouldn't $l(\mu, \Sigma^{-1})$ be written as $l(\mu, \Sigma)$? How come $ \Sigma $ can be w...
According to Lutkepohl (2005) autocovariance matrix for VAR(1) case is given by \begin{equation} \begin{aligned} \Gamma_y(h) &= E(y_t - \mu)(y_{t-h} - \mu)' \\ &= \lim_{n\to\infty}\sum_{i=0}^{n}\sum_{j=0}^{n}A_1^iE(u_{t-i}u'_{t-h-j})(A_1^j)' \\ &= \lim_{n\to\infty}\sum_{i=0}^{n}A_1^{h+i}\Sigma_u(A_1^i)' \\ &= \sum_{i=...
I have 3 classes: A, B and C, and I want to assign different weights to them when computing my loss. I.e. At a later stage when I am making decisions using the model and some probability threshold, taking action on false positives in class A and B are harmful, while that is not the case for class C. Is there any way to...
is it okay to cluster documents by learned document vectors?. I think similar documents should have similar vectors. from this fact it is okay to cluster documents using for instance k-means. However, i could not find good resource for this. Thanks!
I am trying to understand what neural nets have in common with multiple linear regressions. Is is correct that every node in every layer (not counting the input layer) is just a multiple regression with the variables being the nodes in the preceding layer? I've included a picture to show what I mean. How is this unders...
The algorithm, used to optimize the likelihood function in a generalized linear model (GLM) such as poisson regression, is iterated weighted least square (IWLS), where the Newton-Raphson algorithm is used. The single Newton-Raphson update is: $$ \begin{aligned} \beta^{new} &= \beta^{old} - (\frac{\partial^{2} L}{\par...
Below is the structure of the data, ProductID|Region|ProdRangeID|Brand|numberofstores|holi|Season|promo|Week|sales 1111 1 aa3a x 100 1 0.5 0 35 100 1111 1 aa3a x 100 0 0.5 0 36 100 1111 2 aa3a x 100 ...
I am doing an experiment to have an estimation of False Discovery Rate (FDR). Let we have 5000 samples from a normal population and we assume this is close enough to present the population. Next, we sample 10 observations from this population and run a test, $H_0:\mu_{pop}=\mu_{sample}$ versus $H_1:\mu_{pop}\neq\mu_{sa...
library(GoFKernel) x<-seq(0,1000,33) f <- function(x) pbeta(x, shape1=2, shape2=3) f.inv <- inverse(f,lower=0,upper=1) f.inv(.5) [1] 0.3857168 I don't understand the result of the Code. When I imagine the inverse function of pbeta, then on the $x$-axis are the probabilities and on the $y$-axis are the val...
Say I have one PDF given by $$ f(r) = \begin{cases} \frac{3 r^{2}}{8}, \text{if } 0 \leq r \leq 2\\ 0\text{, otherwise} \end{cases} $$ describing the distribution of a continuous random variable $R$ due to, for example, some external reasons, and another one given by $$ g(r) = \begin{cases} \frac{r}{2}, \text{if }...
I am examining the relationship between a training dosage and subsequent efficacy, and comparing the relationship between a treatment (coded 1) and a control group (coded 0). In a related earlier post -gung provided a nicely detailed explanation of how OLS uses a loss function to yield a line of best fit. Similarly, -...
I was reading an article and I saw the following sentence: For a given martingale, if it has an upper or a lower bound, then the martingale must converge (a.s.). Since the likelihood is always nonnegative, 0 is a lower bound. What does "a.s." stand for? Is it a common usage? My guess is "asymptotically" but I'd l...
I've been asked to perform a statistical analysis at my work and report on the results. I'm using a 2-sided t-test comparing 2 groups where H0=0 and Ha≠0 at a significance level of .05. For my results my point estimate is .01 and my 95% CI is [-.05, .06]. Clearly my decision is to fail to reject the null and report tha...
I am constructing a random forest model to predict a dependent variable Y. Two features are X_1 and X_2. However, from domain knowledge, I suspect that X_1 and X_2 don't strongly predict Y on their own, and the feature that really matters is the ratio X_1/X_2. (There are many other features X_i as well.) For example, s...
I want to construct a design to use Choice Based Conjoint Analysis. I want to focus on D-Optimality, for that reason I use the R package AlgDesign which uses Fedorov Algorithm. I create 7 attributes with 4,5,15,20,2,3,3 levels each one respectively. library("AlgDesign") levels.design = c(4,5,15,20,2,3,3) f.design <- g...
I am currently reading the paper "Exploiting Similarities among Languages for Machine Translation" by Mikolov et al. (available here : https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/44931.pdf) and I was wondering why they used the cosine similarity to find the closest word to z (page 4,...
I am trying to follow the original paper on nCRP by Blei et al., 2010 and am confused with it's implementation. The authors describe the analogy for an nCRP as follows: A tourist arrives at the city for an culinary vacation.On the first evening, he enters the root Chinese restaurant and selects a table using the CRP d...
http://archive.ics.uci.edu/ml/datasets/Wine+Quality I'm using this data set for a regression analysis project. Right now, I'm using free sulfur dioxide as my response, but the problem is, sulfur dioxide is often added by the winemaker during the wine-making process, so I'm not sure if this is a good response variable t...
I know there are already two questions on this topic, but neither has an answer. I have a set of $N$ experiments. For each experiment, denoted by a vector of predictors $\mathbf{x}$, I measure $m$ values $y(f_1)\dots y(f_m)$ of a quantity $y$ at increasing frequency values. In other words, the result of each experime...
$X_n$ assumes the values $1 , \frac{1}{2} , \frac{1}{3}, \ldots, \frac{1}{n}$. with equal probability . Examine whether $X_n$ converges in probability to some constant? This is what I tried : $\mathrm{E}(X_n) = \frac{1}{n}\sum_{k=1}^{n}\left(\frac{1}{k}\right)$, here I am confused how to solve limit $n \to \infty$ on ...
I am trying to tie out the confidence intervals of the 124.88 intercept on page 8 here: http://www.econ.uiuc.edu/~roger/research/rq/vig.pdf Here is the code: #here you can see the 124.88 number library(quantreg) data(engel) engel data.frame(percentile = c(.05,.25,.5,.75,.95), coef = cbind( coef( rq(foodexp~income,t...
Consider a scenario in which I use a deep neural network to output Y given X (this can also be an encoder-decoder pair: X->Y). If I have a method to convert Y->X (known technique, let's call the output X'), can I learn from this by comparing X' with X? That is, without any additional data, can I tune my neural network ...
A student ran a binomial regression (in SPSS) on an experiment to determine if dusting rodents with Delta Dust reduced flea load on the animals. There are data from two years. The model analyzed by treatment, age, sex, treatment by year, and area. She would like to make a graph for presence of fleas in treated and cont...
I have performed a linear regression to predict Olympic medal count from Population and GDP for year 2008, 2012 and 2016 I have been asked to explain how consistent the effects of Population and GDP are, over time. I understand that I am meant to look at the coefficients estimate for GDP and Population. Am I simply me...
I'm building a auto loan probability of default model where the loan term could be 3 to 7 years and hence default can happen anytime in that interval. But we are a start-up and have only 3 years of historical/performance data. What techniques can i use to effectively build a PD model. Should i use synthetic data? I'm l...
I have two variables, output and number of hours worked. I want to predict how many hours we need to spend for a certain output. First i tried a regression analysis but unfortunately there is no correlation between these two variables. Is there another way to predict the production output based on the hours spent? Can ...
I'm using keras to build to CNN to train the famous SVHN (street view house number) data set(fist version, without cropping). I train the pictures as they all have five digit spot, for pictures have less numbers, I treat the empty spot as another category. So, I have 11 categories for each digit spot. I didn't use bbox...
What happens when a text classifier using a bag-of-words model (let's say we're using logistic regression) encounters a word that the model has not seen before- aka, words that were not in the training data? How would it handle or treat these extra features? The reason this confuses me is that usually samples that we ...
I seek a correlation between 2 columns, X and Y. X is a continuous variable Y is an integer, but most of its values are zero I have several hundred rows of data for the two columns. The Pearson correlation coefficient between them is understandably low. However, is there another type of correlation that I can use ...
I am trying to build different predictive models using electronic health records. As they have missing values (between 0.5-18% missing values in each feature) I executed multiple imputation using MICE (the R package mice), taking into account van Buurens et al. recommendations and instructions. As the final step in MI...
I'm working on a tool to automatically analyze survey results. The tool builds contingency tables and conducts statistical tests on them. When the questions have categorical (nominal) answer choices (e.g. "Eggs", "Waffles", "Pancakes"), I first conduct a chi-squared test of independence and then do a post hoc analysis ...
I'm want to apply PCA to the kaggle's Titanic dataset For now I'm just taking the columns that have numeric values and dropping the NaN values, So I have five variables, actually four if we ignore the depending variable ('Survived'). I have this loaded into a DataFrame df, if I took five components using PCA: pca_mode...
I read a paper where the authors factorized a conditional probability as follows: $P(a|b, c)\propto P(a|b)P(a|c)$. They say that they can do that because $b$ and $c$ are causally independent (they are using graphical models), and cite the paper [1] to justify this. Under which assumptions can this be true? Honestly, I...
If I have a system that may fail by one of two events. The probability of the system to fail due to the first event is 3/5; whereas the probability of the system to fail by the second event is 4/5. what is the probability of the system to fail? I know that shall be 3/5 + 4/5 (I think) but I want the value to be less t...
Is it true that Bayesian methods don't overfit? (I saw some papers and tutorials making this claim) For example, if we apply a Gaussian Process to MNIST (handwritten digit classification), but only show it a single sample, will it revert to the prior distribution for any inputs different from that single sample, howeve...
I've seen a number of references to a "solve-the-equation" approach (or method, etc) to choose a kernel density estimation (KDE) bandwidth, but different papers use different citations, and none of them seem to give a pedagogical explanation for this, or the origin of the term. For example one paper refers to Sheather ...
If I follow the algorithm at here: http://www.ece.northwestern.edu/~wkliao/Kmeans/index.html Suppose I am unlucky. When I randomly pick the initial cluster centers, two of the initial cluster centers are from two data points that should belong to the same true cluster, called A. In this case, can the algorithm give inc...
this question follows on from a question I asked yesterday Testing whether the variance of a data set is significant which you guys were really helpful in making me realise my intentions for the data were impossible. So now I'm trying to figure out what I'm doing with them and wondered if you guys can help me out again...
Could someone please confirm for me that the "Example Code" below is a one-step ahead forecast? The reason I ask is because I'm a little confused by the out-of-sample forecast in the Rob Hyndman blog link below. If someone could please explain the difference, besides that one uses ets and the other auto.arima, I'd be...
Are there "higher-n" versions of a binomial distribution? Like trinomial, quadrinomial, etc? Specifically, I am interested in the likelihood of how incoming events stack up. I have 4 "bins" of type A, and one "bin" of type B. Each incoming item is sorted into a bin with a given likelihood. (2/9 for each A and 1/9 for B...
I saw a pretty interesting claim: Suppose you estimate a regression with only dummy's and a intercept as explanatory variables (sample size is 288): $\hat{y_{i}} = \hat{\beta_{1}} + \hat{\beta_{2}}D_{1i} + ... + \hat{\beta_{11}}{D_{11i}}$ Some of the $\hat\beta$'s are individually significant, others not. The claim in ...