instruction stringlengths 9 38.7k |
|---|
I'm following Rob Hyndman's forecasting otext to practice on some financial data for fun and I am having difficulties in trying to properly deal with large shocks similar to the 2008 recession.
My data is as follows:
library(forecast)
stock <- c(60,150,149,66,28,59,75,148,11,188,113,313,340,362,321,360,334,338,424,37... |
We're studying operators in a particular transportation industry in Europe. The data are being collected as part of a larger project, and so far we've only analyzed in a very specific manner to satisfy government regulation. There's a lot more we could do with the data, so I'm exploring different avenues of doing so.
... |
According to Zou et al. 2005, the elastic estimator has the follow formulation.
$$
\beta_{elastic} = \arg \min_{\beta} 1/2n\|Y - X\beta\|_2^2 + \alpha \lambda\|z\|_1 + (1-\alpha)\lambda/2 \|z\|_2^2$$
I understand that the elastic net takes the advantage of both the ridge and lasso regression in the penalty term. But ... |
Unordered factors are basically dealt with in R by dummy coding them to compare the base level of the factor to every other level.
Thus, I understand why asking for a summary on a regression of a continuous variable predicted by an unordered factor shows each level of the factor (except the base level, which each leve... |
Suppose $Y_i$ has normal distribution with mean $\mu$ and variance $\sigma^2$ then
$$\dfrac{\sum( Y_i - \bar{Y})^2}{\sigma^2} \sim \chi^2(n-1)$$
It's a fact that the the ML estimator ($\sigma_{MLE}^2$) for $\sigma^2$ is $$\dfrac{\sum (Y_i - \bar{Y})^2}{n}.$$
Edited the ML estimator
Can someone please show this, I have... |
Could someone please clarify for me the difference in how interaction and main effects terms should be interpreted in ANOVA and regression? I understand that in regression, the coefficients for the various terms are qualified i.e. if an interaction term is included, the coefficients of lower order terms are conditional... |
Suppose that $X \sim F(n,n)$, an F distribution on $n$ and $n$ degrees of freedom. I'm trying to figure out why some literature state that $X$ converges in distribution to a normal distribution.
My confusion lies in the fact that $X$ can be written as a ratio of two chi-squares,
$$ X = \frac{\chi_n^2/n}{\chi_n^2/n} $$... |
I am looking at the formula for weighted variance here
http://www.itl.nist.gov/div898/software/dataplot/refman2/ch2/weightsd.pdf
vs. the wtd.var()
Here is some sample code. Why don't the weighted vars tie?
library(Hmisc)
x = c(3,55,5)
w =c(1,10,1)
wtd.var(x, w, normwt = TRUE)
sum(w*(x-mean(x))^2)/((2*sum(w))/3)
why d... |
According to statistics textbooks, t-tests require the dependent variable to be normally distributed and the variance to be homogenous across conditions.
What's the authorized standard in statistics? Is it OK or even necessary to check homogeneity before running a t-test?
|
In the book Introduction to Statistical Learning, the authors describe the relation between predictor $X$ and response $Y$, by linear regression as: $$ Y = \beta_{0} + \beta_{1}X+\epsilon$$
Here, $\beta_0$ is the intercept term and $\beta_1$ is the slope. $\epsilon$ is the error term.
By minimizing the least squares cr... |
In one excel workbook I am working on right now, the annual mortality rate is given as 3.082%
And the formula for calculating the daily mortality rate is 1-EXP(LN(1-[annual mortality rate]/365)
Why is it not 3.082%/365? What are the e^() and natural logs implying about the assumptions we're making converting from annua... |
Suppose $F(x)$ and $G(x)$ are some CDF's with support $[0,1]$. I'm looking for relationship between $F$ and $G$ when it satisfies those following conditions:
$$G^{-1}\bigg(\frac{1}{2}\bigg)\int^1_0F(x)(1-F(x))dx=\int^1_0xF(x)(1-F(x))dx$$ and
$$F^{-1}\bigg(\frac{1}{2}\bigg)\int^1_0G(x)(1-G(x))dx=\int^1_0xG(x)(1-G(x))dx$... |
Let $X=(X_1,X_2,...X_k)^t \thicksim Multi(n,(p_1,p_2,..p_k))^t, (1\le r\lt k)$.
Now I want to derive the conditional probability function of $(X_r+1,...X_k)^t$, $f_{X_{r+1},...X_k\mid X_1,...,X_r}(x_{r+1},...x_k \mid x_1,...x_r)$, where $X_1 = x_1,...X_r=x_r$.
Then $f_{X_{r+1},...X_k\mid X_1,...,X_r}(x_{r+1},...x_k \mi... |
In dimensionality reduction technique such as Principal Component Analysis, LDA etc often the term manifold is used. What is a manifold in non-technical term? If a point $x$ belongs to a sphere whose dimension I want to reduce, and if there is a noise $y$ and $x$ and $y$ are uncorrelated, then the actual points $x$ wou... |
I'm following Udacity Deep learning course and the instructor briefly explained about the "Sampled Softmax" used in word2vec.
In tensorflow word2vec_basic.py, the implementation is like below.
for j in range(num_skips):
while target in targets_to_avoid:
target = random.randint(0, span - 1) # randomly choose a wo... |
I am trying to segment an image by first dividing it into superpixel, and than classifying those superpixel to merge them together.
If I am doing it for example with a SVM or a Decision Tree, it works fairly well, but is still doing some mistakes.
Now I wanted to use an Neural Network, to do the task, but after a few ... |
I can grasp that the LLN is basically saying that deviations grow slower then the total number etc, but what I can't intuitively grasp is “why” 1 standard deviation would actually “be” proportional to square root of N… for example… the square root of 500 is 22.36… if a coin is flipped 500 times then we’d expect heads a... |
I have collected data points from 216 individuals. A1, A2, A3 are three performance measures to be combined into a latent variable lA. I have three observations on this measure for each individual. U is another measure for which I have three observations for each individual, and these observations are paired with A1-3... |
Let $X \thicksim Negbin(r,p)$ where $(0\lt p \lt 1) $
I want to derive skewness and kurtosis of $X$ by getting the Cgf of X.
First, since Followance of Negative Binomial equals to the distribution r-th repetition of $Geo(p)$, such as $X \equiv Z_1+Z_2+...+Z_r$ where $Z_i \thicksim Geo(p), \forall i\in\{1,2,3,..r\} $
... |
I tried to do multiple imputations with Hmisc package.
It seemed to work, but now I want to actually use the imputed values as part of my sample and run further analyses.
Could someone please tell me where do I find the imputed values and how do I integrate them into my data frame?
Thanks!
|
Excuse the title, suggestions are welcome but I wasn't able to come up with an easier one.
I am trying to find a simple model which "kind of", at least visually, appears to follow a distribution like $\frac{1}{N}\mathcal{N}(\mu_{1i}, \sigma_{1i}) + \mathcal{N}(\mu_{2i}, \sigma_{2i})$ where $\mu_{1i} = 0, \forall i$ an... |
I'm trying to analyze some fairly sparse data on a recurrent medical symptom, and I don't know what to do with two entries where my data is incomplete.
My overall goal is a bit vague: it's to find a pattern that hopefully will, with the help of doctors, find a cause. The symptom is not very serious, but annoying. Assum... |
We have $y_1,\cdots,y_M \in \mathbb{R}^r$ vectors. Suppose that the last entry of each vector $y_i$ is $i$, so that the vectors are sorted by the last entry. I solved the quadratic programming problem:
minimize $|y_M-y_1-w|^2$ subject to $w^t y_{i+1} > w^t y_i$
This is always possible, since the vectors are sorted. Let... |
I built the logistic regression model and the results have good accuracy, but I have a question.
Let's say the predicted probability value is 0.86. And the total accuracy in the classification matrix of the model was 94%.
How can I correctly interprete this?
Can I say that with a 94% accuracy the probability of an eve... |
Beaulieu-Jones et al. (2017) just published a new paper on generating clinical data with Generative Adverserial Nets. Many clinical outcomes have very low prevalence. My question: could GANs, like SMOTE, be used to augment the less prevalent class?
|
Machine learning newbie/enthusiast here, following Andrew Ng's course @ Coursera.
I'm studying logistic regression. I've understood that, depending on the data, the decision boundary can be described by a simple linear equation (a line) as well as more complex higher-order polynomials (curves, circles, odd shapes).
Wha... |
I'm studying multivariate distributions in general and I keep coming across an expression like:
$X = \mu + A Y$ where $ \mu $ and $A $ are constant vectors of dimensions d x 1 and d x k respectively. Then $X$ is d x 1 and $Y$ k x 1.
Then theres an expression saying $ \Sigma = AA'$ and my lecturer mentions how we get $... |
As to
hypothesis test is not 100% exact
I want to get an example to prove above logion.
The example may be:
normal distribution
t.test p value > 0.05(even > 0.5,perfect statistic result)
but 2 population is totally not same
what's that kind of example?
|
I am working in a setup with two binary independent variables. One is experimental, $T$: treated vs. not treated. The other is a feature $F$ that I expect affects how strongly treatment affects outcome. The outcome $S$ is a Bernoulli random variable with very low $p$ (on the order of 0.01-1.0%). I do, however, have at ... |
I would like to use the betareg package, and started with some simulations to ensure I understand how it works.
I seem to be getting biased coefficient estimates in my simulation. I have made my simulation so that it roughly matches the type of data I plan to use (i.e., I have a continuous covariate, but data for evenl... |
How is the "shortness" of the curve interpreted? I have seen studies that just crop this plot and declare "good calibration," but is it? The classifier never predicts above 0.6 in either the training or testing data. The classes are imbalanced, by the way: might this have something to do with the fact that $P(X|Y) \p... |
I'm trying to determine the probability that the prediction is true, that Warriors won't lose consecutive games during an 82 game season. Assuming that Warriors have an 80% chance of winning every game I was trying to get an approximation using binomial probability (nCr*p^x(1-p)^n-x) but I don't know how to model cons... |
I am using scikit-learn's PCA to reduce the features of my dataset. To determine which feature in the original space are most associated with which principal component, I take a look at the sklearn.decomposition.PCA. components_ attribute; per the documentation, this is an array of dimensions [number_of_principal_compo... |
I am aware of the fact that categorical variables with k levels should be encoded with k-1 variables in dummy encoding (similarly for multi-valued categorical variables). I was wondering how much of a problem does a one-hot encoding (i.e. using k variables instead) over dummy encoding for different regression methods, ... |
How does one encode interactions between a multi-valued categorical variable with other categorical variables in R? Does everything need to be written manually since multi-valued categorical variables are dummy-coded manually as well?
|
Many optimization algorithms, such as stochastic gradient descent algorithm, are based on random processes.
Assume that I am using one classifier that uses the SGD,
What statistical tests are required to validate the results, e.g., the accuracy?
Does running the algorithm $n$ times and the find the average of all $n$... |
In social recommender system problems, we have two sets of data, one the rating data denoted as $R$ and the other social data denoted as $T$, most of the papers end at an objective function over these two sets of data, something like this:
$$
\text{Minimize} J = \lvert \lvert R - U^TV \rvert \rvert^2 + \beta ||T - U^TZ... |
Here is a simple data simulation and a function that fits a logistic regression on the simulated data and returns the maximum of the fitted values:
library(xgboost)
# Simulate some gaussian predictors and binary outcomes data
set.seed(1)
x = sapply(1:10, function(k) rnorm(100))
y = rbinom(n = 100, size = 1, prob = 0.5)... |
How is the bandwidth = 1.399776 calculated for the R function density() in this example ?
x <- c(-3.5, 0.0, 0.5, 6.0)
density(x)$bw
[1] 1.399776
|
I apologize if this question is trivial, but I didn't come to a conclusion by myself.
I have an aggregated forecast for a group of $n$ items, normally distributed with mean and standard deviation. $(\mu_F, \sigma_F) $ From this bulk forecast I am trying to go backwards to single item forecasts.
From historical data ... |
I am wondering can neural networks figure out some unknown transform?
I have two vectors:
$x$ - the original/truth value
$x_{t}$ - the transformed version of $x$
One way to describe it would be
$x_t=Fx$,
where $F$ is the transfer matrix (Ex. Fourier matrix in Fourier transform).
The problem here is that $F$ is an un... |
Suppose we observe data $x$ from a distribution with density function $p_\theta(x)$ with unknown $\theta$, we have a prior density $\pi(\theta)$, and we want to minimize the following loss function:
$$L_\epsilon(\theta, \hat{\theta}) = \begin{cases}
0 & \text{if } |\theta-\hat{\theta}| < \epsilon \\
1 & \text{otherwise... |
I have a training and a test dataset and both presents some missing data. I used the MICE R package to handle the missing values in training dataset and now I'm wondering how to handle them in the test data.
I have two options:
1 - I can merge both the training and the test dataset and apply MICE function in this new d... |
I have a classification problem (A or B or C). I am currently evaluating test set results from the trained random forest, neural net, and logistic regression models.
Any one model works pretty well on test set when I require an A or a B call to exceed some probability threshold, for instance 80%. Otherwise it's C.
I wa... |
sample a from population:
[1] 0.69784958 0.06326852 1.63127812 0.79297830 -0.37361933 -0.20305779 -0.27321559
[8] -0.06540687 0.90954359 0.41880990 1.20594584 0.68339223 -0.87355712 0.07544178
[15] 0.89045268 0.10113435 -0.73700255 -1.50056032 0.45599269 0.51620615
sample b from population:
[1] 0.1703... |
I got a residuals vs fitted plot with a clear downward pattern from a linear regression model and am wondering what are some of the sensible things to do in this situation?
Doing a boxcox transformation does not help much in correcting the pattern (bc=0.3 from boxcox()). A log transformation (with an offset ) of the r... |
I need to determine both the
number of free parameters to estimate and
degrees of freedom
of a structural equation model. I know how to calculate these values by hand. However, when I use the R package lavaan, I get a different number. I calculate 59 parameters to estimate.
library(lavaan)
modelo1 <- '
ST ~ A*PA... |
I know that logistic regression is for binary outputs and Softmax is for multiple classes. Would it be fair to say that Softmax regression is the same thing as multiclass Logistic regression?
|
When comparing the independent variables between two groups of one variable, I am would like to calculate the effect size. But I wonder if Cohen's effect size should only be applied to continuous variables? (At least I found that the effsize package only support a continuous variable)
How about categorical variables? ... |
Below is a table which I would like to understand the significance of each specific cell in terms of "is what I'm observing actually statistically significant"? I am aware of the Chi square test but this summarises the whole table's significance - I would like to look at the significance of each specific observation co... |
I am using xgboost to train a classification model. Say, there are 1 million samples totally and my model's f1 score is 0.36. But when I add more 0.5 million samples which are close to some entries of my current dataset, the f1 score is below 0.34. Actually, the additional 0.5 million samples are close to (not equal t... |
I would like to know how to plot the following 30 observations on a graph, with 1 color for each country, using Kmeans or other methods on R.
Each of the 40 independent variables can take value from 0 to 100 (100 means the data point shows strongly the attribute).
Thank you
|
We know outlier obs should be remove from factor analysis.
Attach plot of this column data
What kind of outlier should be removed and use which function in R?
|
I downloaded a dataset for intrusion detection. It's from the honeypot systems of Kyoto University (2013 dataset). I'll be using the dataset for training a neural network. My problem is how to process the dataset. Am I going to use vector space model or what?
A sample from the dataset:
0.000000,other,0,0,0,0.00,0.00,0.... |
The slope is a Point Estimate of the population parameter. And the t-distribution is used when the Point Estimate is approximately normal.
So are we using the t-distribution because we know the Point Estimate/The Slope is approx normal? If so, how?
|
I have a convolutional network (For details, please see the edit in the bottom) with training/testing errors that always look very similar to what is shown in the figure. In other terms, it seems that my model is overfitting without any generalization whatsoever from the begining. What I find also bizarre is its oscill... |
I am currently reading Rasmussen & Ghahramani's paper on Infinite Mixtures of Gaussian Process Experts. (you can find it at this link)
Unfortunately, I lack experience with understanding how complex statistical models are learnt, especially when multiple techniques are combined. As a result, there are a couple of point... |
I have $m$ weakly stationary observations $X_1,X_2,\cdots,X_m$ from a Markov chain. I want to estimate the variance of the mean. My idea was to use nonparametric bootstrapping to make $n$ bootstrap samples from the $m$ observations and compute $n$ bootstrap means $\mu^*_i$. Then estimate the variance using
$$
\widehat{... |
I have a large set (100+) of variables on which I'm performing PCA. The PCA returns me a list of components, each of which is in turn a list of the weights to be placed on my variables in a linear combination.
What I want to do is use these numbers to evaluate the relative importance of each variable in describing the ... |
What is the difference between auxiliary variable and Latent variable when we talk about joint posterior density (when it is in complex form). Notice that, my work is based on continuous random variables. I want an example to understand it.
|
There is a thing I’ve never understood in IRT completely.
Packages in R such as mirt or ltm are usually consistent in their estimates and seem to be unaffected with starting values. However, I am convinced there is the infinity of the best solutions.
Consider a minimalistic example:
#matrix of responses (5 persons, 4 i... |
I have read articles/books in which the null hypothesis for the t-test is sometimes phrased as the sample means being from the same population. However, if the two groups you are comparing are clearly not the same (e.g., male vs. female), then why is it phrased that they are from the same population?
|
I have two datasets, that should correspond to each other. But there are certain fields which contain errors, and I need to find trends in those errors found. For example, all data in column1 has errors when data in column 3 is between two dates/values. Or whenever the value in column4 has category 'x' there is error i... |
I have gathered two sensor data over a 5 minute time period, and Sensor 1 starts misbehaving at point 4000. What are the statistical ways I can figure out which sensor and at which point it starts sending wrong data?
|
My classmate told me:
Any data in this world fit a kind of distribution
I am just newbie in statistics.I just know normal,binorm,poisson,chisq,gamma,beta,etc.
Does humankind discover all distribution in this world?
Where can I get a complete collection of distribution?
|
This might not be the best forum for this question so please forgive me.
So I was demo'ed a custom naive bayesian classifier that accepted both positive & negative training data. An example:
"I am really excited about getting my python tonight"
This would be trained as positive on the class "pets", "happy" but negative... |
I was reading the following link. One of the section mentions about selecting the a value for $\alpha$.
Looking at the bottom right plot below (contains MSE for 3 different values of $\alpha$), it seems to me that $\alpha = 0$ gives the lowest MSE and hence should be the best here. However, the image below says that $... |
I am trying to cluster a list of words/phrases in the context of similarity (not semantic).
I have a large dataset of categorical variables. In a perfect world, the categorical variables would have a limited number of unique types (WASH DISHES, CLEAN HOUSE, REMOVE GARBAGE) and this would be easy to do.
Unfortunately, t... |
Let's suppose we have $4$ discrete random variables, say $X_1, X_2, X_3, X_4$, with $3,2,2$ and $3$ states, respectively.
Then the joint probability distribution would require $3 \cdot2 \cdot2 \cdot 3-1 $ parameters (we don't know any independence relations).
Considering the Chain Rule, and considering the fact that y... |
I'm trying to use a Support Vector Machine for classification using Scikit-Learn while understanding how to tune the hyperparameters.
My original dataset has ~4000 features and ~150 samples. I've tried a few transformation techniques to get the data into ~10000 samples and 5 features. My features range from 0 - 1 ... |
I want to pick the best model among a set of candidate logistic regression models. Often, I've come across two approaches to do the same:
(1) Split the data into k-folds and iteratively use k-fold CV to arrive at a model with the optimal error metric.
(2) Split the data into 3 folds: training set, on which you train th... |
From early on in stats education, you get the difference between statistics and parameters drilled into your head. However, I've more recently (outside of school) encountered the term "metric," and I've begun using it a lot myself. (e.g. talking about developing a metric for gauging timely processing)
my actual questi... |
Im using the pywt (PyWavelets) python library to remove the Gaussian Noise from a timeseries dataset.
b is a python list of timeseries values like this, [33.33, 34.23, 35.65...]
(cA, cD) = pywt.dwt(b, 'db1')
how can I use cA and cD in a regression algorithm to make a prediction on the future values? do I just remove th... |
I cannot understand the computation in the below article :
https://logological.org/girlfriend
(https://i.stack.imgur.com/ZM5wA.png)
The writer finds the number of girls aged 18 and above multiplying the number of girls in the bin "15-19" (39 560 000) by a fraction which I don't understand where it comes from.
My thoug... |
Let $F$ be a symmetric (around $\frac{1}{2}$) cumulative distribution whose support is $[0,1]$. So, $F(x)=1-F(1-x),\forall x\in[0,1]$. Would this identity hold for any such $F$?
$$\int^1_0(x-\frac{1}{2})F(x)(1-F(x))dx=0$$
|
Totally new to LSTMs and would like some guidance on how to structure input data for classification using multivariate longitudinal data. Most, if not all, tutorials online are non-healthcare related and I could not find a good analogy as an example to work from.
The problem: predicting that a hospitalization event wil... |
I have run a multinomial logistic regression with one dependent variable (category) and 28 independent variables.
In order to compare each category with each category, I run the test 10 times, use the same dependent variable, but each time set one category as the baseline.
So, will this be considered as multiple times... |
There are many posts about how to do it but I miss one particular aspect, namely if the feature selection should be done for each validation set based on its accuracy (Case A) or as a mean accuracy of all sets (Case B).
Example.
Case A:
I have 5 cross-validation sets. For each I do a feature selection (say backward se... |
Help needed with link functions!
I'm attempting to do some linear models examining how fork lenghts of fish are dependent upon sex (0 or 1), hatchery mark (0 or 1) and age (continuous). When I try a standard model, some or all assumptions fail. I'm thinking a link function would be helpful, but wondering if someone cou... |
I am trying to create a convolutional neural network for multilabel classification of greyscale images showing the outline of people. I do not have much available data and overfitting is a problem. To counteract this I would like to use transfer learning from a standard conv network, but all the ones I have seen are ... |
I have some toy data for an experiment where subjects are shown pictures A,B and C and then they are given a choice between choice A or choice B. I am interested in determining the effect of the pictures on the response.
I am running a logistic regression to see how the pictures increase or decrease the liklihood of... |
I am in the final stages of a meta-regression on disease prevalence data and potentially associated covariates. I've entered the data as raw proportions and am using the logit transformed event rate as my effect size. I have standardized coefficients, standard error, confidence intervals, z-values, and p-values for the... |
(To simplify the notation, I assume $dim=3$) Because for any multivariate distribution $p(x_1,x_2,x_3)$, we can write $p(x_1,x_2,x_3)=p(x_1)p(x_2|x_1)p(x_3|x_1,x_2)$. To draw a sample from it, can we do the following?
draw $x_1^*$ from $p(x_1)$
draw $x_2^*$ from $p(x_2|x_1^*)$
draw $x_3^*$ from $p(x_3|x_1^*,x_2^*)$
I... |
I am new to machine learning and R.
I know that there is an R package called caretEnsemble, which could conveniently stack the models in R. However, this package looks has some problems when deals with multi-classes classification tasks.
Temporarily, I wrote some codes to try to stack the models manually and here is t... |
As in, how do you come up with a linear predictor when using Generalized Linear Mixed Models (before doing model diagnostics)?
Are there exploratory methods or graphs to come up with a model before validating it?
|
Let $X_1\sim N(\theta_1,1)$ and $X_2\sim N(\theta_2,1)$ be independent RVs. It is of interest to test the following:
$H_o: (\theta_1,\theta_2)=(0,0)$
$H_a: (\theta_1,\theta_2)=(1,0) \text{ or } (0,1)$
The first objective is to find the generalized likelihood ratio test (GLRT) while the second is to find the MP test. My... |
I'm new to data science and machine learning. I've been tasked with understanding DPS. So far, I know that it is a part of Reinforcement Learning but I can't find anything specific to DPS other that very technical scholar journals and papers on it. Are there any textbooks specific to DPS or even RL that has a subtopic ... |
I'm very new to GCA so sorry in advance if the question is very basic. I have run an eye-tracking experiment in which participants look either at one of the elements or the other (so I have a binomial distribution). I have two fixed factors in my model:
Type of relative clause (RC.type, with two levels)
Animacy of the... |
I am using R to do below test:
hsb2 <- within(read.csv("https://stats.idre.ucla.edu/stat/data/hsb2.csv"), {
race <- as.factor(race)
schtyp <- as.factor(schtyp)
prog <- as.factor(prog)})
Then,
>wilcox.test(hsb2$write,mu=52)
Wilcoxon signed rank test with continuity correction
data: hsb2$write
V = 9503.5, p-value... |
Assume $X$ and $Y$ are two positive RVs and $Cov(X,Y)>0$. Does this imply that $Cov(X,1/Y)<0$, or is more information needed?
|
I have two samples of the same population and wish to reduce the sample sizes, but maintain the same ratio of precision produced in the original samples. I suspect I can take the square root of the original sample size, but this produces very small samples. How, in short, can I scale down the original samples, but main... |
When applying transformers in a cross-validation routine, it is often advised to fit the transformer to the data in your train set, and transform both the train and test set using the obtained transformer parameters. As an example, suppose we are using a standard scaler as a transformer, the cross-validation routine mi... |
I would like to interpret my ARMA model. I would like to tell about all those numbers as much as possible. I tried to study it but there as still some issues I am not sure about. I will start by trying to explain the thing I hope I understand correctly (if not, please help me out) and then ask you guys how to interpret... |
I am using the gbm package and I am using the gbm.step function. In the ?gbm.step I see tree.complexity sets the complexity of individual trees. Is this equivalent to the depth of the tree ?
|
This is rather simple, but am always confused so perhaps somebody can explain me once for all.
I have two sets of observations coming from two sources that I want to compare, say $e_1$ and $e_2$ both having $N$ points. Three things could happen:
i) $e_1$ is consistently larger than $e_2$,
ii) $e_1$ is consistently s... |
I know how to generate a $\pm 1$ sequence with mean $0$. For example, in Matlab, if I want to generate a $\pm 1$ sequence of length $10000$, it is:
2*(rand(1, 10000, 1)<=.5)-1
However, how to generate a $\pm 1$ sequence with mean $0.05$, i.e., with $1$ being slightly preferred?
|
I am going to implement a Random Forest Regressor and remember reading somewhere, that the datasets for learning should be as diferent as possible for a good pretiction. (Unfortunately I can not find that source text anymore, Neither after a search in the web I can not find support for this assumption) Therefore I woul... |
Im having a few issues with understanding cross validation and how to apply this to produce predictive models.
Im am currently working on Neural Networks (in r) and i'm using the caret package to perform a k-fold cross validation (k=10) on the train portion of my dataset (70% of entire dataset).
I have three question... |
I'm studying prior choice, and as far as I understand, when more than one parameter in a distribution is unknown, it is both possible to place one prior for each of the parameters in the likelihood, as well as to place a joint prior over all of said parameters.
For example, for a normal distribution $N(\mu,\sigma^2)$, ... |
Would much appreciate to hear your opinion about the following strategy:
I have several samples of point patterns, witch are results from somw replicated experiment. The number of points and area of observation vary from experiment to experiment. I would like to test a null hypothesis on CSR for this set of data using... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.