instruction
stringlengths
9
38.7k
In the code for deep learning models in tensorflow, Keras I see that Reshaping of the data (numpy tensor or ndarray) is a very frequent operation. It is used to fit different components of a model together. Why can I reshape data and assume everything is fine? Stochastic gradient and Backprop will get job done? Does th...
Suppose $X_1,X_2,...,X_n$ are iid $Bernoulli(p)$. We want to test the hypothesis $H_0: p=0.5$ vs. $H_1: p=0.75$, and also the hypothesis $H_0:p=0.75$ vs. $H_1:p=0.5$ at level $\alpha=0.05$. Is it possible to construct such a test that rejects both $H_0$ at the stated level? If yes, give an example. Present some more d...
I am not really good in statistics so please bear with me here :) I was reading an article regarding financial advisors in mergers and acquisition deals and couldn't quite understand how the authors interpret the coefficients from a multinomial logistic regression and reach the percentage increase/decrease in likelihoo...
I'm trying to manually produce the PCA used in this webpage, hence: Price <- c(6,7,6,5,7,6,5,6,3,1,2,5,2,3,1,2) Software <- c(5,3,4,7,7,4,7,5,5,3,6,7,4,5,6,3) Aesthetics <- c(3,2,4,1,5,2,2,4,6,7,6,7,5,6,5,7) Brand <- c(4,2,5,3,5,3,1,4,7,5,7,6,6,5,5,7) data <- data.frame(Price, Software, Aesthetics, Brand) now the exam...
I gave my class pre-and post-surveys on their perceptions of their own learning and engagement in my course. The survey had four sections: Confidence in Conservation Biology, Self Assessment of Skills, Self-efficenacy in Science, and Relationship to Conservation Biology. Each survey had 25 questions overall. Each quest...
I am reading the paper by Mika et al. Kernel PCA and de-noising in feature space and in the 4th page I am reading the following In the first experiment (table 1), we generated a data set from eleven Gaussians in $R^{10}$ with zero mean and variance $\sigma^2$ in each component, by selecting from each source 100 points...
I am missing something. I am trying to estimate an ARMA(2,2) model using Maximum Likelihood estimation via the scipy.optimize.minimie function. I have simulated an ARMA(2,2) process via the statsmodel module with AR coefficients 0.75 and -0.25, and MA coefficients 0.35 and 0.5: rparams = np.array([.75, -.25]) maparams ...
Is it statistically valid to enter "control" predictors that are theoretically relevant in a linear mixed effects model (aka multilevel model), even if only very weak and non-significant linear relationships were demonstrated beforehand? The predictors in question could be considered control variables (e.g., age, SES,...
I am testing forecasts against against realized values with a number of observations of 4000. When I calculate the mean MAE, its relatively low. Around 10% deviation to the original variable. However, when I regress the forecasts against the realized values I get an r-squared value of 0.06... Is there any rationale beh...
I'm trying to understand gradient boosting (GB) but even though I read a lot of explanations I'm still not sure I understand it correctly. I'll give a simple example of my understanding first. Let's say we want to apply GB to the following problem: we want to predict number of inhabitants based on number of rooms. Our...
I am dealing with the following data frame: GroupID Month Year Concession_10Yr Action Historical_Action_5Yr XY1 12 1984 1 0 0 ... Here GroupID is a unique identifier for an organization. Then we have data every ear and month on whether the organization took "action", whet...
I am studying GLMs and I am struggling a bit with some of the concepts. I think mine is more of a theoretical issue. Basically I am a bit confused by the meaning of these three concepts: the variance of y (the response), the dispersion parameter and the deviance. I know they probably have different meanings, but I thou...
I was reading LeCun's tutorial paper on energy-based models of cost functions, and came upon this table. I don't understand how he got the equation for perceptron loss. Can someone clarify how that equation meshes with this, which I believe is the regular loss function: I'm new to neural networks and information theo...
Why are some loss functions better at optimizing one type of problem than another? In other words, what are some factors to consider when choosing one cost function over another?
Here are two ranked variables, their corresponding correlation test, followed by my understanding of the results: x1 = c(32, 16, 22, 8, 18, 1, 9, 10, 7, 2, 21, 26, 15, 17, 5, 12, 19, 25, 13, 20, 29, 24, 6, 4, 14, 23, 31, 27, 11, 28, 3, 30) y1 = c( 8, 4, 6, 5, 14, 11, 18, 13, 10, 16, 28, 2, 24, 26, ...
I'm trying to get to grips with my lecture notes but cannot understand the idea behind it. I'd really appreciate some help: "Generate a sequence of size $n$ from stated distribution. Consider an independent sample $X_1,X_2,X_3,..,X_n$ from pdf $f_x(x)$, with mean $\mu$ and variance $\sigma^2$. Then the CLT says that......
I am resolving an anova one-way exercise. But I am doubtful because when using the F-table to get the p-value, I am getting a probability around 2.2 (an obvious error), but if I use a calculator the probability is 0.042. I have an independent variable with 4 levels. The mean and standard deviation are this: N M...
In chapter 2 of his Advanced Data Analysis from an Elementary Point of View textbook, Cosma Shalizi tries to find the optimal linear predictor using only a random vector $\vec X$ for the variable $Y$, without using any of the classic assumptions of the linear model. As far as I can tell, the only assumptions he makes a...
I have function \begin{equation} f(W)=\lambda ||W||_1 + \gamma \sum_{j} ||wj||_2 + \frac{1}{2} |||W-u||_F^2 \end{equation} $u \in R^{m\times T}$, $W \in R^{m\times T}$ and $W_i \in R^T$ is the $i th$row of $W$. I would like to solve this function w.r.t $W$. If everything was differentiable, I would take derivative w....
Consider the sentence in the abstract of the paper at https://arxiv.org/abs/1610.09038. Empirically we find that Professor Forcing acts as a regularizer, improving test likelihood on character level Penn Treebank and sequential MNIST. I have used MNIST dataset. However, I could not find any Sequential MNIST or pe...
I have two joint distributions say $f_1(x,y)$ and $f_2(x,y)$. Let $f(x,y)$ be the weighted sum of $f_1$ and $f_2$ such that $$f=w_1\cdot f_1+w_2\cdot f_2;$$ How do make $100$ random draws from this new distribution $f$?
I have a four layer CNN to predict response to cancer using MRI data. I use ReLU activations to introduce nonlinearities. The train accuracy and loss monotonically increase and decrease respectively. But, my test accuracy starts to fluctuate wildly. I have tried changing the learning rate, reduce the number of layers. ...
I am attempting to combine Likert scale variables into a new variable using SPSS. One of my new variables would combine 3 items that are scaled 1 to 5 with 1 = strongly agree and 5 = strongly disagree. A 4th item to be included to create the new variable is scaled 1 = friendly to 7 = unfriendly. How do I create the ne...
I'm overwhelmed by this one: what are the chances of 3 unrelated individuals having not only the same birthday, but the same birth year?? This happened to me about a year ago at a party with 28 people present. I was skeptical enough to check IDs, and all 3 birthdays were verified August 17,1975.
I'm training a 4 layer (2 hidden layers) Neural Net, with 10 input nodes, and 6000 output nodes. During training, my loss function (RMS), and R2 currently looks like this: So far it seems like the Loss function is starting to level off, even though my R2 is only at 0.2. Is it reasonable to expect that there will be a...
for a random sample $X_1 , X_2 .... X_5$ , from a Uniform (0,1) , isn't the distribution of median (say y) be given by $$ f(y)= \frac{y^2 (1-y)^2}{\beta (3,3)}\,,\qquad 0 < y < 1 $$ this can be obtained by directly using the result for the rth order statistic $$ f(x)=\frac{F(x)^{r-1} (1-F(x))^{n-r}f(x)}{\beta (r,n-r...
$\newcommand{\Balance}{\operatorname{Balance}}$$\newcommand{\Income}{\operatorname{Income}}$Consider the following model: $\Balance = B_0 +B_1 * \Income + B_2 * \operatorname{Gender}$ Gender is a qualitative variable so we are going to use a dummy variable such that it is 0 when its male and 1 when its female. So, $\Ba...
Here is, I would assume, a fairly common situation: I would like to know which test to use to assess whether the tendency to answer "Yes" on question 1 of a questionnaire is associated with the tendency to answer "Yes" on question 2 on the same questionnaire. Phrased differently, I want to know whether two categorical ...
I have some images of very simple directed graphs with just a few nodes and edges. I know there is lots of tools, which print out graphs with a adjacency matrix is an input, but I need to do it the other way around. For example Das and Chanda's paper covers this technique, but on a more advanced level. Their approach c...
My problem concerns the calculation of variances in 2 different ways (the variances calculated in the 2 different ways do not seem to match)... I have the following data: For variable $A$: $\;\;\;\;$ 2, 1, 2 For variable $B$: $\;\;\;\;$ 8, 3, 1 Now define variable $f$ as follows: $f:=A/B$, so: for va...
The scenario is regarding treatment effect in an observational study (i.e. not randomised): those given the treatment would be more unwell at baseline. A clinical trials statistician suggested adding in the baseline as a covariate in the regression model. I remember this being acceptable in randomised trials (RCT), but...
this question is about MAP inference in an AR(1) model (exercise 1.6 from West, M., Time Series: Modeling, Computation and Inference). It's not a homework assignment. Assume $n$ observations were generated from the model $y_t = \phi y_{t-1} + \epsilon_t,\ \epsilon_t\sim\mathcal{N}(0, v)$ where $y_1$ (the first observat...
Is it possible to use Partial Leasr Square (PLS) regression with discrete variables? What I mean is, if the inputs of PLS (X predictor variables and Y predicted variables) are discrete variables, can PLS regression be used?
I'm building a Decision Tree on the iris dataset using R Studio. I take 100 observations as training data, and 50 as testing one. I train the tree model and plot it using these commands: treeModel <- ctree(Species ~ ., data = trainData) plot(treeModel) And here is the result I got: I have 2 questions: What is the pu...
I am trying to choose the most appropriate test to use for comparison of two sets of ratios, with several replicates. My data set is the number of male and female offspring, in two different scenarios. One situation has 19 replicates, the second situation has 34 replicates. I want to test whether there is a statistic d...
I have a question studying Hogg&Craig Introduction to Mathematical Statistics, 7th edition, in page 354. I don't know where I got wrong. Please Check. Thank you.
I have regressed the following points with OLS the intercept is -0,085 while the slope is 1,008. So highly dependent. So far so good. The t-statistics for the intercept are -2,84 and 27,87 for the slope... Both showing significance. Now when I use the Wald test as $Wald statistic = c'*inv(Var)*c $ where $c$ represent...
I would like to calculate the inter-rater reliability for a binomial rating (0 or 1) from multiple events from different subjects by two raters. Here are some data in R: Subject <- c(1, 2, 2, 3, 4, 4, 4, 4, 5, 6, 6, 7, 8, 8, 8, 8, 8, 8, 9, 9, 10, 10, 10, 11, 11) Subject <- c(Subject, Subject) Rating <- ifelse(Sub...
I am implementing a Language Model based on a Deep Learning architecture (RNN+Softmax). The cost function I am using is the cross-entropy between the vector of probabilities at the softmax layer and the one-hot vector of the target word to predict. For every epoch, I am computing the perplexity as: where is the numb...
I have a doubt on how to interpret a result of a hypothesis test. For example, a scenario where I have an existing configuration and also a new configuration. I am trying to check if with the new configuration the program is faster. The execution of the program in the existing configuration is 70.20 and in the new conf...
I have one data set labeled by two classes either A or B. I did PLS and I extracted the variable importance. overal v3 100 v5 38.77046648 v9 34.2419393 v32 30.14106059 v7 28.7229834 v56 26.37437813 v76 25.72790586 ... If I got it correctly, the variable importance shows the relative importance of the features...
I am using functional linear model for scalar response. It is that I have i.e. data frame with five columns. Every value in these columns is pressure estimation to certain time ( let's say every 0.04 sec. within 16 seconds). I am trying to predict restriction, which is the scalar response vector consist of five values ...
I am using a Mann-Whitney U test to compare the willingness between subjects to once monthly injection between two groups. One group is a control while the other is the intervention. I am expanding on a question I had asked here: What test would you use for my data. I think independent t-test? Because I am using the Ma...
Consider a stochastic multi-armed bandit problem, where one of the $N$ arms of a given slot machine must be chosen to be played. Each arm $i$, when played, yields a random real-valued reward $r_i$ according to some fixed (unknown) distribution $p_i(r_i)$ with support over the real line. The random reward obtained from ...
I used Ben Bolker's easyPredCI function to generate standard errors and confidence intervals from a GLMM (this function creates population-level predictions by ignoring the random effect). When I plot the predicted responses (abundance) and confidence intervals along a gradient of one of my explanatory variables (prop...
What does one mean by ARCH effect? I am a little bit confused... I understand the mathematical terms and so on. But I cant explain the ARCH effect in words. Can someone explain the ARCH effect for me in words? (ARCH effect for time series.)
I am using a mixed effects model to analyse data, but am unsure whether I am committing any violations due to the nature of the data I have. My data comes from a game whereby people have to identify an object presented on a screen as fast as possible. I won't go into much detail, but there are two methods by which they...
I have several groups of measurements like shown below, and I want to know of the distance from each group to the overall mean is significantly different from the rest. Can I do a bootstrap where I just draw distances from the total group of distances measured, and set 95% confidence from that? Or should I instead use ...
If I have a Bayesian network, In my case made up of only Gaussian variables and discrete variables, and I have some data which may or may not have been generated by this network (as in, could have been sampled from it). Is there any "hypothesis test" which could determine whether or not I can remove the possibility tha...
In a table, I've got total plant Counts (C), previous yr plant counts(PC), and multiple weather predictors(W; continuous data). The objective is examine the relationship between counts (C) and various weather (W) predictors, bearing in mind the counts (C) will depend on previous year counts (PC). Examination of basic...
I've been scratching my head over it, but as a mere high school student I can't seem to figure it out. As a big school project I've been doing research after the Monty Hall Problem. I'm trying to figure out whether or not the number of doors in the problem influences the choice of the player (to switch or not to switch...
I'm trying to fit an ARIMA model in R, but auto.arima and the standard arima function for some reason keep giving me different results and different forecasts. For example, if I fit the model with arima, I use: ARIMA011 <- arima(data, order=c(0,0,1)) and it gives me: Call: arima(x = data, order = c(0, 1, 1)) Coeff...
I have 1200 data points and I'm building 6 different time series models. One with 1200 data, another model with 1100, 1000,..., 700 and then I would choose the best model but I don't know how to select between different data lengths. I'm doing so because my data have time based trend and I don't know how many data shou...
I am reading about RNNs and how to train them and I understood how back propagation works. I have the following model: $$ h_t=f(Ah_{t-1}+ B x_t),\\ \hat{y}_t=g(C h_t). $$ For a given sample $(x_1^T,y_1^T)$, my loss function is $L_2$-loss given by $L=\frac{1}{2} \sum_{t=1}^T \|\hat{y}_t-y_t\|^2$. My understanding of bac...
What's the precise mathematical definition of a black swan random variable? Taleb describes it approximately here(http://highlands.vmhost.psu.edu/_reading/docs/blackswan.pdf), where he describes three properties: large impact incomputable probabilities surprise effect It appears that this might simply be a heavy-tai...
I am reading a statsmodels tutorial for generating and fitting ARMA models here. The author says The conventions of the arma_generate function require that we specify a 1 for the zero-lag of the AR and MA parameters What does zero-lag mean?
Problem Statement Let $X$ and $Y$ be random variables such that $X \sim \text{Poisson}(\lambda)$ and $Y|X \sim \text{Binomial}(x+1,p)$. Find $\text{Cov(X,Y)}$. Attempt at a Solution I would like to be able to write $Y$ as $X + Z$ where $Z$ is Poisson and independent of $X$, since then by this question the variance is e...
I have been reading two excellent textbooks (Murphy, Mohri) in the machine learning. Although I am familiar with R and its utilization for ML, I was thinking of learning C/C++ via machine learning. There are quite many books that introduce the practical ML via R, Python, or Java, but I have not seen any book that intro...
Let: $U, V \overset{i.i.d.}{\sim} \mathcal{N}(0,1)$, i.e. independent standard Normal random variables. $X=\min(U,V)$ $Y=\max(U,V)$ What is the covariance of $X$ and $Y$? Related: What is cov(X,Y), where X=min(U,V) and Y=max(U,V) for independent uniform(0,1) variables U and V?
In a problem I'm working on, I have Bernoulli random variables $X_1,X_2,\dots,X_k$ ($k$ is odd) and I am interested in their sum $Y = \sum_{i=1}^k X_i$. In this problem, $P(X_i=1) = p_i$ and $P(X_i=0) = 1-p_i$. Each $X_i$ is independent, but not all are identically distributed, so $Y$ follows a Poisson Binomial Distrib...
I was reading this while I found: The high temperature sample displays greater linguistic variety, but the low temperature sample is more grammatically correct. Such is the world of temperature sampling - lowering the temperature allows you to focus on higher probability output sequences and smooth over defici...
Suppose we have a population where $a$ boys below 15 years are white, $b$ boys above 15 years are white, $c$ boys below 15 years are black and $d$ boys above 15 years are black. Describe a way to select $3$ boys from them so that each skin colour and each age group is represented, and the probability of inclusion of a...
I am a bit confused about ensemble learning. In a nutshell, it runs k models and gets the average of these k models. How can it be guaranteed that the average of the k models would be better than any of the models by themselves? I do understand that the bias is "spread out" or "averaged". However, what if there are two...
What does simulating values from a known probability distribution mean? For instance, what does it mean to say, simulate values from $\text{Unif}(0,1)$? Does is mean that we have to construct a random variable $X$ such that $X\sim\text{Unif}(0,1)$, and we have to repeat the experiment many times to note down the values...
For a random sample of size $n$ from Bernoulli distribution with parameter $p$, find the unique UMVUE of $1-p(1-p)$. I found that $1-X_1$ is a UMVUE of $1-p(1-p)$. But can't this $X_1$ be replaced by any of $X_2$ or $X_3$ or. . . $X_n$. In that case is this UMVUE unique?
I have a response variable y which is binary, several feature variables xi which may be float or integer and a grouping variable g which is categorical. I would like to know which variables Xi i=1:n effect y and if this effect is group dependent. To make the story even more complicated, each measurement is associated...
I've been taught that if you discuss an interaction of the regressors α and β, then you can't discuss the simple effects (α alone and β alone). I guess you can't even discuss αβ if you discussed αβγ. I wondered that maybe the rule is that in general you can't discuss different interactions if they share any subset of r...
Can the method of least squares be used to fit growth curves like modified exponential or Gompertz curves?
I inherited some a regression code, which fits some log log model – simplified model: $log{(Y)} = \beta_0+ \beta_1log{(X)}$ The training data Y values are normalized by dividing them by the maximum value of all Ys. I am just wondering how this model could be used for predictions given unseen data. Should I simply expo...
Today, my professor said that for highly correlated time series, taking the first differentiation is like applying an AR(1) filter.. Unfortunately I a was not able to ask him after the lecture. I am confused...
I have read through a few derivations for the Chi-square Goodness of Fit test, and I'd say I'm pretty happy with the maths (e.g. this article with its linked derivation). But, what I struggle with here, is that it still seems like magic to me or, at best, a happy coincidence, that when we divide the observed counts fr...
I don't think a question like this has been asked before but please excuse me if it already has. I’m hoping someone can help me by pointing me in the right direction with my problem as stated below. I have a need to derive predictors for several continuous variables (let’s call them A, B and C), from a combination of t...
I am analysing a dichotomous predicted variable for a cluster randomised trial. The model is below. The predicted variable is binary and there are two measures, pre- and post-intervention. There is a categorical group factor (intervention vs control) and the clustering variable is pracID. The model looks like this: mod...
I am a beginner in machine learning. I have built a logistic classifier in Python using TensorFlow to train on notMNIST dataset. My code is as such: weights = tf.Variable(tf.truncated_normal(shape = [784, 10])) bias = tf.Variable(tf.zeros(shape = [10])) logits = tf.matmul(features, weights) + bias prediction = tf.nn.so...
I have seen in a few places (among others in question Why Gaussian radial basis function maps the examples into an infinite-dimensional space?, Artem Sobolev's answer) that the Gaussian kernel $K_G$ can be represented as follows $-$ $(x,y) \in \mathbb{R}^p \times \mathbb{R}^p$ and letting $\sigma = 1$: $$K_G(x,y)=\exp\...
I would like to evaluate the predictive performance of a statistical model using Normalized Root Mean Square Error (NRMSE = RMSE/mean (observed)). However, the mean value of the observation data is all '0' (all observed data are '0'). How can I calculate the NRMSE, otherwise is there any other technique which can repre...
my data look like this(see pic) What type of regression should be used ? Thanks for any idea. Vladimir.
I am analysing the amount of fibrosis in tissue sections. Each section, representing an individual animal, has had images taken of it in several places and the fibrosis in those pictures has been quantified. i.e. there are multiple readings per n-number. Problem: Although each picture is the same size, the relevant ar...
Is it possible to generate multiple (e.g. 3) time series, each with predefined volatility, and together with an predefined correlation matrix , plus, one of the time series has a predefined autocorrelation ? If so, how to do that?
In word to vec module each word has two vectors inside and out side. Or when the word belongs to the context word and when the word belongs to the center word. In the end do we normalize those vectors by adding them up or we just take the inside vectors(Vc)?
I would like to get some hints for the following problem, I am using R language, and trying to find a statistical model for my biomedical question. The question is as follows: I have two matrices: B: 990*255 mixed matrix, AUC values (cell-line* drug)- between 0 and 1-some values are missing A: 78*255 mixing matrix (dru...
I have the following question. I have a number of experiments for different materials (see the picture in the attachment). The results of these experiments seem to be independent from material parameters, or put otherwise they obey the same trend and so far from each other. How can I prove that the results are materia...
I am interested in the question of the Vapnik–Chervonenkis (VC) dimension of Support Vector Machines (SVM). Until now, I have only found partial results related to particular cases of SVM. Some examples: "The VC Dimension of affine classifiers of the form $f(\mathbf{x}) = \mathbf{w} \cdot \mathbf{x} + b$ in $n$ dimens...
I'm confused by the following, and I haven't been able to dig up the answer elsewhere. I'm trying to learn R while doing some statistics, and, as an exercise, I try to double-check the results of the built-in R functions by also doing these 'by hand', as it were, in R. However, for the Kruskal-Wallis test I keep getti...
Please see Chapter 3.2 from this article: http://www.turn.com.akadns.net/sites/default/files/whitepapers/TURN_Tech_WP_Data-driven_Multi-touch_Attribution_Models.pdf Here, a method is described by which the influence of online-marketing-channels/campaigns (for example: "Display" as a channel for Display-Ads, "SEA" as a...
Through simulation I'm comparing several methods for isolating a signal distribution from complicated, noisy background (two components in a mixture). What I need is a good PDF model for this noisy background and for the signal (for simplicity I'd like the signal and background PDFs to be described by the same model, j...
I am currently working on an analysis project where I wish to predict sickness levels of employees in different offices for a company for the remainder of 2017. In the past, I have made predictions based purely on predictors and also just purely on the time series. For this project, I feel I need to combine the 2 type...
p is the probability of success in a series of Bernoullian trials. To test H0:P= 0·5, trials are conducted and H0 is rejected if 7 or 8 successes are observed. If H1 is double sided, how do I comment whether the test is biased or not. For H1:P>0.5, I found that test is unbiased and for H1:P<0.5, I found that the ...
I have a table with mass spectrometry data from some morphospecies of plants, using different techniques. sp technique mz abundance sp1 ESIneg 118.89 3.01 sp1 ESIneg 172.72 3.20 sp1 ESIneg 202.94 3.80 sp1 ESIpos 118.30 2.59 sp1 ESIpos 170.68 3.13 sp1 ESIpos 257.97 3.28 sp2 ESIneg 132.33 22.22 sp2 ESIn...
I am reading about the hyperparameters optimization for a machine learning model. I am reading "Practical Recommendations for Gradient-Based Training of Deep Architectures" paper. Author speaks about manual search, grid search and random search. What is the difference between Manual serach and grid search. What I under...
In log-log regression why are the $\beta$1 coefficients the same for non natural logs but the $\beta$0 coefficients different? Can the $\beta$1 coefficients for non natural log-log regression still be interpreted as a 'One percent increase in IV is associated with a $\beta$1 percent increase in DV' Here, it would be fo...
#Question ###With a school's semester report data I want to subset students that improved from one trimester to another while controlling for what class they are in. Below is an example report. |Student |Teacher | S1.Grade| S2.Grade| Improvement| |:---------|:-------|--------:|--------:|-----------:| |Amy |Blue...
This is my first post on Cross Validated. I'm fascinated by statistics, but still trying to build a better knowledge base. I'm doing a simple linear regression where I'm trying to predict one time series from another. I ran an Augmented Dickey Fuller test and confirmed that both time series are stationary. So, from ...
I have an application where I would like to sample from a multinomial distribution, but I am concerned that the variance will be too low. As an alternative, I am considering the Dirichlet-multinomial distribution, but I am concerned that the variance will be too high. The variance of the $Multinomial(p_1,...,p_k,n)$ di...
I have the following problem: I'm performing a multiple logistic regression on several variables each of which has a nominal scale. I want to avoid multicollinearity in my regression. If the variables were continuous I could compute the variance inflation factor (VIF) and look for variables with a high VIF. If the vari...
I am trying to work through Van der Maaten and Hinton's paper on t-SNE (which was inspired by Hinton and Roweis' SNE) and am having trouble understanding why they use a perplexity parameter. In the t-SNE paper the authors suggest "The perplexity can be interpreted as a smooth measure of the effective number of neighbo...
It's very easy to find famous examples of Type I errors in the histories of various fields. However, I'm struggling to find even one clear example of a Type II error. For my purposes, I'm specifically looking for an example that: can be easily described to an undergraduate class in a few minutes or less actually occ...
I am working on a project which uses a publication that appeared in  print in 1998 and reported a completed double blind randomized clinical trial.  Due to the confidential nature of the project I can't give too much detail. The protocol for the clinical trial planned to have three co-primary endpoints. A multiple com...
Hi I have a table of data with 3 columns: Sales,Cancels and Net revenue. I am triying to perform a Linear regression to check how much the sales and cancels affect the Net Rev but the first thing i noticed is that there is a negative correlation between sales and Net revenue (So the less I sell the more I gain?) Corr(S...
I tried to calculate the median of a set of numbers in Excel using the MEDIAN() function and got 13. However, while 7 values are below 13, above it are 8 values. 7 is not equal to 8, so why is it "the median"?