instruction
stringlengths
9
38.7k
In trying to get some sort of intuition into what goes on inside an LSTM, there is a step that has the potential to make things fall in place nicely. Here is a diagram from this tutorial illustrating the step in question with nomenclature notes added (feel free to correct mistakes): I understand $[h_{t-1}, x_t]$ as t...
I'm reading a book called soccernomics. There is data for Home/Away wins in case a penalty is awarded or not awarded in football (soccer) games. Data is as follows: | Result | Pen. Not Awarded | Pen. awarded | Total | |---------- |----------------- |------------- |------- | | Home Win | 557 ...
For the pdf $$f(x\mid\theta)=e^{-(x-\theta)}\exp(-e^{-(x-\theta)})\,,\qquad-\infty<x<\infty,-\infty<\theta<\infty$$, let $X_1,\cdots,X_n$ be i.i.d observations. How to find the sufficient statistic and show the complete statistic does not exit? The answer of it is that the order statistics are minimal sufficient statis...
I am training a residual data with negative values through ANN. So I partition my data with 20 values for testing. But what I get in my MAPE is a negative value. Here is my data: ACTUAL PREDICT ABS ERROR MAE 0.75580171 -0.007975448 0.763777158 1.010552303 -0.514778164 0.032106205 ...
In order to help myself understand neural networks better, I'm attempting to write the code for a multilayered neural network in Python. I've written the code for predicting the output, given a set of inputs; however, I'm a bit unsure about how to write the code to do the training. I know that I need to use the inputs ...
In Casella-Berger Statistical Inference page 234 Example 5.5.8, they define a sequence of uniform random variables $X_1, X_2, \cdots, X_n, \cdots$ such that $X_i \sim U(0,1)$ and $s \in [0,1]$ and : $X_1(s) = s + I_{[0,1]}(s)$, $X_2(s) = s + I_{[0,\frac{1}{2}]}(s)$, $X_3(s) = s + I_{[\frac{1}{2},1]}(s)$ $X_4(s) = s +...
I've been doing machine learning. I have done lots of learning related to data analysis and ML algorithms, and I've got very good results and I understand the algorithms. However, my approaches are normally getting datasets, writing scripts or notebooks to play around with the data to try to build a relatively accurate...
I am training a convolutional neural network on colored images and am trying to understand how and when the parameters of the neural network get updated. Suppose I have 1000 images. While creating the network, libraries like Keras take the dimensions of one image as the input layer dimensions (suppose 28 x 28 x 3) here...
I have users rate recommendations on a scale of 1 - 5. The recommendations come from 2 different algorithms A and B. Let's say that A has got 300 ratings whereas B has got 160. Their means are pretty close. I want to check if they are statistically different. I know I can use the Students T test to test this, but it a...
I have gene expression data from cells grown in a dish over time - 5 time points, from 2 conditions: control and treatment. Originally, I was interested in fitting a regression with treatment x time interaction. However, performing a PCA on the control data shows that the first PC explains 97% of the variance. I imagin...
I was trying to understand why the nonnegative least squares (NNLS) algorithm of Lawson & Hanson converges to a solution of $$ \min f_{0}(x) = \| Cx - d \|^{2}, \\ \text{s.t.} \ x \geq 0. $$ Pseudocode can be found here: https://en.wikipedia.org/wiki/Non-negative_least_squares or in the references below. Useful refere...
My dataset consists of ~800 observations. This is the distribution of my response variable: I'd like to model the response with a generalised linear mixed model with 1 random effect and 8 fixed effects. I've tried different families and links but in any case when I compare observed vs. fitted values I can see that the...
How do you deal with missing values when scoring a model? Can I use multiple imputation when building the model?
I have a set of traces (1D array), and i need to align them, the problem is that, using generic methods ( cross-correlation, dynamic time wrap), would be very slow to align 1 million trace, each with 10 million point,so one of the usual ways of doing that is to use synchronization methods on periodic bases, (once every...
I tried googling, but no luck in finding it. Who was the one to pioneer these ideas? Also, I'm trying to find when Gauss first started doing some real pioneering work on normal distributions.
I have a binary variable (sold/not sold) and I have used the CART algorithm in R (rpart) to build a classification tree to predict if this product is getting sold or not. Now I would like to add a probability to this. How can I do this? Can I just take the same Test/Trainingsdata from before and just build a regression...
I've got a gamma likelihood $\Gamma(\tau_c | \alpha_k, \frac{\alpha_k} {\tau_k})$ (parameterized with shape and rate) with an InverseGamma prior $IG(\tau_k|a_0, b_0)$. I know that the resulting posterior $P(\tau_k|\tau_c, \alpha_k, a_0, b_0)$ should have an InverseGamma ($IG(\tau|\alpha, \beta)$) form but I cannot mana...
I am getting confusing results from the below model when backtesting. The code splits the dataset into a training and a testing set (70/30) and as far as I can tell keeps the data separated so that the results found in t are in fact representative. However, when testing the model against a real life progression of the ...
I would like to know if it is possible to express the density $f_Z(z)$ of a function $Z = g(X,Y)$ of two continuous "nice" random variables $X$ and $Y$ only using the joint density $f_{XY}(x,y)$ and the gradient $\bigtriangledown g(x,y)$ asuming that the function $g(x,y)$ is "nice" (I mean, I don't care about complicat...
As part of my M Tech Thesis, I have to find the correlation between the Rank in Engineering Entrance Test and performance in 1st Year Engineering in terms of GPA i.e. Gross Performance Average. Can someone explain how this can be done ...
I have a dataset with a single continuous response variable, z, dependent on two categorical variables: x and y. x and y are applied individually, and together, and I interested in both the individual effects and any interaction effects. I am hitting collinearity in my predictor variables, but I can't see it -see below...
I have a data set where I try to analyse a continuous variable according to 10 categorical variables and I would like to perform a ANOVA analysis. How should I proceed ? I'm able to interpret the results but I have no clue how to operate : An anova with all the variables at once : summary(aov(Cont ~ . , df)) An anova...
There are a number of sources that mention that the reference prior is equivalent to Jeffreys prior for $d = 1$ (see e.g. https://people.eecs.berkeley.edu/~jordan/courses/260-spring10/lectures/lecture7.pdf). However, I found no proof in these sources. So, the question is how to prove this statement. It seems to be som...
I have the following example, where I fit a spline to a simple data set using the mgcv-package in R and plot it afterwards: dev.off() dfOne <- data.frame(1*(1:20), c(1,6,2,8,7,4,9,8,5,4, c(1,6,2,8,7,4,3,8,5,4)/2), 3*(1:20)) colnames(dfOne)<-c("one", "two", "three") fml <- as....
I am testing two predictive models, Each of them in 10 experiments. I therefore have 10 ROC curves (with AUC) for first experiment and 10 ROC curves for second experiment. How to compare these series and see if difference between them is statistically significant ? How to get confidence intervals / P value ?
Suppose we are to study a non-homogeneous Poisson process of 3 hour cycles in which: At the first hour, the arrival rate is 1.5 events / hr. At the second hour, the arrival rate is 2.1 events / hr. At the third hour, the arrival rate is 3.4 events / hr. I would like to generate the time points (not inter-arrival time...
I understand k fold cross validation has been discussed many times here and I read some of them. I understand how k Fold works, but what confuses me is the following: Cross validation in my understanding is used for model validation, which validates an existing model. For example, a model builds on full dataset. But wh...
I have a multiclass classification problem with more than 1,000 classes. I've trained several classifiers (SVM, kNN, Random forests, etc) for 10, 100, 500 and 1000 of the classes to estimate the tendency of classifier's accuracy as the number of classes increases. I have around 100 samples per each class and do 10-fold...
I have an experiment where I have several subjects that I am analyzing a response for (call this RESPONSE). I am interested in the overall effect of temperature on RESPONSE. RESPONSE is measured once daily for each subject over the course of several weeks. Each subject also belongs to one of two levels of a factor (cal...
I have an optimisation problem, in which I use a $\chi^2$ test statistic between model and data to define a goodness of fit. The numerical optimum of this is (with technical tricks) easily found, but I also want to derive statistically well-motivated variations from the best-fit configuration in order to e.g. cover 68%...
I have a very interesting topic to investigate but face problems on econometric identification strategy. I need no fancy estimations but just a way to deal with the issue. For a snacks producer I have data on quantity, prices and revenue (q*p) by 6 different retail chains. In the data are a portfolio of existing produ...
I have performed a multiple linear regression with R and there is heteroscedasticity in the data https://drive.google.com/file/d/0B_Crh5XPwxTeWWRyWDFCU0FMbXM/view Even if I log transform the dependent variable: https://drive.google.com/file/d/0B_Crh5XPwxTeQWVXcFRMaVh4SjQ/view Is it possible to just apply MARS as a non...
I am a master student doing an intersnship on homeranges of domestic cats. Our data has somes individuals in 3 locations and we have a few females and males every time. For each individuals, we have sometime 1, sometime 2, sometime 3 and sometime the whole 4 seasons but it depends. It seems that my data is paired and n...
I have the following set of qualitative data: ______________________________________________ | Observations | City | Transportation mean | |______________|_________|_____________________| | Individual#1 | Paris | Bicycle | |--------------|---------|---------------------| | Individual#2 | London | Car...
I am following the paper on xgboost and got stuck at equation 6 ($3^{rd}$ page), where the authors say that for a given tree, "we can compute the optimal weight $w_j^*$ of leaf $j$ by" \begin{split}w_j^\ast = -\frac{G_j}{H_j+\lambda}\end{split} Here, $G_j$ and $H_j$ are the first and second derivatives of a loss functi...
I am trying to fit a beta regression model using GAMLSS. The data: For each $y$, we have an indication of what patient $p$ it is, an indication of what month $m$ the observation took place, and at what location $l_1, l_2$ (longitude and latitude) the observation took place. We then further have covariates such as sex. ...
I performed a therapeutic study with mice. Mice were divided into 5 group. The dependent variable of my study is tumor volume which is I measured every 2 days. The result is this. After that, I performed multiple linear regression using variable group (e.g. control, Ab only, etc.) and day. Call: lm(formula = Volume ~ ...
I want to compare the grades of two cohorts A and B (of unequal size). I have the grades for a certain course 1. The grades are not normally distributed. I used the following code (in R) to compare: wilcox.test(gradesA, gradesB, paired=FALSE, conf.int=TRUE) However, I am not sure whether cohort A was better overall th...
I would like to know how can I be able to interpret the results from fitting splines with the scam package. My data points are taken from the chileancredit dataset available in the package smbinning. Here are my x and y data points: library("scam") library("zoo") data(chileancredit, package = "smbinning") chilean_clea...
$A^TA$ need not be invertible. If columns of a matrix A are linearly independent, then $A^TA$ is invertible. Let's say $A^TA$ isn't invertible: Gauss-Markov seems to hinge on $A^TA$ being invertible. Suppose that A is $mxn$ real matrix. If $m<n$, then the inverse of $A^TA$ does not exist. But you can minimize the sum o...
I need some information concerning the LibSVM one-class classification. I use -b1 for two-class classification in SvmTrain and my outputs are prob values and prob labels. I want to use the similar way that I used for two-class classification but for one class classification but LibSvm does not support -b1 (probability)...
For modeling purposes, I need to add a parameter (denoted by $\alpha$) allowing us to control the location of a Chi-squared distribution (instead of always beginning at 0). The probability density function taking into account this modification writes $$ f(x;k,\alpha)=\left\{ \begin{array}{ll} \frac{(x-\alpha)^{k/2-...
I have two data sets (source and target data) which follow different distributions. I am using MMD - that is a non-parametric distribution distance - to compute marginal distribution between the source and target data. source data, Xs target data, Xt adaptation Matrix A **Projected data, Zs = A'Xs and Zt = A'Xt *MMD =...
I have 522 observations of a time series that shows autocorrelation until about 150 lags. How do I test if the mean is significantly different from zero? My idea was to fit an intercept-only regression model and then use the Newey-West adjusted variance to calculate a t-statistic, however I don't know what cutoff to us...
Consider the real-valued random variables $X,Y,Z,W$ all defined on the same probability space. Let $Y\equiv f(Z,W)$ for some measurable function $f$. Suppose I am told that "$X$ is equivalent in distribution to $Y$". Does this imply, among other things, that $X|Z$ is equivalent in distribution to $Y|Z$? Does equivalenc...
Suppose I have imputed a variable in my data and that I’ve created an ‘imputed’ indicator/dummy variable, where 1 denotes that the value has been imputed and 0 if the value was already present in my dataset. Next, I run a regression with the imputed variable in my model, including the indicator/dummy variable. Now, wha...
Background: Suppose I have 2 random observations from a normal density function whose $\sigma = 2$. The first observation is $x_1 = 6$. The second observation is $x_2 = 8$. The question below arises from this context I just described. Question: Below, I am wondering if I am understanding the difference between the Like...
I'm a bit new to Bayesian statistics and probability theory in general, but I've been trying my hand at a quick utilization of it of where there are 26 outcomes and I am trying to predict the next outcome. As usual, I gave my mixtures a Dirichlet prior distribution and my distributions for the mixtures are Categorical...
I was reading about the concept of Perplexity and was thinking whether there's a connexion with the law of law of total variance, but I couldn't find any reference. The law of total variance is: $$Var(Y) = E[Var(Y|X)] + Var(E[Y|X])$$ which can be interpreted as saying that the total variance of $Y$ can be decomposed in...
How would you prove this? $$\mathbb{P}\left[\left|\frac{1}{n}\sum_{i=1}^{n}x_i-\mu\right| \leq \sigma\sqrt\frac{2\log(2\delta)} {n}\right]\geq 1 - \delta$$ Assuming that $x_1...x_n$ are independent Gaussian RVs with mean $\mu$ and variance $\sigma^2$
I have the data $\{(y_i,\omega_i), i=1,\dots,n\}$, where $y_i \in \mathbb{R}_+$ the response and $\omega_i>0$ a weight. Fixed $K>0$ I want to determinate $y_1^*,\dots,y_{K-1}^*$ such that $$ \frac{\sum_{i: y_i \in ]y_{k-1}^*,y_k^*]} \omega_i}{\sum_{i=1}^n \omega_i} \approx \frac{1}{K}, \ \forall \ k \in \{1,\dots,K\}, ...
We are given a compositional data set, where the response is $$Y = [y_1, ..., y_n], \sum y_i = 1, y_i \in [0,1]$$ I intend to do regression, however, prior to that, I would like to get a feel of the codependence structure of $Y$. What is the right way to do this? In particular, I think the usual "scatterplot" approach...
Central limit theorem is generalizable for the multivariate case, but this is possibile due to the i.i.d. hypotesis on the random variables involved in the sum. Infact, if you sum a set of i.i.d. random vectors, you obtain normality for each marginal, i.e. for each vector component. Then, given independence, you can ea...
In the E-step of the EM algorithm we maximize $$\max_\theta \sum_Z p(Z\mid X,\theta_\text{old})\log p(X,Z\mid\theta).$$ This expression is called the expectation of the complete data log-likelihood $\log p(X,Z\mid\theta)$. I do not see any expectation, which is defined as $E(Y)=\sum_YYp(Y)$. Why is it called this way? ...
I have about 90+ audio files that I have the FFT data in frequency, amplitude, and phase. I'm trying to find patterns that are found throughout the 90+ audio files but I'm at a loss. I can create individual plots all day but I'm not sure how to look for patterns found throughout 90+ audio files, does anyone have any i...
I am running a logistic model and am looking specifically at a 3 way interaction. Here is some descriptives on my data: Outcome: mortality (y/n) Var 1: gender (M/F) Var 2: dichotomous lab value (above/ below certain critical cutoff- y/n) Var 3: second dichotomous lab value (above/ below certain critical cutoff- y/n) I ...
I want to model frequency of a social effect by state over several years as potentially predicted by several demographic factors. I have been reading that one is supposed to determine the random effect structure before trying to determine the fixed effects structure. One thing I want to be sure to test for fixed effect...
I'd really appreciate your help. Let's say I am using a mini-batch size of 4 playing an Atari game in the RL context. I understand that weights are updated only every 4 frames. But what does the RL agent do during the 3 extra frames? Does it do nothing and just wait? Does it take random actions? Does it take actions e...
I want to test for presence of conditional heteroskedasticity in a vector of ARIMA(0,0,0) residuals. For this purpose, I would like to see if both ARCH Lagrange Multiplier Test (on levels of residuals) and Ljung Box Test (on squared residuals) of R confirm the presence of ARCH effect in the said residuals. Note that I...
I am currently reading a paper about energy efficiency in housing where the authors carried out PCA to explain the characteristics of dwellings with poor energy efficiency. They ended up with three components. Component 1 has a positive significant loading for one characteristic and negative for another; Components 2...
I'm estimating a spatial lag model that tests whether the geographical closeness on stores has an effect on sales. I have a negative, statistically significant rho coefficient for my spatial weight matrix. I'm a bit confused about the interpretation. Does this mean that shops that are considered neighbors will negativ...
I'm looking for advice/opinion on whether the co-efficient(s) resulting from a geographically weighted regression analysis can subsequently be entered into an OLS regression as the dependent variable (i.e. to test for factors influencing the observed spatial variation). Are any major assumptions violated in doing so an...
I have the following randomly generated distribution: mean=100; sd=15 x <- seq(-4,4,length=100)*sd + mean hx <- dnorm(x,mean,sd) plot(x, hx, type="l", lty=2, xlab="x value", ylab="Density", main="Some random distribution") And a "non-random" value x <- seq(-4,4,length=100)*10 + mean ux <- dunif(x = x, min=10, ...
I have really been curious about this, but I have been searching around for studies which utilize Spatial Durbin models and I have yet to find any one model that has incorporated the use of interaction effects. For instance, imagine it a Durbin model was executed and you see results like this... Coefficients: ...
I try to fit logistic model to my data. However, I don't know what is happening that results seem wrong. Graphic doesn't work as expect. Here is what I expect as result: Here is my code: from scipy import stats import numpy as np from scipy.optimize import minimize import pylab as py xdata = np.array(170.539999999...
I have questions about the case when I employ fixed effect in Difference-in-Difference(DID). As I understand, both treatment group dummy(D_i) and treatment time dummy(D_t) should be independent from error term in regression. My questions are as follows: If we consider fixed effect in DID, is it against the exogeneity ...
How to read the result of of posthoc kruskal dunn test? Specifically, what do the values in the table below tell me? I have 6 treatments and I first did a Kruskal-Wallis test to confirm that the groups' distributions were dissimilar from one another and the aggregate dataset. I then used posthoc.kruskal.dunn's test to ...
I'm currently addressing maximum likelihood estimation for a three-parameter probability distribution with all parameters being positive real-valued. I'm using Newton's method to calculate the MLEs using R. Sometimes, in this case of small sample sizes, I may obtain: (1) negative estimators, (2) ill-conditioned Hessian...
I'm using MATLAB to plot the Weibull distribution function. But the y-axis, obviously, is not probability. Also, the plot on Wikipedia (here)has same y-axis as mine, so my question is: is there something wrong here? I'm pretty sure that my code is correct. So Why the y-axis is not probability ?
I am fitting several mixed models, with random intercept/random slope (based on comparing the model with a random intercept model using the AIC and -2LL). For these models I was asked to compute a ICC. Because that is difficult with random intercept/random slope, I was asked to simply calculate the Shrout and Fleiss fo...
Let $(\Omega,\mathcal{F},\mathbb{P}):=(M^{\mathbb{N}_{0}},\mathcal{M}^{\mathbb{N}_{0}},\mathbb{P})$ be a probability space where $M=\left\{0,1,2,3,4\right\}$, $\mathcal{M}^{\mathbb{N}_{0}}$ is product $\sigma$-algebra. Note that if we consider the cylinder $I=\left[x_{0},x_{1},\ldots,x_{k}\right]$ defined by \begin{eq...
For example, I have a b: -.940 beta: -1.649 sig .000 and part(semipartial) of -.505 in a group of 5 independent variables. What does the negative sr mean and do I square it to get the strength of prediction of the IV?
Background: I’m exploring if hair cortisol levels (pg/mg) are related with executive functions like working memory (measured on WISC-scale), inhibition control (BRIEF-scale) and attention shifting (BRIEF-scale) with SPSS. My sample sizes are 11 (group 1) and 21 (group 2). I want to study the groups together (are corti...
The objective used in SNE is the KL divergence between the two distributions and is given as $$ E(Y) = \sum_i \sum_j p_{j|i}\log \frac{p_{j|i}}{q_{j|i}} $$ and the two distributions are as follows, $$ p_{j|i} = \frac{\exp(-(x_i - x_j)^2/2\sigma_i^2)}{\sum_{j \neq}\exp(-(x_i - x_j)^2/2\sigma_i^2)} $$ $$ q_{j|i} = \frac...
Let $X$ be a non-negative random variable, and let $Y \sim \chi^2_n / n$ (so that $E(Y) = 1$). $X$ and $Y$ are independent. Note that $X$ and $X\cdot Y$ have the same mean, while $X\cdot Y$ has larger variance. Is it true that for every $t > E(X)$, $$ \Pr(X > t) < \Pr(X\cdot Y > t)\,? $$ My special case is $X = z^TKz/...
When analysing Likert scale data, does our interpretation depend on the scale itself? If for example, my scale is 1- Strongly Agree and 5 - Strongly Disagree, if my mean values for Construct X end up being for Var. A = 2.07 and for Var. B = 2.20, am I correct to interpret these results as: Variable A considers X more i...
In my study involving three conditions (control, treatment 1, treatment 2), I am interested in measuring 2 DVs at a pre- and post-exposure. So effectively a 3x2 design (participants randomly allocated). Research question: Does treatment reduce body dissatisfaction and negative mood? I need to decide what type of analy...
Hi can anyone help me on this? I am trying to understand how can I give a mathematical expression for the following Minitab output. Sales=7.2 + 0.42Timesq + 27 Q1 + 56.2Q2 + 18.8Q3 I am confused with the fact that I have Time square. I know that if we have a quadratic trend we should use: $y_{t=}\beta_0+\beta_1X_t+\bet...
Question : A die is marked on one side, and the number of times that the mark appears is recorded. The mark appears once from 25 rolls, is the die biased? working $H_0 : $ The die is not biased $H_1 : $ The die is biased For this note that the die should follow $\sim Bin(n, p)$ as $\sim Bin(25, \frac{1}{6})$. Testing ...
I know how to model autocorrelation in a normal linear model with mixed effects. However, the function gamms also allows us to model the correlation structure of many other distributions than the normal. Where can I read the theory underlying this general, non-normal case? For the normal case, I have read Mixed effect ...
What would be minimal test-case(s) and corresponding solution, demonstrating curent know-how in causation/precedence analysis solving, or more simply what is it possible to achieve using causation/precedence analysis techniques since the field seems to have evolved fast during the last decade: Statistics calculations h...
I am running tests to show how multilevel modelling is superior to fixed effects when it comes to hierarchical data structures (clustered data: years and countries). I am using the dwtest (lmtest-package) to measure autocorrelation and theoretically the autocorrelation should be considerably higher if country-specific ...
Using machine learning to find an optimal set of parameters for a given segmentation algorithm. In the "classical" case of machine learning, in the training phase, the data set is constant and the model fit -- produces a weight vector that maps the data set to the tag of each image label. Now let's assume a given segme...
Suppose that $y_1,y_2,.....,y_N$ form a random sample from the CSUG maximum distribution (like order statistic but on a random number of observations, $N$) with unknown parameter $\theta$, where the pdf of each observation has the following form $f(y|\theta)=\frac{\theta}{(1-\theta)(1-y)^2}$ for $0\leq y\leq 1-\theta$ ...
I have a research of 30 patients (one sample) which performed cognitive tests in the following states: Baseline at 3 months with no intervention at 6 months after intervention These are the same patients who underwent all 3 states. The cognitive measures are continuous parameters and I am using SPSS. I am wondering ...
Both lm and rlm are used for multiple linear regression. rlm stands for robust multiple linear regression and so is considered to treat outliers in a better way. How exactly does rlm and lm work? Which is better? In what circumstances rlm is preferred over lm and vice versa? Why is there no significance for R square p...
In using the word roadmap I am referring to a series of book one should read in order to get acquainted with a concept or a field of study (following the usage of the word in MathOverflow). I am studying to become a probabilist and a few days ago I found and read part of this book on neuron models, which I found extrem...
At the risk of making the question software-specific, and with the excuse of its ubiquity and idiosyncrasies, I want to ask about the function biplot() in R, and, more specifically, about the calculation and plotting of its default, superimposed red arrows, corresponding to the underlying variables. [To make sense of ...
I am working with a large dataset --300,000 records-- which has many missing values. So I used Imputation to fill the missing values and more specifically the Chained-Equations Multiple Imputation method. In particular, I used three R packages to get a better feeling of their relative performance: Mice, Mi and MissFor...
Consider a $ 2^3 $ factorial design lay out in 2 blocks ,each of size 4, as follows Block I: {1,a,b,c} Block II: {ab,ac,bc,abc} Here,the treatments combinations are written in Yate's notation. Then which of the following are always true? a) Main effect A is confounded b) Main effect B is unconfounded c) Interre...
In maximum likelihood estimation, including an additional parameter in the model usually results in a higher likelihood value. It is possible, though, to add an additional parameter that doesn't change the likelihood. A trivial example would be the model $\mu_i = \theta_1 \theta_2$, where clearly either one of the $\t...
The Inverse-Wishart wikipedia article states that $ X \sim \operatorname{Wish}^{-1}(\Psi,\nu)$ if $X^{-1} \sim \operatorname{Wish}(\Psi^{-1},\nu),$ where $\Psi$ and $X$ are $p\times p$. The mean of the Inverse-Wishart is given as $\frac{\Psi}{\nu-p-1}$, but the mean of the Wishart is $\nu(\Psi^{-1})$ (See here). Wh...
The Gauss-Markov theorem tells us that the ordinary least-squares (OLS) estimator is the best linear unbiased estimator (BLUE) for the coefficients in a linear regression (given some conditions on the errors). I can understand why we want an unbiased and minimum-variance ("best") estimator, but why linear? Why not an e...
I have a corpus and number of documents with me. I am trying to generate a similarity score between the corpus and each of the available documents using latent dirichlet allocation. The goal is to see how similar the documents are to the corpus. The document that is very similar gets a high similarity score and the one...
Does anyone know of an existing implementation of the options framework for hierarchical reinforcement learning as described in Sutton, Precup, & Singh (1999) Between MDPs and semi-MDPs: A framework for temporal abstraction in reinforcement learning. Artificial Intelligence 112: 181–211? The ideal implementation would ...
I am running a logistic regression, where the dependent variable is marital status. And I assume that educated women are different from women with e.g. high school degree and are less likely to marry. Does it make sense to interact 2 binary variables? I remember that we usually interacted a continuous and a binary vari...
Let $(\Omega,\mathcal{F},\mathbb{P})$ be a probability space and $(Y_{n})_{n\in\mathbb{N}}$ be a irreducible Markov Chain with $Y_{n}:\Omega\rightarrow M$ where $M=\left\{0,1,2,3,4\right\}$ and transition matrix $\Pi$ of size $5\times 5$ and invariant measure $\pi=(\alpha_{0},\alpha_{1},\alpha_{2},\alpha_{3},\alpha_{4...
I have conducted some research and I had three hypotheses. My third hypothesis was 'stress and social support will be predictors of anxiety and depression scores when controlling for age, gender, year of study and degree type.' My results found that stress and social support were sig predictors for depression, but only...
I am testing participants RT's on two tasks. The two tasks each have two levels (congruent and incongruent) I am comparing Task1 congruent RT with Task2 congruent RT and then Task1 incongruent RT with Task2 incongruent RT. A paired dependent t-test shows there is a significant difference between task1 and task2 congrue...
I'm having trouble understanding how the math works in the C5 convolution layer of the LeNet-5 network. Layer 4 (S4) has 16 feature maps of size 5x5. Using a convolution kernel of size 5x5 with valid padding on this layer would produce a 1x1 output. Therefore, if a 5x5 kernel were used with a single filter per kernel, ...