instruction stringlengths 9 38.7k |
|---|
A random variable $X$ has a distribution function $F$. Let $Y\triangleq XI_{(a,b)}(X)$ with $1<a<b$. Find $G$, the c. d. f. of $Y$.
$$\begin{align}
G(y) &\triangleq \mathbb P(Y\le y) =\\
&= \mathbb P(X\le y)\,I_{(a,b)}(X) + \mathbb P(0\le y)\,I_{(a,b)^\complement}(X) =\\
&= I_{(a,b)}(X)\,F(y) + I_{(a,b)^\complement}(X)... |
I have a question about inclusion criteria to obtain a representative sample of people with "sustained" or uncontrolled high BP. A colleague proposed that I look at health history data retrospectively (i.e. three years back), and include only members who have a BP of 140 over 90 consistently for all three years. I had ... |
I have a Bayesian model that tries to predict a binary variable that I am modelling as logistic regression. The training data have lot of wrong labels*. Therefore, I think I might need to introduce some sort of slack (similar to slack variable that SVM). How can I do this?
If I model logistic regression ignoring errors... |
My data involves testing 216 experimental units (computational models) for which one factor (the value of a specific shared parameter of the models) is administered in 4 treatments (i.e. the parameter possible values). The experimental design is repeated measures i.e. each model is tested with all the 4 values of the p... |
I've got a causal inference situation with heterogeneous treatment effects. In addition to simply estimating coefficients, I'd like to get an average effect of the treatment at the covariate values that I observed in my dataset. For example:
$$
y = \alpha+\beta_1 T + \beta_2Z + \beta_3 (T\times Z) + X'\gamma + \epsil... |
I have a model where categorical (mutually exclusive) variables predict bankruptcy. Chi-square is significant. How can I code a logistic regression model in MATLAB that proves that some of these variables explain the bankruptcies better.
There are 4 variables: which implies 3 dummy variables.
X = [ 0 0 0
0 1 0
... |
According to the wikipedia article the point-biserial correlation is just Pearson correlation where one variable is continuous but the other is dichotomous (e.g. Yes/No, Male/Female). However the article later introduces rank-biserial correlation, which is a correlation measure between a dichotomous variable and a ordi... |
From wikipedia, Spearman's rank correlation is calculated by converting variables $X_i$ and $Y_i$ into ranked variables $x_i$ and $y_i$, and then calculating Pearson's correlation between the ranked variables:
However, the article goes on to state that if there are no ties amongst the variables $X_i$ and $Y_i$, the ab... |
I want to programatically calculate at which particular hours of a day the probability of a webpage hits(accessed) are high.
Which statistic formula should I use to calculate the peak hours of the web page, if I have already the below data about a page .
e.g. for page xyz, at left I have hours and at right I have hits ... |
Consider this logistic regression:
mtcars$vs <- as.factor(mtcars$vs)
log_reg_mtcars <- glm(am ~ vs*wt +vs*mpg, family = "binomial", mtcars)
I tried using the effects package to extract some coefficients from the model:
as.data.frame(effect("vs", log_reg_mtcars))
NOTE: vs is not a high-order term in the model
vs ... |
I am working with an ANOVA model. I want to run a fixed effects ANOVA in which I have a ratio dependent variable and three independent variables with two and three levels. Obviously, before analyzing the results, I want to check the assumptions of factorial ANOVA. Reviewing some handbooks, I found some divergences in t... |
In a questionnaire, I have asked some Likert scale questions. These questions were asked to the same population 6 years ago in another study. I only have the mean scores and standard deviation of the old study. Is there a way to compare the answers of my study to that of the old one statistically?
I have limited stati... |
I have a dataset with the following variables:
Treatment : (fixed,3 levels)
Location : (fixed, 4 levels)
Sample (random, 5 levels): 5 samples are taken in each location (randomly)
Subsample (random - 3 levels): 3 subsamples are taken in each sample. One treatment is assigned (randomly) to one of the subsample.
Th... |
I have a text file document containing a set of words strings that I want to cluster. I want to use the K-means algorithm. As a distance I'll be using the Levenshtein distance.
Question
Usually if we have for example real number vectors we can just compute the mean of all the vectors and it will represent the centroid ... |
This is my first post and I am a newby in pymc.
I am trying to model a non-linear system (see below for a further explanation). I create my synthetic data with:
data = np.random.normal(8., data_std, 1000)
obs = pm.Normal("obs", coupling, value=data, observed=True)
My stochastic variable is:
phi = pm.Uniform("phi", -18... |
I have found a group difference (3 groups) for my dependent variable and now I am supposed to find out if possible covariates influence this finding.
What is the best way to "correct" for 5 different covariates (age, duration of illness, medication, symptom score, gender)?
Shall I run 5 separate ANCOVAs (1 for each c... |
I've been searching for a few days on a number of sites but I can't seem to find a good answer for this. I'm developing a collision detection program using Unscented Kalman Filter and predicting possible positions of different objects.
These objects have a certain area but my predictions are of course only propagating ... |
I can't seem to find a general method for deriving standard errors anywhere. I've looked on google, this website and even in text books but all I can find is the formula for standard errors for the mean, variance, proportion, risk ratio, etc... and not how these formulas were arrived at.
If any body could explain it i... |
I am predicting a time series' future evolution and am evaluating the path uncertainty using bootstrapping.
Is there a good way to visualise the uncertainty that goes beyond simply plotting a pair of confidence bands, e.g. 90% lines? I thought of something that gives a better feeling for the distribution at each future... |
Consider bivariate data consisting of correlated variables (r ~ 0.9). It is known how both the variables are calculated. Each observation is identically distributed but non independent. Also, the dataset is fairly skewed in nature.
Given this information, i'm interested in isolating observations that exhibit high devi... |
I know I do not need to standardize the predictor variables before applying CART but would there be any adverse effects to doing it anyway? I'm comparing CART to a linear regression where I did standardize the inputs and for the sake of consistency I'd like to do the same for CART, but could it be detrimental to my res... |
I'm trying to create a multiple linear regression with water temperature change as my response variable and four numeric explanatory variables (that influence temperature change). Each numeric variable was recorded prior to the temperature change (e.g. amount of ice added into the water).
My problem is that I do not ha... |
I have a joint distribution which can be written down as follows:
$$
p(\Theta | D) \propto p(D|\Theta) \; p(w|\lambda) \; p(\lambda) \; p(\phi)
$$
where $\Theta = \{w, \lambda, \phi\}$. The prior distribution on $\lambda$ and $\phi$ are modelled using a Gamma distribution with some initial scale and shape parameters. T... |
The caret package (terrific btw) has a lot of models built in but if you want to use a model that is not built in, there is a way as described in outline here http://caret.r-forge.r-project.org/custom_models.html. Reproducing the example given there works just fine.
I'm attempting to do this for the grnn() general regr... |
I understand the concept of scaling the data matrix to use in a linear regression model. For example, in R you could use:
scaled.data <- scale(data, scale=TRUE)
My only question is, for new observations for which I want to predict the output values, how are they correctly scaled? Would it be, scaled.new <- (new - mea... |
I apologize for the simplistic questions. I have a retrieval process that has a set of random and systematic uncertainties associated with it. I'm assuming that these are all independent. The goal is to find the total error for this process. I have two questions related to this:
1) To find the total systematic uncertai... |
I have a function class $\mathcal{F}$. I get $n$ samples according to a model $$y = f^*(x)+\epsilon$$
I find the best $\hat{f}$ from these training samples i.e. $$\hat{f} = \arg\min\limits_{f\in \mathcal{F}} \frac{1}{n}\sum\limits_{i=1}^n (y_i-f(x_i))^2$$
Let $\bar{f} = E[\hat{f}]$, where the expectation is over all t... |
Inspired by "real-life examples of common distributions", I wonder what pedagogical examples people use to demonstrate negative skewness? There are many "canonical" examples of symmetric or normal distributions used in teaching - even if ones like height and weight don't survive closer biological scrutiny! Blood pressu... |
How can you cluster users based on what are searching for?
I'm working on an app which includes search functionality: a search box that allows a user to enter text and search the entire site. I have access to which terms the users are searching on. How can I cluster users based on this data? Here is what I am thinking ... |
This is more of a general question about how the predict function treats categorical variables and how to interpret the output from predict.
I have a zeroinfl model to predict the number of animals encountered:
b9 <- zeroinfl(Count ~ as.factor(Area) + as.factor(Season) | 1, dist="negbin", data=total)
where Count is t... |
I have an R script that process a CSV file and spit out result as CSV. This work fine in desktop environment.
Now I would like to implement some think like this:
set up an email where user could send CSV file as attachment
On a server, have an program to check email automatically and pass the CSV file to a specific fo... |
I needed a probability density function which worked on the interval $[0,1]$, had kind of a bell shape, and had an adjustable mode / peak $p$.
I thought of a pdf $f(x|p)$, given by
\begin{equation}
f(x|p) = \left\{
\begin{array}{l l l }
\frac{ (x^{- \ln 2/\ln p})^2 \cdot (1-x^{- \ln 2/\ln p})^2 }{ \log(p)
\left(
\... |
I created a probit model and tested it against a random sub sample of my dataset. I am interested specifically in seeing how many data points I can predict to be FALSE without having too many that are actually TRUE. Using the threshold of 0.1 (see below), I was able to predict to be FALSE about 30% with a false negati... |
I want to estimate the parameters for a Poisson mixture model with 2 (and later 3) Poisson distributions. I want to use Matlab and have numerical problems to solve the loglikelihood of the mixture model (values get to high or low).
Does anyone know how to handle this problem? I already tried to write a similar functio... |
I obtained three reduced models from a original full model using
forward selection
backward elimination
L1 penalization technique (LASSO)
For the models obtained using forward selection/backward elimination, I obtained the cross validated estimate of prediction error using CVlm in package DAAG available in R. For t... |
When comparing the performance of two classifiers over a single domain, in the context of a classification problem in machine learning, it is common to use a paired t-test, using the 10 average results from 10x10-fold cross-validation as measurements, where the folds at each iteration are the same for the two classifie... |
I'm looking for advice on how to analyze complex survey data with multilevel models in R. I've used the survey package to weight for unequal probabilities of selection in one-level models, but this package does not have functions for multilevel modeling. The lme4 package is great for multilevel modeling, but there is n... |
I had thought that a principal components analysis gives us information about the number of degrees of freedom (i.e. independent variables) underlying a system which we may only be able to observe through derived (and possibly correlated) variables. But a simple experiment has made me doubt this:
I generated 1,000 sets... |
How can I interpret point-biserial correlation? If the results give me a positive and significant correlation, how should I interpret it? Should I say that the variable category that I coded 1 is positively correlated with the outcome variable?
|
I have two data vectors of observed count data: $A$ and $B$, where count $A_n$ and $B_n$ refer to the same observation point.
$A$ is assumed to follow a negative binomial distribution. $B$ is assumed to be the result from two underlying processes. For one again an independent negative binomial distribution and addition... |
Can anyone tell me how can I integrate the R plugin for SPSS version 17?? I need to do some statistics using the R plugin for SPSS, unfortunately I can't find the plugin on the internet, so can anyone help me
|
In a comment to the answer of this question, it was stated that using AIC in model selection was equivalent to using a p-value of 0.154.
I tried it in R, where I used a "backward" subset selection algorithm to throw out variables from a full specification. First, by sequentially throwing out the variable with the high... |
Consider this model:
$$y = \beta_0 +\beta_1x_1 + \beta_2x_2 + \beta_3x_1x_2 + \varepsilon$$
Somebody told me today that the coefficient for the main effect of $x_1$ (i.e., $\beta_1$) will be 'marginal to the interaction'.
Could somebody explain what 'marginal to the interaction' means?
|
A linear model has t-distributed noise
$$
Y= bX + \epsilon
$$
where $\epsilon \sim t(0, \sigma^2, df)$, with mean 0, variance $\sigma^2$ and dof $df$.
Given an independent sample $(x_i, y_i), i=1, \dots, n$, suppose we already have estimates of $b, \sigma^2, df$.
How would you estimate a $1-\alpha$ prediction interval ... |
I have a set of data with summary as below:
The data are non-normal and transformations did not obtain normality.
Given the data are continuous I have narrowed the range of distribution down to
'Cauchy','Weibull','Gamma','f','Laplace'.
Below is the density plot for the data:
How do I determine the right distribution... |
This might be a basic question, but I have no clue what this descriptive method could be named. Simplified, I have a cross-table with Occupations (e.g., doctor, lawyer, engineer) as rows, and Hobbies (e.g., sports, reading, gardening) as columns. Cell values are integer occurrences of the corresponding OH combinations.... |
can I do my statistics work based on the central limit theorem? I need to perform a t-test, ANOVA and multiple regression. my outcome variable is highly not normally distributed (Highly positively skewed) and my sample size N=115. I'd like to keep the non-parametric tests as a last option for me.
|
I was reading some notes on ML and clustering and it claimed that the run time of clustering was O(kn) where k is the number of clusters and n is the number of points.
I was wondering why this was true and if someone had an analysis for it.
This is what I have thought so far though:
Recall the clustering algorithm.
1)... |
Working on a homework question and having some trouble... Any help would be greatly appreciated.
Based on a sample 1.23, 0.36, 2.13, 0.91, 0.16, 0.12 from the GAM$(2,\theta)$ distribution, find an exact 95% CI for parameter $\theta$.
So we know GAM$(\alpha, \lambda)$ has the pdf $f(x)= \dfrac{\lambda^{\alpha}}{\Gamma{... |
I collected data from 500 participants. Here's an example of the data:
Response 1:
Age: 25
Gender: Male
Choice 1: 1
Choice 2: 1
Choice 3: 0
Choice 4: 1
Choice 5: 1
... Up to choice 30
Response 2:
Age: 20
Gender: Female
Choice 1: 1
Choice 2: 1
Choice 3: 0
Choice 4: 1
Choice 5: 1
...
All questions were categorical and ... |
For classification problems I have been using Neural Networks and measuring Type I and II error using the confusion matrix and its measures as per this resource (mirror), which is pretty straight forward.
When faced with an estimation problem, how would one assess the model performance?
Assuming that there are no cl... |
I am trying to estimate the parameters of the modified Bessel function of the first kind for integer order case.
$I_n(wt) = \sum\limits_{m=0}^\infty \frac{1}{m!(m+n)!}(\frac{wt}{2})^{2m+n}$
In Probability form,
$P(t|w,n) = I_n(wt)*other\_terms$
and I would like to estimate the parameters $w$ and $n$, where I got data... |
I am looking at equation (2.16) on page 19 of Elements of Statistical Learning and can't seem to be able to derive it. I used $f(x) = x^T\beta$ as the linear model, and tried calculating $\beta$ by minimizing the expected prediction error (EPE).
$$ EPE(f) = E[(Y-f(X))^2] $$
$$ EPE(f) = E[(Y-X\beta)^T(Y-X\beta)] $$
$$ ... |
Suppose $$
z_i \sim Bernoulli (p_i)
$$
Can we use CLT for the following weighted sum?
$$
S = \sum_i w_i z_i
$$
i.e. can $S$ be approximated with a normal distribution? If yes, with which theorem? (I suppose the classical CLT holds only for average of iid variables)
|
I am trying to determine whether a baseball player has the ability to influence the outcome of an "at bat" by calculating the correlation coefficient between the percentage of at bats which result in a given outcome from one year to the next, for each player-year in the sample.
For example, suppose that an at bat can r... |
This is the logistic distribution of single random variable (taken from Wikipedia).
$x$ = random variable
$\mu$ = mean of all random variables
$s$ = variance.
Now, I want to do a Bivariate logistic distribution (having two random variables $x_1$ and $x_2$). My dataset is going to be image pixel values!
When I find the... |
I'm using an IT-approach and multi-model inference with some count data.
I have used model averaging to obtain parameter estimates from several GLMMs with Poisson-lognormal errors (Poisson family plus observation-level random effect). Model-averaged parameter estimates are as follows:
(Intercept) 1.9522
landuse -2.0318... |
I have an issue with a section of some Actuarial lecture notes that I am reading.
Here are the snippets from the notes:
"Consider a portfolio consisting of $n$ independent policies. The aggregate claims from the $i$-th policy are denoted by the random variable $S_{i}$, where $S_{i}$ has a compound Poisson distribution ... |
I am studying the effect a certain chemical and age on an outcome. As variables, age is a factor of with levels 1, 2, and 3 and covar1 is continuous.
After fitting the model
mod1 <- glm(out1 ~ covar1*age, family=poisson, data=df)
The estimates are
Parametric coefficients:
Estimate Std. Error t value... |
I'm analyzing a survey data that contains the following 3 variables (questions):
If the election was today who would you vote for in the following list?
(A, B, C, D, or E)?
Let's imagine the respondent choose A in the previous item. Then, she is asked:
What if A is not participating in the contest, who would you vot... |
I need to present information about the main predictors of a candidate's votes using a public opinion survey data. I have run a logistic regression using all the variables that I care about, but I can't find a good way to present this information.
My client doesn't care about the size of the effect only, but about th... |
Is it possible to conduct exploratory factor analysis using 'fixed number of factors' instead of going for 'factors having Eigenvalues more than 1'? Are there any technical problems in that?
|
Given $n$ observations with a Cauchy distribution (location=t,scale=1), I would like to compare estimators such as the mean and median by simulating sample means and mean square errors. This is an exercise given by my book.
The exercise says I may assume t=0. Why is this?
I thought I would try $n=10$ first so I typed i... |
I'm trying to obtain the maximum likelihood estimate of the parameters for a model I'm building. I have constants $\sigma$, $\mu$, and $q_0$; a boolean matrix $\alpha$; and vectors $A, \beta, r, d,$ and $Q$, all quantities non-negative. I set the derivative of the log likelihood function equal to zero with
$$0=\sum_j \... |
I came a cross two ways to evaluate the performance of binary classifiers: accuracy and precision. When to choose each? And what are the advantages and disadvantages of each one?
|
My girlfriend and I were having a debate about a magic trick.
I am a magician and I have a coin. I walk up to a complete stranger with the coin in my hand and know which side is up. I ask her to state heads or tails. If she picks the correct one I tell her, "I knew you would pick that one. You should marry me!". If how... |
I am searching for some algorithms for feature extraction from images which I want to classify using machine learning . I have heard only about [scale-invariant feature transform][1] (SIFT), I have images of buildings and flowers to classify . Other than SIFT what are some good algorithms .
|
Consider this model:
summary(lm(mpg ~ hp*wt, mtcars))
Call:
lm(formula = mpg ~ hp * wt, data = mtcars)
Residuals:
Min 1Q Median 3Q Max
-3.0632 -1.6491 -0.7362 1.4211 4.5513
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 49.80842 3.60516 13.816 5.01e-14 ***
h... |
I am trying to become comfortable with the bootstrapping of joint prediction regions described in this paper:
http://www.nccr-finrisk.uzh.ch/media/pdf/wp/WP748_A3.pdf
This calculates the prediction intervals, $I_j$ for all time points $j$, such that all datapoints of a forecast path lie within this region with probabil... |
I am working with some data where the features have a temporal aspect (e.g. how often does a feature occur between $t_{begin}$ and $t_{end}$). I am trying to build a binary classifier for this data. The problem, however, is that each feature is a probability distribution. Normally, something like a SVM classifier would... |
I am using auto.arima() for prediction, and getting the following warning message. I want to know if I can ignore this warning message or if I should be worried.
Warning message:
In auto.arima(forecast_data_ts) :
Unable to fit final model using maximum likelihood. AIC value approximated
|
I am trying to replicate some odds ratio calculations which are reported in this paper.
For example in the paper on page 3 in the Strome et al. data for tonsil:
it states there are 52 cases and 48 controls. HPV % cases = 40% and controls = 6%.
Converting the percentages to raw figures, I get the following 2×2 table:
... |
(I'm assuming the second $\bar x$ should be a $\bar y$), but I'm mostly confused how to solve this problem because it seems like since $\bar x$ and $\bar y$ are values, not random variables, $W$ is just a value? If that's the case, how can you take the expected value and variance of $W$? Thanks.
(source Mathematical... |
Consider $X_n = \begin{cases} 1 & \text{w.p. } (1 - 2^{-n})/2\\ -1 & \text{w.p. } (1 - 2^{-n})/2\\ 2^k & \text{w.p. } 2^{-k} \text{ for } k > n\\ \end{cases}$
I need to show that even though this has infinite moments, $$\sqrt{n}(\bar{X}_n) \overset{d}{\to} N(0,1) $$
I have tried showing this by using Levy's Continuit... |
I was going through the FAQ page of the FIDO alliance, a consortium to implement a next generation authentication system. To answer to the question,
How secure are fingerprints?
They have said,
The possibility of someone having the same fingerprint as you is about
1 in 6 million. The chances of someone finding you... |
Disclaimer
I am new to this site, relatively new to R (two weeks of learning), have just a really basic knowledge in statistics so sorry if I'm doing a dumb mistake there or asking bad question or something.
I also don't know how to nicely embed my dataset into post (I searched meta without finding anything about this)... |
I have data on grades obtained in a course over three consecutive years. The grade distribution includes the number of students who received a fail, pass, credit, distinction and high distinction.
I need to work out if the proportion of students who obtain a pass (or fail, credit, etc.) is the same, or different acros... |
I have hard time to understand that what is the null hypothesis in the definition of Sensitivity and Specificity here? I'm student of Statistics and from my little knowledge in this field I can see that the here null hypothesis should be:
$\textrm{H}_{0}:\textrm{ Person is healthy}$
Is this true? Thanks in advance for ... |
I wonder what are the better approaches to categorize continuous data (e.g. age) than dividing them with the use of quantiles and cut function (in R). I have heard about using trees to divide data in the way which takes into consideration how a division would differentiate a response variable, but I cannot find any qui... |
In a frequency distribution the upper boundary of each class interval has a constant ratio to the lower boundary. Show that the Geometric Mean $g$ can be expressed as $$\log g=a+\dfrac{k}{n}\sum_{i=1}^r f_i(i-1)$$
where $a$ is the class mark of the first class, $k$ is the logarithm of the ratio between upper and lower... |
In signal detection theory, people often use $d'$ to assess performance. Apart from the fact that $d'$ is in $z$ units (units of measurement transformed to standard deviation units, i.e., $z$ scores), making it comparable regardless of the original units of measurement. I can't see what the advantage in analysing $d'$ ... |
I have a dataset $\mathbf{D} = \{ (\tau_i, \Gamma_i) : 1 \le i \le n \}$
of observations $\tau_i = X_i + \epsilon_i$
from a $p$-dimensional Gaussian $X_i \sim \mathcal{N}(\mu, \Sigma)$
contaminated by additive noise $\epsilon_i \sim \mathcal{N}(0, \Gamma_i)$ where the $\Gamma_i$ are diagonal and observed. This gives a ... |
I am doing a simple linear regression to test the relationship between voters' self-reported policy stands and their approval ratings for two hypothetical presidential candidates in a simulated election campaign.
Participants first report their own position on a range of issues (e.g. 'The government should increase tax... |
Hi all and thank you in advance for helping!
I have three variables: $y$ the dependent count variable, $x$ the independent positive continuous variable, $U$ is the observation unit (and I expect a random effect with it). I would like to test the hypothesis that the slope for $x$ is positive. I would normally use the fo... |
I'm working with a uniform distribution as a prior, defined as:
$\pi(\theta) =
\begin{cases}
\frac{1}{7} & \text{if } \theta\in\{0,\frac{1}{6},\frac{2}{6},\ldots,1\} \\
0 & \text{otherwise }
\end{cases}$
I've to compute the prior predictive, but I don't know how to deal with this discrete distribution. ... |
I am trying to understand the difference between iid and non-iid data.
Let's consider a given time series, and say it's reasonable to assume that at each time point the random variable $X_t$ depends on $X_{t-1}$.
Now say someone gives me the dataset $ D = \{ ( t_i, x_i ) \} $ for $i=1 \dots n$. I might be tempted to a... |
I have a distribution of microparticles that follows a lognormal distribution. The cumulative distribution function thus is given by:
$$
F_X(x;\mu,\sigma) = \frac12 \operatorname{erfc}\!\left(-\frac{\ln x - \mu}{\sigma\sqrt{2}}\right)
$$
$$
\mu = ln(M) + \sigma^2
$$
Now, the plot of the distribution function should be ... |
I am trying to get related documents for a list of 10,000 documents from the same set of 10,000 docs. I am using two algorithms for testing: gensim lsi and gensim similarity. Both give terrible results. How can I improve it?
from gensim import corpora, models, similarities
from nltk.corpus import stopwords
import re
d... |
I am attempting to perform regression calibration on some test data to familiarize myself with the idea behind it. I don't have much of a stats background. The method rcal in Stata seems to be what I am looking for, however I am having trouble when trying to regress on only one variable.
In the following example, there... |
I am trying to model the probability of a binary outcome with the independent variable being an hour variable. I understand that linear regression is not the correct method for this type of task (I wont go into my simplified understanding of why, if someone wants to add a succinct explanation I'm all for it). The prob... |
I'm a statistically incompetent social scientist who is very much out of my depth...
I'm using R to analyse a data set, which is a 1% sample of a population showing cancer rates across 20 regions. There are parameters for male and female rates.
If I have to calculate 95% credible intervals for the mean based on the two... |
I have a question about the acceptance ratio used when implementing a random walk M-H in a gibbs sampler to generate sample paths of an unobservable process. When computing the likelihood of a set of parameters, does the likelihood also include the likelihood of each jump in the latent process given $ \theta $ ?
The fo... |
I have fitted a glm to my data set and used to the Durbin-Watson test to check model fit. I have obtained the result. How can i interprete it?
lag Autocorrelation D-W Statistic p-value
1 0.7750748 0.4466024 0
Alternative hypothesis: rho != 0
|
The confidence interval for the mean of a random variable $Y$ has coverage $1-\alpha$ which I am trying to show. Starting from
$$\widehat{E(Y)} - q_{1-\frac{\alpha}{2}}\sqrt{\frac{\widehat{Var(Y)}}{n}} \leq E(Y) \leq \widehat{E(Y)} + q_{1-\frac{\alpha}{2}}\sqrt{\frac{\widehat{Var(Y)}}{n}} $$
I re-arranged this to
$$- q... |
If you have several linear models, say model1, model2 and model3, how would you cross-validate it to pick the best model?
(In R)
I'm wondering this because my AIC and BIC for each model are not helping me determine a good model. Here are the results:
Model - Size (including response) - Mallows Cp - AIC - BIC
Interce... |
For a potential emotion recognition bachelor-project I was wondering what statistical test I have to perform when I get my results to test whether it's significant. I will be testing which combination of feature extraction and machine learning algorithm will give me the best percentage of correct classified. The result... |
In this study:
Rosenblum, Sara, et al. "Handwriting as an objective tool for Parkinson’s disease diagnosis." Journal of neurology 260.9 (2013): 2357-2361
The researchers attempt to classify Parkinson's disease (PD) with a control group of 20 participants and a PD patients group of 20 participants, while the participant... |
So I'm trying to show that ${\rm Var}(Z) \le 2({\rm Var}(X)+{\rm Var}(Y))$ for $Z = X + Y$. This seems to be pretty easy to show given that $X$ and $Y$ are uncorrelated. But I'm running into trouble at this step:
$$
{\rm Var}(Z) = {\rm Var}(X) + {\rm Var}(Y) + 2E[XY] - 2E[X]E[Y]
$$
Normally you could say, $X$, $Y$ ... |
I am currently a PhD student in Biostatistics (finishing my 2nd year). My original goal when entering graduate school was to go into academia. Recently I have been debating this choice and wondering if perhaps industry will be a better fit.
I come from a strong programming background. I love using R because it is a lo... |
The formula for the optimal weighting matrix when you perform regression with more instrumental variables than endogenous predictors is the following:
$W_{opt} = (\frac{1}{N}Z'Z)^{-1} $
This tells us that we only have to look at the variance covariance matrix of the instruments,
But doesn't it make more sense to give ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.