instruction
stringlengths
9
38.7k
I calculated log likelihoods for two times series models, a GARCH and a TGARCH. The GARCH model is nested within the TGARCH, and their respective log-likelihoods are: \begin{aligned} \text{LL_GARCH} \ \ \ &= 2.92 \\ \text{LL_TGARCH} &= 2.96 \\ \end{aligned} I calculated $-2\ln(2.92 / 2.96)$ to get a value of $.0272$,...
I have two stationary time series and want to know if the mean values are different. One practical application would be there are two motors and I want to know which one needs less energy in average - or I have one motor and make some maintenance work and want to know if the average energy consumption decreased afterwa...
I've got discrete data (highest education level achieved to be exact, where each level has an associated integer, from 1 to 7, with a higher number corresponding to a higher education level). The two peaks I'm expecting (for my population) is at A-levels and having completed a degree. Between them is having started but...
I am tasked to develop an anomaly detection system for data organised in many 1D (can be more than 1D if I choose, but I think that will complicate the problem even more) daily time series. The series are largely unseasonal, but they may have trends. I started with two simplest implementations, namely exponential time-...
So I have a time series which I cannot share with you all, but I have a few questions about the proper proceedings to fit the correct ARIMA model for my data. I have successfully written a loop to determine what degree of differencing needs to be done (parameter d in I(d)) Question: To determine p and q, I am looking a...
In my work, I am comparing "predicted" values to "theoretically true" values. To calculate one predicted value, I take some $N_{R_i}$ samples from an area in space, $R_i$ (i.e. the samples are from different locations in a region). I do some calculations on the samples to calculate a predicted value for each sample. Th...
Looking for a bit of help on how to construct an equation for a linear model when there's a covariate involved. I've been doing a simple lab assay where an absorbance measurement of an indicator can be compared back to a calibration curve of known concentrations of a reaction product to determine the concentration in t...
My expected and observed tables look pretty similar, so I wouldn't have expected to receive a p value of 0.0. I guess one potential problem could be that a few of my expected and received numbers are less than 5. Some are even less than 1. Could this be causing the 0.0 p value, and if not, what else should I be looking...
I know about the benefits of regularization when building predictive models (bias vs. variance, preventing overfitting). But, I'm wondering if it is a good idea to also do regularization (lasso, ridge, elastic net) when the main purpose of the regression model is inference on the coefficients (seeing which predictors ...
Suppose I have a random variable $X \sim Unif(0.61, 0.79)$ and now I'm interested in the mean and variance of $Y \sim \log X$. I can easily calculate the mean using the equation, $$ E(g(X)) = \int f_X(x)g(x)\,dx $$ where $f_X$ is the pdf of $X$. For my case this boils down to, $$ E(g(X))=\dfrac{1}{0.79-0.61} \Big[F(0...
Supposed I have $n$ coins and I'm interested in finding the $k < n$ coins which have the highest odds of coming up heads and I want to know $p(heads)$ for each of these $k$ coins. Assume that I'm going to select the top $k$ coins using the maximum likelihood estimate of $p(heads)$ on a finite sample of observations (so...
I have this time series (utilization of app by day of an user) And this fourier transform of the above time series How can I extract one number that express the mean frequency of this time series? It would be related to the weighted mean, or the harmonic mean somehow?
Imagine a simulation experiment in which the output is n total numbers, where k of them are sampled from an exponential random variable with rate a and n-k are sampled from an exponential random variable with rate b. The constraints are that 0 < a ≤ b and 0 ≤ k ≤ n, but a, b, and k are all unknown. Further, because of ...
I have a random sample from population. I want to prove/un-prove that median/mean value of top x% of random sample represents the median/mean value of top x% of population. I have two questions: How to decide the sample size to test above. What are the relevant statistical tests that can help me to conclude this.
Having read this question and this link, I already know that model.matrix can help convert data frame with factors into a design matrix. My question is if you pass this model.matrix into glmnet or cv.glmnet function with the argument standardize set to TRUE, it still scales those dummy variable columns, am I correct ?...
How does Euclidean-norm in K-means cause it to have linear decision boundaries? The Euclidean-norm is a non-linear measure between two points, then how does it make the boundaries till linear?
I'm calculating S Where S = (A - B)/A A = 778 ± 30 (value ± percent error) B = 388 ± 12 (value ± percent error) I want to report the error in S as S ± error. I have checked several online resources. I found many equations of how the error of propagation is derived but I couldn't find a specific equation that help me...
I'm experimenting with a number of models for a binary classification problem. To evaluate the performance of each model, I've used 10x repeated 10-fold cross validation to calculate the PR AUC (Area Under the Precision-Recall Curve), and a number of other metrics. My professor would like me to report the confidence i...
Let $X$ be a random variables with continuou cdf $F$ in the support $[a,b]$. Let $Y$ be another r.v. with cdf $G$, which is continuous in $[a,b)$ and has an atom at $b$. $X$ and $Y$ are independent. We also have $E[X]=E[Y]$ and second order stochastic dominance $$\int_a^k F(t)\,dt \leq \int_a^k G(t)\,dt, \ \ \ a \l...
I'm running a simulation where, for every iteration $i$, I get a detection probabilities $P_i$. Because of the law of total expectation, I think the overall detection probability (i.e. marginalizing over all iterations) is just the average, $\langle P_i \rangle = 1/N \sum P_i$. But how do I calculate error-bars (lets...
I am new to neural networks can any one explain what is the intitutive thought of dot product and why it is used in neural network
For my thesis I would like to compare different supervised machine learning algorithms based on their AUC score. My supervisor pointed out to also report the confidence intervals (CI) of the AUC scores. He told me that there is an article in which they calculate the CI based on the positive and negative samples in the ...
Many of the Bayesian hierarchical models that I am studying use a Markov chain as the model. These hierarchical models use different MCMC techniques to sample low-level and high-level parameters. My question is: does using different MCMC techniques for different parameters affect the ergodicity/convergence of the Marko...
i'm currently working on a mutlilevel anaylsis for my assignment. I am new to R and hope that someone can help me out. I did a survey to collect the data I need. I have 184 participants, where approximately 59 are men and 125 women. It has to be a multilevel analysis because its a diary study (it happens that one ID ap...
So I have ordinal data that is marked as strongly agree, agree, neither agree nor disagree, disagree and strongly disagree and two different groups which I am comparing. I have used a mann whitney to see if the groups are significantly different. Now I would like to see if this difference is still significant when adju...
I'm looking at a metadataset of studies of the yields of genetically modified crops. For each study, I have one or more reported findings (increases in yield due to genetic modification), and some study-level metadata: crop species (one of maize, cotton, or soybeans), country type (developed or developing), GM event ...
I have this model: $a_i=mod(\lfloor i\cdot T+Normal(0,\sigma_a)\rfloor,Q)$ $b_i=mod(\lfloor a_i+D+Normal(0,\sigma_b)\rfloor,Q)$ with $i=1..N$ $N\in\mathbb{N}$ $Q\in\mathbb{N}$ $T\in\mathbb{R}, T\gt0$ $D\in\mathbb{R}, D\gt0$ $D\gt T$ $Normal(\mu,\sigma)$ is a random number drawn from a Normal distribution with mean $\mu...
I want to get the P-value of two randomly distributed observations x and y, for example : > set.seed(0) > x <- rnorm(1000, 3, 2) > y <- rnorm(2000, 4, 3) or: > set.seed(0) > x <- rexp(50, 10) > y <- rexp(100, 11) let's say that T is my test-statistic defined as mean(x) - mean(y) = 0 (this is H0), the P-value is then ...
I am trying to build a Convolutional Neural Network (CNN) from scratch to learn its basics. However, I haven't found any information about how the weights from the kernels get updated in each iteration using backpropagation. The only explanation I found on the internet was this one but I'm not sure if that is right or ...
I have stumbled upon the term inlier in the LOF measure (Local Outlier Factor), I am familiar with the term of outliers (well basically liers - instances which doesn't behave as the rest of the instances). What does 'Inliers' mean in the context of anomaly detection? and how it is related to (different from) outliers?...
Normally in machine learning we use derivatives in-order to optimize a cost function . But I saw monte carlo optimization method which uses integrals in-order to optimize specially in reinforcement learning problems and some sampling problems ? What is the difference of these two types ?
I am trying to understand how to test for the goodness of fit in GLM regression. I am using an example from the book Davison and Hinkley (1997). In R, they fit the following model: data(cane) # this dataset is available by default cane.glm <- glm(y ~ block+var,family=binomial,data=cane) summary(cane.glm) Then they wri...
I'm stuck with an assignment, hope you guys can help. Question: Show, that there exist random variables $X,Y,X',Y'$ on a Probability Space $(\Omega, \mathscr{F},P)$, so that $X$ and $Y$ are not independent, $X'$ and $Y'$ are independent and $P_X = P_{X'}$, $P_Y = P_{Y'}$, $P_{X+Y} = P_{X'+Y'}$. It's the second part of ...
i want to calculate the p-value of a statistics test using R. I'm aware of the existing function t.test(x) but what i want to do is to determine the p value through monte carlo simulations. Therefore i defined this code: mean.test <- function(x, y, B=10000, alternative=c("two.sided","less","greater")) { p.value <- 0 a...
Suppose that $Z \sim \mathrm{Bern}(p)$ and $Y_1,Y_2 \sim \mathcal{N}(0,1)$ be Gaussian random variables and let all of them be independent. Suppose I am given samples from the following random variable $X$ defined as $$ X= Z + \frac{Y_1}{ Y_2}. $$ Notice that $X$ is a Cauchy centred at $1$ if $Z=1$ and $0$ if $Z=0$. So...
I'm preparing Dell EMC Associate data science certificate. The following is one of the mock questions and I'm having problem to calculate it by hand and need help. The correct answer is $Y=1$, $probability = 4/54$ and $Y=0$, $probability = 1/54$ However, I'm not able to get correct answer. Consider the training data s...
MLE (maximum likelihood estimation) can be defined mathematically for discrete or continuous variables. But there is a technical specificity about variables being neither discrete nor continuous. Instead they are a mixture of discrete and continuous. More precisely: Assume you have a model with a parameter $\theta$ and...
In the 2-layer neural network with cross entropy loss for softmax hidden layer, why do I get 2 different answers when applying chain rule in 2 different ways? Please help me correct method#2; I am going crazy: Given: $$ C = \sum_iy_ilog(\hat{y_i}) $$ $$ \hat{y} = softmax(z) $$ $$ z=xW+b $$ Method # 1 - Gives correct, t...
I have a Twitter dataset that has both the tweets themselves, but also metadata about the user as number of tweets, date of creation, and other numerical values. How can I make predictions based on the whole information instead of text OR numbers? What I did.. but I´m not sure if it´s ok is the following: Made a "bag ...
I'm new to Cross Validate, so sorry if I make any mistakes in my question. Any correction/advice would be welcome. My doubt is a rather basic one, but I'm strugling with this idea. Supose I have some set of data and that I estimate a univariate nonparametric density estimation over some empirical variable Z, returning...
Suppose we have 3 groups/events (M1, M2 and M3) with their own features (A..H). And then this new guy comes along with one feature (F) for now. What is the probability of this new guy belonging to each of the groups in the future? Any help or even hint as to what branch of statistics this question belongs to is appr...
In this question, we will further investigate the geometric distribution. Let X, Y be i.i.d. geometric random variables with parameter p. Let U = min{X,Y} and V = max{X,Y} − min{X,Y}. Compute the joint distribution of (U,V) and prove that U and V are independent. [Hint: If X ∼ Geometric( p) and Y ∼ Geometric(q) are ind...
I have tried different search queries in google but could not find an answer. What type of chart is this?
I'm reading Pattern Recognition and Machine Learning by Bishop (p526) and I've been trying to understand this: Suppose that $z$ is uniformly distributed over the interval $(0, 1)$, and that we transform the values of $z$ using some function $f()$ so that $y = f(z)$. The distribution of y will be governed by $$p(y)...
I was working through creating a simple face recognition system by first creating eigenfaces. At the very end of the wikipedia article, it mentions that the first three principal components are due to lighting variation and should be disregarded. My question is, if we drop the first three components, what is the correc...
From taking some online linear regression courses (Stanford Machine Learning and John Hopkins Linear Regression) it seems that there are at least three ways of finding a the coefficients of a linear regression: Minimizing the r^2 error using gradient descent (or other optimization function) Solving for the coefficient...
Solomonoff Induction is considered the gold standard for machine learning because it can learn causal structure with the minimum error. However its chief component, the Kolmogorov program representing the data being modeled, is incomputable. Therefore approximations of the Kolmogorov program are necessary. When the d...
In the week 5 lecture notes for Andrew Ng's Coursera Machine Learning Class, the following formula is given for calculating the value of $\epsilon$ used to initialise $\Theta$ with random values: In the exercise, further clarification is given: One effective strategy for choosing $\epsilon_{init}$ is to base it on ...
I am building an image classification network in tensorflow(several convolutional layers and fully connected layers, then softmax cross entropy, optimize using Adam with a learning rate of 1e-4). Without dropout, I can get a pretty good performance. Though the loss is still very high, even the in-sample error approache...
In simple linear regression: $$Residuals = \hat{Y} - Y$$ We can derive that: $$Var(Residuals) = Var(\hat{Y} - Y) = (I-H)\cdot\sigma^2$$ ($\sigma^2$ is the variance of $Y$) (See derivation of Var(residuals)) So my question is: Since $h_{ii}$ (diagonal elements in H) is different for each $i$, how come the $(I-H)\...
Consider a full-rank $n\times p$ matrix $A$ and $b\in\mathbb{R}^p$. If $n<p$, I want to minimize the norm $||x||^2=x_1^2+\dots+x_p^2$ over $x\in\mathbb{R}^p$, subject to the condition $Ax=b$. So, since $n<p$ there is not a unique solution to $Ax=b$ and we want to find the smallest one. Also, the condition $Ax=b$ is eq...
I am looking at the formula on this page, it says the formula for estimating the sample size of a survey is: $$Sample\;size = \frac{\frac{z^2 \;\times \;p(1-p)}{e^2}}{1 + (\frac{z^2 \; \times \; p(1-p)}{e^2N})}$$ where - $e$ is the margin of error - $N$ is the population size. I have the following questions: What does...
If I'm understanding rejection sampling correctly, it's a way for us to sample a distribution that is difficult to directly sample. In order to apply rejection sampling of a distribution $p(z)$, we set $p(z) = {1 \over Z_p}\tilde{p}(z)$. From there we create a proposal distribution $q(z)$ and find a constant $k$ such t...
At this point in a Coursera Machine Learning lecture on implementing neural networks, Andrew Ng says: To implement back-prop, usually we will do that with a for-loop over the training examples. Some of you may have heard of frankly very advanced vectorization methods where you don't have a for-loop over the $...
Let $X$ be a random variable with an $n\times n$ covariance matrix $A$. Then $A$ is symmetric and positive semi-definite, and it has real and non-negative eigenvalues. Also, if none of the components of $X$ is a linear combination of the other components, then $A$ is positive definite. Equivalently, it has only strict...
I wrote an algorithm that categorizes a large set of electrophysiological data, way more than I could go through per hand (think over 10.000 cells). I want to take randomly drawn sample cells out of this population, categorize them manually and control if the algorithm works correctly. Is there any test that determine...
I have data from an industrial batch process.The problem is that the batches duration are not always the same. To illustrate the issue, here is a simple example for illustration only: consider two sequences A and B . A: t 1 2 3 4 5 y 0.1 0.2 0.05 0.01 0.2 B: t: 1 2 3 4 y 0.1 0.35 0.4 0.199 My ...
Let joint probability density function $X_1, X_2$ be $$f_{1,2}(x_1, x_2) = 2e^{-x_1-x_2}I_{(0<x_1<x_2<\infty)}$$ When $Y_1 = X_1/X_2, Y_2 = X_2$, (a) Derive PDF of $Y_1$ (b) Derive $E(Y_2 \mid Y_1)$ and $Var(Y_2 \mid Y_1)$ For the (a) I had used Jacobian Transformation and get joint pdf of $y_1$ and $y_2$ which is ...
I have 3 time series X1, X2, X3. I want to find the coefficient (c1, c2) that will minimize the distance between them as follow: $$MIN\sum\sqrt{(X1-(c1*X2+c2*X3))^2}$$ The constrains are: $$-1< c1,c2 < 1$$ How can I do it in R?
I'm trying to measure the effect of an in-store media campaign on the sales. I have sales data along the time for test (treated) stores and control (not treated) stores. Before comparing test and control, I have to rule out the price change and promotional factor for both time series. The decomposition of the time ser...
I am developing a predictive model using Accident and Emergency Data. I am aiming to predict which patients will go home or stay in hospital. I have available over 10 years of data that can be used to build a model. Well over a million observations. However in that 10 years there have been many changes in A&E procedure...
I have a bunch of word embedding models trained on a corpus. I want to do qualitative analysis of the words for a research paper. I have the following in mind: 1. sample 5-10 words 2. get "most similar" five words for these sample words. 3. Ask some reviewers to rate each word from these "most similar" as similar fro...
I'm using Support Vector Machine in a project. The library chosen is SVM light of Joachims: http://svmlight.joachims.org/ I have the need to calculate the margin. Namely, given a training set of data I have to calculate the margin of the better hyperplane found. But I do not see a direct way to do this in svm light...
I am testing for normality. I have 5 subjects. I am looking to see the distribution for my baseline data. The normality score that I got for SW and KS contradict each other. SW said m data is normally distributed while KS says otherwise. How can this happen? What does it mean? And what should I do? Do I choose and pick...
 Intro Background Within a convolutional neural network, we usually have a general structure / flow that looks like this: input image (i.e. a 2D vector x) (1st Convolutional layer (Conv1) starts here...) convolve a set of filters (w1) along the 2D image (i.e. do the z1 = w1*x + b1 dot product multiplications), wher...
I am stuck trying to solve the following problem I can do the first part, but I am struggling to find the test in the second paragraph. So far I have: $$ L(H_0, H_1) = 3^n\textrm{exp}\left(-2\sum_1^n x_i \right) $$ which is decreasing in the statistic $$ T(\mathbf{X}) = \sum_1^n X_i \sim \textrm{Gamma}(n, \theta) \sim...
I have a sample with a sample size of > 50,000 (With a mean of 0 and a known standard deviation). Now, I'm picking a subsample of the bigger sample with a sample size of 5,000 (With a mean of 2 and a known standard deviation). The goal is to find out, if the mean of the subsample is significantly differnt to zero (not...
I'm clear on the following: If there are two different samples, and you wish to test whether they come from the same population we go with an unpaired t-test. If it is a single sample and we are measuring a scenario of before/after and wish to compare the significance of the results we go with a paired t-test. However,...
I was checking Kaggles Titanic problem and a common feature processing is playing with Parch (number of parents) and Sibsp (number of siblings/spouses). First they take it as they come. Then they mix the two in TotalFamily (Sibsp + Parch) Finally they transform the categorical TotalFamily in a binary variable TravelsA...
x ~ N(a,b), y ~ N(c,d). x and y are independent Random Variables. I am trying to compute this expectation:- E[f(x,y)]..... x Where f(x,y) = y if (x-y)>0 f(x,y) = x, if otherwise The way I was thinking is E[f(x,y)] = yP((x-y)>0) + x(1-P((x-y)>0)) P((x-y)>0 is something I can compute from the distributions of x and y, b...
I am reading this thesis on Bayesian modelling explanation and there is a statement (section 2.1) there which I can't understand: Here we have a regression problem, where $X$ are our inputs, $Y$ are outputs and $\omega$ are model parameters. Why we have $p(\omega)$ instead of $p(\omega | X$)? If we apply Bayes rule to...
In Hastie's Elements of Statistical Learning, in the chapter about linear regression, it is stated that A price is paid in variance for selecting the best subset of each size; forward-stepwise is a more constrained search, and will have lower variance but perhaps more bias. This seems intuitive, as best-subset can r...
In the paper on ResNet, authors say, that their 152-layer network has lesser complexity than VGG network with 16 or 19 layers: We construct 101- layer and 152-layer ResNets by using more 3-layer blocks (Table 1). Remarkably, although the depth is significantly increased, the 152-layer ResNet (11.3 billion FLOPs) s...
I have a process which goes as follows. Products are ordered, and they are created at two terminals. Terminal A makes, say, green widgets. Terminal B makes, say, blue widgets. A customer may order as many of any combination of green or blue widgets. Recorded is the time it takes the customer to receive his order a...
I am very new to Time Series Analysis (together with R). I have been practising with some very simple datasets to understand how to decompose the time series into Trend, Seasonal and Error components and then check whether the Error component is Gaussian or not. Till this point, everything is pretty much clear to me. H...
brand new to statistics, but trying to develop a statistical plan for a class project (Biostats 1) I have a continuous, normally distributed outcome measure that I want to measure at baseline in the control and intervention groups, and then again after the intervention. I was told that because there is likely correlati...
Is there ever a good case to use a hard margin SVM? It seems far more likely to overfit and doesn't seem computationally faster than a soft margin SVM, so there doesn't seem to be any reason to ever use it.
I am working on a sequence classification problem and have a pretty large dataset (100k examples). The inputs are binary vectors of length 100 and the output is a binary yes/no vector. I have tried several different architectures including fully-connected feed-forward NN, CNN and RNN. The problem is that after choosing...
There is a huge number of posts saying that an imbalanced classes are bad. And only half explains it in terms of recall-presicion scores, meaning that accuracy can be high but F1 score low. What I do not understand is that why RF might perform bad on imbalanced class? I can train my model with respect to F1 score, ac...
I'm reading a scientific article that's investigating whether some prehistoric human populations had differently shaped long bones. The methods are as follows: Define 21 features of arm long bones. For example, the "robusticity index" is defined as the ratio of the bone's perimeter at the center and its total length: ...
Let's say I have a large dataset of counts of all the fruits stored in the U.S. by State for a certain snapshot in time. Fruit Alabama Alaska Arizona . . . . US total Apples # # # # Cherries # # # # Grapes # # # # Oranges # ...
I have two logistic nested models $\log\dfrac{p_i}{1-p_i}=\beta_{0}+\beta_1 x_i$ and $\log\dfrac{p_i}{1-p_i}=\beta_{0}$ How can I construct the kullback leibler divergence between two nested logistic regression models? Can I use the estimates of $\beta_0$ and $\beta_1$ to calculate KL divergence between these two l...
Suppose I have $N$ units in an observational study with treatment and control and I just computed the propensity scores for each. If I find that the propensity scores are clustered, ie, the first 10 units share the same propensity score, then the second five share the same propensity score, etc, what analysis can I dra...
I am trying to understand pigeonhole principle and I am trying some random queries to further my understanding (https://en.wikipedia.org/wiki/Pigeonhole_principle) In pigeonhole principle, what is the expected number of holes which did not have any pigeons? How do i get an intuition around this? Thanks
I did a normality test for my data and as usual, SPSS will give both Shapiro-Wilk and Kolmogorov-Smirnov numbers. Is it okay if I choose to use only the number from Shapiro-Wilk? because the number from SW is the ones that showed significant level (0.183) while KS is not (0.046). is there any references that I can use...
I'd like to ask if the below computation of the information number for the CRLB is correct: Consider $x_1, x_2$ as iid $\sim Geo(\theta)$ Since $x_1, x_2$ ae iid and the geometric distribution is part of the exponential family, the information number is $-nE_\theta(\frac{d^2}{d\theta^2}lnf(x|\theta))=-2E_\theta[\frac{d...
I have a dataset of 400k rows, but even then, about 10% of my expected values are less than 1. Does this make the results of my chi squared independence test completely worthless? And if so, are there any alternatives that would fit my specific situation? Am I allowed to just multiply the dataset by some number to mak...
After learning a little bit about RL and Q-Learning, I am a bit puzzled at why it seems that for many forms of learning scenarios, there does not seem to be a "state". I understand that if we wish for a robot to navigate around a maze, each position in the maze is a state and the robot has a selection of actions {up, d...
I calculated the waist-to-hip ratio from, well, waist and hip measurements in cm. The ratio's values would come out in the range of 0.8-1.1, for my population. When I performed a univariate cox proportional hazards regression for the time to incidence of diabetes, I got a stupidly high hazard ratio: 146.4. The risk ra...
I am working with data that was taken by similar machines. These machines apparently were calibrated slightly differently, thus the data is a bit different. Using the same features, and the same algorithm, I get higher results by learning each data set separately, rather than trying to combine both sets. Is there a met...
How can I simulate the data for the variable Y in R,.suppose I have Y1=rpois(n,u), Y2= ruinf(n,0,1) , z=y1+y2 and a=0.5 and then I want to simulate the data for the same variable as Y=Y={log(Z-a) if Z-a>0 log(e) if z-a<=0}. then how will i do it?
When using t test normally we would assume the original data follows normal distribution, but if the sample size is large enough, this assumption can be ignored due to Central Limit Theory. I thought since normal distribution is for continuous random variable, even if the data does not have normality, it at least must ...
I am trying to get a forecast for the rest of 2017 based on 5 years of daily historical data. Im having issues with the weekly seasonality I am trying to use the auto.arima function (with xregs). my issue is that the weekly seasonality captured by the model is well captured in the near future forecast but decays as the...
In Gradient boosting tree algorithm we fit the negative gradients to the data via a regression tree to identify the regions in each iteration. We use least squares for fitting the tree to the negative gradients. ie. for mth iteration we fit the Tree that minimises, gradient = for loss function and given the region...
I have a SEM built with lavaan and I would like to assess spatial autocorrelation. I found this code written by Jarrett Byrnes that does exactly that: http://www.imachordata.com/space-and-sems-2/ However in this page there is warning that as of 2016/10/1 lavaan is not producing correct errors. I browsed lavaan's develo...
While reading the paper Anomaly Detection over Noisy Data using Learned Probability Distributions, I think I have discovered a mistake. On page 3, right column. They say (italic text between brackets is mine): We measure how likely each element $x_i$ is an outlier (an anomaly) by comparing the difference change in t...
The question is on the mathematical details of the convolutional neural networks. Assume that the architecture of the net (objective of which is image classification) is as such Input image 32x32 First hidden layer 3x28x28 (formed by convolving with 3 filters of size 5x5, stride length = 0 and no padding), fo...
Let us suppose that we want to know what weather will be tomorrow. We ask two meteorologists and both give us an identical probabilistic answer: It will rain with probability of 30% It will snow with probability of 60% It will be sunny with probability of 10% Now, there are many different approaches to aggregation ...
I've seen this term several times already, and have no idea what it means, can you explain what it means ?
I would appreciate if someone could give me a idea on what I could possibly infer from a residual vs fitted plot for a non linear regression. If i have understood residuals correctly it would indicate whether or not my model predicts the data well. In the figure I have plotted the sinc fit to the data and the actual d...