instruction
stringlengths
9
38.7k
Consider I want to visualise the sales figure of 10 products in a dashboard (I will use HTML5 and JS). My data contains product name, total QoQ (Quarter on Quarter) of sales, QoQ of sales in US, QoQ of sales in GB and QoQ of sales in Eur. I want to visualise the data using plots/graphs/charts. I tried with spyder/radar...
Basic question - we have data representing the average performance of two sets of hospitals on a quality measure. The denominator for each set is different. Is it acceptable to calculate percentage difference between one average and another? I was always under the impression that such a measure is misleading and you wo...
I'm using the following probability mass function: $$P[X=k] = \frac{2}{\cosh(a)+\cos(a)}\cdot\frac{a^{4k}}{(4k)!}\, \text{ for } k∈N∪{0}$$ I have derived the following: Mean = $a^4/4$; variance = $a^4/4$; skewness = $2/a^2$; kurtosis = $-13/4 + 4/a^4$ I have also constructed an estimator for $a$ by using the method o...
I have a data set where I have unequal sample sizes and unequal variances. I am trying to see if there is a difference in Means between the group I am testing. The group sample sizes are 30, 59, 148, 77, 56, 29, 29, and 28. I ran a Kruskal Wallis test but I am not sure how powerful it is against unequal sample sizes. ...
In the context of diagnostic screening (Positive / Negative) for a given outcome, what is the correct term for FP / (TP + FP)? Wikipedia calls it the False Discovery Rate. However, when I look for more credible references, I'm unable to find any. Further, the peer-reviewed literature I do find on the False Discovery Ra...
How does using GAM differ from using multiple polynomial regression? They seem to produce the same result. Below I run a polynomial regression using lm() with $wage=\beta_0 + \beta_{age}\cdot age+\beta_{age^2}\cdot age^2 + \beta_{year}\cdot year+\beta_{year^2}\cdot year^2 $ Then I do the same with gam() and compare the...
I am trying to use loess basis expansion on a toy data set. Why the same design matrix for GAM and LM lead to different results? > library(gam) > fit1=lm(mpg~lo(wt),data=mtcars) > fit2=gam(mpg~lo(wt),data=mtcars) > all(model.matrix(fit1)==model.matrix(fit2)) [1] TRUE > anova(fit1,fit2) Analysis of Variance Table Model...
I am watching the Neural Network videos by Prof. Geoff Hinton. In there he talks about a high dimensional Weight Space for perceptrons. In particular, I am referring to following two slides. Also here is a link to the timestamped youtube video where he describes this weight space: https://youtu.be/0T57_yjjB58?list=PLo...
Let $(X_1,...,X_n)$ be a random sample from an exponential distribution with pdf $f(x,\theta) = \frac{1}{\theta}\exp{\frac{-x}{\theta}}I_{(0,\infty)(x)}$ , which of the following estimators is the MVUE for $E(X^2)= 2\theta^2$ $$ T_1 = \frac{2(\sum X_i)^2}{n(n+1)}$$ $$ T_2 = \frac{\sum X_i^2}{n}$$ . Based on the unique...
I'm trying to figure out optimal values for the variables pH, air velocity and light intensity for eight growth chambers. The factorial design is as follows: The weight (gram) for each chamber is: How do I go from experimental design to a linear regression model? Is it correct to use the same values for the dependent...
I have two data samples of a value and I want to compute some distance which would represent the difference in their distribution. I read about Kullback-Leibler distance which could be used for comparing two distributions. Would it be the right way if I compute the density of both samples and pass it as input to comput...
Let T be a triangular region with vertices (0,0), (1,0), (0,1) on xy plane. Let X and Y be RVs which have joint uniform distribution on T. For any fixed z element of R, calculate probability X and Y are both less than or equal to z. I know that f(x,y) = 1/(area(T)) when (x,y) element of T, 0 ...
I have a dataset where I have observed counts for a phenomenon for every week in a 5-years period in 10 geographic areas. We believe that this count is affected by seasonality, but also additively by "input" variables. I would like model seasonnality using a spline on "weeks". I expect seasonnality to have a similar...
Given any $n-1$-dimensional linear subspace $U \subseteq \mathbb{R}^n$ orthogonal to a unit vector $p$, how to generate Gaussian-distributed vectors on $U$ with covariance $\Sigma \in \mathbb{R}^{(n-1)} \times \mathbb{R}^{(n-1)}$, centered at the origin? Something like this in the 3D case:
I am comparing observed and simulated acceleration distributions. There are 3 data sets: 1) acco = observed accelerations 2) acc15 = simulated accelerations data 1 3) acc16 = simulated accelerations data 2 I did 2 sample Kolmogorov-Smirnov test with acco & acc15, and then acco and acc16. I want to see which of the two...
New on the site and could really use some help. I'm stuck on a problem that should be obvious. We have two random variables, $\Theta$ and $X$, where the mean of one is the realization of the other: $\Theta \sim N\left (\mu ,\frac{\sigma^2}{m} \right )$ $X \sim N\left (\Theta ,\frac{\sigma^2}{n} \right )$ We are look...
In R, I ran multiple configurations. The weird thing is that increasing nodesize improves the accuracy quite a bit. This is the opposite of what I expected. nodesize determines the minimal size of the final nodes (leafs). So a bigger number would mean a less deep tree used. Correct? set.seed(23) Model4 <- train(Myformu...
I was asked a relatively simple problem and was curious as to how to solve. Say I had a bomb detector at the airport, and it is 99.99% correct. That being, when the detector goes off or does not go off, it is correct 99.99% of the time. And in the population, 1/10,000 people actually have a bomb. What is the probabilit...
I am trying to train a simple neural network for regression, where the underlying function is a quadratic. Training data is generated by this underlying function, and I am just trying to get a network to learn this function. This underlying function is $y = (x - 0.5)^2$, and I have generated 100 samples with $x$ from 0...
I have a set of input data X consisting of S&P 500 returns, that provides me with a covariance matrix C that is non positive semi-definite. The reason for the non-semi definite nature of the covariance matrix is that S&P returns data are asynchronous or incomplete. Is it possible to 'correct' this covariance matrix by ...
We have a density $X$ defined as $f(x,\theta)=\theta x^{\theta -1}I_{(0,1)}(x)$. The hypothesis to test is given as follows: $H_0:\theta \leq1$ Vs $H_1:\theta >1$ A sample size of two is selected, and the critical region is defined as follows: $C=\{(x_1,x_2):\frac{3}{4x_1}\leq x_2\}$ I tried writing the power function,...
I'm trying to work through the proofs of the asymptotic distributions of OLS. In this derivation, we make the assumptions that the observations $(y_n,\mathbf{x}_n)$ are i.i.d. and that the fourth moments exist. The book I'm using (Ruud) says that the second-order moments of the random variables $x_{nk}x_{nj}$, $x_{nk...
i´m new with R and i have a question to do. i´m doing a study on seed germination and i have trouble doing a priori contrasts for a GLM analysis. My response variable is proportion of seeds germinated and my explanatory variables are treatment with 3 levels (consumida, fruto, S/P) and species with 4 levels (chaqueña,g...
Suppose $X_{1}, X_{2}, ....$ is a random sample from a probability distribution with mean $\mu < \infty$ and $\sigma^{2} < \infty$. Let $\bar{X}_{n} = \frac{\sum X_{i}}{n}$. From the Central Limit Theorem we can state that: $\sqrt{n}(\bar{X}_{n} - \mu) \xrightarrow {d} N(0,\sigma^{2})$ All right, but now, i want to k...
Recently I've created a similarity measure specifically designed for high dimensional time series data that contain a low number of observation (measure) occurances. Within this, the equation is meant to accurately assess the relationship between non-linear variables despite the presence of time lag and high variance. ...
I am having issues including "season" as a predictor variable in my survival analysis using cox proportional hazard models. I work with sage-grouse and have reason to believe their survival varies by season. I provided a sample data set below. library(survival) library(dplyr) BirdID <- c(1,1,1,1,2,2,2,2,3,3,3) Event ...
I have shown customers two products with certain attributes and asked them to select one of the products. I have done this 12 times with different combinations for each customer. I have a total number of 1000 customers. Is there a modeling technique that I can apply to calculate which attributes most customers prefer? ...
Please help me understand how to write R code for a common experimental design in my field. The exact statistical model is in the Stats Analysis paragraph below:. Statistical Analyses We used repeated measures analysis of variance (ANOVA) in SAS v. 9.2 (SAS Institute, Inc., Cary, NC, USA) with the mixed models pr...
I have 4 results represented by A, B, C and D I have the probabilities for whether each result will be greater than the other: P(A>B): 86.6% P(A>C): 80.4% P(A>D): 72.6% P(B>C): 57.4% P(B>D): 41.2% P(C>D): 37.7% I also assume they can't be the same result. How do I determine the probability that the results will be in a...
I have recently gotten into a problem with EEG activity measurement. I need to prove (or disprove) that certain event triggered a statistically significant reaction in EEG activity. I know exactly at time the event happened and the brain activity (at certain parts) at that times. What I did so far was that I measured a...
In my research I am looking at the effect of 3 IV's on a binary DV that is measured repeatedly on the same sample after different treatments. Therefore, for every treatment, I have created 3 binary logistic regression models that each test the effect of a different IV together with a set of control variables. Thus: Tre...
I have two 4x4 contingency tables for frequency data. They are based on the same type of sampling criteria of a number of discrete variables but for two condition (before and after). I would like to compare these statistically to see how much - or not - they differ. A Chi square related test seems appropriate but norma...
I have two independent variables, both with two levels. Different participants for each of the 4 conditions. A 2x2 ANOVA does not seem to be the best solution because my sample is small, the number of participants in each conditions differs, and the normality assumption is not met. I did the Shapiro-Wilk test in SPSS ...
One definition of the Residual Sum of Squares is: $$ S_r = (y-X\hat{\beta})^T(y-X\hat{\beta}) $$ And I think I understand it. Now I have seen a different definition: $$ S_r = y^Ty- \hat{\beta}^TX^TX\hat{\beta} $$ I think they supposed to be equal but I can't see why. I can write (I leave out the \hat on $\beta$ to mak...
I'm looking for the best language and library to use Bayesian Networks in production. I need the model to be sufficiently fast for an almost real time experience. The computation load is to update the model from about 10 new data points each time a user will make a request and the user shouldn't wait more than about 2 ...
I have been using the Libre Office Solver tool (similar to Excel Solver) to mass balance some chemical systems. I know the chemical compositions of the various phases in the system and the chemical composition of the system as a whole. Briefly, I use Solver (in Excel or LibreOffice Calc) to find proportions of the var...
I'm running a model to understand the relationship between children education expenditures and income. I have three variables $y$ the response variable that represents the proportion of income spent with children education $x_1$ represents family income in dollars $x_2$ number of sons I'm running a beta regression m...
There is a nice answer, however it goes from another way around: the model gets more bias if we drop some features by setting the coefficients to zero. Thus, overfitting is not happening. I am interested more in my large coefficients indicate the overfitting. Lets say all our coefficients are large. My intuition is th...
It is not clear to me how to carry the following ANOVA analysis out in R or SPSS (or ideally both). I have an experiment in which I am measuring the response time (dependent variable) by 20 subjects for 6 cognitive tasks: 3 visual and 3 auditory. A subject does each task only once. This gives the following factors: F...
Bland Altman (B.A.) method asses the agreement between two measurement methods and can evaluate the mean difference (bias) of one method against the "gold standard method." With the B.A. method we can compute the 95% limits of agreement (not to be confused with confidence bounds). Would it be appropriate to use thi...
How can I simulate a clustered panel data set, that includes 2 levels in R? An example would be student test scores in a classroom. I am searching for an efficient and easy way to construct the following equation: $Y_{igt} = \alpha_i + \gamma_g + \tau_t + \beta_{0}\,t + \beta_{1}\,D_{gt} + \beta_2\,X_{it} + \varepsi...
I have a set of data in which participants get one of two types of items. I want to calculate if their responses are more likely to belong to one of X categories when they get one type vs. the other. I am hoping to also include random subject and item effects. Is it possible to run a multinomial logistic regression, in...
Lots of textbooks and websites warn about drawing conclusions from "ecological correlations" which are defined as correlations between rates or averages. All the places I've looked at have used the same 1970 Census example that shows how correlations between averages can be misleading. What is a simple example of corre...
Specifically, I wish to understand the meaning of the confidence interval. An example: p1 = 0.02 p2 = 0.01 n1 = 10000 n2 = 1000 sig.level = 0.05 prop.test(x = c(p1*n1, p2*n2), n = c(n1, n2), alternative = "greater", conf.level = 1-sig.level) # 2-sample test for equality of proportions wi...
My specific case is this: There are a number of categories (Science, Health, Religion, etc.), each containing multiple documents. Assume for documents within each category, I perform topic modeling (LDA) with 10 topics ($k=10$). For example, for the Science category, each topic will correspond to Biology, Chemistry, et...
I'm building a model that predicts the subreddit of a given reddit submission. I have a question regarding pre-processing my text (submissions). The order I followed when pre-processing my text was: Remove punctuations Remove stopwords Lemmatize the remaining text I then fed the parsed text into a CountVectorizer. Wh...
I refer you to Breiman's paper Statistical Modeling - A Tale of Two Cultures where he illustrated some examples of descriptive modelling. Under section 11.1, 100 runs of regression were performed, each time leaving randomly selected 10% of the data. May I know what is the purpose of performing 100 runs and getting the ...
I'm a noob to the group and am after statistical advice. Any interest would be really great. I expect to use R for analysis and have already read the below page which demonstrates correlations for energy use against NOAA temperatures. I suspect my problem is going to be harder to analyse. I will run an experiment la...
Suppose we run a poll with a single question. It's a free question, not multiple choice - a question like "what is your favorite food", not "who will you be voting for". There is an unknown but finite number of answers among the population, equipped with an unknown distribution. After $n$ questions, we have a set of $n...
Suppose we will measure a quantity x from experiment and I know theoretical probability density function for that $[W(x)]$. Let's assume that we have $10^{6}$ data values. Now at first we use theoretical probability density function $W(x)$ to generate set of discrete values which will be probabilities for equal sized b...
This question is often asked during interviews, e.g. what would the distribution of time spent per day using YouTube or Facebook look like? If the data do not contain imperfections (e.g., people being AFK on the site or people opening and quickly closing the site), I would expect the distribution to be normal. Is that ...
I have a probability density function $$\frac{4x\arctan(\frac{x}{a})}{a^2(\pi-2)} $$ $0≤x≤a\,,\quad$ where $a>0$. I need to find an estimator using some order statistic. Does maximum likelihood estimator count as an estimator by some order statistic? If so, after differentiating the log likelihood fn and letti...
I'm trying to estimate the parameters of a gamma distribution that fits best to my data sample. I only want to use the mean, std (and hence variance) from the data sample, not the actual values - since these won't always be available in my application. According to this document, the following formulas can be applied t...
I have a time series that deals with rainfall. It is a period of 10 years (daily resolution), and covers climate variables. I'm going to feed the data into an Artificial Neural Network to predict the rainfall variable (PP). As what I've been reading, MAPE's formula involves dividing by the actual observed value. But si...
I would like to fit a distribution $f(\cdot;\theta)$ to a sample $\{x_1,\dots,x_n\}$, obtaining a m.l.e. $\hat{\theta}$. I know that the random variable $X \sim f(\cdot;\theta)$ can be obtained as the result of generating a random variable $Y$ following a distribution with p.d.f. $g(\cdot;\theta)$ and then generating $...
I have a uni-variate regression model in which both dependent and independent variables are non-stationary. They turn stationary upon first-differencing. I want to compare the original form of the model (with stationarity) with the first-differenced form. I have the following questions in this regard: 1) Can the predic...
I used randomForest( ) function in R. But R can't deal variables that more 32factor levels. But my factor variables are very important thing. So I want to use this variable. Then, how to deal this variable? I know why randomForest( ) can't handle factor variable that have more 32 levels. But I'm wondering that how to ...
I would like to know effect of planting cycle (categorize) and water depth (continuous) to snail weight. I monitored every week for 1 year (53 week data), 25 sites. Snail weight of this week may be correlated with last week. To accommodate temporal autocorrelation, may I use snail weight of previous week as predictor v...
I am measuring the read speed of a device that reads files from a microSD card through a custom device (I therefore cannot use benchmarks posted on the internet for this). I'm doing this because I am developing a time-critical application and I need a measure of how much this time varies. However, I've encountered a pr...
When stating hypothesis in matrix formulation, as H0: $C\hat\beta=h$, $SSE(reduced)-SSE(full)$ can be expressed as: $$(C\hat \beta - h)'(C(X'X)^{-1}C)^{-1}(C\hat \beta - h) $$ How is this result derived? It looks very weird considering it has no Y in it. Here is my failed attempt: $$SSE(red)-SSE(full) = (Y'Y-\hat\beta'...
I am very confused about the following: Let us define $VaR_u(Y)$ as $\inf \{l:F_Y(l)\geq\ u \}$ where $F_Y$ is the CDF of the random variable Y. Suppose $A $ and $X$ are independent random variables and suppose we have $VaR_u(AX)=5$. Furthermore, suppose we are interested in the following probability $P(AX>VaR_u(AX)...
If I have two binary variables, I can determine the similarity of these variables quite easily with different similarity measures, e.g. with the Jaccard similarity measure: $J = \frac{M_{11}}{M_{01} + M_{10} + M_{11}}$ Example in R: # Example data N <- 1000 x1 <- rbinom(N, 1, 0.5) x2 <- rbinom(N, 1, 0.5) # Jaccard sim...
I just wanted to check how good my Beta reg model was at recovering true values of the parameters, and I found surprisingly large differences. Same results when using the "betareg" package. Here is an R code to simulate a Beta variable and to estimate a simple ("empty") Beta model. Perhaps I have missed something obvio...
I would like to know if it is statistically correct to compare Pearson's R correlation coefficients calculated from samples of different size. For example I have a sample of 160 observations that yield R=0.5 with the experimental values. After some filtering I end up with 130 observations and I get R=0.6. Is it correct...
I have an issue understanding the numbers of each node. The dataset is from Kaggle - human resources analytics and the dataset can be downloaded directly from here. The image knitted looks like this: The figure indicates 8571 out of 11249 stayed. Double checking it in the R console, this seems correct: table( trainin...
We have two estimators for samples dispersion: $\frac{1}{n}\sum_1^n (X_i - \overline{X_n})^2$ and $\frac{1}{n - 1}\sum_1^n (X_i - \overline{X_n})^2$. The second estimator unbiased - it has expectation equals to real dispersion. I know the proof, but I think that there is some logic behind this formula, not only formal ...
This section of the Wikipedia article about the Autoregressive Model reads: An AR(1) process is given by: $$X_t = c + \varphi X_{t-1}+\varepsilon_t$$ where $\varepsilon_t$ is a white noise process with zero mean and constant variance $\sigma_\varepsilon^2$. Then it is stated: The process is wide-sense stationary if ...
I am new in python time-series analysis. My target is to use the libraries in python to learn the parameters. When I get the parameters I can built equitions and use the model to any other programming language. Keeping it in mind, I bult an ARMA model using the following code and got the following summary using the sum...
I'm interested in modifying a monthly forecast on a recurring basis by including daily data. I'm experimenting with the Prophet tool opensourced by Facebook (https://github.com/facebookincubator/prophet) but I'm open to using other methods as this currently does not support the use of external regressors. While I coul...
I am interested in quantifying the dispersion of pixel values in one image. More specifically, I want to get an average value of dispersion of the image column-wise (i.e., compute the dispersion of each column of the image and then "average" these values). Currently, I am using two different metrics: SD and IQR. Regard...
I have implemented a recommender algorithm that recommends a set of books based on the ontology. The next step is to perform evaluation. What I've done, is that considering the test set as relevant set of books simply calculated recall and precision based on top-recommendations. But, now there are negative tests in the...
I would like to fit a regression such as $ y = b_1 \times \max(x_1, b_2 \cdot x_1 + b_3 \cdot x_2) $ This model assumes that a contour plot as a function of $x_1$ and $x_2$ looks like below $b_1$ determines how steeply $y$ increases as $x_1$ and $x_2$ increases. When $b_2$ is zero, the horizontal line is really...
The image shown below is the output for plot(lm.fit) on the Boston dataset, where lm.fit=lm(medv~lstat) . Why are some of the points labelled in the plot ?
Let the response $y \in (0,1)$, and consider the model via gam $$ \text{gam}(\text{logit} (y) \sim s(x))$$ where $s$ is a smoother. Then, gam estimates both $s$, and a coefficient. In my case, the coefficient is equal to $-0.8$. But then, if we want everything in terms of $y$, we have $$\text{logit}(y) \approx -0.8s(...
I am working with the Titanic dataset and trying to use logistic regression in R to predict survival. The simple approach I tried was to just use the glm function with binomial family and logit link specified: f = as.formula("Survived_char ~ Pclass_char+Sex+mAgeD+SibSp+Title+FsizeD") logit <- glm(f, family=binomial(lin...
I am optimizing the XGBoost. I would like to know if I need to tune L1 or L2. They seem to be useful in linear models to avoid overfitting, but I am working with trees (so I take care of max depth to avoid overfitting). My dataset is multiclass.
I haven't found much info on this by googling so i thought maybe someone where has some answers for me. When it comes to binary logistic regression the model assumes that the log odds ratio has a linear relationship with the independent variables. I'm wondering, what would happen to the model if this assumption was not...
For instance, I have implemented a neural net in which the weights at each neuron are non-zero, but the generalized weights for all features of every training example are zero. How is this possible?
I have a series of probabilities that event $E$ occurs at iteration $i$ with $i=1,2,....$. These are denoted $p_1,p_2,....$. These probabilities are that $E$ occurs on iteration $i$, but do not consider whether $E$ occurred before $i$. I want to transform these $p$s into a new series such that $\hat{p}^i$ = probabilit...
I have data which uses $k$ different electronic devices to measure the depth a sea animal is swimming at during an entire day. The sea depth is divided into $n$ categories, and for each category, we have a proportional response, corresponding to the percentage of time the animal spent in that particular category. Now, ...
I'm implementing an algorithm for doing dimensionality reduction: I'm going from a high dimennsional space (images) to a L dimensional space (where L is the number of classes). On this space I'm applying a classifier. In order to test my algorithm, I'm applying it on the MNIST dataset. The two different classifier I'm...
I have to select genes differentialy expressed by using the library edgeR of R. My problem is that the function ExactTest tests for differential expression between two groups of count libraries. It implements the exact test proposed by Robinson and Smyth (2008) for a difference in mean between two groups of negative bi...
A question that has been bugging me recently is whether it is more correct to refer to the Random Forests Classifier as "Random Forests" or "Random Forest" (e.g. "We implemented a Random Forest classifier" or "We implemented a Random Forests classifier".) Which is more correct, or are both equally correct? Breiman in h...
I am analyzing the wind speed data which is a time series. The ARMA model works well on the data. But the same model fails to give good results when I difference the series. The Ljung-Box test gives p-value less than 0.05 (very close to 0). Does this mean that wind speed data may be considered a stationary time series?...
We had some discussion about the usefullness of Pooled-OLS and RE Estimators compared to FE. So as far as I can tell, the Pooled OLS estimation is simply an OLS technique run on Panel data. Therefore all indivudually specific effects are completely ignored. Due to that a lot of basic assumptions like orthogonality of t...
I have 2 times series and want to normalize the derivate of one of them onto the other. What I want to normalize is the relative mean (relative to the corresponding value of the function) of the variation of the function. In other words I need to find coef such as : mean(abs(coef*f'/f)) = mean(abs(g'/g)) any idea how ...
I apologize if this is not the appropriate site for this question. I am asking here because my question is about data visualization. I am comparing 5 distributions in R. So, I tried using frequency polygons with different colors. Following is the code and plot: library(ggplot2) library(grid) ggplot() + geom_freqp...
I have a dataset which displays the effect of a pollutant on the productivity of microorganisms and I am wanting to use a statistical test, to see if there are any statistical differences between the concentration of the pollutant and the productivity of the microbial community. To investigate this, three different pol...
I have explored this site for the answer but could not find what i was looking for. My problem is i have data containing many variables (22) that are continuos and categorical and my output has two levels 1(present) or 0 (absent). My questions are: 1) What type of library, for a neural network model, would be best for ...
Can multivariate randomness be reduced to one dimensional randomness? Suppose to have two random vectors $X,Y \in \mathbf{R}^n$ and a function $t: X,Y \rightarrow R^n$. Let $f$ be the joint p.d.f. of the resulting vector $W \in \mathbf{R}^n$, the following occurs: $$ f(w_1,\ldots,w_n) = f(w_1) = \ldots = f(w_n) $$ Thus...
From what I understand, a Neural Network is essentially a representation of one or more output in terms of a polynomial equations in a graphical form. That being the case, I fail to understand as to how a Neural Network models fractional powers. For example, if my true natural function is $y = a_1 * {x_1}^{1.45} + a_2 ...
I'm trying to understand LSTM, using for instance http://colah.github.io/posts/2015-08-Understanding-LSTMs/ I get the overall idea, I guess. But I'm not quite sure I get the maths. I'll set a very simple problem : I have a sequence of numbers and want to predict next number. So x_t is of shape (1), and as I understand...
I plan to implement ' no information rate ' as part of summary statistics. This statistic is implemented in r (Optimise SVM to avoid false-negative in binary classification) but not in Python (at least I cannot find a reference) . Is there a canonical reference that I can refer to so as to implement this algorithm ? I...
I have discovered a method to efficiently compute variances of statistics of Markov chains and time series, and now I want to find applications. The method does however require that the autocovariance does only depend on observations $X_i$ and $X_j$ through the difference $|i-j|$ for all $i,j$, and is non-negative. P...
Often I see people to first do linear regression and after they do not find a significant result, they proceed by doing a t-test comparing only n highest and lowest scoring subjects. Is this procedure valid? It seems to me that grouping of people based on a arbitrary selected threshold and throwing away information by...
Below, I'm showing a hypothetical simple linear regression case. There are $5000$ datapoints in each of the 4 sub-populations stacked over the top of each predictor value. Each subpopulation is normally distributed. And all subpopulations have the same $\sigma^2$. However, the subpopulations' $\mu$ are different leadin...
I'm new to data science, and am working on projects to develop my skills. I'm currently working on the Loan Prediction practice competition offered by Analytics Vidhya.The goal is to build a predictive model that will determine whether a loan will be approved or not. So far, my models (logistic regression, random fores...
I have done a hierarchical regression (where the first model have 1 predictor, the second model have 2 predictors and the third model have three predictiors)and just the first model have a significant p-value (p<0.05). Should I choose the first one based on it's significance and exclude the others or should I look to o...
There are many posts on this site where people argue in favor of not omitting outliers. That seems to be the general sentiment, and many good arguments are presented. However, because they are outliers, including them in your model is likely to severely break model assumptions. So, how do you then defend your model, af...
I have the following problem I am trying to solve. I am hoping to pick your brain on the possible solutions. I have (say) 10000 machines, each one spit out a number for me each day; I have collected these numbers for over 2 years (>700 observations) and I know the numbers from different machines are correlated whereas ...