instruction
stringlengths
9
38.7k
I have two bags each with $m$ balls. In the first bag I have $n_1$ blue balls. In the second bag I have $n_2$ blue balls. The target is to pull out a total of k blue balls from both bags ($m>n_1>n_2>k$). I pull out one ball from the first bag and then one ball from the second bag, and so on. Once I pull out a ball I do...
If I have a table with the frequencies of two categorical variables, I can use a $\chi^2$ test to determine whether there is any association between the two variables. As part of carrying out this test, I can obtain standardized residuals for the counts of each specific combination of the variables. My understanding i...
How do you go about conducting a regression when you have 5 continuous and 3 binary variables? Can you do it in one operation?
Running tests for cointegration. All of the series need to be non-stationary to be valid for testing. Some of my series are non-stationary (with high p-values either 1 or close to 1), but when I log the series, it results in a statistically significant p-value of 0 or close to 0. Why is the log changing the stationari...
I would like to calculate an estimate (even a very rough one if it is the best I could get) of the relative importance of predictors in a logistic regression, something which can let me tell a common person, not proficient in statistics (just like me), for example: these are the predictors: x1, x2, x3, x4, They are all...
Given the four points $(x_1,x_2) = (0,0),(1,0),(0,1),(1,1)$, corresponding class labels $(1,1,1,-1)$ and activation units $y = f_H (w_0+\sum_i x_i w_i )$ and $f_H(\alpha)$ $\begin{cases} -1 ; \alpha < 0 \\ 1 ; \alpha \geq 0 \end{cases}$ We have to show by specifying parameters that the above dataset can be classif...
Considering methods like UPGMA, WPGMA, and WPGMC, etc, I wonder where these abbreviations actually come from. What is the canonical quote for them where you can look up the origin of the names, etc? (Please note that I am not looking for an explanation of their mathematical definitions.)
I am currently learning the very basics of Machine Learning. This e-book looks quite helpful, but I am stuck at the first chapter already. There, the sigmoid function is defined like normal (equation 3): $$\sigma(z)=\frac{1}{1+e^{-z}}$$ Next, the output function is this one ($w$ and $x$ are vectors and $b$ is the bias;...
I am debating this with some friends at the moment and would like to know what the stack exchange community can add to this discussion. When selecting the choice of the distribution and link function, some say that it is less important, even if the outcome variable does not follow the selected distribution. I beg to di...
I have set up a Q-learning problem in R, and would like some help with the theoretical correctness of my approach in framing the problem. Problem structure For this problem, the environment consists of 10 possible states. When in each state, the agent has 11 potential actions which it can choose from (these actions are...
Suppose I have the usual overdetermined $A x = b$ system. The least squares solution is then $x = (A'A)^{-1}A'b$. Suppose I want to subtract the mean of each row of $A$ from $A$ and the corresponding row of $b$. Let $k$ be this column vector of row means and $K$ be $k$ replicated horizontally to match the number of col...
I'm working on a large database (2 000 000 observations = people, with 50+ variables), with the objective to estimate how a binary exposure E affects a binary outcome Y (a disease) using logistic regression, adjusting for 10 confounders X1, ..., X10. Some of the confounders are binary, some are continuous. Exposure E ...
I wrote a program to classify MNIST with a vanilla neural net using sigmoid activation and back-propagation training. I tried to work through the math myself (because I want to understand things ), and the formula I ended up getting was $dE/(dW_{ab})=$ \begin{cases} 2∗O_a∗O_b∗(1−O_b)∗(O_b−exp), & \text{if node b is a...
I am conducting a fMRI study in which there are only 8 participants (and 4 control participants). I will be seeking differences in the 8 participants between periods of time, and also seeking differences between the 8 participants and the 4 controls at one particular time-point. There is quite a lot of variation betwee...
I have started going through the TensorFlow tutorials here and I have a small question about the cross entropy calculations. Most places I have seen cross entropy calculated using base 2 log, but the tf.log is base e. Under what conditions would using one log base be preferred over the other?
I have created a linear regression model using log transformed data but I'm having issues interpreting the results. The r^2 of the model is .67 but I'm not sure what else I can report. I guess backtransforming the residual standard error will just bring back the skew. Can I report percentage error in the model? I also ...
Let $X_1,...,X_n$ be a sample from a distribution with pdf, $f_X(x) = e^{-x + \theta}, x \geq \theta$. Let $x_0 \geq \theta$ be given. I'm trying to find the UMVUE of $f_X(x_0) = e^{-x_0 + \theta}$. I went ahead and found that a complete sufficient statistic for $\theta$ is $X_{(1)}$. Moreover, an unbiased estimator fo...
I am using SGDregressor of Sklearn in order to fit a least squares linear regression in an online setting. I would like to use a normal distributed prior with mean 1 for my coefficients. In other words I would like to add the following regularizer term: $\lambda ||w-\frac{1}{d}||_2^2$ where $d$ is the number of coeffic...
In machine learning blogs I frequently encounter the word "vanilla". For example, "Vanilla Gradient Descent" or "Vanilla method". This term is literally never seen in any optimization textbooks. For instance, in this post, it says: This is the simplest form of gradient descent technique. Here, vanilla means pure /...
I have a multi level dependent variable. The dependent variable is Tenure -  less than 1 year, 1-2 year and above 2 years. The independent variable is AHT. I need to conduct a statistical test whether the tenure is significant in relation to the AHT.   What is the statistical test that i can conduct. Have tried rese...
Here is the progress I made, I am just unsure. (This is not a question from a homework assignment or a text book. Thank you for your time.) \begin{align*} E(u_i| X_i) & =E(Y-\beta_0 - \beta_1X_i | X_i) \\ &= E(Y| X_i)-E(\beta_0| X_i) - \beta_1E(X_i| X_i)\\ &=\beta_0 + \beta_1X_i-\beta_0 - \beta_1X_i \\ &= 0. \end{alig...
Given the following simulation, I estimate a correctly specified ARIMA model and obtain the point estimate and confidence interval for the MA parameter. set.seed(324) n <- 120 x <- w <- rnorm(n, 0, 25) for (t in 2:n){ x[t] <- w[t] + -0.90*w[t-1] } x <- cumsum(x) x <- ts(x) plot(x) plot(diff(x)) summary(fit <- Arima...
I used the ebb package in R to fit a beta to a histogram of data. The fit of the beta distribution is the line at the bottom in red. Though the shape seems reasonable the height is off. What is the explaination for this? Is there a way I can change the scale of my y-axis or does this infer a poor fit? Also, here is a ...
I was learning the differences between least squares and weighted least squares in terms of estimating $\beta$ for $$ y = x\beta + \epsilon $$ where $y$ and $x$ are $n\times 1$ vector and $\epsilon$ is not i.i.d, but $\epsilon \sim N(0, \sigma^2\Omega)$, where $\Omega$ is a $n \times n$ nonsingular, positive definite a...
Can we safely assume that the Standard Error of mean = $\sigma/\sqrt N$ for non-Gaussian Distribution (e.g. Chi-squared)?
I have a theoretical question. Given a set of continuous variables, if I sum them up and create a new variable X1+X2+X3+...+Xn, should there be a correlation between the sum and each variable? I did it and weirdly, there was a high correlation between one of the variables and the sum, but much lower correlation with th...
When I use R square (Coefficient of determination), it can be adjusted according to the number of parameter being examed, My question is when I using K-S statistic, is there similar way to account for the extra parameter being used? What's the general way for adding penalty for other goodness-of fit statistic? ...
I have a dataset with cost measurements for hospital admissions of ~25,000 patients over multiple years. Cost seems to be log-normal distributed and taking the logarithm results in an approximately normal distribution. Using this transformation, I have analysed differences in the average cost across years using one-way...
In Chapter 2 Section 2.1.4 of An Introduction to Statistical Learning (James et al, 2013), the assertion is made that "...if there are p variables in our data set, then p(p-1)/2 distinct scatter plots can be made...". Would you please clarify how this is derived?
I'm trying to understand the symptom of sparsity when increasing the number of features. I followed this article In this article, the writer claims (refer to Figure 10 please) that These samples are difficult to classify because their feature values greatly differs (e.g. samples in opposite corners of the unit squar...
I am trying to do multiple ANOVA tests testing a single response against about 7 different explanatory variables in turn. Obviously, I need a Bonferroni correction here, but I'm unsure how to use it. The naive way would be to just use n=7 in calculating the corrected alpha, but these 7 variables are strongly collinear ...
I am trying to create a linear regression with moderator variables. The data set looks as following: Seq. StimuliA StimuliB R2 R3 R4 R5 R6 R7 ModeratorA ModeratorB 1 1 0 1 0 0 0 1 6 1 1 2 0 0 5 0 1 0 0 0 0 ...
How can we use Naive Bayes classifier for categorical features? What if some features are numerical?
I want to cluster some data points into a given number of clusters according to their nearest neighbour, but with a preference towards even sized clusters when there are multiple pairs with the same distance. I have tried using linkage from fastcluster (scipy.cluster.hierarchy behaves the same) to cluster according to ...
Consider a sample of iid observations from a multivariate normal distribution, how to get a prediction region for multiple new observations ? The approach in the univariate case Let the statistical model given by observations $y_1, \ldots, y_n \sim_{\text{iid}} {\cal N}(\mu, \sigma^2)$. Consider two new observations $y...
I have a small sample of marks obtained by a group of students and I would like to apply a binomial test to check if more than half of the size of the classroom has failed due to the application of a new technique for teaching music named X. My data is in vigesimal format and is the following: data1=c(11,4,6,2,11,7,1,9...
Given a single training example $x = (x_1, x_2, x_3)$ and output $y$, the goal is to write down the "sequence of calculations required to compute the squared error cost (called forward propagation)". The hidden units $h_1,h_2$ are logistic, the output neuron f is a linear unit, and we are using the squared error cost f...
The following is a homework question from an undergrad intro stats class. "Suppose we have a random sample $Y_1, \dots, Y_n$ from the shifted exponential distribution $$ f(y|\theta) = \begin{cases} e^{-(y-\theta)} & y \geq 0 \\ 0 & y < 0. \end{cases} $$ Find MLE for $\text{Var}(Y)$, where $Y \sim f$." Now I was under t...
This is little off-the-track question than the conventional ones asked in this forum. This is a problem related to my research. I am stuck to an optimization problem of the following nature: $\text{min} ~~ Q(x) ~~ \text{subjected to} ~~C(x, y) \geq C_0$, where $y \sim \mathcal{N}(\mu, \sigma^2)$. I have thought of the...
I have a question about the statistical and least squares interpretation of regression. For the simple linear regression case, suppose we have: $$ y= \alpha + \beta x + \epsilon $$ We are interested in an estimate of $E(y|x)=\alpha+\beta x$. Using the law of total expectations and some algebra, we get the following ...
I would like to compare the number of a particular type of disease that is prevalent in men vs women. The number of diseases is interval data (0,1,2,3,etc). Should I use the wilcoxon mann whitney or t-test? This is a sample of what the data looks like. patientID gender num_dz 1 F 0 2 F 2 3 F 4 4 F 2...
I created an n-gram language model on the Penn Treebank using the following command: ngram-count -text $trainfile -order 5 -lm $temp/templm.ptb -gt3min 1 -gt4min 1 -kndiscount -interpolate -unk This code snippet was taken from Mikolov's rnnlm toolkit. I tried to check if the created ngram LM is valid, and I think it i...
I want to empirically check cross-validation accuracy. That is, I am trying to check and better understand bias and variance in the estimation of error by varying the $K$s in K-Fold. For this purpose I need the real error of the model. My idea is to use this function: $$y(x) = \log{x}\sin{x} + 1/10N(0, 2\log(1+x)) + 2\...
I'm trying to carry out a hypothesis test for data that has the following structure. Total number of correct answers out of 6 questions for each subject that only has a HS diploma: 3, 2, 3, 5, ... (there are 16 total subjects) Total number of correct answers out of 6 questions for each subject that has a College degre...
Please excuse my lack of terminology. I am just a humble discrete optimizer Assume we have a kind of "coin toss" where the result is not binary, but a rational number between -1 and 1. There is nothing known a priori about the probability distribution underlying this "coin". What can I do to estimate the probability d...
At a conference I overheard the following statement: 100 measurements for 5 subjects provide much less information than 5 measurements for 100 subjects. It's kind of obvious that this is true, but I was wondering how one could prove it mathematically... I think a linear mixed model could be used. However, I don't kno...
Lets say I have a random variable $y$ that is expected to be: $$y_i \sim poisson(\lambda_i)$$ $$log(\lambda_i) = \beta_0 + \beta_1x_i$$ But, for every reasons, I am running the following linear regression using OLS: $$log(y_i) = \beta_0 + \beta_1log(x_i)$$ Given the log-log transformation, I could than say "a 1% chang...
I have three main hypotheses: Independent variable $X_1$, which is a categorical variable of two levels (A and B), may have an effect on the response $Y$. Independent variable $X_2$, a continuous variable, may have an effect on the response $Y$. The effect of $X_1$ over $Y$ is smaller in lower and upper values of $X_2...
I have a dataset composed of 2 factors of several levels each (i.e. exercise[A-B-C] x muscle [1-2-3-4-5-6]. I'm interested on the effect of the different exercises (A,B,C) on the muscle activation amplitude (i.e. 6 different muscles). After performing the Analysis of Variance of Aligned Rank Transformed Data I found a ...
I was wondering if anyone had any insight to offer on the question of deciding which variables are random effects and which are fixed effects for ecological studies that are based on observations in the field rather than variables that have been set in experimental conditions (“treatments”). All the guidance that I hav...
I want to compare the mean eggs laid per female in two different experiments. The first experiment(control) consist of one females laying eggs in a "box". The second experiement (test) consist of two females laying eggs in the same box. In both experiement, I count the eggs in each box regardless of who laid the egg...
Assume we randomly sampled hyper parameters and for each configuration we evaluated our model on three fixed seeds. What methods are there to obtain a robust and performant hyper parameter configuration from this, including a sensitivity value for each hyper parameter? One approach would be to fit a polynomial to the s...
I am a undergraduate in the introductory mathematical statistics sequence and I'm having problems finding the MLE for this probability density: $f(y|\theta)=e^{-(y-\theta)}, y>\theta$ When I try to solve it, I find the log-likelihood: $log(\mathcal{L}([y_1,...,y_n]|\theta))=-\Sigma y_i + n\theta$ and I take the derivat...
Suppose $X_1,\cdots,X_n$ are samples from a stationary time series and let $\gamma(i)$ denote the autocovariance $\gamma(i) = \mathrm{Cov}(X_{k},X_{k+i})$. Suppose $n$ is very large. In a numerical method I am working on, the quantity $\sum_{i=0}^n \gamma(i)$ appears all the time. I am looking for a quick/lightweight w...
In the study I am conducting, (Group A) the correlation coefficient between black & white imagery and retention is given by R1 and is significant. And (Group B) the correlation coefficient between colorful imagery and retention is given by R2 and is significant. When I compare R1 and R2, I get R2>R1. Using the Fisher Z...
I am working on a microarray dataset with n samples x m genes, with metadata including a grouping of interest and other summary statistics, e.g. age, bmi. My objective is to find genes that may be related to my grouping of interest (cancer vs. control). My question is: would it be valid to conduct PCA on the dataset an...
If I have a national survey data that used stratified random sample design, and the proportion of each stratum (e.g., state) sampled is not identical to the proportion of the population (e.g., proportions of the actual state populations) [I am assuming that the stratification was not done based on the proportion of the...
I have a maybe silly question in my head for days: are the following two models equivalent (assume there is only one observation)? Observation $Y\sim N(\mu, 1)$ and $\mu\sim N(0,2)$. Observation $Y=\mu+r$, where $\mu\sim N(0,2)$ and $r\sim N(0,1)$. I can argue from two sides: They are the same: because from the pers...
I'd like to ask you something about the bootstrap method. If I understood correctly, I can use this method when the size of a sample is small, in order to extract more information. For example, applying a Cox model I noticed that when I had a bigger sample (n=1050), I found several significant small effects and a big s...
My experiment gives data of 12 biological replicates. This would be sufficient to calculate the mean and give a valid standard deviation. However, there might have been some pipetting errors that affect all replicates. So I repeat the experiment from scratch 3 times. Now I have 3x 12 samples. How do I represent the dat...
I need some clarification about Residual Diagnosis and its covariance. I read this article. A residual in forecasting is the difference between an observed value and its forecast based on other observations: ei=yi−y^iei=yi−y^i. For time series forecasting, a residual is based on one-step forecasts; that is y^ty^t is t...
Until now I have only done very basic/simple simple stats, but now I got stuck in all the literature/tips/forums ... It's about the following problem: I have the following data: x <- test results (in percentages %) y <- years (categorical 2011 to 2016) My data is not normally distributed and skewed I went for a GLM...
The optimisation problem in linear regression, $f(\beta) = ||y-X\beta||^2$ is convex (as it is a quadratic function), and when $(X^TX)$ is invertible, we have a unique solution which we can calculate by the given closed form $\beta = (X^T X)^{-1} X^Ty$. However, how is convexity useful in cases where there is no closed...
I currently have 4 data points and the following Jacobian matrix $A$ and cost vector $b$ $ A = \begin{bmatrix} -0.7867 & 0.0464& -0.6155 & 1.0000 \\ -0.3751 & 0.4299 & -0.8213 & 1.0000 \\ 0.0447 & 0.4895 & -0.8708 & 1.0000 \\ -0.5946 & 0.8029 & 0.0424 & 1.0000 \\ \end{bmatrix} $ $b =...
I need to do some clustering with my data set. I have 200 attributes and 18 tuples only. So I am trying to do some data cleaning. I deleted all attributes that has 0 as data and reached till 165. Now for further data cleaning I am trying to use correlation. I created a correlation matrix, and deleting the attributes th...
I have a model with a non gaussian prior. So the posterior probability is something like: $p(\theta |x) \propto p(\theta)*p(x|\theta)$ $\theta=(\theta_1,\theta_2)$ $p(x|\theta)$ is a gaussian density $p(\theta)=g(\theta_1)f(\theta_2)$ where $g(\theta_1)$ is a gaussian density, while $f(\theta_2)$ can be a non gaussian ...
I used the GLMMadmb function to asses the effect of three fixed factors (and two interactions) and two random factors on the abundance af a specie; my data had a negative binomial distribution. My fixed factors are: size (categorical with 5 levels), size (continous), height (continous) and my random factors: week and p...
I'm trying to fit a xgboost model to some data and am getting the following results using a random 70/30 split of train/test data: [1] train-rmse:885.071777 test-rmse:4659.329102 [2] train-rmse:763.531128 test-rmse:4633.854980 [3] train-rmse:669.896545 test-rmse:4616.207031 [4] train-rmse:599.979797 test-rms...
I have a pretty general question: I'm writing on my thesis and have some linear regressions that include a continuous variable. Is it okay to use the variables as continuous for the linear regression and use the same one as categorical (2 groups via median split) to analyze the means with post hoc(for example via GLM o...
In Introduction to Statistical Learning the function given for LDA classification (for more than one predictors) is: $$\delta_k(x) = x^T\Sigma ^{-1}\mu_k-\frac{1}{2}\mu^T_k\Sigma^{-1}\mu_k+log\pi_k$$ Now, the prosterior probability is given by : $$p_k(x) = \frac{\pi_kf_k(x)}{\sum_{l=1}^K\pi_lf_l(x)}$$Where $f_k(x)$ is...
I have a linear mixed effect model in R where my fixed effect consists of three levels: Yes, No and Maybe I have two research questions regarding these levels and my dependent variable: Is Yes smaller than No ? Where does Maybe stand in relation to Yes and No (closer to which)? I specified centered contrast for my le...
I am reading the book: Bishop, Pattern Recognition and Machine Learning (2006) which defines the exponential family as distributions of the form (Eq. 2.194): $$ p(\mathbf x|\boldsymbol \eta) = h(\mathbf x) g(\boldsymbol \eta) \exp \{\boldsymbol \eta^\mathrm T \mathbf u(\mathbf x)\} $$ But I see no restrictions placed...
Lets say for fraud detection which has two labels for each transaction. Fraud Non fraud In real world scenario we usually get more number of examples of Non fraud data points and very low number of fraud data points. Lets assume the ratio of Non fraud: fraud is 80:20. So my question is even if I build any classifie...
How do i compute the bootstrapped mean? I computed 3 validation accuracies using 3 fold accuracies, and wanted to compute the overall mean, or a bootstrapped mean? Lets say i have these accuracies for the 3 folds being 0.1, 0.5 and 0.3 . I understand the concept of bootstrapping, meaning to reuse data you already have,...
I've been trying to use a DM test on my predictive model. I have two different models. Each model is calibrated by using a MSE loss function to estimate the price of 374 different assets each day. I have calibrated my models for 300 days and now I want to test the accuracy of my two models. I have tried using the prici...
I'm writing an implementation of Fortuna, and have implemented the core PRNG / DRBG which should produce a uniform distribution. I've run a variety of statistical random test suites over the output (Dieharder, TestU01, RaBiGeTe, PractRand) and there were enough border-line results that I'm slightly worried something i...
Let $s_1,s_2,x_1,x_2$ be 4 random variables, where $s_1,s_2\in\{-1,1\}$ are binary, while $x_1,x_2 \in \mathbb R$ are continuous. I want to find the most general form of the distribution $p(s_1,s_2,x_1,x_2)$, subject to the following constrains: $p(s_1,s_2,x_1,x_2)$ belongs to the exponential family The marginal $p(x_...
I am trying to find anomalies in time series data with geolocations. For different time intervals, e.g. for some week or for some day or for 6 consecutive months, I want to learn whether there is spatial auto cross correlation (whether time series of locations which are close to each other are often correlated). It see...
In deep learning papers, data augmentation is often presented as a type of regularization. For example, this is explored in Chiyan Zhang and coauthor's presentation at ICLR17, Understanding deep learning requires rethinking generalization. Why is this classification given? Intuitively, I see data augmentation as a way ...
I applied a Hosmer-Lemeshow-Test (now named only goodness-of-fit?) provided by the RMS Package by Prof. Harrel. The p-values for my model were not significant, therefor applying the following link: Goodness-of-fit test in Logistic regression; which 'fit' do we want to test? I fail to reject the Null-Hypothesis, therefo...
I did an experiment with a Mass spectrometer and want to compare the different treatments. Control: Week 0: Immediate measurement of specimens (n=200) after taking the sample. Treatment 1: Specimens (appx. n=120) taken from samples stored at -25°C in 100% ethanol. Sample measured after 1, 2, 3, 5, 7 and 12 weeks of ...
I was going through the keras convolution docs and I have found two types of convultuion Conv1D and Conv2D. I did some web search and this is what I understands about Conv1D and Conv2D; Conv1D is used for sequences and Conv2D uses for images. I always thought convolution nerual networks were used only for images and v...
I was trying to answer this question Estimating the effect of different histories of exposure, on a scalar response measured at the end of a study Executive summary if you don't want to read the original thread: OP has data for a cohort of $\sim 20000$ subjects. For each subject we have a vector of covariates $\mathbf{...
I have performed an experiment on trees which were equiped with sensors to continuously measure their diameter. From this measurements I can define data for growth per day and maximum daily shrinkage (plants' diameters shrink during the day, isn't that cool). I have extracted this data for the following experimental se...
I'm pretty new to statistical analyses. For a research project I want to identify which are the major factors that influence the adoption of electric vehicles in one country. Over a time of 10 years (2007-2016) I have 4 metric Response Variables (Market Share in new registrations for Benzin(1), Diesel(2), Hybrid(3) and...
Given is one single datapoint $\vec{x}$, which contains the same feature twice, hence $\vec{x} = (x,x)$ and a label y. We have to add the regularization term $\lambda*||\vec{\beta}||^2$, $\lambda > 0$ to the regular linear regression problem, solve this problem, as well as explain what relationship the components of t...
Ref to above image, clearly a circle can separate the two classes(left image). Why then take so much pain to map it to a function to make it linearly separable (right image) ? Can anyone please explain ? I really couldn't find anything on the web or youtube lectures on the why
Suppose that $A$, $B$ and $C$ are random variables, not independent from each other. In addition, we know that $$\lim_{x\to \infty}\frac{ P(A+B>x)}{P(A>x)}=1,$$ $$\lim_{y\to \infty}\frac{P(C-B>y)}{P(C>y)}=1$$ For positive $x, y$, we clearly have $P(B>x, -B>y)=0.$ Let $\frac{x}{y} \to c>0$ as $x \to \infty$. Is this eno...
My data is a matrix with 725 features and 667 observations which have binary data(either 0 or 1). my target variable is a univariate which has two classes (either 0 or 1). I removed the features which had zero as column sums, so features reduced to 652. since I have a binary data I did not do the preprocessing (Mean = ...
I have read that we should think of entropy as expected bits of required to store the information provided about a variable. For example: If outcome of a variable is A: 0.5 and B: 0.5, then we can store this information as: [0] <- A # Store 0 for A [1] <- B # Store 1 for B In each case 1 bit is required, so entropy is...
I have 120 samples (Y-values) at the same point, for 45 points (X-values) = 120x45 samples. Will the regression line be the same if it is computed with the mean of every 120 samples as if I would do it for all 120? I am asking since MATLABs Curve Fit Tool Box do not accept multiple Y-values for the same X-values.
I would like to examine whether there is an effect of dose in a data set that looks at repeated measurements over time. I expect the dependent variable to decrease exponentially over time. My experiment has 9 animals total, 3 per treatment group testing placebo, low dose, and high dose. Each animal is observed weekl...
When we look for the chance of rain today or the next hour, how do we interpret the percentage provided by weather forecasts? What is the confidence interval used here? Is it the usual 95% as we study in books or is it different? if it is why and why not other intervals, say 99%?
I have couple of questions. Q1: How important is it to have a "Neutral" option in Likert scale. Does it depend on the queries asked? Or is it always preferable to have a "middle" option. The context of this question is that a questionnaire study was conducted in which passengers of a new bus system in the city were ask...
I am working with a client who wants to forecast sales at the end of Q4 2017, based upon the expected results of a marketing campaign in Q4. The client has 2 years of marketing time-series data for TV and Paid Search as well as 2 years of sales data. Building a dynamic regression forecast model would be straight forwar...
We all know about the success of ImageNet, AlphaGo etc which used deep neural networks in computer vision, or the use of RNNs in Google Translate. But why are we not seeing similar advances in other fields like finance?
I know that for a normal distribution, only 5 percent of the sample is outside mean plus or minus 2 times the standard deviation. I wonder for a non-normal distribution, is there still a specific proportion of data that is filtered out? I know it won't be 5 percent, but is the percentage still fixed?
Given a $2 \times 2$ contingency table with cell probabilities $$(\pi_{00}, \pi_{01},\pi_{10}, \pi_{11})$$ and marginal probabilities $$\pi_{+1}=\pi_{01}+\pi_{11}$$ and $$\pi_{1+}=\pi_{10}+\pi_{11},$$ is it possible to express the cell probabilities only in terms of the marginal probabilities and the odds ratio $$\thet...
Currently I am having a big problem with the interpretation of reandom forest results. I have repeated the random forest 10 times with 10-fold crossvalidation. test set (30%), training set(70%) However, as the number of samples is small (n<50), the testset results continue to change from accuracy 1 to 0.9. I have to...
When it comes to cross entropy, the assumption is that an optimal encoding would use $\log(\frac{1}{p_i})$ bits for a symbol with probability $p_i$. While I understand this from a theoretical standpoint, and this definition is of course useful for optimization & learning, I am hoping to: See a formal derivation of th...