instruction
stringlengths
9
38.7k
I have an auto.arima model output with ARIMA(0,0,0) with zero mean does this indicate that the model did not fit well? Is it the case that the extra regressors have eclipsed the effect of the time and difference components? If it is valid, I do not know how to interpret the results to communicate to others why the zero...
I am analyzing the data of a cohort study. there are three sets of paired data (same measures on same subjects in 3 different point of time). The problem is that the third set of data have more than 50% missing values. My question is that, how can I deal with these missing values? does MI help in these repeated meas...
I want to analyze data. To do so, I decided to try different models, with different parameters. But, I feel that if we try many models, just by pure chance some of them will have good results even on test and validation sets. How to organize parameter fitting and model selection so that we won't overfit data?
We recently used lmer to analyze some reaction time data. There were three fixed effects variables, and the model included their interactions and a fully specified random effects structure. Something like lm1 <- lmer(RT ~ A*B*C + (1+(A*B*C)|participant) + (1+(A*B*C)|item), data, REML = TRUE) We found a three-way intera...
What's the difference between a randomized block design and a two factor design? They both use two-way ANOVA, and your blocks can be your factor.
Xt is a time series with the equation below: Xt = + 1/π (Xt-1)+ Zt t = 0,±1,±2, · · · where {Zt} ∼ WN(0, 1) and Zt is uncorrelated with Xs for each s < t. I tried writing the expression of the mean; Is it correct? 1 > The expression of the mean μx = E[Xt] is E[Xt] = + 1/π E[Xt-1] 2 > Al...
The objective is to parametrize a lognormal distribution, which should then have a given mean and a given value for a given percentile.
I need to predict tourist arrivals by country of origin, by segment (hotels, camping etc...), by purpouse of travel (leiser or business)... so by breakdown within breakdowns. My question is; I do not know if it is better to start from the top and go down level by level or to forecast each segment and add up for the nex...
I am running an interrupted time series analysis. (Basically, I run a "before" and "after" linear regression, and measure the change in Constant/y-intercept.) My objective: to measure the sudden drop in prescribing rate of a certain drug, which occurred at time t. I want to prove that case A is singificant, and cases B...
Trying to fit model to stock data (stochastic). Sample, model (gbm), predict out of sample. a=createDataPartition(sac$rst, p = p_part) aa=sac[a[[1]],] ab=sac[-a[[1]],] modelo=gbm( formula = f1 ,data = aa[c(6:19,21)] ,distribution = 'adaboost' ,n.trees = teste$trees[l] ...
I am using the Causal Impact package in R to infer the causal effect of an intervention in some data which are highly correlated and seasonal. Specifically, i got 17 days of hourly data, intervetion happening in the end of day 13. I have two control datasets which are not affected at all by the intervention (with line...
I'm really just trying to learn the name of this particular rule so that I can learn more about it. Say we wish to characterize the distribution of some random variable $Y$, and we have a sample of $n.$ My example is that $Y$ is diastolic blood pressure and $n$ is the sample size of a group of patients that show up to ...
I am writing a report semantic analysis and I have come across a celebrated paper Computing Semantic Relatedness using Wikipedia-based Explicit Semantic Analysis by Evgeniy Gabrilovich and Shaul Markovitch. I have been looking at this paper and some related articles but I couldn't find any important advantages or disad...
I'm interested in conducting a meta-analysis of mental health in the first year after an event. I have a set of prospective studies that assess mental health at baseline (i.e., immediately after the event) and then at a variety of follow-up time points among the people that experienced the event (e.g., one month, six m...
I would like to estimate a fixed effect model: $EDT_{it} =\alpha_i +\sum_{l=1}^{n} \beta GDPW_{it-n}+ \gamma OIL_{it}+\zeta B_{t} + u_{it}$ where $\alpha_i$ are the individual fixed effects and $\zeta B_{t}$ are time fixed effects. Im not sure about the following: Assuming that only regressor GDPW has an effect on y o...
I have a a data set containing of non-negative integer data for N subjects. In other words, each subject is represented by a vector of non negative integers (the vector length may vary from subject to subject, but is typically ~ 1000) and there are N such subjects. It is believed (hypothesized) that the distributions o...
I am confused with the condition of independence. According to Wiki https://en.wikipedia.org/wiki/Naive_Bayes_classifier, Naive Bayes assumes strong independence between features, so that for a given vector $x = (x_1, x_2, ... ,x_d)$, $d$ is the dimension of the features, we can write $p(x_i|x_{i+1}, ..., x_d, C_k) = p...
I am studying the reproducibility of different methods using the Intra-Class Correlation (ICC) and the Coeficient of Variation (CV). Some methods are presenting an excellent ICC (~.90) and a poor (for what I would like to do with it) CV (~20%). How can I interpret this result? The methods are extracting clinicals bioma...
I'm having some trouble understanding the following expression: $E(\bar{u}|x_i)=0$ $u$ is the error term and $\bar{u}=n^{-1}\sum u$ It's used for proving unbiasedness of OLS. I've got two questions: Does $\bar{u}$ equal zero like for the residuals? I know that the expected value of u equals zero. If yes, then taking ex...
There is a statistics bonus problem I had on an exam, and I got it wrong. It is as follows: There is a county in which 100, 000 people vote in an election. There are only two candidates on the ballot: A and B. In this county, 70, 000 people go to the polls with the intention of voting for A, and the remaining 30, 000 g...
From Alex Graves Ch. 2: $(x,z)$ are input, target pairs in the training set $S$, and $S$ is drawn from the input-target distribution $D$. I am confused by the following line: $p(S|w)=\prod_{(x,z)\in S}^{ }p(z|x,w)$ Is $p(S|w)$ the density $(x,z)$ conditioned on parameter $w$? The RHS of the expression suggests that $...
I'm working with OTU count data (essentially counts of clustered sequence reads), and trying to determine differential abundance of counts between two groups. As of now, we're using a method defined in Romero, et al's paper titled "The composition and stability of the vaginal microbiota of normal pregnant women is diff...
The problem: I have built a fully-supervised CNN that localizes an object in different scenes. As you can imagine, it quite time-consuming to label data: I have to manually localize the object in an image and draw a bounding-box around it. Although the labeling itself is "as comfortable as possible" (I created a labeli...
I'm trying to solve a distribution problem. As part of it, I need to find $\int\limits_{-\infty}^\infty\phi(z)\Phi^2(z+q)dz$ and $\int\limits_{-\infty}^\infty\phi(z)\Phi(z)\Phi(z+q)dz$ So far, I've worked out that $\int\phi(z)\Phi^2(z)dz=\frac{1}{3}$ and that $\int\limits_{-\infty}^\infty\phi(z)\Phi(z+q)dz = \Phi\left(...
I have $k$ groups of $m$ independent samples from a standard normal distribution. The groups are averaged as $K_1$ through $K_m$ the total number of samples is then $mk=n$. I also have the range of $K_{\text{max}} - K_{\text{min}} = w$. What is the best way to estimate the standard deviation? Should I use $s=\sqrt{\fr...
I am trying to implement the canonical correlation analysis algorithm of Golub and Zha (described here), but am running into a well known issue with canonical correlation analysis in that I repeatedly find only trivial solutions (canonical correlations are 1 for all canonical vectors). The method for getting around th...
I have a set of i.i.d. variables $X_i$ that are distributed according to a truncated $\text{Gamma}(\alpha,\beta)$ distribution, with support on $[0,w)$ where $w$ is a known constant. What's the distribution of $Y=\sum_{i=1}^NX_i$? I've been trying to get the distribution for $N=2$ to generalise from there. The pdf is: ...
I'm trying to understand the difference between the Newton-Raphson technique and the Fisher scoring technique by calculating the first iteration for each method for a Bernoulli sample. (I know that in this case I can explicitly and immediately calculate $\pi_{mle}$ but I want to do it iteratively just to understand and...
My understanding of a simple ARIMA(1,0,0) equation is: $$y_t=\phi_1y_{t-1}+c+\varepsilon_t$$ Yet when I build an ARIMA(1,0,0) model on the consumption column of the usconsumption dataset in R, the forecast is not what I expect. > library(forecast) > library(fpp) > data(usconsumption) > tail(usconsumpti...
I am working on the problem of loan application acceptance/rejection. I have historical data of about 500K applications and about 70K loans that got funded out of these applications for various loan products and their performance histories. I want to build a predictive model based on this to evaluate and accept/reject ...
I have been trying to get a sense of the different problems in frequentist settings where MCMC is used. I am familiar that MCMC (or Monte Carlo) is used in fitting GLMMs and in maybe Monte Carlo EM algorithms. Are there more frequentist problems where MCMC is used?
The density of an Autoregressive Conditional Poisson ACP(p,q) model is defined as $$ f(x | \lambda_{t}) = \frac{\lambda_{t}^{x}\exp[-\lambda_{t}]}{x!},$$ where $$\lambda_{t} = \omega + \sum_{j = 1}^{p}\alpha_{j}(x_{t-j}) + \sum_{j = 1}^{q}\beta_{j}(\lambda_{t-j}).$$ I'm trying to estimate the three parameters of an AC...
Short version: We know that logistic regression and probit regression can be interpreted as involving a continuous latent variable that gets discretized according to some fixed threshold prior to observation. Is a similar latent variable interpretation available for, say, Poisson regression? How about for Binomial regr...
I performed a simple linear regression on my data, but I want to increase the model complexity, using R. I was told to use: lm(y ~ poly(x, degree = n)) to increase the degree of the polynomial to $n$, but this doesn't seem right to me. For example, I get different estimates and standard errors when I compare: lm(y ~...
The classical central limit theorem states that if $X_1, X_2, \ldots, X_n$ are IID random variables with mean $\mu$ and standard deviation $\sigma$, then ${\lim}_{n \rightarrow \infty} \frac{\frac{1}{n}\sum_{i=1}^n X_i - \mu}{\sqrt{\frac{\sigma^2}{n}}} \rightarrow^{d} N(0, 1)$. What can be said in general about the di...
When being used for prediction on new individuals, I'm having some difficulty in understanding whether the standard error of coefficients in logistic or Cox proportional hazards regression models are important. When evaluating in-sample performance, regression scores are only determined by the $\hat{\beta}_i$'s. Perfor...
I am given a sample of data for which I need to test the hypothesis: $H_0: m=m_0$ vs. $H_1: m \neq m_0$ where $m$ is the population median and $m_0$ is the hypothesized median. The question asks to construct a randomisation test to test this. What I don't understand is that in class the randomisation tests we've done h...
Apologies in advanced if I supply too little or vague information, since I am a complete newbie in stats and using this forum. So I did a study which evaluated psychopathic personality traits, coping skills and impulsivity on three different groups of people (G1, G2, G3). Impulsivity was gauged with a Go/No-Go task fr...
I am running individual-based simulation and I record a statistic over space. This statistic is always zero at the two extremes of the space but display a bump somewhere in the middle. Here is an example of actual data: w=c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
I am attempting to find abnormal usage patterns in a billing system. Usage looks like this: ID Datetime Quantity A 2016-01-01 10 A 2016-01-01 50 A 2016-01-02 20 A 2016-01-02 40 Usage has some pretty standard characteristics. It is high during the weekdays, and falls during the weekends....
I am trying to compare two nested multilevel models using the anova() function in R. I am specifying the models in the lme4 package. Since I am testing the addition of a random effect, I want to use REML to estimate the models. However, when I go to compare them using the anova() function, I get the following error: re...
I have five 1x3 ANOVA with post hoc Tukey's test. I think it is quite boring to repeat the same sentences five times. It's possible (in APA style) to summarize the results in a table and just report the comment on the results in the text?
In the book "Design and analysis of experiments with R", the author used the following data (page 118) to explain methods to analyze Completely Randomized Block (CRB) design: Rat d0 d0.5 d1 d1.5 d2 1 0.6 0.8 0.82 0.81 0.5 2 0.51 0.61 0.79 0.78 0.77 3 0.62 0.82 0.83 0.8 0.52 4 ...
I got a dataset containing over 1000 features. I tried to find out the most important ones then apply them into model training. It seems I can achieve this by lots of methods, e.g., by examining confidence of linear regression, or by calculating importance directly in XGB classifier. My question is how to decide the be...
Machine Learning newbie here. My question is quite straight forward, does it make sense to fit simple logistic regression between each of my predictors and response, and then picking up the predictors that show significant relationship with the response for building my further models? I do understand that some of the...
$X$ is a random variable with probability density function $$f(x) = \frac{c}{(1+x^2)^m}$$ where $x \in \mathbb{R}$, $m \geq 1$, and $c = \frac{\Gamma{(m)}}{\left[\Gamma{\left(\frac{1}{2}\right)}\Gamma{ \left(m- \frac{1}{2}\right)} \right]^m}$. Show that $E\left[X^{2r}\right]$ exists if and only if $2r<2m-1.$ I am comp...
Background: I'm trying to follow Princeton's review of MLE estimation for GLM. I understand the basics of MLE estimation: likelihood, score, observed and expected Fisher information and the Fisher scoring technique. And I know how to justify simple linear regression with MLE estimation. The question: I can't underst...
The autoencoder is used for encoding features to vectors which are supposed to be more discriminative for classification or clustering. But how to measure the discriminative power of the code. Is there any way to quantify the discriminative power of code?
In the context of panel data analysis my key independent variable wage affects the response not immediately but rather over time. Therefore I would like to use some lagged values of wage $X_{it-1}$, $X_{it-2}$, $X_{it-3}$ ... I read that in order to avoid multicollinearity by using some Finite Distributed Lags one can ...
How to prove the test statistic of the Wilcoxon signed rank test is symmetric about its mean? I know that if I want to prove a distribution is symmetric, I need to show $f(m-t)= f(m+t)$ but $W$ doesn't have a "easy" pmf so I don't know how to do it. I tried a small number of $n$, and I can easily see that (by calculati...
I am a little confused in what to use for my outcome variable, when implementing the PSM technique in STATA. In brief, my study is looking at the abnormal returns (returns in food firm - returns in market proxy) in the food industry during some yearly event from 2000-2010. The food industry are the public US firms cla...
Let's say i train a RNN to predict some curve given only 1 timestep as input. So the input is x(t) and the target is x(t+1). On the next timestep the input is x(t+1) and the target is x(t+2) and so on. During training it can memorize the inputs from previous timesteps and thus make more accurate predictions and afterwa...
For my Bachelor-Thesis i want to model the international stocks of migrants from country $i$ staying in country $j$ in year $t$ in dependency of the minimal geographic distance between $i$ and $j$, their population sizes, their GDP and a couple of other values. I created a dataset that looks like this: 'data.frame': ...
I am wondering what approach is more accurate for estimating parameters between two different models of exponentially decaying signal data. The signal decays very rapidly and only a few samples can be acquired, i.e., a maximum of 8 over several milliseconds. The signals are acquired by a phased array of sensors and pr...
Is it a well known fact in basic econometric that, if one divides a sample based on the value of Y (Dependent variable), it creates a number of problems? My dependent variable is financial rating scores,ranging from 0 to 17, and I would like to split my sample into 1) the safer group with a score greater than 10 and 2)...
I'm using Keras to try and learn how to predict Depth from images. I have the NYU v2 dataset and was playing with some Neural Networks designs to see how each architecture can learn differently. I can feed a 3 x 120 x 160 Image (3 Channel RGB) into the network and after some convolutions I have 2 options in the final l...
Although I have worked out several possible approaches, am curious if anyone has a better best practice to recommend? I have a large set of customer events (online behavior: 1 mil. records, 20 standardized continuous variables, 8000 customers). I am seeking to identify unique clusters/groups of customers based upon ma...
I have a data set that looks like so: +------+------------+------------+ | Time | Brad Event | Gary Event | +------+------------+------------+ | 1 | N | Y | | 2 | N | Y | | 3 | y | N | | 4 | N | Y | | 5 | N | N | | ...
I need to know how to compute the second moment of a Chi-square distribution with the Moment Generating Function. I know that the second moment of the Chi-square distribution is given by $\mu'_2 = r(r+2)$. But when I try to derive it, I don't get this answer. This is what I get if I try it myself: Moment Generating Fun...
From http://marginalrevolution.com/marginalrevolution/2016/09/someone-give-doug-blog.html: Many trading signals reliably predict prices, but not strongly enough to overcome transaction costs (i.e. exchange fees, clearing fees, liquidity costs, etc.). A stock can moves up or down .01 in the next period, your trad...
I have quick look but I do not seem to find the answer to the following question. Basically, I get the following output when I run lm(): Call: lm(formula = y ~ as.factor(x1) * x2, data = data) Residuals: Min 1Q Median 3Q Max -13.7237 -3.4391 0.8872 3.7576 8.3555 Coefficients: ...
I was doing linear regression in R and Python and I got this doubt. Can a linear regression model with a single input variable x with x not significant but the model has a high $R^2$? Can this exist? If yes, what are the reasons? fit <- lm(y ~ x1, data=test1) summary(fit)
This question is Exercise 3.15 in Statistical Inference by Casella and Berger. It asks to prove that the MGF of a Negative Binomial $\mathscr{N}eg(r,p)$ converges to the MGF of a Poisson $\mathscr{P}(\lambda)$ distribution, when $$r\to\infty\,, \quad p\to 1\,, \quad r(1-p)\to\lambda$$ The formula I have for the MGF of...
Say we want to learn an efficient encoding of a function $f(\text{text})\rightarrow \text{Beta}(\alpha, \beta)$, where text is e.g. an URL. We want to do this for millions of URLs. That is, given a dataset made of millions of $\text{URLs}$ and $f(\text{URL})$'s, we we want to learn an efficient encoding $\hat{f}$ of $...
I got as far as distributing the summation across the Left Side so that I have: $$ \sum_i y_i^2 - \sum_i 2 y_i \bar{y} + \sum_i \bar{y}^2 $$ Not sure where to go from there.
I am having difficulty setting up this model matrix. I have been looking through some tutorials and questions online but I can't seem to find the answer to my problem. I am at the point where I have decided I probably have no idea what I am doing. Here is my sample table: structure(list(condition = structure(c(2L, 2L, ...
I have what seemed like a straight-forward analysis to conduct, but perhaps is not. I have two trait categories or sets - behavior, physiology of birds - that I wish to understand the relationship between. For the behavioral set I've measured three (somewhat related) variables, all quantitative. For the physiological s...
I'm trying to prove $E(\hat{\sigma}^2)=\sigma^2$, where $\hat{\sigma}^2$ is the error variance and $\sigma^2$ the population variance. I'm working on the following equation: $\sum \hat{u}_i^2=\sum(u_i-\bar{u})^2+(\hat{\beta_1}-\beta_1)^2\sum(x_i-\bar{x})^2-2(\hat{\beta}_1-\beta_1)\sum u_i(x_i-\bar{x})$ I'm having troub...
Yes, I know it's a big design flaw, but I'm analyzing data from the same sample collected over time (change in mean scores), but data are not matched by ID. What are my options? Will using ANOVA with time as the grouping variable with dependent samples only effect power (creating last of power) or also other statistica...
Given $S$ is a random variable that follows a normal distribution, the coefficient of variation of $S$ being $20\%$ and $P(S \leq 2) = 0.95$, how to find the $P(S\geq 2.5)$ ? Also, had this distribution been log-normal, instead of normal, how would the probability change in this case?
Let $Z\sim SN(\lambda)$ where SN means skew-normal. Then a random variable $Z$ have density function given by $$\phi(z;\lambda)=2\phi(z)\Phi(\lambda z)\qquad -\infty<z<\infty$$ where $\phi$ and $\Phi$ are the standard normal density and function. One of the properties of this density is Property: The density of...
Help please. I am trying to establish the overall probability that at least one of many parallel avenues of pursuit will lead to a successful, desired outcome. Please allow me to explain. A study has been done using regression analysis. I am searching files and history for that study now, but in essence, it is set up a...
I am trying to understand the IPython notebook here. The output of the GEE fit displays: ------------------------------------------------------------------------------ I(y>0.0) 3.1493 0.039 80.567 0.000 3.073 3.226 I(y>2.0) 1.9428 0.031 62.975 0.000 1.882 ...
In the Wikipedia page, you have the following definition for period: $k = \gcd\{ n > 0: \Pr(X_n = i \mid X_0 = i) > 0\}$ And, for a Markov Chain to be aperiodic, $k = 1$. It is stated that this happens only and if and only if there exists $n$ such that for all $n' ≥ n$: $\Pr(X_{n'} = i \mid X_0 = i) > 0$ Is there proof...
Consider the elastic net problem $$\min_x f(x) + \lambda_1 \Vert x \Vert_1 + \lambda_2 \Vert x \Vert_2^2$$ Is there a shrinkage operator for this objective function, similar to the soft thresholding operator for L1 regularization (which in this case would be $\text{sgn}(x) (\vert x \vert - \lambda_1)_+$)? To elaborate:...
Let $p_1, p_2, \ldots \sim \text{Dirichlet}(\alpha_1, \alpha_2, \ldots)$. What is the distribution of $\max(p_1, p_2, \ldots)$? I have searched for the order statistics of the Dirichlet distribution without success.
For Regression problem and loss function. It has a y(x) and t(target) variables. $$L(t_y(x)) = (y(x)-t)^2$$ in real world. what is the target variable represent? If you collect the data. How do you expect some target value? I have a trouble to under stand what is target variable in real world.( How you expect some targ...
I would like to perform a quantile regression of a autoregressive integrated moving average (ARIMA) model (p,0,q) of a stock return in R. My question is: how can I include the moving average process in the regression? I read I need to use rq (which is available in "quantreg" package) but I cannot follow the procedure f...
If we have 3 input vectors $\boldsymbol{y}_{1},\boldsymbol{y}_{2},\boldsymbol{y}_{3}$ let $\mathbf{y}=[\boldsymbol{y}_{1},\boldsymbol{y}_{2},\boldsymbol{y}_{3}]$. Based on this, I want to model $\mathbf{y}$ as belonging to a multivariate gaussian distribution Given that $\boldsymbol{y}_{1}$ and $\boldsymbol{y}_{2}$ are...
Everywhere I have seen, random variable is a numeric quantity. Is it a rule? Can random variable be a non-numeric quantity? Suppose I toss a coin. Can I declare my random variable X to be the outcome of the toss, i.e. X will take values from {'heads', 'tail'} rather than some numeric values like {0, 1}? If say random v...
The update algorithm for gradient descent is $$\theta_j = \theta_j - \alpha \frac{\partial}{\partial \theta_j}J(\theta)$$ $ \frac{\partial}{\partial \theta_j}J(\theta)$ have the unit of cost per unit $\theta$ but $\theta_j$ have the unit of $\theta$ and constant $\alpha$ is dimentionless, why is it valid that we can u...
I'm currently planning a study to prove my software is comparable to humans at some task. The setup is that I take an input $I$, and have both a human and a computer modify $I$ in th same way, producing $M_H$ and $M_C$. Later, I will present various experiment participants both $M_C$ and $M_H$, and ask them which is be...
I am doing analysis of time series of returns on various currency pairs, commodities and stocks in Python/R and I would like to compare the strength of cointegration and correlation (Spearman's) between the various assets. Basically I would like to show quantitatively that those two differ and how much for the correspo...
I want to build an index from, say, 13 variables. I run a PCA for these 13 variables to produce 13 principal components, 5 of which have an Eigenvalue of more than 1. While some researchers use only the first principal component as their index, this does not seem advisable here since PC1 only has a proportion of varian...
In the manual of the CT Simulation toolkit MSToolkit, a dose-response trial is evaluated using the following code: macroCode <- function(data) { # Is effect at highest dose significant? success <- data$LOWER[data$INTERIM==max(data$INTERIM) & data$DOSE==max(data$DOSE)] > 7 data.frame( SUCCESS = success ) } data i...
I'm trying to understand the result of the summary of the sem() function of the same package. The model is made using the data of a study conducted by Will Vincent. Here is the result: Now, I can use the AIC and BIC to compare one model with another, the parameters gam22, la11, lam22 are not significant and the norm...
How can I estimate mu and sigma of lognormal distribution from 1st k order statistics samples? I am not a pro in statistics but I have to get it done. Would greatly appreciate your helps.
I want to test if a behavior is influenced by population size. The former is measured as a continuous normal variable. The latter is estimated using Schnabel's method, and thus each sample has a standard error/ confidence interval associated to it. Does adding this standard error to the model improve its estimate? if y...
Right now I am working on a problem where I have sets of 5 profile pictures of people. I am trying to classify those pictures using a CNN which feeds into an RNN. As a whole the set of 5 images should fall into one class although there may be some outliers within the 5 (like someone who posts a picture of their dog r...
I'm trying to pick apart http://www.cs.toronto.edu/~rsalakhu/DBM.html Specifically http://www.cs.toronto.edu/~rsalakhu/code_DBM/rbm.m That file troubles me, because there is a 2* factor appearing for no good reason that I can see. It seems to be doubling up the pre-activation energy for the hidden layer. I've pulled up...
Can a sphericity test be done without doing a RM-ANOVA? My objective is to test whether the variance of the pairwise differencces are equal (by sphericity I mean this:https://en.wikipedia.org/wiki/Mauchly%27s_sphericity_test#What_is_sphericity.3F) In other terms: what are the conditions that have to be met in order to...
I want to perform a RMANOVA, are the subjects that the experiments are gonna be performed on, dependent?
If I look at a sequence of 100 coin tosses and I get 90 heads the probability of the coin being fair vs not fair is a lot lower as answered in a lot of questions already. But when I go from looking at 90 heads to the actual permutation of heads and tails, that permutation is equally as likely to be caused by a fair coi...
To briefly describe our experiment - a handful of individuals had blood taken, their blood was exposed to different infection combinations and then we measured the immune response at two different time points for each combination. As you would expect, there is large variation between individuals. Also, the time effect ...
I don't have a formal background in statistics, but I do have a PhD concerning factor anaysis which was awarded by a physics department. I am looking to do some affinity analysis of spares demand. I have data on repairs undertaken to equipment over a number of years, each repair requiring zero or more spares to complet...
I have data coming from an unusual design. 10 subjects were drawn to receive an experimental eye drop for reducing intraoccular pressure. One eye was chosen by random and the drops were applied. The intraoccular pressure was measured several times during the following 2 months. Then, after seeing that the effect was go...
I'm new to this area and I'm a little confused with the wordings (although I've done a few calculations including T-Score tests...) I just need to understand if the wording being used is correct. Consider this: There are only a few lecturers who actually deliver practical knowledge to their students. My question: Is it...
I am sampling responses which follow a Hill equation $E = E_0 + \frac{\mbox{Dose}\times\mbox{E}_{max}}{\mbox{Dose} + \mbox{ED}_{50}}$ where $E_0$ is the baseline effect, $\mbox{Dose}$ is the applied dosage, $\mbox{ED}_{50}$ is the dosage at which half maximum effect is achieved and $\mbox{E}_{max}$ is the maximum effec...
I have a probability question. We have a function $f:[0,1] \to \mathbb{R}$ that we would like to estimate. So we use the Bernstein polynomials and write: $$ f(p) \approx \sum_{k=0}^n f (\tfrac{k}{n}) \binom{n}{k} p^k (1-p)^{N-k}$$ Mathematicians would say this convergence is uniform on [0,1]. Nonetheless I noticed ...
Is it possible to compare in-sample and out-of-sample forecasts by calculating a MSPE for each? For example, my in sample period is say 12/1987-12/2015, and my out-of-sample forecasting period is 12/1993-12/2015 (I use an expanding window to forecast, with a burn-in period of 5 years to determine the initial parameters...