instruction
stringlengths
9
38.7k
I have two questions .It would be really helpful if you kindly reply because after doing lot of research too i still cant get rid of my confusions. I have read that in Euclidian space we use centroid method to represent a cluster . If it is so then how to use complete linkage or single linkage methods. B...
My problem is a small sample of quarterly macro data with only about 55 observations. During the observed period there were several shocks, one of which happened four years ago and was rather huge, affecting all variables. Now I am trying to forecast GDP growth based on 20 other macro/financial variables, but the forec...
From the Wikipedia page titled correlation does not imply causality, For any two correlated events, A and B, the different possible relationships include: A causes B (direct causation); B causes A (reverse causation); A and B are consequences of a common cause, but do not cause each other; A and B both causes C, which...
I' want to train a model for classifiation. I have a pretty small data-set (about 400 data unevenly distributed among three classes). To evaluate my model, i want to perform cross-validation, with a step of feature-selection (by wrapper) for each fold. I read that using different data for feature selection and for trai...
I am new to statistics and it this the first time I am trying to normalise variables. Thus, sorry for my incompetence. My goal is to classify the landscape by cluster analysis (using kmeans in R) and see if there is a relationship between species distribution and type of the landscape. However, some of the variables (t...
i am beginner to machine learning and i have some doubt related to linear regression.here is the link of my repository https://github.com/utkarshmani1997/Machine_Learning/blob/master/exercise_1/exp1.ipynb i was trying to predict the profit but it is giving negative values.What does it mean?
I am attempting to pool results about the relationship between change in body composition and change in metabolic markers (e.g. cholesterol, triglycerides etc.) from a variety of studies. Most of these studies are RCTs (with results at the level of the study, or trial arms), with BMI as the primary outcome and metaboli...
Let's say I have two different distributions. If I take a random sample from one of them $x_1$, and a random sample from the second of them $x_2$, I can compute their ratio as $R = \frac{x_1}{x_2}$. (Assume that there are no zeros in any of the distributions, or that they can be removed/ignored). If I repeat this proce...
We already had multiple questions about unbalanced data when using logistic regression, SVM, decision trees, bagging and a number of other similar questions, what makes it a very popular topic! Unfortunately, each of the questions seems to be algorithm-specific and I didn't find any general guidelines for dealing with ...
R-squared (coefficient of determination) is usually used to assess the goodness of fit of a regression model to the data. Here, I provide two simple datasets that I think their best-fit lines are equally good, but they got two different r-squared values. x1 = [1,2,3] y1 = [1,2,3.5] x2 = [1,2,3] y2 = [2,4,6.5] The best...
Assume A/B test with control sample $X = \left(X_1, \dots, X_n\right)$ and treatment $Y = \left( Y_1, \dots, Y_m \right)$. Let $X_i$ be i.i.d. $\text{Bernoulli}(\mu_x)$ and $Y_j$ be i.i.d. $\text{Bernoulli}(\mu_y)$. Both parameters are unknown, the two samples are indepenent (unpaired). I would like to compare true m...
I have fitted two models. Model 1 has 264.514 less AIC than model 2, a drop from circa 7800 to circa 7500. However, model 2 has adjusted R^2 equal to 40 percent, while model 1 has it at 36.8 percent. What gives? I thought such a significant $\Delta AIC$ would most likely also increase the adjusted R squared? If it he...
I'm currently implementing a neural network architecture on Keras. I would like to optimize the training time, and I'm considering using alternative optimizers such as SGD with Nesterov Momentum and Adam. I've read several things about the pros and cons of each methods (SGD with Nesterov momentum: very sensitive to ini...
I am studying Structural VECM models using Lutkepohl's book. VECM process has the following Beveridge-Nelson MA representation: $$y_t = \Xi\sum_{i=1}^{t}u_i + \sum_{j=0}^{\infty}\Xi_j^*u_{t-j} + y_0^*,$$ where the $\Xi_j^*$ are absolutely summable and $y_0^*$ are some initial values. Hence, long-run effects of shocks (...
Can someone clarify the difference for me between the spatial median and a group centroid, in the context of a group of points in multivariate space. I have 9 locations each with 30 samples each. Each sample is a quadrat with species abundance data for multiple species. I want to determine the group centroid for each ...
I'm interested in extracting different types of (adjusted) R^2 from a panel model with time fixed and individual fixed effects, that is: The overall $R^2$ The within $R^2$ The between $R^2$ (For an explanation, see Interpretation of $R^2$ in fixed-effects panel regression.) I'm using the felm function from the lfe pa...
I'm interested in the effect of continuous variable A at the two different levels of categorical variable B. I had thought that the following approach would give the same estimates for the effect of A: Y = A + B + A*B Y = A (in data where B=0) Y = A (in data where B=1) For example, here is a CoxPH model in R with some...
I have the following experimental design: 9 mice (mouseID) were assigned to three different treatments (n=3 per treatment level) and we estimated the composition of microbial species in the gut at 5 time points (by 16S sequencing). I would like to know if the community differs between the 3 treatment levels and was thi...
Here are my residuals versus my fitted values. I am not sure how to interpret this. The upper blue line is decreasing (I drew this myself, it's not some fancy estimate), but the lower blue line stays somewhat constant, instead of increasing. If the lower increased, I would say it is heteroscedasticity, but since it do...
I have a sample of 1000 observations, divided into 2 groups: treatment and control (500 in each group). Each observation is dichotomous: 1 if an event occurred (bad event), and 0 if no event occurred. I wish to test the non-inferiority hypothesis that P(treatment)-P(control)=0.01 vs. P(treatment)-P(control)<0.01, meani...
What is a good introductory book about autoregressive processes? Ideally, it would cover most of the recent developments in the field. I am looking for this reference both for personal enlightenment and to use as a reference in my dissertation in a related material section. Wikipedia mostly points to economics / econom...
Saying, I have a VAR model $$ y_{1,t}=\mathbf{A}^T\mathbf{y}_{t-1} $$ where $\mathbf{A}^T=(a_1,a_2,\dots,a_n)$ and $\mathbf{y}_{t-1}=(y_{1,t-1},y_{2,t-1},\dots,y_{n,t-1})^T$. I know there are many algorithms (closed-form or iterative ones) to estimate the parameter $\mathbf{A}$. But how to efficiently estimate $\mathbf...
What are the advantages and disadvantages of using logistic regression to represent the probability of a binary dependent variable Y, given that the independent variables x1, x2, ..., xn are also binary?
I am running a generalized linear model with Gamma distribution in R (glm, family=gamma) for my data (gene expression as response variable and few predictors). I want to calculate r-squared for this model. I have been reading about it online and found there are multiple formulas for calculating $R^2$ (psuedo) for glm ...
I want to use the Whitney Mann U test (i.e. Wilcoxon Rank Sum) test to test for differences in an ordinal outcome variable (say a 5 point Likert item) among two randomly selected samples. I've read a few articles online and I'm not sure what challenges are introduced when the data are in fact ordinal. Hopefully you all...
A related post here. In which the author claimed, if $X_{i}\sim N(\mu,\sigma^2),i=1,\cdots,n$ are iid then $$\frac{(n-1)s^2}{\sigma^2}\sim \chi^2(n-1)$$ in which $s^2$ is the unbiased sample variance. i.e. $s^2=\frac1{n-1}\sum(X_i-\bar X)^2$ where $\bar X=\frac1n\sum X_i$. I want a proof of it. But I can't do one on...
I want to simulate a random walk without drift to predict a time serie. The random walk model is $X_t = X_{t-1} + \epsilon_t$ where $\epsilon_t$ a white noise with a Normal distribution. It seems that I can't just take the mean and the standard deviation of my data's first difference ($Y_t = X_t -X_{t-1}$) and extrap...
I'm using Xgboost's gradient boosted tree model for binary classification. It has a max_depth parameter, which specifies the maximum depth of each individual tree. This makes me assume that it can potentially stop splitting and end with a tree that is shallower than the max_depth tree parameter. When building a tree,...
Random forests select a subset of the features at each node and only considers those features as candidate splits. Wikipedia says this is sometimes called feature bagging. Does XGBoost also use this technique, in its tree learning, when growing an individual tree? Or does it consider all possible features when examin...
At a homework assignment, we are supposed to estimate the total in a population using a Horvitz Thompson estimator, and then estimate the variance using the jackknife technique. As a first step, I wanted to use the jackknife to get a point estimate. To use the jackknife technique, one should delete one observation at a...
I am a complete newcomer to the field of machine learning. I do have a lot of experience in computer programming, but nothing related to ML. My question is whether or not ML would be a good approach to isolate portions of a source code file that contain references to a software license. For example, often times a sou...
It's well known that linear regression with an $l^2$ penalty is equivalent to finding the MAP estimate given a Gaussian prior on the coefficients. Similarly, using an $l^1$ penalty is equivalent to using a Laplace distribution as the prior. It's not uncommon to use some weighted combination of $l^1$ and $l^2$ regulariz...
I'm curious whether there are any off the shelf methods (R, Python packages) that can generate a bayes factor for an unequal variances test. Often times we use an F-test, Bartlett's test, Levine's test, or Brown-Forsythe, these are defaults in JMP, to test whether the variances of two populations are equal. Which test...
I am giving a "blind idiot's" try at VIF (do not understand it, it is just quoted in a hurry by my course) and I notice that adding interactions seems to change the results considerably. This at my level of ignorance seems counterintuitive, is there I simple intuitive explanation? fit_promo_disc <- lm(sales ~ discount ...
Consider the following simple neural network which is trying to figure out a function with 1 input feature which directly maps to a y = 1 when X >= 12500 and a y = 0 when X < 12500... import numpy as np from keras.layers import Input, Dense, Dropout from keras.layers.normalization import BatchNormalization from keras....
I have a data set classifiable by gender (male and female) and genetic status (WT and mutant). The WT data is mostly consistent with tight standard deviations, whereas the mutant data is highly inconsistent with variable standard deviations. The n is equal for both sets. I am interested in the following - 1) running a ...
I have a question on the Kolmogorov-Smirnov test. This is what I know about the test. Consider the sequence of i.i.d. random variables $\{Z_i\}_{i=1}^n$ and let $\{z_i\}_{i=1}^n$ be one possible realisation of the sequence. We want to test $$ H_0: Z_1\sim F \text{ vs } H_1: Z_1\nsim F $$ where $F:\mathbb{R}\rightarr...
I am trying to assess whether it would be useful to master propensity scoring to apply to a certain problem, or whether it would be better to rely on ordinary logistic regression. I want to evaluate the effect of a treatment, X, on an outcome, Y, while taking into account a set of covariates. First I use a set of c...
I am running an ordinal logistic regression model in R. My dependent variable is a categorical variable with 4 levels. I have six independent variables. When I run the ordinal logit, one of the six independent variables gets split into two with each having its own coefficient. I was wondering why this could be happeni...
I was recently asked the reasons and implications of constraining the coefficients of an Ordered Probit estimation to sum to one. I sincerely never heard of it. I'm aware of the convexity property in the context of optimization, but in the case of a categorical econometric model, my best guess would be a potential nee...
In the seminal paper on ImageNet classification with deep conv nets by Krizhevsky et al., 2012, the authors talk about overlapped pooling in convolutional neural networks, in Section 3.4. Pooling layers in CNNs summarize the outputs of neighboring groups of neurons in the same kernel map. Traditionally, the neighbor...
I'm investigating if two of our processes are producing products with the same or different average measurements. The first process has been used for a very long time and thus I have a sample size of 430 measurements for it. The second process is very new and only has a sample size of 15 measurements for it. I've do...
I'm facing a binary classification problem using svm light. However using 5-fold-validation I noticed that later I train SVM with training set (Half positive and half negative samples about) the predictions on the test set(Half positive and half negative samples about) are almost all positives or all negatives causing ...
I have a time series data of accelerometer in X,Y,Z axis. Data is not sampled at a constant sampling rate(but is close to 100 Hz). In the paper I am referring, it mentions that for feature selection I have to use 'windowing technique', with window of interval 4 seconds. And the 'Features' that are extracted can be ei...
I have a classification problem (A, B or C) that appears to be handled well by Random Forest (7 explanatory variables). I've read that some people find it inappropriate to use Leave-One-Out (L-O-O) for cross-validation purposes. They say there is a minimum fraction of hold outs that are required. Okay, but my uninforme...
Let's say I have a generation task like a GAN or other method for next-frame video prediction, consisting of a 256x256x3x10 image sequence, plus a 1-hot vector of length 4. If the result of the prediction actually depends 90% on the value of the 1-hot vector and 10% on the value of the 256x256 input, what kind of arch...
I have a dataset of around 1 million short phrases (mostly 2-3 words) and they are labelled as either appropriate or inappropriate. E.g. phrases include "cute kittens", "pasta recipes", and "how to dye hair". Currently, I'm using 3 features: bag of words 2-gram character 3-gram character 4-gram bag of soundexes I don...
I am doing a research proposal comparing the rates of venous thromboembolisms in post operative surgical patients. Two groups are being studied and were assigned by the type of drug they were prescribed from their physician. The two types of drugs compared are oral anticoagulants and low molecular weight heparin. I am ...
I have fitted a model with 7-8 covariates. Here's what I do to reduce it: I first look at the p-values. I select all covariates with p-values > 0.05. Then I remove them one by one, get the AIC, and then see what had the lowest values. I pick that model. Then I repeat: again, look at p-values, pick candidates, do AIC. ...
The Gaussian process model (GP) is written as $$y(x)=h(x)^{t}\boldsymbol\beta + f(x)+\epsilon(x)\qquad[1]$$ where $h(x)^{t}$ is a regression function such as $\left [1,x,x^{2} \right ]$ ; $\boldsymbol\beta$ is the set of regression coefficients and $\epsilon(x)$ is normal with zero mean and $\sigma^{2}$ variance and ...
I am doing an MSc project determining the best DNA recovery method. I will be quantifying the DNA yield from three methods. Due to time and cost I will not be able to repeat the tests more than 10 times per method. In an ideal world this would be much higher. I have to demonstrate whether there is any statistical signi...
I am doing a fixed effects regression where the dependent variable is number of people in an treatment facility in a given state/year. We are also including a population size control variable. I am wondering if number of people in treatment facilities should be standardized to per 100,000 or percentage since larger sta...
I want to associate between staff perception of hospital quality with patient satisfaction about hospital services quality. Two different surveys were used for the 2 different population. The only common thing is that they were collected from the same hospitals. Other meaning: How to find the relation (correlation or ...
I am a bit confused about how regression modelling works. I have a response $y$, 3 continuous predictors, and 3 factors. I don't have anything else available. I fit the model y ~ cont1 + cont2 + cont3 + factor1 + factor2 + factor3 to check for fixed effects. Here's what I don't understand: What now? Should I change a...
Context : one continuous variable $Y$ dependent on $X$ ($X$ can be anything) Linear regression, generalized linear model... focus on estimating the conditional expectation $E(Y\mid X)$. I want to focus on estimating the conditional distribution. Linear regression can be seen as a parametric model for the conditional di...
I know there are many topics(1,2,3), papers(1,2,3) and websites(1) that discuss this topic at length. However for the past two days I am reading all I can find about the subject and seems I hit a brick wall in terms of progress. As so, another view on the subject would be very appreciated. For what I understood, we use...
Assume a margin of error of 5% based on a sample of x households (the sampling unit of a survey), what would be the margin of error for y individuals (y = x*z and z is the average household size)?
I encountered this problem: Suppose $Y$ has the following PDF $$f(y)=\frac c{(1+y)^2}\cdot I(0\le y\le \theta),\quad\theta>0.$$ A single value $y$ is observed from the distribution. Derive a formula for a suitable $p$-value for testing the null hypothesis $H_0:\theta = k$ where $k$ is a specified positive const...
If your dataset is big, say you have thousands of variables. Some variables are multiple categorical and some are continuous. Question is, how do you know if a variable is continuous vs multiple categorical (say 50 categories)? Is there any algorithm that can classify this?
I've used scipy's linregress function to fit lines through the points in the four panels below. The function outputs a p-value, shown on each panel. The p-values are large for panels a and b (I can't reject the null hypothesis that the slope is zero) and small for panels c and d (I can reject the null hypothesis. I am...
Say I fit the model lm(y ~ factor + x) Now, what I used to do is, I would look at p-values to see whether some parameters were close to zero and/or insignificant. I would then say "hmmm .... maybe those parameters are equal to zero? Let us test this". Then I would fit another model where that parameter actually is ze...
im trying to use a neural network on an extremely simple custom dataset. from sklearn.neural_network import MLPClassifier import numpy as np import tflearn from sklearn import datasets X = np.array([[0, 0, 1], [0, 1, 1], [1, 0, 1], [1, 1, 1]]) Y = np.array([[0], ...
I am learning Statistics as a prerequisite for Data Science course. I would like to know the difference between Correlation and Regression with an example. Could someone help me please ?
I have 10 variables and some of them are highly correlated. So before I do k - means, I want to get lower number of variables that are not correlated, but retain as much information as possible. Thus, I decided to do PCA before k - means. However, one variable is far from normal, as it has many zeros and looks like to ...
What is the best way for privacy preserved record linkage in data mining. I am final year university student. My thesis topic is related to data mining. I am working with data and I need to privacy preserved record linkage. I used talend, pentaho software. But I don't know what is the best software or best way. ...
Let $X$ be a matrix of size $m \times n$. This link from another Cross Validated thread says if X is centred (column means are subtracted), then covariance matrix $C = \frac{1}{n-1} X^T X$. In the machine learning lecture notes from the class, I have $C = \frac{1}{n-1} X X^T$, if $X$ is centred. Since the results of...
I have a data set which has 7 continuous variables, r0 ... r6 and I need to predict 2 continuous variables, x and y. These variables are quite correlated but the pattern is nonlinear. To explain the relationship between each variable, the problem is a little bit as follows: r0 to r6 are the radii of different circles,...
I would like to research the influence of two independent variables, which together determine the curvilinear relationship with one dependent variable (meaning certain constellations of the two independent variables achieve a certain outcome). Which options do I have to approach this problem? The dependent variable is ...
I have a question as I am currently trying to analyse some data. I have 4 samples of runtime (for each sample n=158, 125, 134, 111 so is unpaired data), each of them giving a mean of 157, 235, 127, 120. I want to see if the highest number 235 is really greater than the rest (hypothesis test). I know I can't use t-test ...
I have read everywhere that the time complexity of hierarchical agglomerative clustering is $\mathcal{O}(n^3)$ and it can be brought down to $\mathcal{O}(n^2 \log n)$. How do we arrive at such conclusions? Could you please provide to me a detailed derivation of these time complexities? I think the space complexity sho...
I'm trying to work out if I can make predictions with the data I have. Both the explanatory and response variables are fairly non-normally distributed continual variables. I'm a bit new at this and am working with R Commander, my initial thoughts would be that I should use either Spearman's rho or Kendall's tau to see ...
I'm looking to accurately describe the density function of a multivariate posterior probability distribution based on samples from MCMC. As far as I know, in most cases this is done either with a simple parametric fit (e.g. fitting or updating a Gaussian distribution based on the posterior samples) or with kernel densi...
I need to apply NDCG over the results of a recommender algorithm, but was not able to find any proper example that suits my use case in order to find out if my implementation is correct. Here is my test set: id | p_name | relevance 1 | p3 | 1 2 | p4 | 1 3 | p7 | 0 4 | p9 | 1 And a result set: id ...
I hope I am asking in right forum, and forgive me, if I am wrong. I am trying to implement an algorithm based on an open paper Factorizing Personalized Markov Chains for Next-Basket Recommendation by Steffen Rendle. In this paper, they combine the morkov chain and matrix factorisation to improve accuracy of next basket...
We are applying EM to a problem where we have N items to classify (binary classification, 0 or 1 ) for which a correct classification exists but is unknown, and a set J of "judges" that performs the classification. For example, a classification could consist in saying if a given picture contains an orchid or not. Each...
I'm familiar with linear interpolation. I tried to search some details about piece-wise linear interpolation but failed to understand this method. Can someone explain the difference between these two interpolation methods or perhaps offer some references to learn?
I have a question regarding how concerned I should be regarding a potential violation from the normality of residuals assumption in a linear mixed model. I have a relatively small data set, and after fitting the model (using 'lmer' in R), a Shapiro-Wilks test reveals a significant deviation of the residuals from a norm...
I have been asked to evaluate the variation between movement rates of fish within different systems (rates are in km/day). I have between 25-100 samples in each system. I understand that when reporting the average rate for a given system, it is more appropriate to use the harmonic mean than the arithmetic mean. If t...
Sometime the distribution of a variable is not normal, either left or right skewed, and people tend to transform the distribution by doing x^2 or log(x), etc to make it look more normal. Question is why this would help model accuracy? Thanks,
I have a good dataset of hourly and daily temperature and would like to predict future temperature based on this data with R. I thought about fitting a time series model to it and use it afterwards for predicting. Any idea which would be suitable? As temperature has saisonality, I guess Holt-Winter would perform well. ...
Let $(X_1,...,X_n)$ be a random sample from a normal distribution $N(\mu,1)$. $T=\frac{1}{n}\sum_{i=1}^{n}X_{i}^2-1$ is an unbiased estimator for $\mu^2$ since : $$ E(T)=E(\frac{1}{n}\sum_{i=1}^{n}X_{i}^2-1)$$ $$= \frac{1}{n}\sum_{i=1}^{n}E(X_{i}^2)-1$$ $$=\frac{1}{n}\sum_{i=1}^{n}[Var(X_{i}+E(X_{i})^2]-1$$ $$=\frac{1}...
In 3 dimensional space, we have a very intuitive picture of the closeness of two vectors: we simply imagine a space with two points in it, and imagine how close they are to eachother. In this way we can imagine different degrees of closeness. Mathematically, we think of closeness simply as the euclidean metric: $$\sqrt...
I was considering various loss functions and optimization methods, for my neural network, and while watching a youtube video about them this illustration was shown: (You can find the animated version here.) I already know that a marble in a smooth hilly terrain is an often used analogy for gradient decent type of opti...
I have a complex measurement with many data and several parameters to measures, $\mu_i$ using maximum likelihood. The estimated parameters have very large errors estimated from the likelihood and large correlation. So, the idea is to merge some parameters, measuring sums or difference of some, for example if the are ve...
I'm having trouble reasoning this problem: There's a business that has 3 different offices, "A", "B" and "C". Each one has 50, 75 and 100 employees respectively and 50%, 60% and 70% of the employees of each office are women. The probability that a employee quits his job is the same for women and men. If you know that a...
I am trying to do sentiment analysis on a corpus of product reviews. My corpus contains 50,000 samples, of which I take 70% for training and 30% for testing. I discretized the 5-star rating to 3 categories as follows: [0, 2] = negative [3] = neutral [4, 5] = positive As a consequence of this discretization, I see tha...
When importing a CSV file that was exported from SAS, I forgot to put the na.strings = "." option in the read.table function. It took me a while to find the error, but what struck me was the radical change in the logistic regression results when I got it right. This was further complicated by the fact that only two v...
I was doing a meta-analysis of single proportion using the meta package in R. I performed a double arcsine transformation to my data. I also wanted to do a trim and fill procedure. However, when backtransf= in the trimfill function is TRUE, the result came back as NA. I was not able to get a transformed back proportion...
I have a set of measurements from hypothesized binomial distributions with the same p but with different n values. Given the data, I'd like to assess how confident I should be that the p value is indeed the same for all measurements. If it helps, the actual data is 314 successes out of 5334 trials 613 successes out of...
so here's my problem, I have to simulate a random walk without drift: $$ y_t = y_{t-1} + \epsilon_t $$ (with $\epsilon_t$ being a Gaussian white noise). Then I have to estimate this equation: $$ y_t = \alpha + \rho y_{t-1} + u_t $$ and finally test the null hypothesis (unit root test) $ \quad H_0 : \rho = 1 \quad $ vs...
I run a regression of $y$ on lagged $x$ and a constant from time t till time T: $y_t=\alpha+\beta x_{t-1}$ The $R^2$ is 1%. I then run the same regression over rolling window, from time 1 till time $t, t+1,...,T$. I store the coefficients and compute forecasts of $y_{t},...,y_T$ as fitted values. I then regress the act...
I have a pretty straightforward question. I have a database of user/item ratings from which I've built a latent factor model of the form: $$R_{u,i} = \alpha + \beta_i + \beta_u + \gamma_i * \gamma_u$$ Nothing too complicated yet. $\alpha$ is a global offset, $\beta_i$ is an item-specific bias, $\beta_u$ is a user-speci...
I am trying to understand some basic probability concepts, so I am writing up my understanding here and would appreciate feedback on anything wrong so I can learn from it. Classic Roulette example: guy witnesses black come up 5 times he bets on red thinking it is more likely he is wrong because of gambler's fallacy I...
"An urn contains 80 marbles, of which 60% are red and 40% are white. Out of 50 samples of 20 marbles, each selected with replacement from the urn, how many samples can be expected to consist of (a) equal numbers of red and white marbles?" I did it and got my answer = 9, but the correct answer is 6. My insight: Since ev...
For the level-log model $$y = \beta_0+ \beta_1\log(x),$$ I know the interpretation is If we increase $x$ by one percent, we expect $y$ to increase by $\beta_1/100$ units of $y$. So, my questions are If $y$ is a percentage variable, what is the correct interpretation of the resulting regression? Is it still the same ...
I want to design something. In the process of the design I face a variable that is random and unknown to me. Using machine learning methods (e.g. Bayesian learning) I managed to find the probability density function (pdf) of this variable. Now I have a general question. What can I do with this pdf and what usually peop...
We define Likelihood as follows: $$ \mathcal{L}(\theta | X) = \prod P(x_{i}|\theta) $$ Question: How to assume the probability function $P$, specially in case of complex dataset? I understand that if we are doing a Coin Toss, I can assume $P$ to be Bernoulli. But what if my dataset is complex (ex: financial data, flu c...
As you're likely aware, predicting survivors from the Titanic disaster has been turned into an educational data science challenge on Kaggle.com. A few "competitors" have perfect scores, presumably due to using actual historical records. Whatever. But then there is a tier of competitors with scores hovering around 88% a...
I am trying to understand impact of Global Liquidity using times series data (quarterly) for 20 years. Some of the variables in the data (such as GDP, Broad Money Supply M3, Net Capital Inflows as % of GDP) are not stationary or rather I(1). I checked for co-integration using johansen test and found that there exists ...
Suppose $(x_i,y_i)$ constitutes supervision data. Assume a collection of statistical methods which could be trained on one subset and ranked by their accuracy on another subset of this data (according to some loss function). But we are not going to train directly on $(x_i,y_i)$. Instead suppose $(x_k,y_k)$ is a differ...