instruction stringlengths 9 38.7k |
|---|
I'm trying to get the same GARCH (1,1) on both fGARCH and rugarch packages but the 'sigma' series I get from both seems to be very different. The code I use is below. How can I set up rugarch to be exactly like fGARCH?
fGARCH:
model2=garchFit(formula = ~ garch(1, 1), data = x, trace=FALSE)
sigma2=as.matrix(model2@sigma... |
I have an interesting problem in my company.
There is a product, each item of which, has a region-time specific code when it is released in the market.
Say, there are 15 features on the basis of which a code is created. The code is created by a lot of tiny rules (we don't know, they won't say). They have a pipeline whe... |
I find that:
$$\Big(\sum_{i = 1}^n y_i\Big)^2 = \sum_{i=1}^m y_i^2 + \sum^m_{i\neq j}y_iy_j$$
where $m=(n^2-n)=n(n-1)$, the first part of the right side is the sum of the main diagonal of the matrix, and the second part is the sum of the upper and lower part of the matrix.
Then it is write that the second part can be w... |
In a regular soft-margin SVM we want to find
$\min_{w,b, \xi} \frac{1}{2}||w||^2+C\sum_{i=1}^{\ell}\xi_i$
subject to $y_i((w,x_i),+b) \geq 1 - \xi_i$
and $\xi_i \geq 0$
Which we convert to the Lagrangian
$L(w, b, \alpha, \beta) = \frac{1}{2}||w||^2+C\sum_{i=1}^{\ell}\xi_i - \sum_{i=1}^{\ell}\alpha_i[y_i((w,x_i)+b)-1+\... |
I am trying to demonstrate how my data respond to benford's law before and after filtering. Benford's law - or first digit law - is an empirical phenomenon, which distributes the probability having 1,2,3,...,9 as first digit in a data set. This phenomenon can be tested with a typical pearson's chi squared test, MAD, or... |
I am learning on how to predict with ARIMA models. To get some knowledge I read trough some online tutorials for R and ARIMA models.
Now I wanted to try this by myself with a problem I am currently working on. The goal is to predict the vehicle speed of a car based on past measures. I have data sampled from the vehicle... |
Context: I am performing growth regressions on a panel data set in R, including individual- and time fixed effects. Estimating with OLS delivers results that seem to suffer form serial correlation. For that reason I want to reestimate my model with FGLS.
Problem: The R package "plm" does provide FGLS estimations via pg... |
Given the following stochastic process:
$$ y_t = \sum_{i=1}^n(\beta\epsilon_{i-1}+\epsilon_i) ~~~~~,~~\epsilon\sim WN(0,\sigma^2)$$
the solution says that $\text{Var}(y_t)=\sigma^2[n(1+\beta^2)+2(n-1)\beta]$, but I obtained a different result. My procedure is the following.
First of all $E[y_t]=0$, then:
$$ \text{Var}(... |
I have ran a Generalized mixed-effect model using the glmer function in the lme4 package. To appraise the significance of the model, I am using a likelihood ratio test. For example, if testing the 'explanatory' variable:
Full_model <- glmer(Response ~ Explanatory + (1|Subject), data = df, family = "poisson")
Null_model... |
Let's say you are a city builder and want to optimize the number of laundromats and convenience stores based on the satisfaction of people (just a made-up example). Your data might look like this:
Satisfaction # Laundromats # Convenience Stores
100% 4 10
...
50% 5 ... |
As the title says. I read a lot about congeniality of Bayesian models (e.g. Meng, 1994) and I do know some definitions, but I don't feel I can get grip on what happens when models are congenial or uncongenial. My goal is to write an R script that shows the difference (numerically), but I am not that far yet.
Is there ... |
This is my first post here so apologies for the rather basic question, but after days of reading I still can't find a satisfactory answer. I want to run a cross-lagged panel model on three waves of data to look at interactions and stability effects over time between drunkenness and illicit drug use in a normal early-ad... |
I have a binary classification task with classes 0 and 1 and
the classes are unbalanced (class 1: ~8%).
Data is in the range of ~10k samples and #features may vary but around 50-100.
I am only interested in the probability of an input to be in class 1 and
I will use the predicted probability as an actual probability i... |
I know this sounds contradictory, if we think of main effects, as the random factor would remove some of the variation that we want to explain by the fixed effect.
But let’s look at a study design where fields were paired (according to land use in the surroundings, distance etc.). In each field pair one was randomly as... |
I'm analysing some roe deer biological traits with a gam in mgcv. One of my variable is a factor with nine levels (i.e represents a combination of litter size and sex: M, F, FF, MF and so on) and my response variable is total litter size weight. I'd like to apply a post hoc test in order to compare F vs M. Many methods... |
I'm a biochem grad student trying to understand part of my research group's math. Could someone help me understand the derivation for a full conditional distribution for the i-th individual mean, which is given by $$\alpha_i|y,\mu_\alpha, \alpha_{k_\ne}{_i}, \sigma_y, \sigma_\alpha \sim N(m,v)$$
Where $$v=(n_i/\sigma^2... |
Compositional data can be analyzed by either Dirichlet regression or using log-ratio analysis as pioneered by John Aitchison.
My questions are
What are the main differences in assumptions between these two models? When should you prefer one above the other?
Are there any "methods" that one topic allows which the othe... |
There is a great deal of information on how unbalanced data sets may impact predictive accuracy in classification problems. Several solutions have been proposed (see here). My questions are:
Can a highly skewed target distribution (i.e. when the response variable is continuous and not categorical) create similar prob... |
I am currently reading up on some hidden markov models [Source], and trying to understand some of the solution related to the evaluation problem, which is
Given observation sequence $\boldsymbol{O}$ =
{$o_1$,$o_2$,$o_3$...,$o_t$}, and model
$\lambda$ = {$\boldsymbol{A}$, $\boldsymbol{\pi}$ and $\boldsymb... |
I am trying to build a very simple NN to approximate a linear function (literally).
I took a table data:
f(x) = 5 * x
Shapes:
Now I am building a very simple NN using Keras:
from keras.models import Sequential
from keras.layers import Dense
from keras.layers.core import Activation, Dense
# define base mode
def basel... |
For two independent Frechet distributed variables that have the same shape parameter but different scale parameters:
$$ F_i(x) = e^{-\psi_i x^{-\epsilon}}, i=1,2$$
The probability of one variable being larger than the other has a simple closed form solution:
$$ Pr(x_1 > x_2 ) = \frac{\psi_1}{\psi_1 + \psi_2}$$
I am ... |
I have this simple dataframe with some NAs.
features<-data.frame(M1=c(1,1,0),M2=c(1,1,0),M3=c(0,0,1),C1=c("white","green",NA),
C2=c("violet","cyan",NA),C3=c(NA,NA,"red"))
print(features)
M1 M2 M3 C1 C2 C3
1 1 1 0 white violet <NA>
2 1 1 0 green cyan <NA>
3 0 0 1 <NA> <... |
I'm trying to run an intraclass-correlation (inter-rater agreement) for personality data I have collected. However, I work with animals and as such the data has been collected over a period of a year or so, I have, in some cases different numbers of raters per subject, and different raters (or more specifically, not al... |
I am using stochastic variational inference for a model, where two of local variational parameters depend on each other. Regularly they are updated simultaneously, and part this update looks like something as below:
while true
for i from 1 to #observations
z1_new[i] = f(z2_old[i])
z1_old[i] = z1_new... |
I'm struggling to understand the results of simple multiple linear regressions -- specifically, the standard deviations of predictions.
Say that I have a data set where a variable density was measured every season between 2000 and 2005.
# Create dummy data set
df.tst <- data.frame(density = runif(24, 0, 1),
... |
I am doing an experiment on the effect of temperature on the rate of lactic acid fermentation of yoghurt over 6 hours. I have used the fall in pH as an indicator for the presence of lactic acid. I have measured the pH of yoghurt every hour for 5 sets of temperatures and calculated the rate of fermentation for every hou... |
I am having some difficulties with a linear mixed model implementation.
The situation:
17 subjects get tested on both sides of their body (L vs R) at 5 different time points (i1-i5) with 2 tests (A vs B)
I want to test whether there is a difference in the values obtained by the 2 tests, correcting for repeated measure... |
[1]
I'm testing some P/RNGs algorithms, so in order to see how normally distributed are the values obtained by these Random Number Generators (resp. Pseudo-), which method suits best? Is drawing the Normal Distribution Curve would be sufficient? Or doing a Chi-squared test is preferable?
By normally distributed, I mean... |
I have a prediction model tested with four methods as you can see in the boxplot figure below. The attribute that the model predicts is in range of 0-8.
You may notice that there is one upper-bound outlier and three lower-bound outliers indicated by all methods. I wonder if it is appropriate to remove these instances f... |
Can a finite state Markov chain have essential transient state?
I have found out an example for an infinite state one and I have the intuition (I may be wrong) that for a finite state space .. This isn't possible... But I am not being able to prove it..
|
If I know the variance of column A, column B and Column C. But I want to know what is the variance of Column D which is equal to D = A+B+C. How do I calculate that variance?
|
I am trying to extract good low dimensional representation of CIFAR-10 images in an unsupervised way. It is a project requirement that I use 512-d GIST features, reduce the dimensions to 32 using PCA and reduce the dimensions using Auto encoder and compare. I am using image-classification accuracy as the final evaluati... |
I am running Spark MLLib's Decisioin Tree model. While parameter tuning, I came across the minInstancesPerNode but I am not sure of the implications of setting it too low or too high. Can anyone help me understand its purpose and importance?
As per my understanding, it would be overfitting if there are very few insta... |
I've heard it said that most statistical tests can be reformulated within the GLM framework. I can see how that can be done with a two-sample t-test (dummy code group membership and interpret the slope as the difference between the two group means). Is it possible to reformulate a z-test (or a one-sample t) into the GL... |
Suppose I have 4 massive data sets representing specific products all belonging to the same "product class". A priori we expect that these will all behave similarly and that a grouping will make sense. Our task is to predict a binary response associated to each observation in a product. The current implementation is to... |
I've a - probably beginner level - question about classifying. My goal is to classify users as UG1 or UG2, based on some specific characteristics of them. So, what I've done so far is:
I have two major groups of users (UG1 and UG2). Each study participant (N=67) took a test, and based on their total performance they w... |
Multiple Regression -
Found a Significant model but one variable does not significantly predict the behaviour, how to explain this ? Also attaching correlation table.
|
If a linear regression model is severely overfitted, the calculated prediction interval can be pretty tight, but the model won't generalize well to unseen data, so the prediction interval can be totally wrong in this case, is this correct?
|
We all know precision and recall. What if two algorithms have the same precision and recall but one algorithm makes more predictions with the data available.
Example:
"I love samsung. Apple is terrible."
Algorithm 1:
"I love samsung. Apple is terrible."
Makes prediction Neutral.
Algorithm 2:
"I love samsung. Apple is t... |
I need to find the factors which are most impacting the number of students failed in a class. So, I have a dataset containing number of students failed and variables which are specific to the school, class etc. Essentially, I want to figure out the variables which are affecting "number of students failing".
If the Y-v... |
I have been reading up a bit on LSTM's and their use for time series and its been interesting but difficult at the same time. One thing I have had difficulties with understanding is the approach to adding additional features to what is already a list of time series features. Assuming you have your dataset up like this... |
Lee and Lemieux (p. 31, 2009) suggest the researcher to also present graphs while doing Regression discontinuity design analysis. They suggest the following procedure:
"...for some bandwidth $h$, and for some number of bins $K_0$ and
$K_1$ to the left and right of the cutoff value, respectively, the
idea is to co... |
Does it make sense to use datetime components (e.g. year, month, day) as grouping variables in a multi-level model?
For example, I have some data that consists of repeated measures within group:
group | date | measurement
------|------------|------------
1 | 2015-05-01 | 0.5741408
1 | 2015-05-02 | 0.5... |
I have 3 experimental conditions, each generate a series of values for some genes, like the following:
c1 c2 c3
g1 n11 n12 n13
g2 n21 n22 n23
.
.
.
c1, c2, c3 are conditions; g1, g2, ... are gene names; n11, ... are the expression levels. c1 & c2 belong to one group, and c3 is the other group by itself. ... |
This is an imaginary question. I am asking out of curiosity.
Say we have data on how fast a person can run 100 meters. We have also measured this person's weight, and also how cold the temperature was, or what season we were in (let's say we gathered info all year, so all seasons are represented).
It is known that both... |
What is the derivative of $F = \|X^T-S^TAX^T\|_F^2$ w.r.t $A$,
where $X \in\mathbb R^{d \times N}$, $S \in\mathbb R^{k \times N}$, and $A \in \mathbb{R}^{k \times N}$?
I have tried, and it is as follows:
$$\frac{\partial{F}}{\partial A} = -(X^T-S^TAX^T)SX$$
but I think the result is not correct, because the dimension... |
I have a question with applying Chi-squared tests to a given set of data. Let's say that my data is numbers of different-colored MM's in a bag.
Suppose there are 6 red, 4 blue, 8 orange, 2 green, 10 purple, and 6 brown for a total of 36, while the expected value is 6 for each.
The chi-squared test for this data, after... |
Let's say I have 2 probabilistic regression models that each output a predictive mean and variance:
$$f_1(x) = \mathcal{N}(\mu_1, \sigma_1^2)$$
$$f_2(x) = \mathcal{N}(\mu_2, \sigma_2^2)$$
And I want to combine them into one predictive distribution. The ensemble predicted mean is the (possibly weighted) average of the ... |
The most common form of linear regression estimates the best values of $\vec{\beta}$ and $\sigma^2$ assuming that data is sampled from a model $y = \vec{\beta} \cdot \vec{x} + \vec{\epsilon}$ where $\epsilon$ is a normally distributed error with variance $\sigma^2$.
In practice, a more accurate assumption is that $y = ... |
So, I was reading Distributed Representations of Words and Phrases and their Compositionality, and I can't understand this part on page 3:
What exactly are these representations? One-hot vectors? Resulting embeddings? Implementation-dependent stuff? This short piece is the only time they are mentioned in the paper (at... |
I am interested in comparing Classifier A with Classifier B. I have accuracy of five datasets for each classifier. I want to apply non-parametric test like wilcoxon signed rank test because I want to find out if Classifier A is better than B. Is correct to apply this test using five datasets? because in some tables of... |
Dirichlet regression for compositional data is described e.g. here
But I do not quite understand the theory, even if I could probably manage to fit some models in R. What do I need to know before I can fully understand the theoretical underpinnings?
The link above states that it develops a "GLM - like" framework, so is... |
Recently I am reading a paper in 2001, Michael D. Ernst, Jake Cockrell, William G. Griswold, David Notkin Dynamically Discovering Likely Program Invariants to Support Program Evolution TSE 2001, in this paper, it says,
Learning approach such as Bayesian and PAC learning, assume there is noise in the input data and he... |
I did a logistic regression with bayesglm from package arm. I got different results depending on the order of the variables in the model:
set.seed(334)
x1 <- rnorm(100) # some continuous variables
x2 <- rnorm(100)
z <- 1 + 0.6*x1 + 3*x2 # linear combination with a bias
pr <- 1/(1+exp(-z)) # pas... |
I have in my possession a theoretical and practical test that evaluates the knowledge of a semester of the subject Probability and Statistics, that is, I am practicing for an exam by attempting questions from an exam from July 30, 2013.
This test I am doing at home to evaluate myself.
Activity 1
The $ 35 $% of the stu... |
I have three random variables $X_1, X_2, X_3$ that are normally distributed each with different means $\mu_1, \mu_2, \mu_3$ and share the same variance $\sigma^2$. I want to find the covariance of $(X_1-\bar{X}, \bar{X})$, where $\bar{X}$ is the average of the three random variables.
I did the following , $Cov(X_1-\bar... |
As it is known, Kendall's coefficient of concordance (W) indicates the degree of association of ordinal assessments made by multiple appraisers when assessing the same samples.
Kendall's coefficient values can range from 0 to 1. The higher the value of Kendall's, the stronger the association. Usually Kendall's coeffic... |
Is there a technique for classification, where given a feature vector X = (x_1, x_2,..., x_n)
and a Bayesian network for each class, which for each x_1, x_2,...,x_n there may be a corresponding node in the network. So that I can classify whether the feature vector X belongs to the "class" represented by the network?
Is... |
I am new to machine learning and am very lost trying to deciding on features from a data set. The data set that I have has over 25000 observations and just under 500 features. I have a churn variable 0/1 where 0 is churn. I am attempting to build a classification model for churn. Does it make sense to do a random f... |
There are helpful questions and answers for how to calculate the required sample size (or carry out a power analysis) for MANOVA, but not for MANCOVA using the freely-available G Power software.
Is there a way to do so for MANCOVA using G*Power?
The specific MANCOVA has:
three continuous response variables
a categor... |
H0: There is no effect of treatment (Road vs control) on rat occupancy
H1: Road has an effect on rat occupancy
Mod1 <- glmer(Rat.Present ~ Treatment * Set.distance + (1|Site/Trap.Night), data = df.sub1,
family = binomial)
summary(Mod1)
Generalized linear mixed model fit by maximum likelihood (Laplace Appr... |
Suppose I have a distribution from a known parametric family f(x; θ). I have a sample from that distribution. From the sample, I estimate values for the parameters. Suppose I have estimators that I know to have some desirable property. For instance, they may be minimum variance unbiased estimators, or maximum likelihoo... |
I'm looking at a pdf document and can get the result of the HR. It is actually similiar to calculating the relative risk if I'm right.
How do I get the 1.45 HR or 1.20 HR values based on the 3 rows above (ppis users, h2 users, nonusers). I believe I need more parameters which the researches haven't provided or am I wro... |
I have several sets of count data (as below) that are overdispersed. The overdispersion likely comes as a result of the number of zeros in the data which I understand means the paramater estimates in my model are okay, but the standard error may be lower than expected. The overdispersion is not due to outliers, the pre... |
I'm fairly clueless how to accomplish my goal here...
Firstly a bit of back story: I have about 10 technicians, and they each make sets of concrete samples in the field. Each sample has 2 x 28 day results and we use the pair MPA differences to see if they are doing a good job (they should be as close to 0 difference a... |
The first sentence of this wiki page claims that
In econometrics, an endogeneity problem occurs when an explanatory variable is correlated with the error term.
My question is that how can this ever happen? Isn't regression beta chosen such that the error term is orthogonal to the column space of the design matrix?
|
What will I do if I have data of specific 50 employees about their gender and age and I want to know if these independent variables really affect the dependent variable which is Medical Class Type (Class A, B, C, D). Class A-very fit to Class D-not fit to work. I have the yearly data from 2012 to 2016 and I want to kno... |
I want to measure the fuzzy system performances directly through cross-validation. How can I do this? How the concept of training to get model and test the model?
|
I have data from 7 sites, which are under 3 types of AMD impairment (2 impaired, 3 recovered, 2 unimpaired); each site has 3 different treatments (Undisturbed Upstream, Disturbed, Undisturbed Downstream). Sites were sampled right before the treatment (day 0), and then 5, 10, 15, and 30 days after treatment.
I want to s... |
I have an estimate for the Holt-Winters model as the attached image. How do I interpret the estimates i.e. the level, trend and seasonal smoothing weight?
|
I hnave a computer process that does some classifications.
After that I choose 10% of that data and manually classified those analyzed records into correct and incorrect.
I found out that around 10% of the sample was classified in my computer process with an error.
First, is my sample representative? Can I infer that 1... |
When using a fully-connected network (FCN), I have problem understanding how fully-connected (FC) layer to convolutional layer conversion actually works, even after reading http://cs231n.github.io/convolutional-networks/#convert.
In their explanation, it's said that:
In this example, as far as I understood, the conve... |
I have data, $(x_i, y_i)$ where $y_i$'s are responses and $x_i$'s are covariates, that appears to follow this model:
$y_i = [0.000001^\text{th} \text{ quantile linear regression of } (x_i, y_i)] + e_i$,
where $e_i \sim \operatorname{Exponential}(\lambda)$ and $\lambda$ is to be estimated.
I know how to fit the minimum,... |
I need to apply DBSCAN clustering on trajectory data eg collected from RFID readers from RFID tags at various points in the path defined.
HOw can I do it using R ?
|
I am studying a modelling problem which is given as:
Suppose I have a sphere(empty) and there are some particles that are entering it with Poisson distribution, and it is given that the number of incoming particles is given by:
$y_i$~$Poiss(\rho)$. $\rho$ is given as rate of occurrence.
Now if the center of sphere is... |
I am trying to forecast a time series analysis based on auto.arima() function in R. I have a time series with 35 data points and 3 different regressors.
auto.arima() gives me the following output
library(forecast)
fit.auto.arima <- auto.arima(Z_values, xreg=cbind(GDP_reg, EXPORT_reg, UNEMPL_reg))
summary(fit.auto.arima... |
I am estimating the following noise model:
\begin{equation}
n \sim \mathcal N\left(\mu(x,y),\sigma(x,y)^2\right)\in\mathbb R
\end{equation}
\begin{equation}
\begin{cases}
\mu(x,y) = k_1+k_2x+k_3x^2+k_4y+k_5y^2 \\
\sigma(x,y) = k_6+k_7x+k_8x^2+k_9y+k_{10}y^2 \\
\end{cases}
\end{equation}
where $x\in[0,3]$ and $y\in[0,\p... |
I have a set of data with continuous features $x_1, x_2,...,x_n$, as well as a continuous $y$ which is some complicated, unknown function of the $x_i$. Each data point, furthermore, has a discrete label (category). I want to somehow quantify which variables $x_i$ are most responsible for the variance of $y$ between the... |
Is there some way to have Stata create bin sizes for a histogram such that when you plot the histogram on a log scale, the bins will all appear to have the same width (visually, not numerically) on the plot? Basically, instead of a histogram with fixed bin sizes, I want a histogram with variable bin sizes that increase... |
So, I am looking my raw time series dataset, which is non stationary. I initially used the log transformation to stationarize the dataset. The plot the graph(down below). It is obvious that there is still a seasonal component to the data from the ACF plot.
I then tried to use differencing to remove the seasonal compo... |
I am working through the following tutorial about how to create clusters within a dataset. The tutorial can be found here.
Using the following code, we can create a plot where we visualise the three clusters which have been formed.
library(factoextra)
library(cluster)
library(NbClust)
#
data(iris)
head(iris)
#
iris.sca... |
I'm using matlab to fit a logit GLM to a data (detection problem). I have a Nx5 matrix of independent variables and a binary (i.e 0-1) column vector of responses. When I try to fit the GLM model with fitglm I get this warning
Warning: Matrix is singular to working precision.
which leads to the following error
C must b... |
I want to estimate the effect of a treatment on a subsequent growth trajectory, allowing both the level and rate of change in the response variable to depend on the treatment.
To adjust for pre-treatment covariates I would like to use some sort of propensity score based adjustment, whether matching, covariate adjustme... |
I'm working on a discrete choice problem in which several individuals of a given population undertake a number of trips during one day and, for each trip, the choice of mode is recorded (train, car, bus, etc.).
I would like to build a hierarchical model to predict the mode for each trip of each individual. Thus, the t... |
may question involves a simple neural network architecture (as simple as my expertise in neural networks):
$n_I$ input nodes (binary, ordinal, real, integers);
$n_H$ hidden nodes;
$n_O$ output nodes (count data).
There are no cycles/loops in the neural network, all nodes from a layer are connected to the previous... |
As I was reading the following passage of this blog, which defines R-(replicability-)indices:
To correct for the inflation in power, the R-Index uses the inflation
rate. For example, if all studies are significant and average power is
75%, the inflation rate is 25% points. The R-Index subtracts the
inflation ra... |
I am doing a Principal Axis Factor Analysis, I found two factors and saved the factor scores for each, using the regression approach (as in the SPSS option by default).
My question is, how do I calculate the reliability of each of my two factor scores variables now?
In other studies, I already used factor analysis and ... |
I wish to plot a continuous response variable (richness) against categorical predictors, but in doing so I need to control for a continuous 'nuisance' predictor (depth). My solution is to run a linear model of richness~depth, and then plot the residuals from the model instead of the raw data. However, in order to impro... |
Let $A$ and $B$ be independent and normally distributed variables where $A \sim \mathcal{N}(\mu_1,\sigma_1^2)$ and $B \sim \mathcal{N}(\mu_2,\sigma_2^2)$.
What will be the density of $A^2 + B^2 -2AB\cos(\phi)$, where $\phi$ is a constant?
I read the answer in Finding the distribution of $5X_{1}^2+2X_{1}X_{2}+X_{2}^2$... |
Scikit has CalibratedClassifierCV, which allows us to calibrate our models on a particular X, y pair. It also states clearly that data for fitting the classifier and for calibrating it must be disjoint.
If they must be disjoint, is it legitimate to train the classifier with the following?
model = CalibratedClassifierC... |
I am very new in probability and statistics, and I don't know if I can post here in cross-validated this very simple question. However I have this problem:
An urn has $10$ numbered balls such that
$4$ of them have the number $0$
$2$ of them have the number $1$
$4$ of them have the number $2$
Let $X$ a random variabl... |
My field regularly demonstrates a certain type of result with pairwise Pearson's correlation matrices between predicted and measured data. As soon as such correlations become high, Fisher-transforming the correlations will (visually) pronounce differences between the pairs better than leaving the correlations uncorrect... |
I'm attempting to utilise RF regression to make predictions on the performance of a paper mill.
I have minute by minute data for the inputs (rate and amount of wood pulp going in etc...) as well as for the performance of the machine (paper produced, power drawn by the machine) and am looking to make predictions 10 minu... |
Say that I have calculated a probability of winning for every single horse in a collection of races (say, all the races on one day). The odds being offered by the bookmaker can be converted into an implied probability of winning. So (assuming that my probability of winning calculations are better than the bookmaker's) ... |
I have some trouble getting the standard deviation of a stratified sample.
I have a sample of 1600 individuals that are divided into three groups (strata), with their sample mean $y$, which is the groups average income, $s_k$ is the standard deviation, and $n_k$ is the number of indivdiuals in the strata/group.
What i... |
I am analyzing this data.
Here is my code
library(fpp)
library(urca)
setwd("C:/Users/kuco/Desktop") #where is the file folder
dt<-read.csv("test.csv",header = FALSE) #read the file
t<-ts(dt,start = c(1997,1),frequency = 12) #put it into time series data
fit1<-auto.arima(t,stepwise = F,approximation = FALSE,ic="aic... |
I've performed a cox regression in rstudio (version 1.0.136) using the coxph function in the package "OIsurv". I've also performed the same analysis on SPSS using the same dataset, but i keep on getting different results between the two programmes, and i cannot figure out why this is.
My data are not typical cox regres... |
I am running logistic models with data where I typically have proportions for the dependent variable that looks like the following:
0 1
Grp1 0.18 0.82
Grp2 0.24 0.76
Now I run a logistic regression with independent variables Grp (0 if Grp1 and 1 if Grp2) and control variables A, B and C (including a number ... |
I have a classification problem with only 2 classes, about 100 features and thousands of observations, each belonging to either of the two classes.
Currently I´m doing a PCA prior to machine learning algorithms, which is very successful indeed, so I was wondering whether another dimensionality reduction may be even bet... |
I want to perform a forward/backward selection to build a predictive model. My data set is very large though and if I include all variables in the selection process it is way too slow. Therefore I am searching for alternative ways how I could choose the variables in an automated way. One idea is to split the data into ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.