instruction stringlengths 9 38.7k |
|---|
I am studying time series using regression analysis. I know that when using time series data the assumption that the errors are independent cannot be satisfied.
However, analysing the residual plot:
In my opinion, it does not have a positive autocorrelation because I cannot see a cyclic pattern. Also, it does not s... |
I'm not involved in mathematics or data science very much, but I want to do some computation on a rental dataset that I have.
I currently filter different listings that do and do not have whatever amenities I select.
How can I compute correlation of whether the amenities increase or decrease price?
|
I'm a little confused what the difference between these equations are:
$$\begin{array}{rcl} \operatorname{Var}(\bar{Y}) & = & \frac{\sigma^2} n = \frac 1 n \sum (x_i - \mu_X)^2 \\ s_x^2 & = & \frac 1 {n-1} \sum (x_i - \mu_X)^2 \end{array}$$
I was also under the impression that $s_x^2$ was the same as $\operatorname{Var... |
The research paper A network framework of cultural history [1] has the following visualization
It is a scatter plot between the number of births and the number of deaths of notable individuals in different locations across the world. Any point present outside of the two curves are considered outliers. The me=7 specif... |
Could you give me some examples and/or references on "risk-averse" loss functions (i.e. penalizing the underestimates more then the overestimates)?
|
I am using the Kolmogorov-Smirnov test to study the homogeneity of a point pattern in 3D using the distance transform to a structure as a covariate.
I am using the spatstat book, where it is explained (Section 10.5) that the Kolmogorov-Smirnov test statistic ($D$) can be calculated as the maximum vertical separation be... |
In the wikipedia article on Categorical Distribution link under "Terminology" it states that care should be taken between Categorical and Multinomial Distributions, with additionally:
However, conflating the categorical and multinomial distributions can lead to problems. For example, in a Dirichlet-multinomial distrib... |
I am working on the use of distributed delay applied to pharmacometric models.
Specifically, the delay kernel I am interested in is the Gamma distribution, with non-integer shape.
The historical values $y$ are a simple table of values at points in time.
Calculation of a distributed delay requires convolving the Gamma d... |
Are there any packages there any LDA packages out there that allow you to specify the full asymmetric prior? I know Mallet uses asymmetric priors, but I don't believe it allows you to specify them.
|
I have inherited a simple single OLS linear regression model (Python statsmodels) of which attempts to handle some prior view on seasonality in the relationship by modelling data as two seasons by splitting and training model separately.
What would be a better way of modelling this relationship?
I could include the mo... |
Using the Pattern Matrix Table on the SPSS I found there are some cross-loading among some of the variables. I am using Promax Rotation of the PCA and got 15 Factors from 56 Variables.
I have 13 variables with some cross-loading of greater than 0.3. Is there a rule of thumb to remove variables that are cross-loading on... |
I have completed a Factor Analysis on a around 180 responses for a questionnaire with 56 Variables. I got 15 factors using Oblique Rotation PCA. Some of the factors have only two variables of considerable loading.
In Social Science - is there any considerations for such situations?
Under some factors I have in fact g... |
I assessed two groups with a pre and post test but didn't identify each test so I don't know which test belongs to each person. I do know which is pre and which is post though. Can I still use a hypothesis test and if so, which one?
|
If $X \sim Po(\lambda)$ then $E\left[X(X-1)\cdots(X-r+1)\right] = \lambda^r$.
Is there a straightforward way to see this without the use of moment generating functions?
I can get as far is $$E\left[X(X-1)\cdots(X-r+1)\right] = \sum_{k=0}^{\infty} [k(k-1)\cdots (k-r+1)] \frac{\lambda^k e^{-\lambda}}{k!}$$ and noting tha... |
Say you have an $n \times n$ matrix whose entries follow a standard exponential distribution, $A_{i,j} \sim \text{Exp}(1)$ for $1 \le i,j \le n$. You find the minimum value, $x_{i:n^2}$, and remove the corresponding row and column to produce an $(n-1) \times (n-1)$ matrix $A^\prime$ where every entry is $\ge x_{i:n^2}$... |
I am making a program to make the confidence intervals for an additive error additive trend model, based on the book Forecasting with Exponential Smoothing by Rob J. Hyndman.
The model of the series is $$y_t = l_{t-1} + b_{t-1} + ε_t$$ and it is said that one way of getting the intervals is by simulating paths and g... |
I have a number of finishes in football which are labeled either goal or miss. For each shot I know the standings in the game at the time of the shot, which I use to calculate gamestate for the shooting team (1 = leading, 0 = tied, -1 = trailing). I have calculated the conversion rate for each value of gamestate.
I w... |
I am conducting a Factor Analysis using PCA.
I have used Oblique and Orthagonal Rotations and when I am trying to analyse my results I get the message:
"Rotation failed to converge in 25 iterations"
So I had to adjust this - sometimes I get the results using 29 and sometimes more than 50.
Is there an underlying proble... |
I was wondering if you would be able to help me with an econometric problem regarding OLS regression. Part of my research is transforming functions in order to be used in stata example: Q = e^(B0 +B1(P) therefore it would just be ln(Q) = B0 + B1P on Stata.
I am trying to estimate the parameters of the following deman... |
Theory seems to indicate that an offset should be included in count models if groups are observed for different lengths of time or if they have different levels of exposure.
Suppose we are observing kids playing basketball during open gym with groups A and B. Group A tires out after playing 20 minutes and leaves the c... |
I am studying Time series with Regression analysis.
I have data that has seasonality and trend. I am using Dummy variables for seasonality- In this case I am using quarters.
I selected Quarter 1, Quarter 2 and Quarter 3 and obtained the following model:
$ Revenue= \beta_0+\beta_1{X_{1t}}+\beta_2({X_{S1,t}})+\beta_3({X_... |
I'm trying to forecast the next 24 hours of electric consumption based on historical consumption, which constitute 24 records per day. I'm not sure if I understand the ARIMA model well, but if I want a good forecast from it for every hour of the next day, do I need to split my data into hours and forecast from that? Or... |
Before I run a linear regression, I derive my independent and dependent variables. When I run the t-test on my dependent variable itself to test whether it is significantly different from zero or not, I get insignificant t-test result saying that the dependent variable is not significantly different from zero (i.e. ins... |
I recently see a term "semi-parametric" in the answers of my question but not really understand what is this term means.
Wikipedia says
In statistics, a semiparametric model is a statistical model that has parametric and nonparametric components.
And gives Cox proportional hazards model as an example.
I see Cox propo... |
I have data that has 3 different predictors for marketing a product (radio, tv, newspaper), depending how much I invest in one of those I will earn more money or less.
So, if I want to know which of the 3 gives more money, what would be the best way to do an inference? Using 3 simple regressions or a multiple regressi... |
I am not able to understand logic behind coming up with this formula for covariance. We know that the sample covariance formula is:
$${\rm Cov}(x,y)=\frac{\sum(x_i - \bar{x})(y_i - \bar{y})}{n-1}$$
I am not able to understand the logic behind the numerator. Why are we multiplying the terms? I mean, I know we need to ... |
I ran pairwise comparison between three goups in terms of stress hormone after ANCOVA and I found hormone level in group 1 is higher than two and two is higher than three (68, 57, 44). In discussion section when I wanted to talk about how much the level of hormone in group 1 is higher than two other groups and state it... |
When I performed correlation analysis of C02 emission with around four-hundred attributes, i found out that C02 emission and cereal production has a correlation value of 0.98 where as the most obvious of indicator like population had only 0.2 correlation with C02 emission,
So how to determine whether my correlation sc... |
I have two questions.
I know you shouldn't take too many covariates in your regression model. I have 3 continuous covariates available, and 3 group covariates available. Should I take them all? If not, what's the limit? I have $N > 1000$ data rows.
When I do take group covariates, do I always need to include interacti... |
I used a RF model to predict a rare event. After testing using multiple iterations, I settled on a model which provided decent results. I tested this model on a validation data I had kept aside before training the model. The result is similar here also. Now i extracted the votes(ie the probabilities)from the RF model f... |
I am trying to understand the idea of the sampling distribution of an OLS estimator. To do so I am trying to visualise this distribution obtained with simulations (I use R for this).
So I generate the universe of observations with 100,000 randomly distributed observations of my independent variable univ.x. Then I also ... |
From the well-known dataset iris I want to predict the species of flowers given a the length of their sepals and petals and their width.
The data frame looks like :
Having :
xapp <- c(data[1,40],data[51:90,],data[101:140,])
xtest <- c(data[41:50,],data[91:100,],data[141:150,])
I wrote :
matriceKnn <- knn(xapp,
... |
How can I simulate a GARCH series that is contaminated with both additive and innovative outliers? My goal is compare different robust estimators. I am using R.
|
I have trouble understanding the following exercise:
Assume a setting in which the assumption of strict exogeneity holds, but
random effects estimation and fixed effects estimation give very different parameter
estimates. Which estimates do you trust most? Briefly explain why.
My answer to this question was that we sho... |
Often it is said that heteroskedasticty could be assessed in a graphical way: for instance it can be inferred by looking at the residuals of a regression. However, this seems to me quite discretionary. For instance, in the following pictures:
How would you say if residuals are homo- / heteroskedastic and to what exten... |
Note: I'm not sure if this is the right place to ask, but I don't know any other places. If you know other places which are more proper for this question, please tell me.
For example, for this link.
It is sorted by feature.
I want to know, how does the sort by feature works. Is there any way I can know it, or anythin... |
I have a simple linear model that predicts sales as a function of a temperature-related variable.
For the sake of simplicity, let’s assume that the model is
$$\hat{Y} = a+b \cdot T$$
I train this on a set of historical values $\{T_i, Y_i\}$. The estimated coefficients $a$ and $b$ have their own statistical uncertaint... |
Background:
I'm planning an experiment with three independent variables (IV) and one dependent variable (DV) and would like to get an idea of what methods of data analysis might be appropriate and what corresponding sample size I should aim for.
Detailed:
Each participant completes three scenarios (IV "Scenario") in a ... |
Background: So I have a dataset with 32 Variables. There are several missing values so I decided to impute them with the mice package in R. However, I plan to combine most of those variables through factor analysis, so that I am only left with 12 variables in my final analysis (with which I will conduct a multilevel an... |
Background: I am running a gravity model (very basic: trade flow ~ GDP(i) + GDP(j) + pop (i) + pop(j) + D(ij)) with a Poisson quasi-maximum likelihood model (PQML). I have already converted everything to natural log form (Log in R) and ran the model.
My issue is that I want to see the possible trade gains if two cou... |
Suppose I have a set of observation from GMM. I want to observe the change of marginal likelihood (model evidence) after LDA projection.
I'm guessing that it would get bigger. Is there any known result about this?
|
So I want to combine four items into an index on strong theoretical grounds (scroll all the way down in case you are interested in what those grounds are) but looking at the statistics, I get abysmal results.
Cronbach's Alpha = 0.36
Kaiser-Meyer-Olkin factor adequacy = 0.5
Correlation Matrix
Democrac... |
I am studying Time series.
I am trying to identify if the pattern in the plot of residuals vs order to identify the type of autocorrelaiton:
I think that it has a negative autocorrelation because almost every negative error is followed by a positive error and vice versa. However, analyzing some examples on the interne... |
I have several positive integer numbers representing the count of features, for example delay, successful_attempts, failed_attempts. Say I have 2 sets of such numbers, A and B:
A : delay=63, successful_attempts=6, failed_attempts=7
B : delay=84, successful_attempts=5, failed_attempts=12
I am trying to find a metric to... |
I wonder how to reproduce sinusoid with autogressive discrete model :
y = sin(t) with or without additive noise is my target, t here is continuous variable. sin(t) could be expanded with Taylor expension, but I'm looking for autogressive formulation : y[t] = a1*y[t-1] + a2*y[t-2]+...,
I could create artificial data, c... |
I need to prove that a given region on the genome maintains has the same base composition proportions (20% A, 15% T, 19% C, etc…) of that genome. I thought about doing Chi-squared test of independence since I deal with exact counts. As a result, I found $p<0.05$ suggests that they are independent so I say the base comp... |
Can any continuous function on [a, b], where a and b are real numbers, be approximated or arbitrarily close to the function (in some norm) by Gaussian Processes (Regression)?
|
If we are doing a binary classification using logistic regression, we often use the cross entropy function as our loss function. More specifically, suppose we have $T$ training examples of the form $(x^{(t)},y^{(t)})$, where $x^{(t)}\in\mathbb{R}^{n+1},y^{(t)}\in\{0,1\}$, we use the following loss function
$$\mathcal{L... |
I have the following dataset, link here.
I have three variables:
Dependent Variable 1: Grammatical Category
this is a nominal variable, and it has four categories: "verb", "adjective", "noun", "adverb".
Dependent variable 2: Sentence Type
This is a nominal variable and it has three categories: "short", "medium", "lon... |
I have a regression model like this
lm(ContiniousVariable ~ ContiniousCovariate + BinaryCategoricalVariable)
I repeat this model for each of the 20 ContiniousVariables. I want to see whether there are differences between the two groups (represented in BinaryCategoricalVariable) for each of those 20 dependent variable... |
I want to say that my statistic background is very poor, but I'm doing Machine Learning, so I need to learn a bit of it. (my experiment may not make sense. If not, please suggest)
Let's say I've got ROC curves, like in the pictures, representing the performance of 2 classifiers evaluated via cross-validation. I want t... |
I have only 7 pairs of data, is this enough for me to do a correlation using pearson r? Or should i use spearman's r instead because of this small sample size?
How many pairs is needed in utilizing pearson r?
|
I have data on Liver Disease Patients, with the response variable being whether the patient has liver disease or not(1 or 0) and 7 predictor variables, such as age, gender, protein levels etc.
Now, the purpose of my study is to first conduct binary logistic regression on the entire data and check for the significant t... |
Consider the following toy data:
All prices have been normalised using
$${Price_{Norm} = \frac{Price_{current} - Price_{Min}}{Price_{Max} - Price_{Min}}}$$
Item : Prices
Apples : 0.0, 0.4, 0.8, 1, 0.7
Bread : 0.0, 0.2, 0.4, 0.7, 1.0
Cars : 1.0, 0.6, 0.0, 0.2, 0.1
Wheels : 0.7, 1, 0.7, 0.2, 0.0
Computers: 0.... |
Let $X \sim N(\mu_1, \sigma_1^2)$ and $Y \sim N(\mu_2, \sigma_2^2)$ be independent. It can easily be shown via moment generating functions that $Z=X+Y$ is also normally distributed with $Z\sim N(\mu_1+\mu_2, \sigma_1^2+\sigma_2^2)$.
I was wondering if one could instead use the change-of-variables formula to derive the ... |
I have a data matrix with size of 24 by 369, consisting of 4 classes. I want to evaluate the variable importance using permutation test. I know there are lots of methods to find informative variables according to the question at hand, but here I would like to focus on correlation between variable x and class y, as for ... |
I tried to obtain the score vector (1st derivative of density function w.r.t. parameters) of multivariate normal distribution.
Density function of multivariate normal distribution:
\begin{align*}
f(x) = \frac{1}{\sqrt{(2\pi)^d |\boldsymbol{\Sigma}|}} \exp\left[-\frac{1}{2}(\boldsymbol{x} -\boldsymbol{\mu})^{\rm{T}} \bo... |
Suppose we toss a coin $n$ times, we are interested in the number of 'tails' (which have probability $p$ of appearing), put $X$ the number of sucsess, and put $Y$ the number of fails. I know that $X$ and $Y$ both have a Binomial distribution with probabilities $p$ and $1-p$ (successively).
Now if $n$ is large enough, ... |
In a linear regression with several variables, a variable has a positive regression coefficient if and only if its correlation with the response is positive. ¿(TRUE OR FALSE)?
|
If a dataset contains a perfect predictor a linear regression is able to identify this variable. Why is it that a tree model cannot do the same?
In the R code below, the dataframe df contains an independent variable IndPerfect that is identical to the dependent variable Target. For the illustration only the last row i... |
My model of interest is given by
$Y_1 = X_1\beta + \epsilon_1$
with $Y_1\in\mathbb{R}^{n_1}$ , $X_1\in\mathbb{R}^{n_1}$ , $\beta\in\mathbb{R}$ and $\epsilon_1\in\mathbb{R}^{n_1}$. However, $X_1$ can not be observed in the same sample as $Y_1$, and therefore has to be replaced by a predicted regressor $\widehat{X}_1$.
... |
I am studying time series. I have the following data:
The Model for this Data is given by:
$Revenue= \beta_0+\beta_1{X_{1t}}+\beta_2({X_{S1,t}})+\beta_3({X_{S2,t}}) + \beta_4({X_{S3,t1t}})$
or equivalently :
$Revenue= \beta_0+\beta_1{X_{1t}}+\beta_2(Qrt1)+\beta_3(Qrt2) + \beta_4(Qrt3)$
(I am not sure if it is correc... |
Is the RSS in a simple linear regression onto the largest principal component always less than or equal to the RSS of a simple regression onto the rest of the smaller principal components? I feel that this should be the case because the variation in the data is greatest along largest principal components, so I feel tha... |
I have a dataset of 21 classes. Each class has different number of samples. I want to sample an specific number of samples from each class. For example 50.
I thought of using K-means to cluster 50 samples from each class.
What other methods have you used?
Thank you
|
I am using Matlab's lassoglm function to select the best logit specification from a set of 25 covariates. I am using time series data and have around 500,000 observations.
My CV plot shows the error decreases monotonically with lambda (graph below). Any idea why this could be? My covariates are significant predictors i... |
In the paper A Consistent Test for Multivariate Normality Based on the Empirical Characteristic Function, Baringhaus and Henze define a test statistic,
$$T_n = n \int_{R^d} |\frac{1}{n} \sum_{i=1}^n e^{it'Y_i} - e^{-\frac{1}{2}|t|^2}|^2 (2\pi)^{-d/2} e^{-\frac{1}{2}|t|^2}dt$$
and state that the integral is
$$ \frac{... |
I have a dataset that has 10 columns (which are nominal but contain data that is continuous) and 20 rows which are the discretized version of an age distribution (i.e., years). I want to test whether or not there is a difference between the columns (countries) across the ages. In other words, are the countries homogene... |
Let $Z_{1},\ldots, Z_{n}$ random variables i.i.d with symmetric continuous distribution in $\theta$.
We consider hypothesis test
$$\begin{array}{rcl}
H_{0}: && \theta=\theta_{0} \\
H_{a}: && \theta>\theta_{0} \\
\end{array}$$
Let $T_{\theta}$ be a statistic, and let
$$\alpha=\mathsf{P}(T_{\theta_{0}}\geq c | H_{0} \mb... |
I have a univariate time series of quarterly data. I am interested in making both quarterly and yearly predictions using ARIMA/SARIMA. The quarterly prediction is just one step ahead while the yearly prediction is 1, 2 and 3 years ahead.
My question is if I should aggregated the data to annual for the annual predictio... |
$\newcommand{\E}{\mathbb{E}}$When working through the derivation of $\E[x]$ in the case where $x$ is a log normal random variable, it seems to me that the result depends critically on what you choose to substitute when doing u-substitution in the expected value integral. If I substitute $\ln(x)=u+\mu$, which seems to b... |
I'm running a multiple logistic regression with several continuous and categorical covariates. I was wondering how to interpret the results of each covariate if the others are held constant. At what level are continuous control variables held? Are they held at their mean?
I believe that for categorical control variable... |
I try understand the difference between prediction and confidence intervals. Say we want to predict the winning time of the 100 m race in the Olympics 2020. We have fitted a linear regression model of times from 1900 to 2016 and we want an associated 95 % confidence interval of our prediction time. Would we use a predi... |
I am working my way for the first time through predicting a continuous dependent variable in a problem where all independent variables are categorical using python statsmodels. I would like to add to this model 'y ~ + C(x1) + C(x2) + C(x3)' all possible quadratic terms. What is the right notation for that?
EDIT: one of... |
This question comes from a discussion on reddit.
One user asked a question:
Given $p=0.05$ in one study, what is the likelihood of $p \ge 0.05$ if the same study was repeated under the exact same condition in the same population?
With a set of possible answers: 5%, 10%, 50%, 95% and 99%.
The most common and most acc... |
The scenario is follows: Two groups of participants are asked to recall the stimuli presented to them. Group A are presented with both types of stimuli (imagery) on a tablet whereas Group B are presented with both types of stimuli on a computer. Two types of devices (computer and tablet), and two types of imagery (b... |
I have a dataset about a group of people that was collected in two consecutive years (2013 and 2014). This dataset have several variables and one of them is income.
Make sense do a hypothesis test to compare the mean income of the same group of people in two different years?
In this case I have data of the same populat... |
Is there a way to detect outliers in data that would fit a non-linear shape? For example, I have data that fits an exponential decay with an obvious outlier. I have simulated data with an example of this:
I want to know the index locations of where these outliers occur in the real data and currently I am doing this by... |
Suppose we have the following count data:
| X | Freq |
|-------|------|
| 0 | 18 |
| 1 | 32 |
| 2 | 17 |
| 3 | 10 |
| 4 | 5 |
| 5 | 2 |
| TOTAL | 84 |
We want to construct a likelihood ratio test to see if a Poisson distribution is suitable to describe the data. The like... |
Suppose one has a GLM, say logistic regression, y~x1+...+x8, where y is a binary variable. In my particular problem-space, y represents a customer defaulting on a loan. Half of the predictors are individual customer data (say x1-x4) and the other half (x5-x8) are macroeconomic variables, possibly with some multicolline... |
I'm confused on the special cases for some distributions and i'm looking for some clarity.
I know that the standard normal distribution is a special case of the normal distribution with a mean of 0, standard deviation of 1 and that the skewness and kurtosis of any normal distribution is 0 and 3 respectively.
What i'm... |
Here is my case.
There are like 1000 monitoring sites which measure CO2 concentration continuously.
I define two period: 1950 - 1970; 1971 - 1991 and compute the average concentration of these period.
Since the variation of all sites are different (some increase, some decrease)?
How to ensure the increase of CO2... |
Suppose your significance level is 0.05, and some coefficients are significant and others are not (i.e. some of the p-values are less than 0.05 and others are greater than 0.05). Does this give anything about their importance in relationship with the outcome variable? In other words, do non-significant variables indica... |
I have the following code I am trying to figure out the distribution which it is sampling from and I need to be able to write a function to generalize sampling for this distn for any N.
set.seed(12032345)
N <- 300
x <- runif(150, 0,1)
x <- c(x, rnorm(150, 0, 1))
x <- sample(x, N, replace = FALSE)
My approach: To me it... |
I am trying to produce a NN algorithm to classify the species of Iris into three species (versicolor, virginica, setosa) - preferably in R.
The scaffolding / source is this code in R with ReLU activation of the hidden unit and softmax. The question is code-neutral, and an alternative source is this post in Python, pro... |
The convolution of $f$ and $g$ is defined as
$
(f * g )(t) \, \stackrel{\mathrm{def}}{=}\ \int_{-\infty}^\infty f(\tau)\, g(t - \tau) \, d\tau
$.
Let's say that $f(t)$ and $g(t)$ have units of, say, meters and Hertz, respectively. What units does the convolution $(f * g )(t)$ have?
|
I need to find MLE estimator of $P(X \leq c)$ where X is $Normal(\theta,1)$, c is fixed. Note: $X_1,...,X_n$ are a random sample drawn from $Normal(\theta,1)$
Any hint on how to approach this problem? I know MLE is invariant and I thought of using the sample mean as my estimator of $\theta$ but I dont know how to find... |
Edit after @eric_kernfeld answer.
I'd like to do
Generate a time-series, for example, from a uniform distribution.
Transform of non-normal variable to standard normal distribution.
Fit an arima model to standard normal variable.
Simulate from the arima model with the fitted parameters (in this case errors should be ... |
Let $x_1, x_2, x_3$ come from a normal distribution with mean 0 and standard deviation 1.
Let $m=\frac{x_1+x_2+x_3}{3}$ and $s=\sqrt{\frac{(x_1-m)^2+(x_2-m)^2+(x_3-m)^2}{3}}$.
What is the distribution of $\frac{\textrm{min}(x_1,x_2,x_3)-m}{s}$?
I am also interested in the distribution of the z-score of the $k$th lowest... |
Let's say that you have a list of numbers and a weight for each number e.g.
X = [(1, 2342), (2, 55), (3...]
In the above example, 2342 and 55 are weights.
Is weighted random sampling N items from X equal to randomly splitting X into N equal partitions and weighted randomly sampling 1 item from each part?
|
I am doing a study to find the correlation between onset-age-of-diabetes and BMI Z score. Our study found these two variables negatively correlated. This association is a bit controversial in literature as some of the studies found it positively correlated, others negatively correlated and no correlation at all.
We ass... |
Suppose I'm use a random forest binary classifier in R.
What parameter(s) can I tweak in my learned model (or model to be learned) that can help me with this tradeoff.
for example: In logistic regression I would change the threshold on the probability the classifier predicts.
How do I so something similar with randomfo... |
I have dependent variable ( Y) is in continuous.
My independent variables ( X1 , X2 , X3, X4, X5, X6, X7, X8) are in continuous.
And independent variables ( X9 , X10 ) are categorical variables.
In X9, there have 3 levels ( TV , News Paper , Radio )
In X10 there have 2 levels ( High Addicted , Low Addicted).
So, How ... |
I have a data frame. Lets say the data looks like this-
A <- c(1,2,3)
B <- c('a','b','c')
C <- c('d','e','f')
df <- cbind(A,B,C)
Now I would like to convert this data frame into a corpus where each column is treated as a document and each row as a term. When I use Corpus(VectorSource(df$A), it convert the column in... |
Consider data consisting of pairs $(y_i, x_i)$ for $i = 1,..,n$ arising from a non-linear regression model:
$y_i = \alpha + \beta\sin(\omega x_i + \delta) + \epsilon_i$ where $\epsilon_i \sim N(0,\sigma^2)$
and $\alpha, \beta, \omega, \delta,$ and $\sigma^2$
are all unknown parameters.
This can be rewritten as:
$y_i =... |
If Yi (i=1,2,....n) are normally distributed with common variance v then consider the contrast
C = Sum(AiYi) such that
Sum (Ai)= 0
Now i know that C^2/Sum(Ai^2) is a vchi sqare with one degree of freedom but I cant prove it ..is there anyone who can show me the proof
|
As the title implies I am having difficulty differentiating between the correlation matrix and the cross correlation matrix with reference to time series data. Could anyone enlighten me please? Is the only difference that the cross correlation uses a sliding window to calculate the correlation over time whereas the cor... |
I am performing stratified random sampling on a population (country) containing ~20 strata (states). I need to calculate mean of the population. I also know the proportion of the strata. My question is: Should I have a minimum sample size (say >=30) in each strata/state? I have greater than 30 samples for the country, ... |
I know that the joint cumulative function of two random variables X and Y is defined as:
$F_{X,Y}(x,y)=P(X≤x,Y≤y)$.
How can I find the CDF for $F_{X,Y}=\{x,x\}$. In other words is what will be $Pr\{min(X,Y)<x\}$?
If I already know the individual CDF of both $X$ and $Y$, i.e. $F_{X}(x)$ and $F_{Y}(x)$, can they be use... |
I have two samples
background
and
input
these are the histograms:
sample sizes are well above the 1000s, so the sample variance of the mean is pretty much low.
I'm trying to have a statistic that tells me that these two distributions are the same. I'm trying with t-test and Mann-whitney U but both have VERY low pvalu... |
I have a question about using SVM regression in matlab. My training data set has a distribution like gaussian (below figure. A lot of data in 0-5, only few data >5). I separate this dataset into 2/3 for training and 1/3 for validation. They follow the same distribution
.
The function I used is like this:
fitrsvm(Xtrai... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.