instruction
stringlengths
9
38.7k
The best line fit can be found analytically by the least squares method. So can we say that linear regression (least squares) has an optimizer? For example, for logistic regression I can use an optimizer, gradient descent. But for linear regression, where the best model parameters can be found analytically, does it mak...
I am trying to show that $E_\hat{F}(\hat{se}^2_B) = \hat{se}_\infty^2$. $B$ is the number of bootstrap replications. $\hat{se}_\infty^2$ is the ideal bootstrap variance. $\hat{se}_B=\{\sum_{b=1}^B[\hat{\theta}^*(b)-\hat{\theta}^*(\cdot)]^2/(B-1)\}^{\frac{1}{2}}$ where $\hat{\theta}^*(\cdot)=\sum_{b=1}^B \hat{\theta}^*(...
I have seen PCA being used to eliminate variables for dimensionality reduction, but LASSO's ability to eliminate variables for the very same purpose is often described as a disadvantage. My intuition is that in PCA we still retain some of the information in the reduced dimensions as the newly formed features are linear...
When I use GAM, it gives me residual DF is $26.6$ (last line in the code). What does that mean? Going beyond GAM example, In general, can the number of degrees of freedom be a non-integer number? > library(gam) > summary(gam(mpg~lo(wt),data=mtcars)) Call: gam(formula = mpg ~ lo(wt), data = mtcars) Deviance Residuals:...
The sample variance $S^2$ is an unbiased estimator of the variance $\sigma^2$ of a random variable $X$, and is generally used for this purpose, I believe. But if we assume that $X$ has a Poisson distribution, it seems natural to use the sample mean $\bar{X}$, as $\sigma^2=\lambda=E(X)$. What is the best estimator in th...
I am analyzing data from a cluster randomized cross over trial. There are 9 clusters and 3 periods in the data. The clusters are dental clinics and in each period different patients are sampled. I have three interventions (control, treatment1, treatment2). Each cluster receives all three interventions but in random ord...
I am an undergraduate economics student and I am familiar with difference-in-difference estimators: For example, to evaluate the effect of a policy change, measure the outcome of interest before and after the policy change took place both in the treatment and control group, and then compare the difference in the change...
I have a data set of $200$ observations of $10,000$ features. I want to use this data to make numeric predictions of a target variable $y$. Will trees, in particular XGBoost, be useful here? I feel like the extremely fat nature of this data might cause problems but I'm not very familiar with trees and not sure what tho...
In the context of statistical inference and machine learning, bootstrapping is used to indicate sampling with replacement (e.g. in the context of Random Forest or calculating population standard deviation etc.) Is there a word for sampling without replacement? Dropout is used specifically for neural networks for neuro...
I want to estimate the KL divergence between two continuous distributions $f$ and $g$. However, I can't write down the density for either $f$ or $g$. I can sample from both $f$ and $g$ via some method (for example, Markov chain Monte Carlo). The KL divergence from $f$ to $g$ is defined like this: $$\operatorname{D_{\ma...
I am trying to organize regression methods so I know better in which branches to specialize. This is what I have so far and I need your help. First I divide based on the number of input and output variables, and then I divide in linear and non-linear. Then for each of these four branches, I divide in two branches, lin...
In the following links : Full Covariance Gaussians, Diagonal Covariance Gaussians, Spherical Covariance Gaussians, the number of parameters is specified as $D + \frac{D(D+1)}{2}$, $2D$, $D+1$ respectively, where $D$ = # dimensions. How do you arrive at those formulas for the number of parameters? Thank you!
How would you explain in easy-to-understand language what the difference is between the within, between and overall R-squared of a Random Effects panel data model? How are those values to be interpreted?
I would know what are the best predictive model to forecast consumption data with R or Python, I have got data from one month (each day and each 15 minutes) and i have to forecast data for tomorrow for each 15 minutes (00h00, 00h15,...,23h45). Thank You Edit : X1 : Names of region X2 : Date (01/01/2017,...,Today) X3 : ...
I've got this values for my model selection using the sqrt transformation on my dependent variable: tbest<- lm(sqrt(betplasm)~age+sex+betadiet+vituse+calories+quetelet+fiber+smokstat) summary(tbest) Call: lm(formula = sqrt(betplasm) ~ age + sex + betadiet + vituse + calories + quetelet + fiber + smokstat) R...
Is it possible to transform a document into a latent semantic space calculated with SVD without recomputing the SVD, or even doing a rank one update? I don't care about updating the $U$, $\Sigma$, or $V$ matrices, but I am interested in being able to calculate document similarity for an unseen document. My linear algeb...
I have a data set which includes several variables such as ID, x1,x2,x3,x4,x5,y1,y2,y3,y4 and was collected over ten years. We asked people several questions regarding their health conditions, and then we took their blood and checked the value of y1,y2,y3,y4. So the data set could include the information of a subject (...
I'm trying to get into Bayesian model estimation (I'm interested in posterior parameter distributions). I could get away with Metropolis-Hastings and Gibbs Sampling for models with few parameters (< 10), but when parameter dimensionality is extremely high (for example, > 100), the algorithms never converge. I'm stuck w...
My lab uses what our PI calls "modified Bland–Altman plots" to analyze regression quality. I'd like to know what the generally used name is for these plots. A Bland–Altman plot compares the difference between two measures to their average. The "modification" is that the x-axis is, instead of the average, the ground tru...
For games where $K$ players on team 1 compete against $K$ players on team 2, and we assume that the outcome is solely dependent on who is playing against whom, the simplest method of prediction I know of is logistic regression with a feature vector $x$, where $x$ has $N$ elements for each of the $N$ players, and $$x_i...
Before fitting an ARIMA model, we found the trend of the ts is clearly nonlinear, so we remove the trend by subtracting the moving average (calculated by moving a sliding window over the ts and compute the mean of the numbers in the window) from the original data, after which the ts becomes stationary. But, how should ...
For my Monte Carlo simulation (job related) I needed to generate random numbers with conditional probability of related distribution. (example: given that an item has been working for 1200 hours, generating a proper random failure time related to its time-to-failure distribution.) I searched the web and couldn't find a...
Consider the following polar algorithm described by Bailey: Generate uniformly distributed variables $U, V$ in $(-1,1)$. Let $W = U^2 + V^2$. If $W > 1$ go to step 1. Otherwise deliver $W$. Now $C^2 = U^2/W$, and it is true, that: $W$ and $C^2$ are independent $W$ is uniformly distributed in $(0,1)$ $C^2$ has the s...
Suppose I have a no intercept regression model such as $Y = \beta x + \epsilon$ where $x$ is univariate and so is $y$. I want to test the null hypothesis that $\beta = -1.0$. So, I calculate the sse of the model assuming that $\beta = -1.0$ and call that $sseA$. Then I estimate the model and call that modelB and get a...
For perceptron algorithm, the output and target values are either $0$ or $1$. Assume output is $y$ and target is $d$. From http://lcn.epfl.ch/tutorial/english/perceptron/html/learning.html, we can see that the learning / adjustment of the weights are like$$w_j(t+1)=w_j(t)+\eta(d-y)x$$ But if $d$ and $y$ are either $0$...
I have data on person level and want to impute rent. The rent for the members of a household should be the same for all members of the household. If I do a normal imputation based on the person level data, the imputed values differ within one household. Question: How could I impute the same values within each househol...
I modeled a directional prediction of a time series. In every step, I predict next direction of that series (up or down). Currently I have a lag in predicted outputs compared to real outputs. For example, in above outputs, first figure is real direction and second figure is predicted direction (red star: next up trend...
I have two groups of observations, each observation can belong to positive or negative case. For each group I calculate percentage of positive cases. I want to check whether difference of positives percentage between the groups is statistically significant. The pitfall is that second group is subset of the first one =>...
I was asked to convert a series of values into a series of percentiles corresponding to these values with respect to the empirical cdf constituted by the initial series. Using R, I wrote: toPercTS <- function(aSeries){ ECDF <- ecdf(aSeries) percTS <- c() for (i in 1:length(aSeries)){ percTS[i] <- ECDF(aSerie...
I would like to fit a model to a dependent variable distributed like the one below (see picture). The distribution is a count of people (with specific characteristics) in various districts. This means that, there are no negative numbers; in the great majority of districts the variable is 0, but there also exists very ...
I am working on a leaf infection dataset with three groups; wildtype, transgene line 1 and transgene line 2. The infection data i am looking at is coded as a binary variable (1 if the infection was successful, 0 if the infection failed). For every group there are 24 binary datapoints. head(data) infection groups ...
I do a user test and the user haves to rank lists. The user will answer around 14 question. For each question they get 4 answers and they haves to order them from good to bad answers. The 4 answers come from two categories (categorie A and B). There are always two answers from A and two answers from B. So for example a...
Are there any online learning algorithm that do not depend on the order of arrival of the data ? I am looking for algorithms that, given a sequence of data $(x_i,y_i)_{i\in[1,n]}$ : Will produce the same result as they would after the last step of training on a permutation of the training set $(x_{\sigma(i)},y_{\sigm...
I have a corpus {text1, text2, text3, text4, ..., etc.}. I have no prior knowledge about the text. Lets say we extract all the n-grams (unigrams, bigrams, trigrams, 4-gram, 5-gram, ...) along with their frequency from the text. My question is how can we merge the best N n-grams form the unigrams, bigrams, trigrams, 4-...
I have estimated a multinominal logit model & now I have been asked to test for joint significance of two variables using the Likelihood ratio test. I just wanted to ask why & how would you do this? I thought that the Wald test would have been more appropriate? In previous subjects I used the LR test by estimating a re...
I'm testing the clara algorithm with a dataset, but as we can see in the figure: I got the message "These two components explain 1.06% of the point variability" What can I conclude about this? The image splits with a good accuraccy a b 1 150 0 2 0 50 But that message makes me confuse if I have some ...
I want to know the inner workings of matchbox algorithm of azure in simple language when you have user and item features available.
I asked this question here on SO but didn't get any answer, so I am posting it here as I believe second part of original question fits CrossValidated more. So, as original question states, I am trying to create generative LSTM which I will train on series of musical notes. Each vector is 88-dimensional (there are 88 ke...
Consider an uniformly distributed variable $U$ in $(0,2\pi)$. My impression is that $\cos(U)$ have the same distribution as $\sin(U)$. Is my assumption correct?
What is the right way to pick the best model when you are running multiple models? I should do variable selection first to find the best subset of variables in each model and then use some model comparison criteria or I should use a model comparison criteria first and then do variable selection just in the best one I'...
Consider the situation when you have two expressions with the same distribution. Is there any standard notation to express they have the same distribution? An example: $U$ is uniformly distributed on $(0,2\pi)$, then $\cos(U)$ has the same distribution as $\sin(U)$. What is the cleanest, most intuitive way to express t...
Let consider a study to know the factors influencing adoption of a new technology. A total of eighty farmers were selected randomly ($40$ adopted the technology and $40$ did not). The data file contains eight variables [Adoption ($1$ = adopted and $0$ = not adopted), age, education, land_size, working_members, farming...
I'm trying to create a predictive model for a closed car park. This model is expected to estimate available parking spaces given date and time. Brief information: the car park has a limited capacity a driver has to own a monthly subscription we overbook by about 10% a vehicle identification system exists, giving us an...
I want to compare the mean values of two populations and understand if they are are different at a given confidence level. Two tests appear in books; the mean plus the SE of the mean and the t-test (unpaired in my case). What I cannot find is why and when you would use one and not the other. What are the guidelines, ru...
I am totally new to Artificial Neural Networks. Let’s say that the model you are trying to turn into an artificial neural network has an output that is triggered only by the exceedance of a threshold: $y\geq y_{1}. $Therefore, you need to find a way to use this inequality as an activation function. Is this feasible?
I am analyzing a dataset where pre/post measurements are made (before/after a surgery) on patients who can belong to two groups, and we are interested in how group membership - let's call it G - affects the impact of the surgery. (It is a nonrandomized observational study, but let's put other confounders aside now for ...
I do have two data-sets and I am not shure which version of the KM estimator to use. Both datasets contain the following columns: ID | Issue Date | Last Recorded Date | Status Wheras the Status can either be a) Default b) Current c) Fully Payed at the End A Loan can run for Maximum 36 month such that Status c) only app...
I'm having some trouble understanding a few things with regards to ML estimation - suppose I wish to use this method to estimate the parameters of a multivariate model and that the data sets of each variable are not normally distributed or they are almost normally distributed, does this mean that my estimation would n...
I'm trying the code from : https://github.com/aymericdamien/TensorFlow-Examples/blob/master/notebooks/3_NeuralNetworks/recurrent_network.ipynb and also looking at the architecture of the Basic LSTM Cell as described in: https://r2rt.com/written-memories-understanding-deriving-and-extending-the-lstm.html so I wish to ac...
Let's begin with a simple case with a known answer: Suppose we have samples $x_1,...,x_N$ drawn i.i.d. from a real-valued distribution $D$. A common first step in analyzing this data might be to plot the empirical CDF of the data. The empirical CDF is useful because it tells us a little about the true CDF of $D$. F...
Let's assume I have three constructs measured with different Likert scales Construct 1 - Measured with a 7-point Likert scale Construct 2 - Measured with a 9-point Likert scale Construct 3 - Measured with a 5-point Likert scale Is it possible to conduct a Pearson correlation with these constructs? Or will the results...
Say I have two independent random variables $X \sim N(u_1, \sigma_1)$ and $Y \sim N(u_2, \sigma_2)$. I want to get the conditional distribution of X given whether X is bigger than Y or not. $P(X|X<Y)$ = ... and $P(X|X>Y)$ = ... I am thinking solving this in this way: \begin{align} P(X|X<Y) &= \frac{P(Y>X|X)P(X)}{P(Y>X)...
I'm new to this website, so, please apologize if this question have already been posted and replied. I checked around and it looks like it haven't. In case I'm wrong, please redirect me to the right page. I'm working with protein sequences. I have a sample that I want to compare with a reference. The purpose is to unde...
Given the following regression by OLS: $LIFE_t$=$\beta_0$+$\beta_1$$GDP_t$+$\beta_2$$GDP_{t-1}$+$\beta_3$$GDP_{t-2}$+$\beta_4$$LIFE_{t-1}$+$e_t$ and suppose I have 78 quarterly observations for both life expectancy (LIFE) and GDP per capita (GDP). The question asks me to explain how I would run the Breusch-Godfrey test...
Alright, I am training an xgboost model, that should give the probability of questions being duplicates (having the same intent). My train dataset is 70 MB; each column has a question pair and a boolean saying if the questions are duplicates (1 - duplicates, 0 - no); the set has 40% duplicates. I have a train set (x_tr...
Problem description I have a dataset consisting of 200.000 images divided between 20 classes. I'm making a classifier that predicts the class of an image. Each image belongs to one class only. The dataset has an interesting property. Multiple images belong together and share the same class label. These subsets of the d...
I have the next dataset: -Day(7 levels) -Channel (15 levels) -DayPart(4 levels) -Spot(2 levels) -Format(2 levels) -Visits (continuous variable) Can someone give me an advice wich method to use in order to find which factors (Day, Channel, DayPart, Spot,Format) influence my continuous variable (Visits), taking into acco...
I have a question in terms of Bayesian computation. Let's contrast parameter estimation and model selection. When performing a Bayesian hypothesis test, this involves computing fully marginalized likelihoods. When performing (Bayesian) parameter estimation, one computes partially marginalized posteriors. The latter is ...
I'm working on a study where I am comparing how students did on three different exams. By the end of each exam, as always, students were assigned a final grade based on the percentage of questions they got right (80%, 83%, 73%, etc.) Each exam, however, had a different number of questions. If I want to compare how the ...
What is the best way to test whether R-squared from one regression analysis is significantly different from the R-squared of another regression analysis? Is the answer to the first question similar if you wanted to test significant differences between two beta coefficients from two separate regression analyses?
When I am studying the Augmented Dickey Fuller test I encountered with this phrase in my professor's textbook. It says exactly " In practice we use BIC or AIC to clean the residuals." It made no sense to me, I would appreciate if someone can make it more understandable.
Its been a while since I last did some statistics so forgive me If I am bit rusty. Please point out any obvious errors or omissions. Thanks for any advice given. Wally4u Due to some new regulations we need to measure and prove that a manufacturing process is reliable. We originally specified the area ± 5 % in the spec...
a very naive question for some of you. I have a population of 80000 data points. Some points in the population are many SD away from the rest of the population and they could be easily identified and visualized assigning them a p-value. I know that excluding those values, the population follow a nice normal distributio...
I made a linear regression multiple model, I've got all the parameters insignificant with high p value, I get this result: The variables are time series. Rates except Polity which is natural number from (-10 to 2) I tried also a simple regression with each explicative variable, it's also not significant What could be...
I'm using the following definition for a linear time invariant digital filter: "A digital filter L that transforms an input sequence $\{ x_{t} \}$ into an output sequence $\{ y_{t} \}$ is called a linear time invariant (LTI) digital filter if it has the following three properties: $L \{ \{ \alpha x_{t} \} \} = \alpha...
I am running a fixed effects model with two independent variables, their quadratic terms, and the interaction of the two variables. $IV = b_0 + b_1X + b_2Y + b_3X_{sq} + b_4Y_{sq} + b_5XY$ How do I interpret the interaction? Does it even make sense to interpret it, given that when I include the quadratic terms, the int...
I am doing study that starts at a specific date, January 1st 2015, and ends on a specific date, December 31st 2015. My overarching research question revolves around modeling time between orders of product $n$ from store $i$. I decided the best way to set up the data is to let the time variable be the number of days bet...
Imagine I have 2 groups (3 healthy controls and 4 schizophrenia patients). During a limited time, they either answered to questions correctly, incorrectly, or didn't answer (missed trials). How can I test whether there is a difference between these two groups regarding the number of correct, incorrect, and missed trial...
I am currently working on a prediction model from which the data is longitudinal data/panel data/cross sectional data. The data contains multiple companies for which I have a response variable and multiple explanatory variables for multiple years. I would like to make a prediction of the response variable and would li...
We are currently planning an experiment. We plan with the following variables: An independent variable "treatment" with four values (a, b, c, d) A number of further independent variables for confounding factors (mostly metric or dichotomous). Two dependent variables "time" and "correctness", both ratio scale I'm curr...
So I have the following data. Index , Years , Negative , Positive , Category 1 , 2004 , 23 , 29 , A 2 , 2005 , 23 , 29 , A 3 , 2006 , 30 , 22 , A 4 , 2007 , 21 , 31 , A 5 , 2008 , 19 , 33 , A 6 , 2009 , 24 , 28 , A 7 , 2010 , 35 , 18 , A 8 , 2011 , 26 , 26 , A 9 , 20...
I have a situation where I need to model the relationship between field plot data and satellite imagery data. However, these field plot locations are hidden and I cannot learn their true locations. The researchers who have the data are reluctant to share the data if I have a way of figuring out where the plots are loca...
What is the necessary and sufficient conditions of feature redundancy? If two features have strong correlation, than one of them is redundant feature. Is it true? Provide an example, if it isn't true.
I have a continuous predictor which looks like this: x: 1, 2, 3, ...., 100, (!!) 300, 301, 302, 303, 304, ...., 399, 400, (!!) 700, 701, 702, 703, .... As you can see, it "jumps". I have marked the jumps with (!!). Is this never going to be an issue? Can I always model $y \sim x$, all else equal?
If I include random effects for each subject in my regression, and I have 20+ subjects, what should I include in my report? The estimates of each effect, and what else? What about model diagnostics? The main interest lies in the other fixed effects, not so much on the random effects, but I still feel I should say somet...
What is the typical taxonomy for clustering methods? For example, for regression we can talk about: simple regression, multiple univariate regression, and multivariate regression. And then, we can divide each of those three branches in two sub-branches: linear and non-linear. In that sense, I need a taxonomy for cluste...
a very naive question for some of you. I have a population of 80000 data points. Some points in the population are highly skewed and they could be easily identified and visualized assigning them a p-value. I know that excluding those values, the population follow a nice normal distibution. What I ask you today is wheth...
Here is an imaginary problem, representing something I am dealing with right now. We have a set of movies with averages scores ranging from 0 to 10, such that the target is a continuous variable. By default all movies were given a score of 0. Over time some of the movies have been given a score, while others have yet t...
For each predicted value in a logistic model, is there any way of also obtaining a "probability score"? I'm using Python's SKLearn library to create a logistic regression model that either predicts either 1 or 0 and I would like to have another column indicating how "sure" the model is of the particular outcome. The cl...
Please explain the following for me: Example generated using online calculator sequence = aaabbcddddefgghhijjk sequence length = 20 unique characters in sequence = 11 frequencies of unique characters: a = 0.15, b = 0.1, c = 0.05, d = 0.2, e = 0.05, f = 0.05, g = 0.1, h = 0.1, i = 0.05, j = 0.1, k = 0.05 for which we...
Many stats packages allow you to view the adjusted means/marginal means/predicted values of a model (e.g., R's lsmeans, Stata's 'margins', SPSS's 'Estimated Marginal Means'; for more info., see https://www3.nd.edu/~rwilliam/stats/Margins01.pdf). Marginal means are often presented with a t/z value, a p value, and confid...
I'm trying to explain the evolution of productivity(total factor productivity) by its determinants in my country with 46 observations for each variable I explain: I have the rate of growth of productivty a time series and I'm trying to explain it with the following independent variables: openness to trade political s...
I wish to include both $x$ (the x-axis) and $y$ (the y-axis) as covariates/predictors in a regression on a separate observation $z$. They are correlated a bit, as you can see. Will this cause colinearity issues? Or am I ok?
Let us have a set of languages $L = \{l_{i=1}, \cdots, l_N\}$. Let us have a set of words $W = \{w_{j=1}, \cdots, w_M\}$ such that each word $w_j$ belongs to a language $l_i$. Let $n_i$ denote how many words each language $l_i$ has. Let $W$ and $L$ be Discrete Random Variables so we can calculate the Posterior Probabil...
library(lmeSplines) # mixed model spline terms at multiple levels of grouping data(Spruce) Spruce$Zday <- smspline(~ days, data=Spruce) Spruce$all <- rep(1,nrow(Spruce)) # overall spline term, random plot and Tree effects spruce.fit1 <- lme(logSize ~ days, data=Spruce, random=list(all= pdIdent(~Zday ...
I have 2 movies, their rating distribution is this: movie_id 1_star 2_star 3_star 4_star 5_star std 1 0.661 0.231 0.081 0.012 0.015 1.629 2 0.002 0.005 0.071 0.314 0.608 1.335 1~5 star corresponding to the rating as 2~10 If we look at the distribution, these 2 would look like The...
Trying to calculate the odds on something and was getting myself confused. I'll try to summarize into a simple problem with made up numbers. Say a cannon fires projectiles with a population mean of 100 m/s and a standard deviation of 10 m/s, represented by a normal distribution. I wanted to calculate the odds of firin...
I'm new to working with time-series so forgive my ignorance. I have - to start with - two time-series of which I calculated first differences to get rid of any underlying trends that are irrelevant for what I'm interested in. Now I want to know if when one goes up the other goes down and vice versa. Do I do this using ...
I would like to draw (as in, with a pen on paper) a line chart that is representative of a Guassian random walk defined as the sequence of random variables $(Y_t)$ where $t = 0, 1, 2, \dots$, such that for $t \geq 0$, $Y_{t+1} = Y_t + \epsilon_t$, $\epsilon_t\sim \mathcal{N}(0, 1)$ and $Y_0 = 0$. That is, start at $y =...
Let's say that I have $P(X, Y)$, $P(X, Z)$, and $P(Y, Z)$. Are there a set of reasonable assumptions I can make that will allow me to combine them into a $P(X, Y, Z)$? A practical use-case might be that I have software that can fit a bivariate distribution but my data has more than two variables.
From my experience, when a time series $T$ is integrated/has a unit-root, one cannot model it with an ARMA model can usually need to turn to the first difference of $T$ (or some research I read uses $ln(T)$). However, I just realized recently that in R's auto.arima function (under the "forecast" package), it is possib...
I'm having trouble understanding how the calculations for multiway array aggregations work using the example used in https://docs.google.com/file/d/0B5Ju2x50v6l5X0p3WDEwNkNTVW8/edit at page 165. Consider a 3-D data array ABC partitioned into 64 chunks with dimensions 40*400*4000. It then goes on to say the size of eac...
Is there a 'standard' way to calculate an estimated median value for a given data-set that either never references a data point in the set, or is unlikely to? I'm familiar with the median of medians approach, but I'm not sure what it's limitations are. Example: Assume each element in the data-set is associated with a ...
I am trying to find the distribution of sum of 2 lognormal random variables. I referred the literature available on Cross validated, Stack overflow and few papers before posting this. I used convolution to find the distribution of sum of 2 lognormal rvs. The approximation works for difference. But, not for sum. I am g...
In linear regression we can use A:B to show the first order interaction of variable A and B. But it is hard to know what effect was caused by A and what was caused by B. So I want to understand how exactly A:B worked
I'm trying to express conditional probability of $p(C|A \cup B)$ (probability of $C$, given $A$ or $B$) using $p(C|A)$, $p(C|B)$, and $p(C|A \cap B)$. Using Venn's diagram I came up with: $$p(C|A \cup B) = p(C|A) + p(C|B) - p(C|A \cap B).$$ Is this correct? How can I prove this more formally?
In metaheuristics, domain knowledge can be used to generate initial population to improve convergence rates in population based algorithms. (e.g. a good example is in this paper) Is it possible to use domain knowledge to improve the population generation process? For instance, is it legit to use domain knowledge to ref...
Q: In a one-way ANOVA, prove, $$E\left[\frac n{k-1}\sum_{i=1}^k (\bar{x}_{i.}-\bar{x}_{..})^2\right]=\sigma^2+\frac n{k-1}\sum_{i=1}^k\alpha_i^2$$ where the symbols used have their usual meanings. Attempt 1: Since $\mu_i=\mu+\alpha_i$, this is equivalent to saying $\bar{x}_{i.}=\bar{x}_{..}+\alpha_i$, so we have, $$E\l...
Consider the weighted least square (WLS) regression estimate $\beta_n=(X'\Omega^{-1}X)^{-1}X'\Omega^{-1}Y$ where $X,Y,\Omega$ has usual interpretation and $\Omega$ is known. The under usual assumption $\sqrt{n}(\beta_n-\beta)\rightarrow N(0,1)$. Now let us assume that $\Omega$ is unknown and estimated by a consistent ...
I am trying to predict logistic regression. For instance fit <- glm(TARGET~ x+y, data=trainData,family=binomial) The data (TARGET) has a label of 0 and 1. I want to get an output of 0 and 1 from the prediction. if I run predict(fit,ValData, type="response"), I can a bunch of 0.001 something like that. How do I ge...