instruction stringlengths 9 38.7k |
|---|
I read the theory of Chi square test of independence and I am comfortable with the idea of expected counts and the reasoning behind calculating them the way they are. But what bothers me is the selection of Chi square distribution for getting the p-value. Why do we use the Chi square distribution as the distribution to... |
I have $N$ well defined random variables (each with their average $\mu_i$ and standard deviation $\sigma_i$). The outcome of an experiment can be the value of one of the random variables. For each variable, I do know their probability $p_i$ of being selected.
Is it possible to determine the standard deviation and the a... |
Let's say, we have some product in an online store, which overall rating calculates by weighted average of the following sub-ratings left by customer:
Quality ✮✮✮✮☆
Price ✮✮✮☆☆
Whatever ✮✮✮☆☆
The weight factors are:
Quality - 50%, Price - 25%, Whatever - 25%
Thus, the overall rating will be: 0.8 * 0.5 + 0.6 * 0.2... |
I'm having some difficulty applying policy gradient to the simple OpenAI Gym environment CartPole-v0. This is a simple inverted pendulum where the agent receives a reward of 1 in every frame where the pendulum is within a threshold angle and position.
Learning seems to start well, with the average reward per episode st... |
I calculated this multinomial logit model using an effect coding (-1 0 1). The variable edu3 is the education level (3 categories), sex has of course 2 categories and eduM3 is the education of the mother in 3 categories.
Parameter edu3 Estimate Pr*>*ChiSq
Intercept 0 -1.6882 <.0001
Intercept 1 -0.2962 <.0001
sex 0 0 0... |
I can understand higher the value of chi square more significant is the split, but cannot understand the formula used. Please explain intuitively.
|
I'm stuck on an exercise (it's not homework, but preparation for finals). It goes like this: $X_1, \dots, X_n$ are iid Exponential($\lambda$) (with parametrization $f(x)=\lambda e^{-\lambda x}$). What is the pdf $f(x_n|Y)$, where $Y=\sum_{i=1}^n X_i$?
I know that $Y\sim Gamma(n, \lambda^{-1})$ with pdf
$$
f(y)=\frac{... |
I am not sure, but I guess model averaging and model combination and even forecast averaging and forecast combination are used arbitrarily in the literature...
Is this only my feeling or indeed the case? Any reference?
|
I ran a regression where the dependent variable is winning (1=win)
Given that my regression is probit I want to understand the coefficient.
I've done margins, dydx() for my independent variable (average marginal effects). This yielded a result of -.41.
What does this mean? Does it mean that the probability of winning ... |
Why is it giving me a straight line whereas we can see that there is a pattern? Please tell me what I am doing wrong. I have build this model in python using statsmodel library.
I want the forecast for the year 2017. But it is coming a straight line. I want to know why there are no fluctuations? The data given was wee... |
I'm trying to understand the SVM algorithm but not able to understand what weight vector and bias is ? Could anyone explain it in laymen terms.
|
I am following a chapter on backprop derivation from the online book by Michael Nielsen
In particular, following equation is derived in Chapter 2:
${∂C\over∂w^{l}_{jk}}=a^{l−1}_{k}δ^{l}_{j}$
Now, I am trying to implement this in a vector form. I assume that proper operation is the outer product of vectors:
${{∂C\over∂w... |
Do you know any references providing arguments against model or forecast (models output) combination?
Could not find anything
|
I am learning the bootstrap method, and reading Rao and Wu's (1988) classic paper "Resampling Inference with Complex Survey Data." On the section of "The Naive Bootstrap" (as the picture shown below), I found that I don't know how to derive Equation 2.3. I feel that that equation is fundamental to the so-called "Rao-Wu... |
I am currently working on a class project, in which I need to identify groups of regions in my sample base on a regression tree. However, I am unfortunately not very familiar with regression trees in general, which is why I am a bit confused about their implementation in statistical software packages, such as R or MATL... |
A friend of mine (mathematician) basically told me I shouldn't bother with matrix algebra and should focus on tensor analysis/manipulation. He said it's much more general and intuitive. I've been trying to grasp most of the matrix literature (Harville, Magnus, Gentle) due to its relevance to linear models.
My question ... |
I am comparing measurement instruments A and B to assess their agreement on measuring feature x.
Measurements with A are cheap. I have made measurements on thousands of randomly selected objects with A, so I know the distribution of feature x in this large sample, and it's likely a good approximation to the distributio... |
I have several measurements of trees over time (different vegetation indexes).
Each measurement is in a different scale, some also include negative values (e.g. NDVI).
I need to compare the variation in time of all measurements, using a single statistical measure. Coefficient of variation is not relevant because of neg... |
suppose for a time series, the auto.arima output is:
ARIMA(1,0,1) with non-zero mean
Coefficients:
ar1 ma1 intercept
0.7456 0.2775 767.7463
s.e. 0.0804 0.1197 0.1072
It is specified in help file of arima function that definition used for this function is
X[t] = a[1]X[t-1] + … + a[p]X[t-p... |
I am performing a simple linear regression with the lm() function to make statements about the association between the two variables. But I am not sure if my regression estimates and the t-test are correct due to the violations of assumptions (homoscedasticity and normal distribution of the error term)
My regression mo... |
I have to calculate the CI of the AUC (Roc) for a series of classifiers (e.g. Lasso, Random Forest, SVM) learned using the same test dataset, in order to identify the best model for this problem (prediction of a dichotomous variable).
Considering the small size of the dataset, I used the less known but almost unbiased ... |
We are collecting certain metrics using (Graphite + Grafana) use them as a tool to monitor system health and performance.
For one of the latency metric, we get the total time as well as the latencies for all the sub-components it is composed of.
We display 99th percentile for all the values. However, if we sum up the ... |
I am using linear regression for a large set of data. I produce a set of weightings for each variable for the data set as a whole. The data however can be broken into subsets relating to different individuals who might have different weightings from the global set due to their different attributes. What I would like fr... |
Is there any source when I can run through examples of the main econometric techniques worked out in a matrix form? (preferably in R). I tried to read the source code of functions like lm and lm.fit but it is not clear at all (source: stats::lm and stats::lm.fit).
I am looking for something similar to the OLS explaine... |
I'm trying to get to grips with multiple linear regression and partial regression plots.
The answer to this question from @Silverfish really helped initially, so I had a go with my own data using Python's statsmodels:
# OLS regression
model = smf.ols('n_taxa ~ tn + toc + p50 + cv + revs_per_yr', data=df).fit()
print m... |
How can I calculate Cook's distance for lm.ridge objects?
I first created a glmnet object and carried out ridge regression finding suitable shrinkage parameter. After that, I am calculating the beta values:
object<-cv.glmnet(as.matrix(indp_data),response_data,type.measure = "mse")
fit_lm<-MASS:::lm.ridge(formula,data,l... |
If have a decision tree, say with two leaves, how do I calculate the total error? One can calculate the error for each leaf, but is the total error the sum of the errors or the product (or neither)?
|
Let $X\sim\mathcal N(0,1)$ be a normal random variable and $\alpha>1/2$.
The $\alpha$ percentile of $X$ is usually denoted as $Z_\alpha$ and satisfies $\alpha = \int_{-\infty}^{Z_\alpha}\frac{1}{\sqrt{2\pi}}e^{\frac{-x^2}{2}}dx$.
I need to bound $Z_\alpha$ (as a function of $\alpha$) for analysis of an algorithm.
What... |
I am thinking about p-values correction in case of multiple test.
In general if the complex test 'contain' several simple test then probability of first type error increases. In this case I conclude that complex null hypothesis is rejected if at least one of the simple hyphothesis is rejected. To reduce 1-type error of... |
The original model gives me an AIC of 75.43 and the Box-Cox transformed model gives me -189.2013. Does this me the Box-Cox transformed model is a much better model here?
|
(In the context of simple or multiple linear regression)
Perhaps a very simple question to most of you. I know that if your sample size is large enough, despite your data not following a normal distribution, it would be viable to still compute the confidence interval due to the Central Limit Theorem.
What I heard is th... |
Is there a way to introduce weights in step AIC (R) (stepwise with Akaike criterion).
For example, I would need to choose among many variables:
FF<-as.formula(logPorcDeb~diaDesdePago)
FFS<-as.formula(logPorcDeb~diaDesdePago+fl_1erdia+fl_2dodia+
flSab+flLun +flDpViernes+flGenteUltDias +....)
norm... |
I want to classify (newspaper) texts to classes like sports, technology or politics (7 classes). The current classifier is Logistic Regression.
Therefore I've collect some features:
Linguistic Features (19): like text length, avg. word length, sentence length, number of adjectives (divided by text length) etc.
Word Fe... |
I have hourly time series consumption data of four customers namely (F238, F262, F267, F264) for a complete month, plotted as
Each line represents the consumption on a separate day. I want to find which among these customers is most stable/consistent in terms of repeating patterns across days and which among these is ... |
I understand the output of the margins command gives the weighted average predicted probability at each value of a factor (averaged over the other confounders), but I am not clear what the p-value is referring to, that is, what is the null hypothesis being tested? If it reports 0.06 and 0.09 respectively for a two leve... |
Given the below term definitions
..my question is: why is the logical negation (opposite) of a false negative not a true negative? This would imply 1-α=β, which does not have to be the case.
And same for positives: I'd have thought that what is left after counting the false positives is the true positives. In other wo... |
I would like to assess the goodness of fit of a logistic regression model I'm working on. I've done a lot of research and happened to find likelihood ratio test, chi-squared test, Hosmer and Lemeshow test and several R2 measures (like Nagelkerke R2, Cox and Snell R2 and Tjuf R2 measures) in order to assess the overall ... |
The usual scenario for logistic regression is that the correct output label $y \in \mathbf{y}$ is provided for an input $\mathbf{x}$, and we maximize $P(\mathbf{y} = y | \mathbf{x}; \theta)$
I am dealing with a situation where the correct label is not always provided. Instead, I have definite information about (one of ... |
From the Book"fundamentals of neural network", the input layer of a feedforward neural network has linear activation function. Elman recurrent NN is the same as a feedforward except that it has context layer. What should be the activation functions of each layer in an elman recurrent NN?
I have searched for this answer... |
When using $TD(\lambda)$ in a finite state-action space, the update looks like
$$ \forall s,a \in S, A(Q(s, a) = Q(s, a) + \alpha \delta e_t(s, a))$$
where
$$\delta = R + \gamma Q(s_{t + 1}, a_{t + 1}) - Q(s_t, a_t)$$
This process updates every state-action towards the delta between the observed TD(0) return and the cu... |
Maybe this question depends on the given data, but is there a "better" bootstrap method than the others? I'm simply using a one variable dataset (that consists of the differences between football scores (2 teams) over the past 15 weeks)..
First note the right skew of this data, I feel like this will take into consider... |
I have a collection of $N$ different objects. An expert "looks" at the object $O_i$ and produces a prediction: binary label $y_i\in\{0,1\}$. The predicted binary label $y_i$ is observed (data) and is known to be noisy. Also, objects are of different complexity: an expert with poor "skill" will likely mislabel a work it... |
Are there any papers pertaining to smoothness / regularity of functions that are approximated with artificial neural network?
|
How do I test the hypotheses:
$H_0: |p_0 - p_1| < c $ vs. $H_1: |p_0 - p_1| \ge c $
for some constant $c$.
Because sometimes we may want to adopt a new process only if it exceeds the current process by some threshold.
|
I've created a pymc poisson hierarchical model to forecast sports scores.
If I use a smaller sample size of the season, say the first month, (10 games per team) versus using the entire season (100 games per team), the variance or spread between the mean of the strength of the individual teams (worst to first) is much w... |
I am struggling to figure out how should I approach to decide the sample size for a pilot study. The pilot study will be funded so a proposal is required justifying the sample size. The study participants are patients from a city hospital which will be extended to multiple cities in the main study. Patients will be eva... |
I have a machine that generates 16 character long sentences made up of (I think kinda) random letters. I can get it to spit out up to 1 million such sentences before I loose the ability to store them (as there will be too many by then). From the million, there is not a single duplicate sentence detected. They are all ... |
I have made 4 clusters of movies based on imdb score, number of votes and gross profit. These are nice interpretable clusters with a BSS/TSS of 65%.
Now I would like to use randomforest to predict in which of four clusters a movie belongs based on other characteristics of that movie.
Is it wise to use 2 methods in this... |
I am trying to find a solution to the decision boundary in QDA. The question was already asked and answered for LDA, and the solution provided by amoeba to compute this using the "standard Gaussian way" worked well. However, I am applying the same technique for a 2 class, 2 feature QDA and am having trouble. Would s... |
I am trying to implement this tutorial Frequency-Domain Linear Regression https://www.mathworks.com/help/signal/ug/frequency-domain-linear-regression.html?requestedDomain=www.mathworks.com on my time series, but I don't understand part after first diagram, 3rdparagraph. There is sentence "Sampling the data monthly, the... |
Both the terms "upsampling" and "transpose convolution" are used when you are doing "deconvolution" (<-- not a good term, but let me use it here). Originally, I thought that they mean the same thing, but it seems to me that they are different after I read these articles. can anyone please clarify?
Transpose convolutio... |
Assume a planet with a very very long year of $N$ days. There are 1 million aliens at a party in a room, and no one at all shares a birthday. What can be inferred about the size of $N$?
(This more compact question supersedes this poorly phrased one.)
|
Say, $R_i$ $(i=1,2,\ldots,n)$ is a binary variable.
I have an estimator $n^{-1}\sum_{i=1}^{n}(1-R_i)$.
How can I show $n^{-1}\sum_{i=1}^{n}(1-R_i)$ converges in probability to $P(R_i=0)$? That is,
$\lim_{n\to \infty}n^{-1}\sum_{i=1}^{n}(1-R_i)=?$
I know $\sum_{i=1}^{n}(1-R_i)P(1-R_i)=\mathbb E(1-R_i)$.
But is $\lim_{n... |
This is often shown as the setup and simple analysis for a difference-in-difference estimation. Lets say that the control series is significantly smaller than the treated series. Below this means the green line would be greatly shifted downward - but still similar trend as red (the primary assumption of d-i-d). Does th... |
What's the best test and methodology to use for a scenario for an Email blast wherein I want to measure whether one or another segment group was more likely to Open?
|
I have weekly observations of the number of insects (1 1 5 8 13 7 8 8 9 8 2 2 1 1 1 1 0 0). My question is: even though the data is count data, it doesn't follow the Poisson distribution (as checked by means of K-S test), it mostly follows the Normal distribution. My question is: shall I... |
Consider $X=X_r+jX_i$ to be a circularly symmetric Gaussian random variable, and $$X\sim\mathcal{N}_c(0,\sigma^2)$$ where $\mathcal{N_c}$ denotes the Gaussian distribution for complex random variable. Here $X_r$ and $X_i$ are the real and the imaginary parts of $X$. Due to circularly symmetry assumption (used in the s... |
Problem Statement
Let $X_1, X_2, ..., X_n$ be i.i.d. random variables from a normal distribution with mean $\mu$ and variance $1$. Find an unbiased estimator for $\tau(\mu):=P(X_1>0)$.
Attempt at a Solution
We can manipulate $\tau(\mu)$ to obtain that it is the cdf $\Phi$ of a standard normal by noting that
\begin{ali... |
I've only seen the Hosmer-Lemeshow test used for Logistic Regression. Why can't it be used for algorithm that produces probabilities for binary classification?
All the Hosmer-Lemeshow test requires probabilities and binary labels. So, why hasn't it been used on models such as support vector machines, random forest, a... |
In this lecture by Hastie and Tibshirani, it is mentioned that with case-control samples, we can estimate the logistic regression parameters accurately, but the intercept term is incorrect. It also gives a formula to correct the intercept term.
Could you please mathematically explain why this happens?
Additionally, cou... |
Quant developer interview question:
There are two price prediction models, one with accuracy 55%, another with accuracy 65%, both predict price is gonna go up, what's the probability that price is gonna go up? Please provide detailed answer.
One can assume two predictions are independent.
|
I use Naive Bayesian to train a dataSet:
weather temperature humidity windspeed Y/N?
rain cool normal strong N
sunny hot high strong N
sunny hot high weak N
sunny mild high weak N
sunny cool n... |
When I specify a GARCH-model (using "rugarch" package in R) and choose "std" as conditional distribution then the fit gives me a shape parameter. I read both, some say this is equal to DF (a thread on R-SIG-Finance), some say not.
If I use rdist function and plot the density, the higher the shape the fatter the tails,... |
I’m modelling a discrete-time 1-dimensional signal $y(t)$ as a sum of two input variables $x_1(t), x_2(t)$ convolved with their respective kernels plus noise
$y=x_1*g_1+x_2*g_2+\eta$
and I’m estimating the kernels $g_1$, $g_2$ by minimizing squared error with ridge regularization.
Both input variables are positive-val... |
When determining sample size we require population proportion (p) for a dichotomous outcome that to be measured (at 95% CI , 3% error ).
If the proportion (p) is unknown a conservative estimate of .5 assumed. sometimes pilot study conducted to find a value for the proportion (p). If there is previous study we can take... |
As far as I know, the outcome of classification tree is the class that the input observation belongs to.
Is it possible to obtain the probability that the input observation belongs to the predicted class? Is there another other way to compute this probability?
I'm not able to use the regression tree because my target ... |
am trying to learn KNN by working on Breast cancer dataset provided by UCI repository. The Total size of dataset is 699 with 9 continuous variables and 1 class variable.
I tested my accuracy on cross-validation set. For K =21 & K =19. Accuracy is 95.7%.
from sklearn.neighbors import KNeighborsClassifier
neigh = KNeighb... |
I would have to define, in R, a mixture of a number of bivariate normal distributions like that:
a strategy would be to define the single pieces of the expressions, for example:
bivn_1 <- mvrnorm(1000, mu = c(0, 0), Sigma = matrix(c(1, 0, 0, 1), 2))
bivn_2 <- mvrnorm(1000, mu = c(.5, .5), Sigma = matrix(c(.4, 0, 0, .4... |
We are interested in replicating several duration studies in the literature using ensemble learning methods. After some experimentation, we opted for random survival forests (Ishwaran et al. 2008) for their simplicity and performance. However, the package randomForestSRC in R only allows for time-invariant covariates. ... |
In this hypothetical example we have access to a database. In it cases are people with children and controls are those without kids. We want to measure the association between having children and Lung cancer.
We match each case to 'n' controls based on a given criteria. Shown below is the fantasy results obtained. In ... |
I think I understand the Neyman-Pearson lemma, but I'm really struggling to understand the reasoning with which it's used as a building block to build tests for composite hypotheses.
Take this worked example, say. At the end, they say that "the" critical region C defines a UMP test, but from what I can tell, they've go... |
I want test if measurement comes from my reference. I know reference distribution, for example it is:
$$
X = f(A,B) \\
A \sim N(0, \sigma) \\
B \sim U(a,b) \\
$$
$ f(A,B) $ - some function of the variables, for example $ f(A,B) = A + B $
Then I can run Monte Carlo (MC) simulation to simulate my distribution.
On pictur... |
I am working on a website scroll depth analysis tool.
Currently, I am trying to figure out how to calculate the depth where reached 80/60/40/20 percent of visitors.
A Solution I have now:
data:
Each data point represents lowest reach point in the session (px), one data point is one session
500
500
520
521
545---80%
545... |
Say I have come to the conclusion that the model for a specific data set should be an ARMA model with parameters a1, a2, a3, a9, a10, a11 and c1, c2, c3, c9, c10, c11, c12.
How can I do a model fitting using only these parameters, and thus setting all other possible parameters to zero?
|
$\Theta$ is a uniform random variable on the interval $[0, 2\pi)$, and we have $X = \cos(\Theta)$ and $Y = \sin(\Theta)$.
Suppose $(x,y)$ is a point inside the unit circle. Then, the arc length that is shown in white in Fig. 3.2.a on page 56 of An Introduction to Copulas (Nelson, 2006) is $2\pi H(x,y)$, where $H(x,y)$... |
Information about the data
For this study, I would like to statistically test how the total length of sparrows affects their survival. Consider here one of the characteristics of the sparrows recorded was total length, which is assumed to be normally distributed.
If this is possible, I would be incredibly grateful if ... |
I have a data-set of 4184x20 and 4184x1, 20 are input parameters while 1 is my target variable. When I first trained my network, it gave a specific value of m.s.e, but a strange thing happened. When I re-arranged the variables or simply swapped the position of some variables, my NN performance has changed. Why is that ... |
I'm using a negative binomial glmm for analysis.
The y values of my samples are summed over 12 individual counts of insect mines on leaves of a tree. You can get the data (and session info) from here!.
Treat has 2 levels;
Year has 2 levels;
Habitat has 3 levels;
leaves is the same number of 12 leaves for each sample;
l... |
I'm making a two-step analysis for my data.
First Step: I've collected inflation and interest rate data for 25 countries in a monthly frequency for the last 20 years. I run a simple linear of inflation (right side, X) on interest rate (left side, y) for each country.
At the end of this step, I have 25 coefficients for ... |
I have a dataset consisting of localisation ratings $x_{s,c}^{(r)}$, where $S$ subjects (index $s$) had to rate $C$ different conditions (index $c$). Each condition was presented to each subject $R$ times (index $r$) resulting in $RC$ ratings per subject. The order of presentation was randomized for each subject. Let
$... |
A Dirichlet process $\operatorname{DP}(\alpha,G_0)$ can be thought of as a distribution of distributions. I would like an object similar to a Dirichlet process, but which has support only on distributions whose mean value is some fixed and known value. Precisely, I want $\mathbb{E}_G[\theta]=\mathbb{E}_{G_0}[\theta]$ t... |
Dependent variable
I have a dependent value in the range of [0,1]. Meaning 0 and 1, and all values in between are included. Therefore this is a proportional value such as for instance the percentage of land a farmer fertilizes.
Model
The model I am currently focusing on is a logistic model.
However, as an output, I ... |
I have two datasets (1 million vs. 500 thousand). The first involves the citation counts of publications indexed by two prominent databases (group 1) (i.e. db1 and db2). The second contains the citation counts for the publications indexed only by db1 (group 2). Both samples have highly long tails.
The publications for... |
I have three treatments: control, treatment1, and treatment2. A total of four patients were examined after receiving each of these three treatments. The dependent variable is continuous. My dataset looks like this:
Patients control treatment1 treatment2
patient1 23.4 34.5 67.4
patient2 10.9 7... |
I have two question related to if data are normal distributed or not and interpretation. I am using R for my analysis
About my Data:
I have a data set X (lets assume they are females) that consist of G groups (Grouped based on where they live).
I am applying two approaches (A1, A2) to find the tallest female in each... |
I'm trying to estimate whether the values of signal (S) and background (B) intensities for a probe with 3 replicate spots (i.e. pseudoreplicates) are statistically significantly different at a given p value in a microarray experiment. This means that I have 3 values for signal intensities and 3 values for the (local) b... |
I have to evaluate the efficiency of a treatment on 9 patients. I made pre and post-treatment acquisitions to obtain 11 different kinematic variables and each patient had to perform a certain movement 6 times, so I have 12 trials per patient.
Now, to make the statistical evaluation and determine if the treatment was ef... |
This is what I have tried so far
> x <- scan('d65536.txt')
Read 65535 items
> x <- ts(x)
> a <- ar(x,oreder.max=2, aic=FALSE ,method=c("yule-walker"), demean=TRUE)$resid
I have residuals and what should be my next step?
|
Information about the data
This question is an extension from other questions at Quantile tables and confidence intervals and Quantiles tables and hypothesis testing. This particular question focuses on making inferences about the null and alternative hypothesis from t-tests.
For this study, I would like to statistica... |
For an $AR(1)$ model with $Y_t=12.2$ , $\phi=-0.5$ and $\mu=10.8$.
a) Find $\hat{Y}_t(1)$, $\hat{Y}_t(2)$, $\hat{Y}_t(10)$
I'm a litle lost in forecasting ARIMA models. What I think it is
$$Y_t-\mu=\phi(Y_{t-1}-\mu)+\epsilon_t$$
where $\epsilon_t$ is white noise.
$$\hat{Y}_t(1)=E[Y_{t+1}|Y_1,\dots,Y_t]=E[\mu+\phi(Y_t... |
This seems like a simple model, but I'm getting a bit stuck on it. Suppose I have an urn with $w$ white balls and $b$ black balls. At each turn, I draw a ball, note its color, and retrieve a ball with the opposite color, paint it the drawn ball's color, and put both back in the urn. (Notice the population is constant).... |
Is there a canonical regression approach for predicting the ranks of a response?
I'd like to fit a regression to a dataset where the response is highly non-normal with very large outliers. There are about 10 predictors. I haven't had much success with transformations (the best has been adding a constant and then loggi... |
I am examining data sets which consist of 3D point clouds of potential variation from an origin.
Currently, I am analyzing each plane independent of the others, resulting in an $x$ histogram, $y$ histogram, and $z$ histogram. I will also conduct tests for normality in each plane before I conduct additional analysis or... |
I have a dataset of 200 patients with lab results at time a given year and the previous year. The hypothesis is that in patients with a high-risk disease (group A) the change in the lab result will be steeper than in the low-risk (group B). For example we expect Hgb to drop by an average of 2g/l/year in group A and by ... |
Got stuck on an issue. We are doing a simple A/B, where treatment B has some updated legal language. We want to have appropriate statistical confidence that treatment B will not lower performance. How do I structure such a test? In previous tests I have been running simulations to check how often we'd be able to detect... |
I would like your opinion about which analyses to use for the research question.
I've got a repeated measures with binary data. N = 20
H0 = there is no difference between pre and post measurement
HA = there is a difference between pre and post measurement
So, I first wanted to go for the McNemar-test or maybe a Fisher'... |
In general it seems like the method of moments is just matching the observed sample mean, or variance to the theoretical moments to get parameter estimates. This is often the same as MLE for exponential families, I gather.
However, it's hard to find a clear definition of the method of moments and a clear discussion of... |
Background: the Benjamini-Hochberg procedure is a method for correcting for multiple p-values. (If you set p<.05, and you do 20 tests, then one test is likely to be a false positive. The B-H procedure corrects for this.)
When using this procedure, not only do you set a p value (usually .05), you also set a q value - th... |
It is quite simple to simulate linear models:
set.seed(42)
years <- rnorm(100, 12, 8)
work_hours <- rnorm(100, 8, 2)
income <- 2*years + 0.5*work_hours + 2000 + rnorm(100, 0, 10)
plot(work_hours, income2)
lmmodel <- lm(income ~ years + work_hours)
summary(lmmodel)
Or logistic models:
set.seed(42)
x1 <- rnorm(100)... |
When a metric is computed for a trained model with nfolds greater than 1 in h2o, what is the value when `xval=TRUE' ?
h2o.mse(model, xval=TRUE)
Here is my read and please correct me if I'm off. If nfolds is 3, it is doing 3-fold cross validation to select the best model. So, the mse(train=T) gives the MSE of the best ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.