instruction
stringlengths
9
38.7k
I have two time series and I am studying the mutual information between them in different parts of the year (I have calculated the mutual information in sliding windows). In january, the mutual information drops all the years. In my opinion, this is weird because if you plot the time series together, you can see that t...
I understand why the gradient tends to become small in the early layers of a deep network. However I am trying to clarify why this is a problem in the case of RNNs. This is what I understand: the gradient $\frac{\partial E}{\partial w} $ of a weight $w$ is computed as the average of the gradients at each time step. If ...
I am currently trying to do a literature review/research to determine if and how well ANNs work on data sets where the number of inputs is smaller than the number of outputs. For instance, a class project I am thinking of involves a data set with 2 predictors, 18 response variables, and 300 observations. The goal is n...
On the subject of Stochastic differential equations. If we consider the difference equation $$\Delta x(t_n) = x(t_n) \Delta t + f(t_n) \Delta t$$ where we consider $f(t_n) \Delta t$, the driving term as a Wiener process (random process). Given the value of $x$ at time $t_n$, the value at time $t_{n+1}$ is then $$x(t_n ...
I am designing a general API for ML problems and I am trying to use a correct terminology. What is the best way to call: the thing about which you want to make a prediction? Instance? the answer for the previous point? Label? I see Label as the value of the result of a prediction. How would you call an object containi...
One option for a polynomial linear regression it to transform a covariate x to a matrix of its n-th polynomial and subsequently run a linear regression model. The function poly in R orthogonalize the columns of this matrix or leave them as they are after polynomial extension (raw). I observed choosing to orthogonalize ...
What do you do when you have observational hierarchical data and the random effects of a mixed model have really high variance? Some things I have considered are: Picking groups that have low in the response. And using only those in the analysis. This has the downside of loss of replicates. Currently the response is ...
I am looking for formulas/equations/criteria that identify which words from the feature set dictionary are noisy/indecisive or too rare. For example, if the dictionary is let's say 5000 words and the corpus is 100000 documents and we are classifying an equally probable class, then a word that appears 50% of the time in...
If i were to try to combine two predictions, such as: Test 1: $70\% \pm 10\%$ sure that $x$ is between $1.5$ and $2.5$ Test 2: $65\% \pm 10\%$ sure that $x$ is between $1.5$ and $2.5$ combination of test $1$ and two find $XX\% \pm YY\%$ sure that $x$ is between $1.5$ and $2.5$.
I am looking for some candidate functions to model some data that is somewhat bell shaped, but more flat at the top - something like this: I was previously using two sigmoid functions, flipping one, and joining them in the middle, but this presents some mechanistic problems so I'd rather use just one function. A simpl...
I am looking to correlate an ordinal variable (four categories) with a continuous variable (not normal). The dataset is large, around n=700. I am currently using Kendall's Tau-b because Goodman-Kruskal does not handle continuous data very well. Is there an appropriate correlation coefficient for this case? Alternativel...
Correction value to use to correct for continuity in the case of zero entry cell for tetrachoric, polychoric, polybi, and mixed.cor. See the examples for the effect of correcting versus not correcting for continuity I read this from r psych::tetrachoric help file, but I don't understand the meaning. What's the m...
I have been experimenting with using an augmented state space in which I store / memorise previous states as new variables at the bottom of the state vector when performing discrete Kalman filtering. I can then approximate a high-order discrete model by passing the lagged terms down through the state vector after each...
Is there the name for an algorithm of cluster assignment that is based uniquely on the distance between the data point to classify and the center of the cluster? Let me be more clear: Let's say that I have two clusters $A,B$ made by $N$ points $x(i)_A$ and $x(j)_B$. I have to assign a new point $x_{new}$ to it's cluste...
A signal of unknown length with observations [0,1,2,3] is found in a lengthier chain of values. There is some uniform distribution for noise in the background that is known, however the probability distribution for the signal of unknown length is specific to its index in the signal. For instance, a signal might be: ...
In the context of Bayesian logistic regression, outcomes $y$ are binary (discrete) and covariates $X$ are given. We assume in particular: $$ p(y | x, \theta) = Bin(n,\theta) \newcommand{\new}{{\rm new}}$$ where we model $\theta$ as: $$\theta = {\rm logit}^{-1}(X\beta) $$ so $$ p(y | x, \beta) = Bin(n,{\rm logit}^{-1}(X...
I haven't seen this question addressed anywhere. Hopefully my notation isn't too nonstandard, I'm a newcomer to the area of artificial neural networks. Suppose we are training a neural network to classify data into one of $K$ classes, $\hat{y}_i \in \{1,2,\ldots, K\}$, on the basis of data $x_i$. So, we train a vecto...
In Introduction to Statistical Learning the classifier function of QDA is given by: $$\delta_k(x)=\frac{1}{2}(x-\mu_k)^T\Sigma_k^{-1}(x-\mu_k)-\frac{1}{2}log|\Sigma_k|+log\pi_k$$ But, by simple calculations like in this question we can find out that $$p_k(x) = \frac{\pi_k\frac{1}{(2\pi_k)^{p/2}|\Sigma_k|^{1/2}}exp(-\f...
The following is stated in a text I am using: Consider the Wiener process (Brownian process) $W(t)$. The Wiener process has no derivative $\xi(t) := \frac{d W}{d t}$, reflecting the fact that it changes randomly and is thus jagged, on even the smallest timescale. The Wiener process is actually an idealization, as no re...
I am about to begin running a data science competition. I have built a "baseline" model to test how accurate some of the competitors' submissions may be (I've set the target as to what they should aim to beat), and a simple, out-of-the-box decision tree model (sklearn.tree.DecisionTreeClassifier) scored 100% accuracy, ...
I'm reading ISLR and I don't understand what is the problem that random forests solve; what problems does tree correlation cause when using bagging?
Without going into domain specific information, I have a data set in which I'm testing the rate of occurrences of an event like so: Event 1 # of trials: 378 # of occurrences: 109 # of occurrences in case 1: 12 # of occurrences in case 2: 45 # of occurrences in case 3: 51 I want to find out if there is a significant dif...
I am definitely more of an applied statistician than one with a strong background in the specific mathematical notation. I'd like to recreate a model I ran across in a paper, and though I understand how to do nonlinear regression (in this case, negative binomial), I'm not sure about how to interpret the following equa...
Have been working on a dataset called Dorothea hosted at UCI. It contains 100,000 features. If I use PCA the top 10 components explain only 4.10% of the variance. Having concluded that PCA will not reduce dimensionality in any significant way, I looked at the dataset in a number of different ways. I found that close to...
I want to know if a sub-population has the same upper quantile as a parent population. Assume that in the parent population, proportion $1-\alpha$ of the data lies below threshold $k$. I can observe the population mean and variance, and the tail probability $\alpha$ of the threshold. Let $z_{\alpha}$ be the associated ...
When working with GAN's, is there a clear theoretical difference of choosing my latent distribution to be a uniform vs a normal distribution? My intuition says that if I learn from a $z\sim N(\mu,\sigma)$ latent variable that has a small $\sigma$, that would mean that the samples my generator would produce would be ve...
Is nonlinear regression (always?) better than linear regression? How can I decide which model to use? I have following alternative models in mind: $G$ is DV, $x$ and $y$ are IVs $G_i = (b_1(x_i^{b2} - y_i^{b2}) + y_i^{b2})^{1/b2}$ (2 parameters) $G_i = (0.5(x_i^{b2} - y_i^{b2}) + y_i^{b2})^{1/b2}$ (1 parameter) $G...
As part of my research into eigenvalue dynamics of financial time series I am reading a paper which introduces the idea of time series normalisation between stocks before computing the zero-lag cross-correlation. The formula provide is as follows: where Ri(t) is the stock returns for 1...N stocks and Ri(t).bar is the ...
Lets say I have a set of data as below set.seed(1075) n <- 10000 x <- rnbinom(n, 1000, .5) mean(x) -> 1000.1 sd(x) -> 45.167 If I wanted to get a Z-score on this data, I would use the regular formula: Z = (X - MU) / SD However, If I was to transform my random variables is the interpretation of the Z score the same?...
I am using the tm package and h2o package to do text mining using neural network. Here I have a data frame of 100 most frequent words in the text. These variables only have values of non-negative integers. I am predicting a binary variable called "response". After multiple attempts, my true negative rates remain very l...
I was reading the Mathworks documentation about the CSAPS and TPAPS. I got confused in 2D case where I can't understand how these two penalties are different? Hows the PSS looks like in the case of 2D for CSAPS?
I know that logistic regression is a convex problem. Furthermore, from Lemma 1.17 in these optimization lecture notes, if a function $f : \mathbb{R}^n \rightarrow \mathbb{R}$ is convex, then the function over a restricted domain (as it were) should be convex. For example, if $f(x,y,z)$ is convex, then $g(x,y) = f(x,y...
I have a question concerning OOB error in random forests and data partitioning. As far as i know in random forests the trees are not pruned. Also we use OOB error for measuring the performance of the forest. Why then we should use data partitioning (training - validation) when constructing a random forest. In many case...
I don't entirely understand why logistic regression is based on an exponential function. The sigmoid function seems to assume that as the dependent variables increase, the independent variable starts to increase exponentially. How do we know this is true? How do we know that this isn't a linear relationship?
I want to calculate unbiased ratio of the survival chance of the passengers according to the classes(1st,2nd,3rd class)- so passengers from which class had higher chance to survive. So let's say in the data we have number of passengers survived and the total number of passengers(per class). So how should i calculate t...
how to handle sparse data problem in unsupervised learning .i'm going to use k-means on the dataset. I have 200 variables, nearly in each column have 70% zeros. how can I handle without discarding any column?
This is a follow-up of question in How to tell the difference between linear and non-linear regression models? Consider the non-linear regression model $ y = \beta_{0} + e^{\beta_{1}}x + \epsilon = \beta_{0} + \beta^*x + \epsilon$, where $\beta^* = e^{\beta_{1}} \geq 0$. Can we solve this non-linear model as a constr...
I am using repeated 10-fold cross-validation to estimate how well a regression model will generalize. The cross-validation is repeated a number of times to estimate the variance in the procedure. The evaluation measure of interest is the Pearson's correlation coefficient. Now there are two possible ways to calculate th...
I have a classification problem with over 700 predictor variables and training data with 200,000 observations. There is only one response variable. I have a feature selection problem. I am looking for techniques to determine out of the 700 predictors, which are relevant for the model. I am aware of some techniques such...
What does it mean when we talk about the "Gaussian likelihood" for a Gaussian Process? Is it true to think that the "Gaussian likelihood" only means we factor in a noise term into the covariance function? i.e. $$cov(x,x') = K(x,x') + \sigma^2$$ In other words, we only add $\sigma^2$ to the diagonal of the covariance ma...
I am trying to implement an Intrusion detection system. I can't use the KDD dataset because it is so far from my real data. I know my network data very well, I mean by that all packets exchanged, when and how to send them. For example, when sending a TCP-Packet, we must have an ACK-TCP-Packet in order to justify its re...
I would like to use EM algorithm to estimate the parameter of my mixture model. I understand the EM algorithm quite well. I have two different densities (copula family) these two densities are totally different from each other. At M step we maximize the following expression. For me, I maximize the last equation sep...
My objective is to have high utilization of the resources by keeping only the required number of resources alive. Low utilization means the resources were not used effectively, while high utilization means the resources were used efficiently. However there is a limit to the maximum utilization that one can strive for....
I have a set of proportion data between 0 and 1, working in R. Let's say that I have fitted a mixture of a beta and a degenerate distribution. This means that I write the density as something like this : $F(x) = pF_0(x) + (1-p)F_{\theta}(x)$ where I call $F_0$ the degenerate distribution in 0 and $F_{\theta}$ the beta...
I have a RCT to analyse – my outcome is number of days late (20 days late being the maximum). The majority of people are not late, so there are a lot of zeros in the dataset. I’m expecting that the treatment will both reduce the number of people who are late (thus, increase the number of zeros) and will reduce the numb...
I am wondering how to integrate restricted cubic splines (such as in the rms package) in the imputation models within R mice imputation package. Context: I am doing biomedical research and have access to a dataset consisting of patient characteristics and data about the patient's disease progression, next to outcomes ...
I am currently studying statistics on MIT open course. And I have a question about Z test. Below is the example of IQ test. H0 = MIT student IQs are distributed identically to the general population = MIT IQ’s follow a N(100, 15^2) distribution. HA = MIT student IQs tend to be higher than those of the general populatio...
I would like to know what the right strategy is for this problem. Consider a set of 3 unfair die. Each die is rolled for a period, and then another die is randomly chosen (with replacement). All we see is the observed sequence. What is the approach, given a long sequence, to determine: The transition matrix for the 3 ...
I have a set of $(x,y)$ coordinates that represent any number of circles in a plane. What I am trying to do is determine whether there is 1 or more circles present in the data set. This would normally be pretty easy except that the data that is being generated is coming from a rather imperfect particle detector. As a ...
I am doing two independent bootstrap shuffles on my data set, and any result (from my original dataset) that is greater than 95% of each of my shuffles (independently) is considered to be significant. Is my final significance rating 0.05^2?
Is it possible to fit a GAMM(Generalized Additive Mixed Model) for zero-inflated data in R? If not, is it possible to fit a GAM(Generalized Additive Model) for zero-inflated data with a negative binomial or quasi Poisson distribution in R? (I found COZIGAM::zigam and mgcv:ziP functions for Poisson distribution)
Let's say I want to compare two machine learning models (A and B) on a classification problem. I split my data into train (80%) and test set (20%). Then I perform 4-fold cross-validation on the training set (so every time my validation set has 20% of the data). The average over the folds cross validation accuracy I get...
I'm following this question which describes almost exactly my situation (with little modifications, in bold): Drawing, with replacement, $k$ balls from a bin of $n$ different colored balls, with an equal probability of drawing each color of a ball, what is the expected number of "unique" colors? How many different col...
The Naive Bayes classifier is the classifier which assigns items $x$ to a class $C$ based on the maximizing the posterior $P(C|x)$ for class-membership, and assumes that the features of the items are independent. The 0-1 loss is the loss which assigns to any miss-classification a loss of "1", and a loss of "0" to any c...
I'm affraid to confuse something. Here's my assumption : I have a timeseries that I split in 2 parts Learning data and test data. A residual in forecasting is the difference between an observed value and its forecast based on other observations: ei=yi−y^iei=yi−y^i. I want to see how good my model is so I want t ...
I am trying to model hospital readmission using both categorical and nominal variables. Laboratory data comprises a big chunk of the nominal variables, the problem is not every patient has laboratory tests done, and for those who do, not the same tests are taken. So, for the 18 laboratory predictors, all contain missin...
I wish to perform a Least Squares Fitting of time-autocorrelation functions. As confidence interval increase with time, initial times should have greater weight in the fitting procedure. I wish to use curve_fit in order to fit the data. What is the proper way to set the weights? If it helps, I can calculate the confi...
I've been looking at the CS231N lectures from Stanford and I'm trying to wrap my head around some issues in CNN architectures. What I'm trying to understand is if there are some general guidelines for picking convolution filter size and things like strides or is this more an art than a science? Pooling I understand exi...
I have a trained Generative Adversarial Networks GAN. When I input real and fake images to the discriminator, the returned value is always the same? Is this a sort of overfitting of the discriminator? What else can be the problem?
I have a classification problem with numeric features and binary class value. Is ANOVA F-value in Python (see here) a good technique for the feature selection?
We have the following loss function for logistic regression, the so called log-loss defined as: $- \Big[\sum_i y^{i}\log(h(x^i))+(1-y^i)\log(1-h(x^i))\Big]$ We also know that logistic regression assigns a datasample to class y=1 if the posterior probability $h(x)$ of class $y=1$ is bigger than 0.5. Now my question: The...
I am studying deep learning models for single channel speech separation. I come across several recent methods: Permutation Invariant Training Deep Clustering Deep Attractor Network All of these methods are using "masked" approach. This breaks down to: Perform STFT on mixture signal to obtain spectra, then separate p...
As I understand when setting trainControl(method="cv") in the caret package, my training set is is split into K folds for cross validation. How is this splitting done? I assume it is randomized and stratified? But the train set has been "upsampled" and if the split is randomized there will be a data leak over the train...
I'm trying to figure out ROC analysis and have the following question: Assume there is an test instrument that claims to be able to identify cats based on a series of checks (such as: does the animal have four legs? does it eat mice?...). I want to test this instrument using ROC analysis and a sample of cats and dogs. ...
In logistic regression, we model the posterior probability $P(y=1 | x)$ with the help of a sigmoidal function: $$P(y=1 | x) = \frac{1}{1+\exp(-x)} = h(x)$$ If we classify a datapoint to the class y = 1 if $h(x) > 0.5$, is then our classification Bayes-optimal, since it chooses to classify according to the higher poster...
I am testing a method on data x, which gives a binary result, correct/incorrect. As x approaches 0, the percentage of tests which yield a correct result tend to 0. As x approach infinity, the percentage of tests which yield a correct result tend to 100%. I would like to establish the value of x for which the probabilit...
As I understand, when using Gaussian Processes (GP) for regression, one can/should incorporate prior knowledge about the function into the GP. Let's say I have a nonlinear function $f: \mathbb{R}^n \to \mathbb{R}$ I want to learn from samples $(x_i, y_i = f(x_i) + \epsilon)$ using GP. I also know that $f$ is a convex f...
I used the effectiveSize from the coda package to compute the effective sample size, but I get an effective sample size which is actually greater than my actual sample size (e.g. 11'043 to 10'000). I am also aware of this and this thread, and also tried to use the ess command from the mcmcse package, but the results ge...
I am doing data imputation with the missForest function (in the missForest package in R) and everything seems to work just fine. The function is easy to use and, at first sight, imputed data look plausible. However, I am confuse at how to interpret the different out-of-bag errors (OOBerror). When I use the default func...
I am planning to use initial values that are {0, 1}. How do we ensure or how does NMF ensure that the final values are also in the [0,1] range. What if we want to model a matrix of frequencies of connections of two items. Then how do the final values after NMF change, what would their range be. Thanks in advance.
I want to cross validate various models to understand which one performs best. I have been referring to Rob J Hyndman's post here https://robjhyndman.com/hyndsight/tscvexample/ But I am a little lost as to how to use it on daily data. my daily time series data starts at 2015-01-01 and ends at 2017-03-31. Specific q...
I am trying to replicate a cryptoanalysis technique called template attack. I won't enter in details of the attack itself, but the theory behind involves multivariate distribution (more details here). So, I tried to come up with some small code in R to perform the analysis, but I got stuck on the multivariate part of t...
I have a Logistic Regression supervised classifier that is trained on n=365 observations and m=179 attributes with c=5 classes. It's performing at 94.9% accuracy using a very robust cross-validation procedure. The model naively assumes that each of the new observations will fall into one of those categories but there...
I am trying to fit a spatial lag model in R (spdep::lagsarlm), after having built a neighbour distance matrix. I have two questions, because every time I read about it, the model always fit data that has only one single observation (one row) per each spatial location. My dataset has a variable number of observations ...
Let's say we have a grouping of people as such: Group People 1 1 40 2 2 40 3 3 43 4 4 15 5 5 41 6 6 10 7 7 23 8 8 17 9 9 32 10 10 31 11 11 21 12 12 12 13 13 25 There are 350 people and the goal of this probl...
I'm training a CNN model for binary classification. The obtained confusion matrix and some corresponding performance measures on validation set are as follows: ans = 11046 177 561 9306 accuracy: 0.965007 sensitivity: 0.943144 specificity: 0.984229 precision: 0.981335 recall: 0...
The variance of a random variable $X$ is defined as: $$ \text{var}(X) = \mathbb{E}[(X - \mathbb{E}[X])^2] $$ And the definition of expectation for a discrete random variable is: $$ \mathbb{E}[X] = \sum_{i=1}^{n} x_i \cdot \mathbb{P}(\{X=x_i\}) $$ Combining these two equations and letting $\mathbb{E}[X] = \mu$, I would ...
I have recently started studying Deep Learning and have become quite confident in my understanding of the theory of how NNs work. I have written a couple of simple NNs from scratch in Python, to ensure that I know how they work without any libraries. Now, in a hope to become more familiar with implementing my NNs using...
What are some common strategies to visualise a weight matrix in a convolutional neural network? I.e. visualise a matrix with the form (kH, inD, outD) in 1D convolution, and (kH, kW, inD, outD) in 2D convolution, where k is the kernel sizes and in/out is the input/output dimensions. Preferably in Numpy/Matplotlib Thanks...
I want to convert a degree of freedom of t-distribution to follow a standard deviation of normal distribution to plot a density line. Assume I have a samples (size =14) with mean =0 and sd = 7.8, I want to plot a normal distribution density line with mean =0 and sd = 7.8 and a t-distribution density with same mean =0 ...
I'm analyzing the proportion of marked chicks vs. the number of chicks that were recaptured at one moth of age (not possible to use conventional capture-recapture analysis because we don't have a second recapture event). The idea is to find if there is a change over time in the season using the hatch date and year as e...
Is there a variant of Feed Forward networks that admit co-variance between features in the input vector? For instance, with binary input vectors of size 6 like v = [0 1 1 0 0 1] Suppose we know that v[1] and v[2] are strongly co-variant. I believe this to be deemed "intra-layer communication" in the DL literature. Ho...
I have two data sets of the same data coming from two different sources. I am trying to match all of the rows in one data set with the other by comparing several columns in each set. Each data set can have errors, so not all points will match. Currently I am using KMeans by setting the centroids equal to the first data...
as I understand stationarity of a point process implies that it is invariant under translation. Imagine one has numerous realizations of the same point process. Due to the nature of this process, it can be observed only in a bounded region (i.e. islands, cell), the are can differ from observation to observation and so ...
I have a text field dataset. Each observation counts the number of appearances of that particular word, and the columns (variables) are most frequently appeared words. Within each column, zeros dominates with a percentage of over 90%. I have a binary response variable that I am predicting. So far, CART and neural netwo...
Normally in machine learning we will split our data into train, valid and test. The valid data is used to tune the parameters, and the test data is then used to check the performance of our best tuned model. (Watching out for notably different results on valid and test data.) H2O's AutoML (similar to auto-sklearn, i.e....
Suppose that a collection of time intervals $t_i$ have occurred, for $i=1,...,n$. These should be considered as samples from a population governed by some distribution. During these time intervals, some event occurs according to a Poisson process with constant known rate $\lambda{}$ independently across all time interv...
Regularization is used to decrease variance. This must mean that it affects bias. How? To be precise, let's say you have a data matrix $A=(x_{ij})$ whose first column is all $1$'s. Say that our model is $Y=A\beta+\epsilon$, where $\beta$ is some vector, and where $\epsilon$ has a multivariate normal distribution with m...
I am trying to understand the reasoning behind identifying knee/elbow points as suitable thresholds. From what my own intuition tells me, the use of a knee/elbow point is akin to determining an optimal point A of production quantity to minimise cost. Here are some examples of knee/elbow points being selected as thres...
I'm working on the Boston housing project of the udacity ML nano degree. A histogram of the data set looks like this: The mean, median and mode are: mean: 454342.944785 median: 438900.0 mode: 525000 Is it correct to say that it has a normal distribution?
I was reading this article on Cross-Entropy. When talking about encoding elements of a distribution in order to minimise the number of bits, it says this: It turns out that if you have access to the underlying distribution $y$ , then to use the smallest number of bits on average, you should assign $\log\frac{1}{y_i}$ b...
For work, I plotted a set of shops by how many times they did business in the past week. The plot I got out looked something like this: This looked obviously like a Pareto distribution. After all, that's the distribution of earthquakes and rich people. It would make sense in this sort of context. However, when plottin...
I have a large data set with 10.000 observations and 1.000 variables. Some of my variables have missings and need to be imputed. R Packages like mice suggest to use all available variables as imputation model. However, with 1.000 variables this is not possible due to computational problems. Since it would be a huge wor...
I am currently looking at the number of road crossings made by a taxa within a certain area. This area has different road types.  Road type A takes up the majority of the roads in the area and Road type D has only 1 road within the area. So if I had to look at the total road crossings per road type it is skewed (e.g. 1...
I have 3 Variables: Grass Minimum, Minimum Temp. and RH. Grass Min. is my dependent variable and I need to see how the other 2 variables affect it. The calculations are done in different areas. Area 1: Grass vs Min Call: lm(formula = Grass ~ Min) Residuals: Min 1Q Median 3Q Max -10.5775 -0....
My first question here. Due to the improper inventory management we seem to have dispersed sales, and the stores are unable to meet the demand because items are being out of stock. There are so much variation in sales due to the items being out of stock. We normally tried to forecast the sales using Arima Time Series,...
I'm building a model involving a few times series, let's call them A and B. I removed seasonality from A using a function with a linear trend, days of the week and statistically significant months. However, for the series B days of the week don't have any effect and different months are statistically significant. Is th...
We want to find the Bayes optimal decision for logistic regression. That means that the goal is to find the actions, which minimize our expected loss (also often called expected cost or risk). Here are the the characteristics: $ \begin{equation} \text{Conditional distribution $P(y|x)$} = \begin{cases} \...
I am trying to solve a problem of dimentionality reduction on a Matrix of predictors X(136x481). I found that PCA does not a good job in my case because it create components that explain just the variance of the Matrix X without taking into consideration Y. Considering that the final goal is to estimate the rolling coe...
I would like to use exponential smoothing to forecast for 5 days, but forecasts look all same. I have read the documentation of ets package and tried different Additive, Multiplicative model, but could not fix the problem. My data consists 30 days of hourly measurements and I would like to forecast day from 31 to 35. H...