instruction stringlengths 9 38.7k |
|---|
I have data that include 20 samples divided into 2 groups (category A and category B). The groups are independent, none of the value in one group repeat in other. N(A) =14, N(B) = 6.
here is the data:
category A category B
0.0119888167559 0.023185483871
0.00101354303189 0.312090168227
8.952311039... |
In marketing segmentation studies which define clusters of consumers, categorical variables are often used to capture demographic and phychographic features, such as educational level, location, preferences, behaviors etc. So, in practice seemingly it makes sense to use categorical variables to cluster examples.
Let's ... |
Could someone recommend book for survey design?
I would like to propose good designs for people I am working with. They are trying to conduct survey without control, which is bad design.
So, I am looking for survey / design book. By the way I already know what are type I error, power, confidence interval, CLT, etc. I a... |
I am using the following code to fit the Inception-resnet v2 pretrained model to perform transfer learning on my own dataset of images, with 8 classes.
I would like to know how I can remove the top layer and add a MaxPooling and dense softmax layer to do transfer learning on new images? similar to the Inception V3 code... |
Let $A,B,C,D$ be independent normal random variables distributed according to $\mathcal{N}(0,\sigma^2)$ and $E = A+B+C+D$.
The goal is to provide an optimal estimate of $\sigma^2$ given samples of $A,B,E$ but not $C,D$.
In this case optimal refers to minimising the root-mean square deviation of the estimate $\hat{\sigm... |
I'm working through an assignment so I don't expect to be handed the answer. I just need to ask about the equation itself.
The question is:
Show that
When working with the standard normal distribution.
In the previous part of the question I derived that
So I'm presuming that is pertinent but I'm not sure where to st... |
Hеllо еvеrybоdy!
It became interesting to me to code the following case: I have some spatio temporal events, and they have uncertain boundaries (for example "John visited England in April" and "Harry was in London on 1 May"). Here we have uncertain location (England and London), so we dont know exacltly at which certai... |
I'm following this book with regards to modelling temperature data in a piece-by-piece manner.
On page 44, after fitting an AR(3) model to the de-trended and de-seasonalised data, the authors examine the variance of the residuals and:
calculate the daily empirical variance by averaging the values of the squared residu... |
How to proof that the $k$th moments of random variable $X\backsim N(0, \sigma^2)$ which is:
$$
E(X^k) =
\begin{cases}
\sigma^k(k!!) & \text{for k even;}\\
\
0 & \text{for k odd}
\end{cases}
$$
I started from the basic definition of the $k$th moments:
$$E(X^k) =\int_{-\infty}^\infty x^k\frac{1}{\sqrt{2\pi}\sigma}e^{- \... |
With Nesterov, I had to lower the learning rate to 1e-5 to avoid exploding gradients even though I have He weight initialization. As a result the network is not converging to the same result as the network had with plain SGD. Does it mean that SGD is performing better ?
|
Is it always (even if only by convention) hazard rate in intervention group divided by hazard rate in control group?
|
In frequentist, i.e., sampling-based statistics, we envision a target population to which inference is made. Notwithstanding the fact that our so-called random samples from this population are usually more convenience-based samples, we try to infer from a sample to the population. For example in a randomized clinical... |
I am fitting a distribution to a histogram which looks very non-Gaussian. The histogram was formed by imaging data, i.e., the values of each pixel in an image, so they aren't "extreme values".
By using the command "fithist" in MATLAB as a start, "Generalized Extreme Value Distribution" appeared to describe the histogr... |
I have a data set with 50 predictors of categorical and numerical variables and 1 dichotomous outcome. I'd like to perform logistic regression, model it and k-fold cross validate it.
However, I have stumbled upon deciding which predictors to include in my model.
I have started with the initial hypothesis making, where ... |
I have multiple parameters and want to examine their effect on the response variable, $Y$.
The experimental design is as follows. There are $3$ factors. Two of them: $A_1$ and $A_2$, have two levels (coded as $0$ and $1$). The third factor, $B$, is a blocking parameter and has $5$ levels: $b_1, b_2, \ldots, b_5$. I hav... |
it is clear that feature selection (FS) have to be done separately on training and then on test data to avoid overly optimistic results. Lets assume that I have training set and test data set. Also assume that I am using filter FS.
1. I do FS on training data, use data(features) selected by FS to train classifier (e.g.... |
I am new to machine learning and as one of my first projects I decided to make a tic tac toe bot. What I've done so far is a rgb/hex color recognition with the naive bayes algorithm, which was really simple to make. Now I am struggling a bit with making a tic tac toe bot.
My question is how should I proceed with this,... |
R's document says that delta is the raw cross-validation estimate of prediction error, which i think is prediction error rate in the situation of logistic regression. However, when i try to calculate prediction error rate with my own function the result is different.
cv.glm:
> fit=glm(Direction~Lag1+Lag2,family = binom... |
Suppose I have a variable r that has a tail index $\alpha$. How can I know the new tail index if I transform the data, for example using $r^2$ instead? I am using the Hill estimator to estimate the tail index but so fat I can't see a relationship between the parameters when I transform the data.
|
I have a very large data set ( 79 features: 74 categorical and 5 measurable ) on a very sparse matrix ( 79 x 1,500,000 rows )
The data set is done in this way:
phone model, carrier, day of the week, time range, time to landing page, time to external redirect, screen size, screen megapixel, user subscribed.
categorical ... |
How can I calculate the p-value given Chi Squared and the Degrees of Freedom?
For example, what would be the exact p-value of a Chi Squared = 15 with df = 2?
|
Is there a general formula for this? I read
(no of inputs + no of outputs)^0.5 + (1 to 10). to fix the constant value (last part, 0 to 10), use trial and error and find the optimal no of hidden layer neurons for the min MSE.
but I was wondering if there was a more specific formula.
Edit: Quote read from https://www.r... |
I have a model where the input can be N rows if real numbers. N can vary over time. The order of the rows is not important.
The output needs to be a Nxm matrix, where m could vary, though I could keep it fixed if necessary.
I have read that LSTM networks are suitable for sequences of data, but what if the order of the ... |
I've been working on the topic of regularization for neural networks and in the textbook I'm following I found this quote:
"We will further simplify the analysis by making a quadratic approximation
to the objective function in the neighborhood of the value of the weights that
obtains minimal unregularized training cost... |
Consider a binary stochastic variable $D$ with possible states on and off, denoted by $D^1$ and $D^0$ . The state of $D$ is informed by $n$ independent binary stochastic variables $x_0$ through $x_n$, also with possible states on and off.
When $x_i$ is on it sends probability $f_i$ to $D$, which is the probability that... |
How to initialize weights in IRLS?
On the wikipedia page about IRLS it is stated that:
$W^{(t)}$ is the diagonal matrix of weights, usually with all elements set initially to: $w^{(0)}_i = 1$
but without any direct reference to the source of this information.
Why is this the "usual" way of initializing the weights? A... |
I've come across a lemma in the infoGAN paper. I do not understand the derivation of Lemma 5.1 in the addendum of the paper. It goes as follows (included as png):
I do not understand the last step. Why can one pull $f(x,y)$ into the inner-most integral, transforming it into $f(x',y)$? What are the suitable regularity ... |
I'm trying to predict the outcome of a sports match between two teams. I have data on wins and losses for all teams in the league. I intend to use a Bradley-Terry model to find the relative rankings of each team and predict the probability of team $i$ beating team $j$. Before doing so, I'd like to better understand wha... |
I've noticed that when addressing the problem of linear endogeneity that the different techniques result in the same estimator for the potentially endogenous variable. Specifically, the control function approach ends up with the same estimator as instrumental variable approaches.
Considering that, I've heard it mentio... |
Does this hold?
$$
\max(0,\vec{a}) \cdot \max(0,\vec{b})
= \max(0,\vec{a} \cdot \vec{b})
$$
|
I have training data that is classified into 2 categories: X and Not X
Each piece of training or experimental data has a variable number of boolean features. Each piece of data may have ~100 features, but the total number of possible boolean features may be in the tens or hundreds of thousands.
I want to train a class... |
For the Binomial Distribution
${\displaystyle{n \choose k}p^{k}(1-p)^{n-k}}$
I'm trying to understand the intuition of the factors. I understand that the probability of $k$ successes is $p^k$, and the probability of the remaining $(n-k)$ being non-successes is $(1-p)^{n-k}.$ I also understand that ${n \choose k}$ is ... |
I have dose-response data sets, of 3 doses, 3 replicates for each dose.
I'd like to fit a curve for these data sets and I'm mainly interested in the slope of the curve since I want to be able and distinguish cases such as these two:
df.1 <- data.frame(dose = c(10,0.625,2.5,10,0.625,2.5,10,0.625,2.5),
... |
First, sorry if this has been asked before. I searched and found lots of info on transformations and back-transformations, but none that offers insight into how you get into the forest and back out
My question: you have 16 - 10 = 6
I want to understand how to get back to that 6 after performing various statistical tran... |
Suppose I have a linear regression model as follows: $E[Y_i | X_i] = \beta_0 + \beta_1X_{i1} + \beta_2X_{i2} + \beta_3X_{i3} + \beta_4X_{i4}$, what's the Wald test statistic for testing $H_0: \beta_1 = \beta_2 = \beta_3 = 0$?
|
I've been learning about the Cox proportional hazard model. I have a lot of experience fitting logistic regression models, and so to build intuition I've been comparing models fit using coxph from the R "survival" with logistic regression models fit using glm with family="binomial".
If I run the code:
library(survival... |
What is the most efficient way to do repeated cross-validation in sklearn? I know with R and the caret package, in the trainControl function, I just need to set the method to 'repeatedcv' (see 5.3 Basic Parameter Tuning). What is the equivalent approach in python? I read the documentation of kfold carefully I can could... |
I have implemented Kalman Filter to forecast 250 forward steps of some observations
The formula I used after recursively filtering on the in-sample set is
$y_{T+h|T} = HB^hz_{T|T}$
where H and B are the system matrices as described here http://homepage.univie.ac.at/robert.kunst/statespace.pdf.
B is 1 in my case.
When a... |
What is the equation for a multivariate skewed normal distribution, specifically a two dimensional skewed normal distribution?
|
From the mtcars dataset, we can get the first word of the rownames by using:
a = strsplit(rownames(mtcars), " ")
Then by using sapply, we can get the first word of each element of a.
sapply(a, "[[",1)
My question is how does that even work? How does "[[",1 work as a function in sapply?
I found this in a plotly exampl... |
Say I have n sample, each with p explanatory variables, namely X. I also have n corresponding response variables, namely y.
I want to understand the how the explanatory variables contribute to the response variable.
We have two classical approaches:
1). I can get the effect sizes by linear regression, like solving th... |
For example, the following R code performs a linear regression:
set.seed(123)
x <- 1:40
y <- rnorm(40)+((x-20)/10)^2
fit.linear <- lm(y~x)
summary(fit.linear)
and outputs:
Call:
lm(formula = y ~ x)
Residuals:
Min 1Q Median 3Q Max
-3.2849 -1.2145 -0.2076 1.4374 3.2221
Coefficients:
... |
I used EM algorithm to estimate the parameters of the following time invariant process.
$$y=Ct+e_y$$
$$x=Pt+e_x$$
where $y \in R$, $x \in R^d$, $t\sim N(0,I^{p \times p})$, $e_y \sim N(0,\Sigma_y)$, and $e_x \sim N(0,\Sigma_x)$. Both $\Sigma_x$ and $\Sigma_y$ are diagonal covariance matrices. The set of parameters to b... |
I am using ls-svm lab toolbox in matlab for regression analysis. Here is the code:
%%
%read from file
filename='datasample500.xlsx';
data=xlsread(filename);
input=data(:,1:12);
oilOut=data(:,13);
waterOut=data(:,14);
liqOut=data(:,15);
%gasOut=data(:,11);
%%
%train model
type = 'function estimation';
kernel='RBF_kerne... |
I am learning about the kernel trick and one of the questions in the textbook is:
A new input vector v is assigned to the class of the nearest vector v0
by the distance function || v - v0 ||^2. Formulate a generalised version
of the nearest-neighbour classifier using the kernel trick.
I know about the common kernel fu... |
I the wikipedia page for scatter matrix, it shows the formula as
The centering matrix does imply the divide by n, but the summation eqn above does not indicate the divide by n. Why is that? it would make sense though, that you must divide by n, so the scatter matrix does not keep on increasing with more samples.
The ... |
In a paper by Rouder et al (2009, p. 234), authors indicate that their formula for obtaining a default Bayes Factor from their equation (1) on page 231 can be used for any type of t-test.
But they mention that for the two independent samples t-test case, N (total sample size) for two samples (N1, N2) may be computed as... |
I performed stochastic regression imputation to handle missing data, using the mice package in R. The code I used is below:
library(mice)
stocImp <- mice(data1, method="norm.nob", m=1)
data2 <- complete(stocImp)
My question is as follows: stochastic regression and other imputation methods are not ideal for binary var... |
Paper mentioned in the question title deals with localization of certain objects in images. Paper mentions generating multiple types of object masks using deep neural network based on ImageNet, proposing multiple bounding boxes and scoring such proposals. However I can not find how the bounding box proposals are genera... |
I usually use Akaike's Information Criteria to compare linear models.
This time, I see that with a polynomial term the model's AIC is lower (better) than without it. In fact, the AIC keeps decreasing as we increase the polynomial degree up to 17 poly(var, 17).
My question is, is there any way, standard or not, to tell... |
I have a population in which I am looking at two variables in individuals.
The first is the size of their vertebrae, the other is the presence of pathology in the teeth. The first is in mm (ranging from 9 mm to 15 mm) and ranges over 8 vertebrae, the other is binary (present and not present (and missing)) and ranges o... |
I try to implement SVM on a very large data set.
My Data is categorical with three classes. I have tried e1071, but it took too long to solve my problem.
Anyone who knows the best and fastest library for solving my problem?
|
I'm reading an article where the AOR was computed after adjusting for confounders; when I calculated the OR it was lower than the AOR presented in the article. Why did the AOR increase? I thought it would be lower after adjustment
|
I have a conceptual issue about the analysis of the variance of a full factorial experiment design. (3 Var / 2 levels each). In all papers I read, there are plenty of ways to do, some things may seem logical but conceptually causing problems.
I will illustrate with a simple example before asking the questions:
Let us... |
When working with ordinal response data, we can use a proportional odds model to calculate the log odds in favor of one category over another. Often we use a logit link yielding the following model:
$${\rm logit}\big(P(Y \leq j|\bf{x})\big) = \alpha_j + \bf{x'\beta}$$
for $j = 1, ..., J$ responses.
Alternatively, I've ... |
I have a $k-$components mixture of multinomial distributions, with the following distribution:
$$
M_k(i) = \sum_{j=1}^{k}\pi_j p_j(i)
$$
and I am considering a second mixture $M_l$ with $l<k$ components:
$$
M_l(i) = \sum_{j=1}^{l}\tilde{\pi}_j \tilde{p}_j(i)
$$
From experimental simulations, I see that if the covarian... |
I have the model:
Assuming we do not know the "p-value" I'm trying to analyse the significant variable looking only coeff. / std Err and t value.
I'm a bit confused as if I looked beta which has a p=0.1 (90% benchmark according to Gujarati) we can say if it is positively significant. The t of beta is 1.65 which I wil... |
I have some problems understanding the difference between ATE and ATET and the Selection Bias. To explain what my understanding is I have done the following representation so you can correct me:
We want to see the effect of taking LSD, to do so we have a Group to which we assign the "treatment" so $D=1$ and a group wh... |
I have a collection of point in time reports for employees.
These reports contain measures of employee engagement as well as
employee performance.
I also have reports indicating when certain employees engaged in a
multi month training course for managers.
The training course has a rolling enrollment throughout the yea... |
I would like to know if the statistic $$T(X_1,\ldots,X_n)=\frac{\sum_{i=1}^n (X_i-\bar{X}_n)^2}{n-1}$$ is complete for $\sigma^2$ in a $N(\mu,\sigma^2)$ setting.
Does this depend on whether $\mu$ is previously known or not? If $T$ is complete for $\sigma^2$, then by Lehmann-Scheffé it is UMVUE. But if $\mu$ were known... |
If yes, can you give me some insights/links about it please.
|
Im planning to implement Bayes weighted average formula (which imdb uses) for my new reviews and ratings website for mobile phones. The formula is under
S=wR+(1−w)C
where
S= score of the product
R= average of user ratings for the product.
C= average of user ratings for all products.
W= weight assigned to R and computed... |
Let $y_a$ be an observed value and $\hat{y}_a$ be predicted value.
Then I've read that
$$var(y_a- \hat{y}_a)=\sigma^(1+ x_a'(X'X)^{-1}x_a)$$
but what's the proof for this?
Additional info:
$X_1=x_{a1}, ..., X_p = x_{ap}$
$x_a' = (1, x_{a1}, ..., x_{ap})$
$x_a' \hat{\beta} = \hat{y}_a$
$y_a \text{~} N(x_a' \beta, \sigm... |
I am trying to find out expectation of a function of a uniform random variable. I am given a random variable $x$ that is uniformly distributed over the interval $[0, a]$. I want to find out the expectation $E[e^{-i2\pi (m-n)\frac{x}{a}}]$, where $m$, $n$ are integers and $i=\sqrt{-1}$.
I saw derivation at a few places,... |
I have conducted a study in which I am trying to assess how fast participants recognize familiar objects shown within white noise. Given my results, I suspect that for a given level of coherence(more or less white noise), the reaction time of participants is generally about 5ms faster to faces than it is to cars. The s... |
In general terms my estimator is $\sum_{i=1}^n {\omega_i * x_i \over \sum _{i=1}^n {\omega_i}}$ where $x_i$ are realizations of the instrumental r.v., $w_i$ its corresponding importance weighs and $n$ the sample size.
What is the variance of this estimator?
|
In general, the process of hypothesis testing can be divided in 4 steps:
Formulate the practical problem in terms of hypotheses.
Calculate a statistic $T$, a function purely of the data. All good test statistics should have two properties: (a) they should tend to behave differently when $H_0$ is true from when $H_1$ i... |
I read about two versions of the loss function for logistic regression, which of them is correct and why?
From Machine Learning, Zhou Z.H (in Chinese), with $\beta = (w, b)\text{ and }\beta^Tx=w^Tx +b$:
$$l(\beta) = \sum\limits_{i=1}^{m}\Big(-y_i\beta^Tx_i+\ln(1+e^{\beta^Tx_i})\Big) \tag 1$$
From my college course, ... |
An exponential distribution describes the time between events in a Poisson process. Suppose that the average waiting time for an action is 5 minutes. The time waited each time measured in hours is an exponential random variable, $t$.
Therefore $t$ has the CDF distribution:$$P(t) = 1-e^{-\lambda t}$$ where $\lambda = 1/... |
This question is highly correlated with my previous one (I was asking about quadratic approximation of the cost function with Hessian matrix and didn't get any answer), but I think that I have the idea about the answer to it.
The problem I'm getting now is that we need to take the second derivatives of the cost functi... |
I am trying to understand the famous paper "Playing Atari with Deep Reinforcement Learning" (pdf). I am unclear about the difference between an epoch and episode. In algorithm $1$, the outer loop is over episodes, while in figure $2$ the x-axis is labeled epoch. In the context of reinforcement learning, I'm not clear w... |
I am needing to learn how to create and sample from a baseline category logit random effects model in R.
I have 5 categories, not fully ordered.. I need to generate about 600 simulated response vectors. Each vector needs to contain 16 multinomial trials, with teh possible responses being one of the five categories ... |
Are there any techniques for determining a good state space to use for a dynamic linear model? I'm trying to model ad-clicks with observed values being whether a user clicked on an ad and I'm curious if there's any literature on this. I currently have about 50 or so features that I could use but I don't see how to go f... |
I'm fitting a mixed model to explore effects of weather conditions (A,B, C; all factors) and their interactions on response Y (continuous). Study included several subjects and measures have been taken (for every subject) on many days. I'm not interested in the effect of time (or day).
I'm selecting fixed explanatory v... |
I have 2-D samples of two continuous, correlated random variables where one of them is right-censored. I would like to estimate their joint distribution function using some non-parametric estimator. Any pointers to the literature or code/packages would be highly appreciated.
|
I am having a hard time figuring out the Cramer Rao lower bound for a random sample of size $n$ from a population with $\Gamma(p, \theta)$ with $p, \theta$ unknown. The problem doesn't say what formulation to use for the gamma function, but I have used
$$
f(x|p, \theta) = \frac{\theta^p}{\Gamma(p)} x^{p-1} e^{-\theta x... |
What is the difference between time series data and panel data? I think that they are both multi-dimensional data, and both of them involve measurements over time. Is it that the covariance is constant in time series data, but not in panel data?
|
I have data containing 40,000 observations, coming from around 30,000 subjects. Most subjects contribute one observation, some contribute two.
The dependent variable is binary (1/0), and let's say, for the sake of the discussion, that I only have one independent variable, also binary. I want to model the effect of X on... |
Bayesian Nework and Makov random field are instances of general probabilistic graphical model.
Is it possible to express Bayesian Network or Markov Random Field using deep learning? or in general to express factor graph using deep learning tools like tensorflow/caffee?
|
I am getting some odd results and I feel like I have been banging my head against the wall for a while, so here I am. I am running a negative binomial regression analysis using MASS:glm.nb:
summary(m1 <- glm.nb(NumberOfAppUses ~
MainCountryIncome +
offset(log(SpanD... |
The question is as follows: In a sample of shall we say 1000 items, 65 come from source A and the rest 935 from source B. If a random sample is drawn from this population of 100 how do I work out the probability of NO samples from source A being drawn?
The formula for how to work this out would be appreciated
|
I'm doing some studying for finals and I'm wondering what would happen in a case like this.
With the following model
$y_t = x_t * \beta + \epsilon_t$
Say you had two IV's, $a_t$ and $b_t$. In reality, $a_t$ = $x_t$ but you do not know this. So you estimate $y_t$ using $b_t$ as an IV, where $b_t$ ~ iid. $N(0,\sigma^2)$.... |
Suppose I have 100 objects. I have some "detection criteria" such that I can tell you that 25/100 objects have been "detected." Therefore, my detection fraction is 25%. Now, I want to derive an error bar for my detection experiment. I can do this easily if I assume a binomial distribution: $df = \sqrt{f(1-f)/N} = \sqrt... |
I've been reading up on multilevel modeling, and have noticed that many sources seem to frame it as an "alternative" to using cluster-robust standard errors.
My question: Are they really alternatives?
In particular, let's say you have panel data (e.g., output for every farm in every California county -- measured once p... |
I got a question when I tried to prove the distribution of the Maximum likelihood test statistics.
The test is $H_0:\theta=\theta_0$ $H_1:\theta\neq\theta_0$
The statistics is $MLR=\frac{\sum f(x_i|\hat{\theta})}{\sum f(x_i|\theta_0)}$
So I want to show $2 \times log(MLR)$, which is $2 \times (l(\hat{\theta})-l(\theta... |
In my econometrics class, my teacher defined a stationary time series thus:
"Loosely speaking, a time series is stationary if its stochasitc properties and its temporal dependence structure do not change over time." I am confused as to what some examples would be. Would temperature throughout the years be stationary, a... |
I've been trying for hours to figure this out on my own. Unfortunately, it's not working very well, so I decided to come here for help. Other responses to similar questions didn't quite answer my question.
I'm supposed to interpret data from a Johansen test in R. Here is the output:
x = cbind(rt3,rt6)
y=data.frame(x)
c... |
I have an hourly time series of temperature:
(can be downloaded here: http://workupload.com/file/eFFPWvL)
plot(my_data$time, my_data$temperature, type = "l")
for which I would like to calculate a sine cosine function of the form:
As I understand the sine cosine are able to capture any complex form of seasonality/cy... |
RE: Model selection using misclassification rate in forward selection of logistic regression equation
A small misclassification error is good. Keep that factor in the model when doing logistic regression forward selection?
|
When doing imputation, I can understand why mean substitution can result in regression dilution.
However, in the same article about imputation, I don't understand why this is not a concern for univariate analysis?
As more of the y-values (dependent variables) get replaced with their means, I know that the sample mean w... |
I'm wanting to calculate the level of power achieved in a logistic regression analysis in G*Power using alpha of .05 and two-tailed test. My research question was looking at whether scores on an IAT (IV1 - normal distribution) could predict insufficient or sufficient levels of exercise engagement (binary DV), over and ... |
The question is as follows:
The MGF of $X$ is given by $M_X(t) = e^{4e^t -4}$ and that of $Y$ is given by $M_Y(t) = (\frac{3e^t+1}{4})^{20}$.
Assume also that $X \perp Y$. Compute $P(|XY|\leq 1)$.
My attempt at solving was as follows. I would like to see if my answer is correct or needs revision:
Clearly, $X\sim P... |
Say I have an XOR classification. At point (-2,1) I have a circle, at point (2,1) I have a square, at point (-2,-1) I have a square, and at point (2,-1) I have a circle. The circles belong to one class say +1 and the squares belong to a separate class say -1. I am looking for a kernel function which can lead to zero tr... |
Let the multiple linear regression model : $\mathbf Y=\mathbf X\mathbf \beta+\mathbf \epsilon,$ where $\epsilon\sim N(\mathbf 0, \sigma^2\mathbf I)$.
Least squares estimates, $ \hat{\mathbf\beta}=(\mathbf X'\mathbf X)^{-1}\mathbf X'\mathbf Y$.
The population variance of the estimator is $$Var(\hat{\mathbf\beta})=\sigma... |
I need to do seasonality analysis on a daily time series by which I mean the following:
Understand the relation between day of the week and data.
Use deseasonalized series as an input to the forecasting model.
I am comparing 2 methods for this:
Usual dummy variable
Do a regression yt= b1D1+b2D2...b5D5 + ut
where b... |
I was working on Unobserved Components Model in R but found that the content in the help section of R is not very elaborate.Maybe it's not completely updated yet. The Nile dataset example online also does not get a lot into how the model works.
I want to know how UCM is different to ARIMA and other time series models.... |
If $I_1, \ldots, I_n$ are iid Bernoulli random variables with probability $p$, and I define $N_1 = \sum_{\{i:I_i=1\}} I_i$, i.e., the number of successes, then by what we know about the Binomial distribution, we should have that:
$$
E\left(N_1\right) = E\left(\sum_{\{i:I_i=1\}} I_i\right) = np
$$
However, what bothers ... |
Excuse my language, I am not a statistician so I will try to explain my question as a layman.
If we rank items into groups, let's say best={a,b,c}, good={d,e,f,g}, average={h,i,j} and we have a measurement showing that a>h>b>c>d>i>j>e>f>g, how can we measure the correlation between the two rankings? And how to measure ... |
I know that the gamma family of distributions are a two-parameter family, but Chi-square only has one parameter.
How is a Chi-square distribution a gamma distribution if it only has one parameter?
|
The documentation of binomial functions everywhere is very unclear. Can someone please answer with examples?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.