instruction
stringlengths
9
38.7k
I learned in this question's comment by @amoeba that Also, the difference between "building separate models" and "using categorical variable" is not clear to me. activity ~ condition + species + condition*species - this uses species as categorical variable, but this is fully equivalent to a separate regression activi...
Given a data set of N points with sample mean $\overline{x} \pm \Delta\overline{x}$ (here $\Delta\overline{x}$ is the standard error of the mean given by $s/\sqrt{N}$) and sample variance $s^2$, I am required to test the hypothesis that the data set is approximated by a Poisson distribution. I consider the ratio $\fra...
Please look at the following simple example of how to fit a GAM to a data set using one spline, library("ggplot2") theme_set(theme_bw()) library("mgcv") df <- data.frame(one = 1*(1:20), two = c(1,6,2,8,7,4,9,8,5,4, c(1,6,2,8,7,4,3,8,5,4)/2)) m <- gam(two ~ s(one, k = 8, pc=5), data = dfOne) dev.o...
I want to analyze my data with linear regression (please see below a subset), but the results do not look realistic and the assumptions are not met. The problem is that I have negative and positive values, I've been struggling trying to find a transformation. I've tried already boxcox,9th root, transformations from pac...
I have a data integration problem between two data sources (lets call them A and B), I have applied three functions(for the three attributes of every instance) in order to calculate the similarity between two instances a and b of each data source. Every function returns a similarity coefficient, a number in R between [...
I have a pretty basic doubt about the KS test (two samples). From what I understand: We reject null hypothesis, under the confidence parameter $\alpha$, if the p-value (that is, the probability that the statistic takes a value $\geq$ observed, under the null hypothesis) is $\leq \alpha$ (Typically, $\alpha$ is set t...
I tried to do xgboost native cv function and found that the auc score depends on num_boost_round parameter of cv function. When num_boost_round increases auc score also increases! Why is that? What is the optimal value of num_boost_round and why?
It seems to me that all the robust ancova functions in the Wrs2 package in R work only with two groups ( two levels of the VI factor). In case the factor has more than 2 levels how can a user apply a robust ancova? Does any other formula with more than two groups or something else exist?
I'm reading an open-source statistics book and I came across this quote: In multiple regression, the degrees of freedom associated with the variance of the estimate of the residuals is $n - k - 1$, not $n - 1$. For instance, if we were to make predictions for new data using our current model, we would find that the un...
Is there a simple way of explaining why does Benjamini and Hochberg's (1995) procedure actually control the false discovery rate (FDR)? This procedure is so elegant and compact and yet the proof of why it works under independence (appearing in the appendix of their 1995 paper) is not very accessible.
I remember that Pearson correlation works for continuous variables and also if one is continuous and the other a dummy. For the latter, it does not provide a correlation but provides a portion. What is the best approach, when we have 2 dummy variables. Would you suggest to calculate correlation for them or what is a go...
I would like to calculate the variance of household income in a city. Income data at the individual household level,however, are not available from Census. What we have are categorical income data at the city and census tract levels (number of households in each income interval). Is there a way that I can estimate the ...
Say I have a population with classes c1 and c2 where size(c1) >> size(c2) Does the SVM suffer from imbalanced classes sizes where I need to manually correct the training procedure?
William Cochran's book on sampling gives the following proof that a sample mean is unbiased: Since every unit appears in the same number of samples, it is clear that $E[Y_1 + \cdots + Y_n]$ must be some multiple of $y_1+y_2+\cdots+y_N$. The multiplier must be $n/N$ since the first expression has $n$ terms and the sec...
I have a large dataset -- 300,000 records, each representing a customer-- and a variable holding their incomes. Since there were missing values, I used the Multiple Imputation Chained-Equations method (Mice in R) to impute missing values. I got 10 datasets imputed from the original dataset. When I plotted the densities...
I have a data set of a number of different variables that relate to the performances of footballers in matches. Examples include Accurate Passes/90 mins, Crosses/90 mins and Headers/90mins. Rather than taking the actual value in each column, I have replaced it with a rank. So, given there are 100 footballers in the dat...
If $X\sim P$, given some other distribution $Q\gg P$ what is known about $\mathbb{P}(P(X)< Q(X))$, i.e. the probability the outcome was more likely to have come from $Q$? In particular are there any bounds on the quantity in terms of statistical distances?
I have performed PCA on gene expression data having 20,000 genes (these are my variables). All values are positive. The PC1 scores for some of the patients (out of 1089) are as follows: -158271.26229 12962.73772 19410.42314 324372.09441 410186.46224 140222.21492 158159.11682 -224566.35112 -158070.07088 ...
I am a beginner trying to learn statistics. I have a questions related to randomising simulations to accept or reject null hypotheses. A random experiment was conducted with 48 bank managers to determine if there is a gender discrimination at the work place. There were 48 IDENTICAL RESUMES, 24 of them belonged to mal...
I have a spectrum data (wavelength(x) versus absorption(y)) for 25 unique samples that is almost exactly to the problem presented in this thesis: https://brage.bibsys.no/xmlui//bitstream/handle/11250/2371385/12296_FULLTEXT.pdf?sequence=1&isAllowed=y. I have about 10 samples that are one kind of biological sample and ...
Background: I am trying to understand (via plotting) the difference between (a) Likelihood Function, and (b) Log-Likelihood function from 3 data points (i.e., 250, 265, 259) believed to have come from a normal density ($\mu$ of this normal is to be estimated). Question: I am wondering which version(s) of the plots belo...
I read that when adding variables or predictors to the multiple regression model, R^2 tends to go up even if the variable or predictor doesn't add any predictive power. Why is this? In linear regression, I understand $R^2$ to equal: $$R^2 = 1 - SSE/SST$$ Why does this go up when we add a new variable or predictor to ...
I have a classifier model working with p predictors -- with a reasonable level of success. I have tried my typical feature engineering tricks but the classifier performance is stubbornly stuck -- this has been a bit unexpected. I want to explore variable(predictor) interactions to try to further improve the performance...
I am doing a research and I need to determine the effect of adapting to climate change on farm productivity and income. My methodology is to compare the productivity and net farm income of farms that adapt to climate change with farms that do not adapt. What I did was from 37 respondents that adapts to CC and from 23 r...
One video on youtube removes non-significant lags from the ARDL regression while others keep all the non-significants too and rely on Wald test for effects. My questions are as follows: While using multiple regression analysis we use General to Specific procedure and keep dropping non-significant variables to reach at...
I would like to ask for a piece of advice on the following problem. I have a set of points that can behave as a sawtooth-like function. I would like to develop an algorithm that could verify that the data shows sawtooth-like behavior. The problem is that in some cases the dots can be random, in other case, there can be...
I read a lot about replay memory, but did not find the material, where this method is described in detail. Tell me, please, do I understand the algorithm correctly? And if not, tell me, please, where I'm wrong. Store the experience in the replay memory (size N), until it is full. When memory is full, fill the buffer ...
Let's say I'm simulating the result of a tournament where 4 teams play each other, for a total 6 games. They get, say, 1 point for winning and 0 points for loosing. I want to get a sense of the end distribution. For example, the probability that team B finishes at least third. The sample space is finite and is a list o...
I have this nice script to plot a regression line based on the regression equation, easy to use when you want visible results from multilevel regression analyes. This works fine for one line in one plot: my_line <- function(x, m, b){ y <- m*x + b; return(y) } #the line y = .045x + .018 sapply(1:10, my_line, m=.045,...
In a 2013 review article in Nature Neuroscience, Button et al. Power failure: why small sample size undermines the reliability of neuroscience, it was stated that: the average statistical power of studies in the neurosciences is very low They searched for meta-analyses, calculated the post-hoc power in each one of ...
I'm getting my information from Overview of Analytic Studies. It says that in a case-control study, you can not compute the probability of disease in each exposure group because you don't have the total amount of people in your population. But you just made a new population for the case control study - why not use this...
I have a set of inputs $X = x_1, x_2, ..., x_n, \ x_i \in \mathbb{R}^k\ \forall i$ (where $k$ is an integer) with associated responses $F = { f_1, f_2, \dots, f_n },\ f_i \in \mathbb{R} \forall i$ and a matrix of associated gradient information $\frac{dF}{dX} = \frac{df_1}{dx_1}, \frac{df_2}{dx_2}, \dots, \frac{df_n}{...
In the context of one-way MANOVA testing (one factor with multiple levels of treatment), after we've rejected the null hypothesis of no difference in means between groups (levels), i.e. after we rejected $$H_0: \forall_i \boldsymbol\tau_i=\mathbf{0},$$ it's advised to check for confidence intervals (CI) for pairwise co...
Basically, I've a simple question: Are there signs which tells me that I just can't classify my data? To make things clear, I've a dataset whereby i try to predict the amount of tires changes. But something tells me that this will be quite hard. For example, here is a sneak peak of my training set. 2148 -- 0 tires ch...
Example Data: GENDER <- c("m", "f", "f", "m", "f", "f") YEAR <- c("1", "2", "3", "2", "1", "3") SCORE <- c(23, 25, 26, 23, 19, 29) as.data.frame(cbind(GENDER, YEAR, SCORE)) Multiple Linear regression with interaction: result <- lm(SCORE~GENDER*YEAR) summary(result) I want to carry out a multiple linear regression ...
I understand the EM algorithm and know there are other optimisation algorithms. However, I have seen that with a mixture copula, EM algorithm always seems to be used. Is there any reason why EM algorithm is such a commonly used method for mixture models in general and for mixture copula in particular?
I have a convolution neural network with random weights initialized and Trained to perform binary classification. I have 2000 images as training data and 2000 validation data. The problem I am trying to solve is if the image is healthy or not.The loss function used is categorical cross entropy. I have implemented the ...
This is a beginner question, hopefully this is allowed here. I understand that scatterplots can be useful in showing the relationship between two variables, so I generated several plots of the independent variables i'm interested in in their respective relationship with the dependent variable. However, my final regress...
i have a data set on length of stay in the hospital and it was fitted to two parameter gamma distribution. from the data, i was able to obtain the MLE estimates of alpha and beta and the moment estimates of alpha and beta. now i want to compare the two estimators i.e MLE and Moment estimator using the MSE but i do not ...
Suppose that we train some Deep Neural Network and during the training (forward-backward passes) phase, we use Leaky ReLU as our activation function. During the evaluation, when we show the network the test data and basically do a forward pass, do we need again to have exactly the same activations functions as in train...
I measured air temperature in each hour of a day bellow the canopy of 10 trees and in 10 open areas close to the trees. Therefore, I have two regressions between hours of a day (predictor) and temperature (response). These relationships are not linear and resemble curves in the bell form. Now, I want to compare the slo...
I am building my own implementation of a DCGAN at the moment and want to try different random samplings for the Generator's input (noise). Recently, I found the paper Sampling Generative Networks. I understand the author's claim that for the Generator's input $z$ (e.g. 100-dimensional, which is kind of "standard size")...
I have some problem with the choice of forecast techniques on time series data with a machine learning approach. I want to forecast the CPU usage of the system for exactly one day (length of time serie is one week). I know that there are exist several stochastic forecast approach such as ARIMA, ETS etc. But these techn...
I read that these are the conditions for using the multiple regression model: the residuals of the model are nearly normal, the variability of the residuals is nearly constant the residuals are independent, and each variable is linearly related to the outcome. How are 1 and 2 different? You can see one here right: S...
I am running multiple variable OLS regressions in stata and a bit confused about something. In my understanding, OLS coefficients are computed so that the sum of $(observed - predicted data points)^2 $be minimized? If this is indeed the case, how can the inclusion of a additional variable lead to the $(observed - predi...
I am working on a Network Meta-analysis that is aimed at comparing different treatments (medical vs surgery vs percutaneous approach) on short as well as long-term outcomes (including cardiovascular morbidity and mortality at 1 year). We have completed a first pass literature review identifying many studies involving ...
I am confused with ARIMA modelling. My results are as below: Parameters Estimates of coefficients Standard Error P-value ma1 0.057338 0.019720 0.00364 intercept 0.000851 0.000498 0.08744 It seems that intercept term is not significant at level 0.05. So ...
Newbie question, sorry. I have a highly seasonal monthly time series, predictable with no exogenous/independent variables and no obvious trend. I want to show that a suitable state space model (using dlm) is a better predictor than both Holt Winters and a SARIMA model and that some more modern methods (single layer neu...
The conventional wisdom I run up against is to drop predictors with low coverage without given them much consideration. By low coverage predictors: I meant predictors whose values are mostly missing. So, say we have values for only 1% or say 0.1% of the exemplars. To me one -- I would tend to think -- that the low cove...
I was just finding a confidence interval for proportion and used: I have $p = \frac{k}{n} $ Then to find the CI I used: $$ p \pm z \times \sqrt{p (1 - p )} \times \left( \frac{1}{\sqrt{n}} \right) $$ When It should have just been: $$ p \pm z \times \sqrt{p (1 - p )} $$ So I'm wondering why it was that $\sqrt{n}$ was l...
I want to run a simulation experiment after I have estimated my DCC GARCH parameters (following Becker et al. methodology) Basically, since I am rather unfamiliar with the application of cholesky decomposition I was wondering, would it be possible to apply cholesky decomposition to the correlation matrix R that I have ...
I was wondering if I am understanding the following two points correctly: FIRST, I think a Likelihood function for $\mu$ of a normal with a known $\sigma$ can be turned into the sampling distribution of $\bar{x}$ (sample mean), only using a scaling factor (a multiplicative constant applied to likelihood function): For ...
I have used PCA for dimensionality reduction on a dataset containing mouse EEG containing recordings for each individual mouse. To evaluate the models, I have used a ''leave-one-subject-out'' cross-validation scheme. This means data corresponding to one mouse is left out at every iteration. While doing this, I have com...
I experiment with CIFA10 datasets. With my model I found that the larger the batch size, the better the model can learn the dataset. From what I see on the internet the typical size is 32 to 128, and my optimal size is 512-1024. Is it ok? Or are there any things which I should take a look at to improve the model. Which...
Are there neural networks that do not make use of floating point arithmetic, i.e. ones that only use binary or (small) integer values throughout their whole classification computation? I have found the following paper Binarized Neural Networks, in which all weights seem to be binary values. However, as far as I underst...
I am using elastic net for binary classification, where the outcomes are either 1 or 0 (they could also be 1 or -1, but I am not sure which one is better). The output of the net is real valued though, and I am not sure how to interpret them. any ideas? It seems like a sensible thing to do is to say anything larger th...
Nearest neighbor can classify new data point based on the k nearest neighbor's class. Assuming there is dataset A contains 10000 data points. There is also another dataset B contains 1 MM data points. The goal is to find the most similar records from dataset B that resembles dataset A on a number of pre-decided attribu...
In practice, there can be a classifier that gives far better performance at a specific acceptable threshold than an "optimal" classifier with better average performance across range of thresholds (higher AUC) but not so much at that threshold. For example: Classifier 1: 80% TPR with 5% FPR, 95% TPR with 40% FPR, AUC ...
I am working on a school project that focuses on linking rock fall danger with a variety of variables. I focus on precipitation and temperature - my research question is: Is there a statistically significant relationship (correlation) between the level of rock fall danger and the amount and type of precipitation? I ha...
If $f$ is a non-increasing non-random function and $X_n$ is a sequence of random variables, why do we have that: $$ \mathbb{P}\left[\ f(X+\epsilon) \leq f(X_n) \leq f(X-\epsilon)\right] \leq \mathbb{P}\left[X-\epsilon < X_n < X+\epsilon\right] $$ ? I understand that the conventional way to to use events and subsets to ...
I am trying to understand logistic regression, and I have a very basic question. Given that the sigmoid function $\phi(z) = \frac{1}{1+exp(-z)}$ gives 0 or 1 only when $z=-\inf$ or $z=\inf$ respectively, I think it is impossible that we get exact 0 or 1 fitted (or predicted) probability for any combination of the finit...
if I have a simple linear model with 1 predictor $y = \beta*x $ imagine that $\beta$ is 0.5 now I have 2 variables which are correlated $y = \beta_{1} * x_{1} + \beta_{2} * x_{2}$ My manager told me that $\beta_{1}$ and $\beta_{2}$ will be bigger, "because they try to fit the outliers" I don't understand why/how the se...
My problem is that I am not able to interpret my results. I am confusing coefficient and marginal effect interpertation. Dependent Variable: PVO Method: ML - Binary Logit (Newton-Raphson / Marquardt steps) Sample: 1 80 Variable Coefficient Std. Error z-Statistic Prob. marginal effec...
Can anyone suggest an R package for graph manipulation that can find cliques and also performs transitive reduction? From websearching I see that I can find cliques with igraph. (Transitive reduction is on the wishlist for igraph.) I can perform transitive reduction with relations::transitive_reduction(). I would pre...
Trying to implement the Storkey rule... I can use the below algorithm to train an initial pattern -- because it goes into the if statement and simply uses the hebbian learning/outer-product method. But if I then try to train a new pattern on top of those old weights, something odd happens: the network, when presented w...
For the MANOVA model, we assume $X_{lj}=\mu+\tau_{l}+\epsilon_{lj}$, where $\epsilon_{lj}\sim^{iid} N(\mathbf{0},\Sigma)$. How can we test/assess whether $\epsilon_{lj}\sim^{iid} N(\mathbf{0},\Sigma)$ or not? We may assume that they have the same covariance matrix. I'm thinking of using the residual of the usual decomp...
I have 1000 samples( i.e 1000 villages name) and I want to select only 100 sample villages for study . i.e A1,A2,A3....A600 B1,B2,B3...B300 C1,C2,C3...C100 Where A1,A2.... are high risk villages, B1,B2,.... are medium risk villages and C1,C2... are low risk villages. I want to use smart sampling, for example : fo...
I'm searching for literature on the lasso in a GLM setting. I've looked at Elements of statistical learning (Hastie et al 2009) and Statistical learning with sparsity (Hastie et al 2016). Both of these sources have thorough explanations of the lasso in the context of a linear regression model. I'm aware that properties...
I want to convert the expression of the genes from an array to a gene correlation matrix, to know the correlation of each gene with the other genes. I have 6 samples, 3 controls and 3 test, is it correct to compute the correlation matrix using the 6 samples? Should I consider the 6 samples or just one control and one t...
I have an overdetermined system of linear equations A*X=B. Where X is a column matrix with N unknowns. The least square solution of this system can be obtained in Matlab as X = mldivide(A,B). However, I want a solution X, such that the sum of second order differences between different elements in X is minimum. That is,...
In my recurrent neural network I can calculate a confidence score of an output sequence during evaluation (ground-truth not known) using the following: Compute the softmax of each word in the output sequence Take the natural logarithm of the max probability for each word Sum the resulting values together I think this...
I have been reading about sufficient statistics, and I have a few questions whose answer I cannot find in the book. Why do we care about sufficient statistics in the first place? My understanding is that we would like to use sufficient statistics to do inference on the parameter $\theta$. However, can't we just use th...
I have an object detection algorithm for which I would like to plot an ROC curve. For this, I need the values of the fall-out corresponding to values of recall. The false positive rate, or fall-out, is defined as $$\text{Fall-out}=\frac{FP}{FP+TN}$$ In my data, a given image may have many objects. So, almost every imag...
I have a breast cancer data with 13 features. I instantiate PCA and put the training data through and transform down into 2 dimensions. I get a data that is linearly separable which is interesting to me since I'm doing a binary logistic regression. I'm writing an article and showing the data with a decision boundary is...
I have a lot of variables like Money supply, GDP and CPI. I have used a multiple linear model but the data are too correlated, so I tested with the glm. But I do not know how to test the residues and how to know if the model is good. I used R package "nlme" with gls function like this : m <- gls(M2~IPC+PIBRHH+PIBRH+PIB...
We have the time interval when high-weight and low weight flies were eaten by a spider and then we have those who survived. How can I check if the consumption incident rate stays constant over time?
Comparing differences in 4 groups of 10 patients. Differences relate to (simplistically) the number of bacteria each patient carries. This is a novel comparison with no precedent. Does this make it impossible to power (given no precent, unknown siginificance between groups)? If to compare- would an ANOVA be the way?
I am trying to do some binary decision trees with Python (scikit-learn), but my sample has a bad repartition : I have something like 100 000 data points with label 0 and 800 000 with the label 1. So when I get the tree, I don't have a lot of leaves with class 0, and I don't even have any before reaching a depth of 5. A...
I am doing a cluster analysis and confused with three terms. Are Linkage Distance, Within groups sum of squares (total within sum of square), and Minimum Distance within clusters different when you do Hierarchical average-linkage.
I trained a regression algorithm on data to obtain an estimate for some quantity $x$ in a set of unseen data. lets call the value of one of those test estimates $x_0$. I would like to model a probability distribution around $x_0$. If I understood correctly, in the case of linear regression I could use the standard erro...
I am fairly new to this, sorry if I am not clear. I have two models with logY. The first model has a slightly bigger sample than the second model and accounts for 4 main drivers (and some control variables). In the first model: X1 = significant X2 = significant X3 = significant X4 = insignificant The second model as ...
I have a continuous dependent variable that is non-normally distributed, skewed to the right (long right tail). I have fit two OLS regression models to this variable. Model 1 - Regression model of un-transformed dependent variable regressed on the independent variable of interest, and other covariates. Model 2 - Regres...
Is logistic regression only for binary classification or can it be applied for multi class classifications as well. Also, can you please list down what are other classification methods for multi classes(for more than 2 classes)
I have data for 5 individuals of 15 lineages (normalized gene expression, 75 total samples), a phylogeny, and would like to calculate the maximum likelihood under brownian motion, then compare the result to a model with selection (i.e. an Ornstein Uhlenbeck model) while retaining information about within species variat...
After researching about Dynamic Bayesian Network (DBN) and Discrete/Continuous Time Markov Chain (D/CTMC), I found them to be very similar, but I am sure there are some differences between them. I am not sure which one I should use to model a reduced complex system. From what I have been told/ known so far, in terms o...
Given a webpage that displays 5 images drawn at random And given a pool of 70 images And assuming each image has an equally likely chance of being drawn And assuming if an image is drawn for 1 of the 5 slots it can’t appear in any of the other 4 If you chose a single image to track What is the probability of seeing th...
I have the following problem. I have 70 people, with a bunch of variable-data on each of them. What I also have, are 3 dissimilarity matrices, wherein the dissimilarity between each person and every other person is already computed. The goal is to cluster these people. 2 are euclidean distance matrices, and the other o...
I'm trying to analyze a set of 15 paired samples. The elements of each pair are results of a measurement that produces a scalar value. The first measurement of the pair was done in presence of some factor (let's call it $A$), whereas the second was done in its absence. I'm looking for a method to infer whether $A$ has ...
I have some data, where one of the columns is the Sex of the person. And it takes values M and F. I'm calculating ANOVA by hand and to do this I need to calculate the means of each column. Obviously non-numerical values have no concept of mean, but I could recode this column to e.g. binary. But I expect that the numeri...
I am doing a school project based on a scientific paper that predict data from a stock exchange data set First the program use a genetic programing algorithm to get new data, then improves the data using Artificial fish swarm algorithm, then uses a neural network where the first data is the input variables and the late...
I'm performing a cluster analysis on a health insurance dataset containing 4,343 observations with mixed continuous and binary variables. I understand the importance of standardizing continuous variables. However, given the wide range of values for some of my continuous variables (notably outlier values for hospital vi...
Can GEE handle a 2-level and 3-level hierarchical clustering, i.e. repeated measures per individual nested in cities, and cities nested in provinces? If yes, how can should I write the GEE for these stages? What should be the working correlation?
I have 16 NDVI values for 16 years. I want to use this time series data set to investigate a trend in the dataset to distinguish between noise, randomness and actual trends. Can I use R to do this? Or is there any other trend software for this? I just want a method that is a bit simple to understand and run as a begin...
Say we have a logistic regression with outcome equal to a women's pregnancy resulting in a birth =1 and loss=0. The predictor variable is age ranging from 22-50, the Odds ratio point estimate is .819 with CI (.782 - .858). How can we figure out the age in which this result become significant? I.e if this is interprete...
I am trying to use regression techniques and neural networks to predict the values of a continuous dependent variable(y) based on a set of features (X1,X2,... XN), where N is the total number of distinct features. I plotted the correlation coefficients between each one of these variables and found that the correlation ...
I have data on N individuals, where for each individual there is data on the times at which he/she visits a treatment facility for getting treated for an acute health-related condition. There are 2 types of facilities, say A and B. Both the times of visit, and the type of facility visited are stochastic. Note that an...
I am not a statistician so I hope my question is not trivial. I have a set of $n$ samples affected by Gaussian noise with mean 0. I need to estimate the average of the samples, without the noise. Is there a better estimation then the sample mean itself? I was hoping that the noise would cancel itself in the mean since ...
Consider three discrete binary random variables -- A, B, C. I have calculated I(A;B) and I(A;C), but I want to calculate I(A; BC) I'm having trouble implementing this. From reading this paper I have an idea, but can't get it to work out in python. I have these functions (python 3) def entropy(X, Y): probs = [] ...
I have a time series regression that, given a set of lagged values, predicts all of the values from one step ahead to a given horizon. I'm trying to calculate the MASE for this, but am having a problem understanding how to apply it. My understanding is that the MASE is the ratio of the MSE to a scaling factor, equal to...
This is my code: ggplot()+ geom_point(aes(x = Africa_set$Africa_Predict, y = Africa_set$Africa_Real), color ="red")+ geom_line(aes(x = Africa_set$Africa_Predict, y = predict(simplelm, newdata = Africa_set)),color="blue")+ labs(title = "Africa Population",fill="") + xlab("Africa_set$Africa_Predict") + ylab("A...