instruction stringlengths 9 38.7k |
|---|
I use the function auc in the R package pROC to calculate the auc value in a simulation study. test.y is the observed response, y_pred_mle is the predicted response.
> test.y
test.y
1 -1
2 -1
3 -1
4 -1
5 -1
6 -1
7 1
8 1
9 1
10 1
11 1
12 1
> y_pred_mle
... |
What does significance mean in a classical sampling setting vs a big data setting?
Suppose there is a population P of events (P being arbitrarily large), and I randomly sample 50 of them. Suppose regression analysis reports a significant relationship between a dependent variable and a regressor, a p-value of 1%. I inte... |
I have a sample dataset of six variables each with 20 data points. Each data point is a measurement on one of the 20 subjects at one of the six points in time.
I generated a simple MANOVA report in JMP and was curious about how the partial covariance matrix was generated.
Digging through the literature I have found res... |
I am currently on chapter 17 about Hidden Markov Models and Kalman Filter, but I am a bit confused over the notation that he uses. For instance on page 608, he uses the notation for prediction using the kalman filter as: $$p(\mathbf{x}_{t+h} | \mathbf{x}_{1 : t}) = \sum_{z_{t+h}} p(\mathbf{x}_{t+h}|z_{t+h})p(z_{t+h}|\m... |
Given an n by p data matrix with n << p, it is known that when LASSO is applied on this matrix, it tends to over-select variables. How can I reduce the number of falsely selected variables?
|
I'm trying to determine the best way to check if a sample of angles is uniformally distributed. As such I've built two toy functions to see what type of sampling error to expect from actually uniform distributions using scipy.stats and numpy.random.
import scipy.stats as stat
import numpy as np
def chiTest(n = 400,... |
In computing sample size for qualitative research (e.g. a confidence interval for an estimated proportion) as follows:
$$n=\frac{Z^2P(1-P)}{d^2}$$
\begin{eqnarray}\text{where }\,n&=&\text{ sample size,}\\
Z&=&\text{ Z statistic for a level of confidence,}\\
P&=&\text{ expected prevalence or proportion}\\
& &\... |
I am performing 5-year rolling regressions over a 90-year period with monthly data and wanted to test for autocorrelation in the residuals. A Durbin-Watson test on the full sample leads to the conlusion that there is a positive 1st-order autocorrelation, while a DW test on the first window leads to the acceptance of th... |
I am training an object detection algorithm with single shot multibox detector (SSD) for 8 classes. Seven classes are showing over 0.9 validation accuracy. But only one class is not giving enough accuracy.
I have same number of training data in each classes
Some of training images are rotations and pixel difference... |
We have conducted a meta-analysis and meta-analysed the effect sizes. This is a meta-analysis of 2x2 experimental designs, so we meta-analysed two main effect effect sizes and one interaction. Now we would like to illustrate the findings by creating a visualisation where the four meta-analysed means are plotted (allowi... |
Are there any conventions as to how indices should be ordered when refering to an element of a multidimensional array?
To take two examples:
A 3-dimensional array: I have $J$ objects (data.frames) each with
$N$ rows and $K$ columns. How to refer to elements of that array?
I have a matrix that contains (theoretical) co... |
In (normal) page rank, the (initial) page rank vector is usually initialized to the uniform distribution.
Should I do the same for personalized page rank? I wonder if I should initialize the page rank vector to the personalized teleportation vector.
In mathematical terms:
pi0 = starting vector at iteration 0 (a row vec... |
Can anyone recommend a good tutorial/blog/books which introduces the theory behind vector auto-regressive models but also shows some example code snippets in R?
|
Given the Bayesian network on the left hand side in the following figure, it shows that the random variable $B$ is dependent on $A$ and $C$, and the Bayesian network $G$ can be factorized as: $P(G) = p(A) \times p(C) \times p(B|A,C)$. The Bayesian network $G$ can be moralized to a Markov network $M$ for junction tree a... |
I have worked on many classification problems. One of the parameters for classifier performance is AUROC/AUC which is the area under curve created by TPR and FPR values for different cutoffs of forecasted probabilities. A very easy way to understand it is-
What does AUC stand for and what is it?
My question is related ... |
I am forecasting an equity return density using the uGarchRoll commandin R studio, specifying the standardized t-distribution as error distribution. The uGarchRoll command already forecasts the Value at Risk. However I find that the values forecasted are not the same as those calculated by myself.
Generally, the Value ... |
I am trying to figure out a way to run a hypothesis test based on binomially distributed random variable, using R.
I have a control sample with size 1000. Random variable is binary. The probability if successes found in this sample is 1.0., i.e., all 1000 values equal one.
I have a test sample of size 100, where the pr... |
I am trying to compute the paramaters of a sample mean, but I found a standard error (0.02463249) bigger than variance (0.0006067597).
Maybe I made an error into my r code but I don't find it. Someone could give a hand to me please ?
Here my code :
x.s <- sample.mean[,'value'] ; m.s <- 1000 ; mu.s <- mean(x.s) ; var.s ... |
Consider the Markov random field in the following figure, some literature and textbooks say that the MRF $G$ can be factorized as $P_1(G) = \phi_1(A,B) \times \phi_2(A,C) \times \phi_3(C,D) \times \phi_4(B,D)$. My understanding is that each factor represents a second order clique function to model the relationship betw... |
I am working on a Faster RCNN project.
I have launched the algorithm and obtained all the bounding box proposals. Each one has a certain probability score:
My question is: What is the probability score threshold usually used by the Deep Learning scientific community in the Object Detection field in order to say if an ... |
For NMF using Kullback-Liebler divergence
\begin{equation*} d_{\mathrm{KL}} (\mathbf{V}\ \vert\vert \mathbf{WH})\stackrel{\hbox{cst.}}{\hbox{=}} \sum_{ij}-V_{ij}\log\sum_{k}{(WH)_{ij}} + \sum_{ij}\sum_{k}{(WH)_{ij}} \end{equation*}
Jensen's inequality helps us derived updated $H^*_{kj}$ $$H^*_{kj} = \frac{\sum_{i}V_{i... |
In the three-factor (all categorical) ANOVA, two-way interaction is very significant, but when qualified with the third factor, it became non-significant. But the pattern seems different according to the different levels of the third factor(like in the picture). So I'm confused why is three-way interaction dropped dram... |
If I have a continuous distribution, $N$.
I say $f$ is a sample from $N$, $f \sim N$.
Now I want to determine the probability of $f$ having a value of $x$:
$$
P(x)=\lim_{t\rightarrow0} {\frac{\text{Percent Chance of: } x \le f \le x+t}{t}}
$$
Is my understanding of probability correct? If so, is there a syntactically c... |
I am analyzing the results of a survey on R. The questionnaire is a series of questions that participants answer using a Likert scale (https://en.wikipedia.org/wiki/Likert_scale).
I have obtained frequency tables for each question (i.e. what percentage of participants chose "strongly agree", what percentage chose "som... |
Some centrality measures can be interpreted in terms of walks.
Degree centrality relates to a walk of length one: The more walks of length one reach a node, the higher this centrality measure.
Betweenness centrality relates to walks along the shortest paths. The higher the number of shortest paths that pass through ... |
My data are signals in which each data point represents a pair of time point and location on the brain. I have a categorical variable with three levels: conditions A, B, and C.
I have run non-parametric permutation tests to check whether condition A is significantly different than condition B, whether condition A is si... |
I'm surprised that this question has not been asked before (Maybe I just couldn't find it), but from where should the validation set come from?
Should we split the the total dataset into training, validation and testing datasets?
Or should we first split the total dataset into training and testing sets, then split the ... |
I would like to uniformly generate weights for n different objects. I understand this is the same as sampling from the Dirichlet distribution with alpha = 1 or sampling uniformly from the standard n-simplex which i can do in the same way as covered here: Generate uniformly distributed weights that sum to unity?
If I w... |
I'm looking at the documentation for scipy's optimize minimize module as seen here.
The problem supposes a function as well as two constraints.
Objective Funtion:
f(x, y) = 2 x y + 2 x - x^2 - 2 y^2
subject to an equality and an inequality constraints defined as:
x^3 − y = 0
y - 1 ≥ 0
From here the documentation pr... |
In a standard GARCH(1,1) process defined as:
$$\varepsilon_t=\sigma_t z_t \\
\text{ where } z_t \sim \text{ iid } N(0,1) \\
\text{ and } \sigma_t^2 =\alpha_0 + \alpha_1 \varepsilon^2_{t-1} + \alpha_2 \sigma_{t-1}^2 $$
It is simple to show that $ E[\sigma_t^2]=\frac{\alpha_0}{1 - \alpha_1 - \alpha_2} $. But what I am ... |
Let $(X,Y)$ be a 2D Gaussian, with non-zero correlation. Let $I$ be an interval centered around the mean of $X$, and $J$ an interval centered around the mean of $Y$. I want to show
$$
P(X \in I | Y \in J) \geq P(X \in I),
$$
i.e. that the conditional probability is greater than or equal to the unconditional one.
I am ... |
Under the MAR assumption, the probability of missing data is a function of the observed values in the data only, as commonly stated in literature.
So for example, if you have 3 variables: X, Z, Y. If Z is missing, then
MAR occurs if P(Z is missing) is a function of X and Y.
However, suppose that X is missing also as ... |
I have a set of genes from particular species. Metagenome samples were mapped to this database of genes' sequences. As a result I had a presence/absence matrix for all the possible genes and species, which looked like this:
sample_1 | sample_2 | ... | sample_n
gene_1 1 0 1 ... |
Suppose i have a labelled training set with 1's and 0's already labelled for a binary classification problem. Suppose i wanted to use a clustering algorithm to classify. So i form clusters and then see if 1's and 0's tend to cluster well together. How would i do it?
Could i remove the labels create clusters and then se... |
I work with spatial ecology, and have calculated distances from one island to its neighboring islands.
I want to transform these distances to index values between 0 and 1, where the closest islands are given values close to 1 and the most distant islands get values close to zero.
I also want a logistic curve to dictat... |
I am simulating data in which I ultimately test a difference in means (i.e difference between drug and placebo). I test this using a standard T-Test, and then also with a bootstrapped T-Test. I am doing this using 3 differently distributed outcomes - Normal outcome, Exponential outcome, and Gamma Outcome. And I am also... |
I have a situation where two variables when entered into a regression model independently, both predict a third variable, but when I entered both those variables into the model together, neither one significantly predicts the third variable independently, but overall the model is significant.
In other words.
1st regres... |
I have a dataset which consists of mainly categorical predictors (n=7) and also some continuous ones (n = 3) and a binary outcome variable. I have previously made a classification model using logistic regression. This model performs well with an AUC on a testing set of 67%. I have the option of breaking down the binary... |
Can I derive any (Bayesian) statements about the probability of a parameter given the data and the marginal likelihood of models containing this parameter? For instance, consider a regression setup
$$Y_t=X_t\beta_k + \varepsilon_{t,k}$$
where $X\in\mathbb{R}^{N}$.
Data $(Y, X)$ is the same for every model, models dif... |
How do I write a model for comparing a single dependent variable (BacterialDiversity) among three groups (CO, HF, HFS) over time?
Treatment Time BacterialDiversity BacterialEvenness ViralDiversity ViralEvenness
CO 0 5.049012 0.7334988 3.798800 0.7532183
CO 0 5.12... |
I am trying to model a phenomenon whereby individuals graduate to a final state once they cross a threshold for a covariate of interest (covariate is cumulative over time). I would like to identify the value of the covariate where this threshold exists. I have a rough idea of how I'd like to approach this problem. This... |
I have letter grades (A through F) for two groups of students (Group 1 and 2) who both took the same classes at the same time. None of the students overlap in either of the groups. I have this data for about 11 separate courses. In some courses the number of students in Group 1 > Group 2 (1117 vs 126). How do I tell if... |
this is my first Cross Validated post!
I am trying to figure out how to choose between two different sequences to obtain a desired outcome. This is the best way I can think of to desribe the situation:
In option 1 there are two events. In the first event there is a 5% chance to obtain the reward. In the second event th... |
Generalized Linear Models typically use z-scores for inference on parameters ($\beta$s) (see here, for example).
This assumes that parameter estimates ($\hat{\beta}$s) follow a normal distribution? Why is this assumption typically made? The model errors are usually not normally distributed.
Is it just based on the cent... |
If I have a software implemented convolutional network and the weights are trained via back propagation, is it really necessary to "flip" the kernel? Afterall I am applying the "unflipped" weights (eg in a 3 x 3 filter) in the same order going both forwards and backwards?
Or have I misunderstood this? Here - look at th... |
I have over 2 million records which I am using to build the machine learning model. But I have a column with categorical values over 1600. I cannot convert the data into 1600 1-dimensional columns (1,0,0,...) which makes my data frame too complex with a large number of dimensions. Is there any way I can handle the cate... |
Suppose $\delta_i$ is a censoring indicator, $w_i$ is weight, and $\hat S(t_i)$ is Kaplan-Meier estimate. A part of an equation is $n^{-1}\sum_{i=1}^{n}\frac{\delta_i\times w_i}{\hat S(t_i)}$. For some $i$, $\hat S(t_i)$ is zero. In that case $\frac{\delta_i\times w_i}{\hat S(t_i)}$ equals NaN.
Should I remove those ... |
Lots of emphasis is placed on relying on and reporting effect sizes rather than p-values in applied research (e.g. quotes further below).
But is it not the case that an effect size just like a p-value is a random variable and as such can vary from sample to sample when the same experiment is repeated? In other words, ... |
I have a bit of rudimentary question and am very new to SPSS and statistics in general so I apologise in advance if anything I say is unclear or doesn't make sense - I'll try to clarify as much as I can!
I have created and run an experiment with 3 Independent variables - Appeal Type (as expressive or instrumental); Fin... |
I have a question regarding Answer Set Programming on how to make an existing fact invalid, when there is already (also) a default statement present in the Knowledge Base.
For example, there are two persons seby and andy, one of them is able to drive at once. The scenario can be that seby can drive as seen in Line 3 bu... |
Please excuse my ignorance here. It has been awhile since I have studied linear algebra. As far as I know, a covariance matrix is often written as
COV = $\frac{1}{n-1}$ A $\cdot$ A$^T$.
Is this the same thing as
COV = $\frac{1}{n-1}$ A$^T$ $\cdot$ A ?
The reason I ask, is this can be the difference between a massive ma... |
I'm trying to estimate bias-corrected percentile (BCP) confidence intervals in R on a vector from a simple for loop used for resampling. I am primarily looking for help implementing the calculation on a vector in R.
I am attempting to follow steps in Manly. 1998. Randomization, bootstrap and monte carlo methods in bio... |
A number of reviews of mixture models, such as Fraley and Raftery (2002) describe three common models, in terms of their geometric interpretation:
All mixture components are spherical and of the same size
Equal variance
Unconstrained variance
Helpfully, though for some beginners like me confusingly, MCLUST in R provi... |
In choosing the regularization parameter lambda in Ridge or Lasso the recommended method is to try different values of lambda, measure the error in the Validation Set and finally chose that value of lambda that returns the lowest error.
It is not cleat to me if the function f(lambda) = error is Convex. Could it be like... |
Say I have one regression equation
$y_1 = a_1x + b_1$
And another
$y_2 = a_2x+b_2$
Can I subtract these two equations to get a new
$y_3 = (a_1-a_2)x + b_1-b_2$
Then randomly sample some points from (how many?), then test that for significance of a slope greater than 0?
|
I am using control limits to check if a process is going out of control or not and detect the mean shifts over time.
I am aware of how to apply the control limits, but not really sure about the statistical background behind it.
Now that I have set the background, I'll come to the question:
I have a process for which a ... |
Consider the prior $P(\mu, \sigma^2)\propto (\sigma^2)^{-1}$. This yields the posterior
\begin{align*}
P(\mu, \Sigma^2|y) &\propto \sigma^{-n-2}\exp\left(-\frac{1}{2\sigma^2}\sum_{i=1}^n(y_y-\mu)^2\right)\\
&\propto \sigma^{-n-2}\exp\left(-\frac{1}{2\sigma^2}[(n-1)s^2 + n(\bar y-\mu)^2]\right),
\end{align*}
where $s^2 ... |
I apologize if I am breaking any rules by posting this question in this forum as I am not sure wether to post this question under here or in SO. but here's my question anyway.
I am plotting a density function to get an idea regarding the spread of the data and between two categories (Yes, No). However the values are th... |
If my multivariate analysis of covariance shows that my covariate does not account for significant differences is it wrong to follow up with a standard multiple regression? I know MANCOVA is under the umbrella of regression, but it doesn't give me the extra bit of information I need. I will explain -
This is my experim... |
I have a bag with 100000 coins of different size, weight, color and shape.
I remove all the coins from the bag. I take each coin, toss it in the air and note how it fell - heads or tails. I have a very limited amount of paper, so I write down some notes about the toss and then put the coin back in the bag.
When all coi... |
I am not even sure if my question is stupid. I have a vector of around 1000 values. The density chart of my data is like this:
ggplot(data=a,aes(x=Prob)) + geom_density()
We can see my data does not conform to any distribution. Now, I want to use a method like confidence interval to decide which values are statistica... |
I am running ridge regression on time series data for the purposes of prediction. The data is non-normal, highly correlated and prone to fat tails either way (financial data). I am not removing the data because or errors, just because it helps prediction.
I currently standardise and remove anything above $|x|$ = 3, 4, ... |
x <- c(151, 174, 138, 186, 128, 136, 179, 163, 152, 131)
y <- c(63, 81, 56, 91, 47, 57, 76, 72, 62, 48)
relation <- lm(y~x)
print(relation)
beta=solve(t(x)%*%x)%*%(t(x)%*%y)
print(beta)
Result from lm coeff = 0.6746
Result from beta econometrics = 0.4287
Why?
|
I broadly understand Boosting as focusing and putting more weight on weak learners and combining multiple weak learners to have a more accurate prediction
I understand in case of decision trees , how boosting works by constructing multiple decision trees ( an ensemble ) , focusing on the weak decision stumps and then ... |
Hi everybody I've been struggling around with a question about probabilities. I have a background in physics, so I though I was able to handle it but after some days thinking I just give up. Here it is:
I want to classify a large group of directories (thousands). Each of them contain hundreds of images. The images can ... |
I have a long time series(data at hourly level, for 6 years). The data is showing an hourly, a weekly, a monthly as well as a yearly trend. For this data, should I try stl(Seasonal and Trend decomposition using Loess) or arima?
I am using R for analysis and have used arima in the past. But I am not sure which technique... |
My aim is to predict default probabilities over the whole life-time (max. 36 month) of a loan with the information given at the issuance of the loan. So the aim is to determine $P(T=t| T \geq t,x)$. Therefore I have two approaches:
Apporach 1:
Since the loan can only default at discrete time points - the month end - I ... |
I am trying to train an agent to maximize multi-objectives. If I just add up rewards from different objectives, my problem is that the agent maximizes the 'easy' objective, at the expense of the hard one. How can I adaptively penalize the easiness with which the agent realize an objective?
|
Apologies if this is not an appropriate question for this forum. I haven't been able to find a good answer elsewhere.
As per subject really, where do people go to look for academic statistical jobs (not data science)?
Full disclosure: We're recruiting, but struggling to get candidates.
Edit: I'm based in the UK, but w... |
When optimizing the cost function below for the BD/NBD model, I saw that the implementation in python ( lifetimes ) takes the logs of all the terms of the equation in order to avoid underflow (since we are multiplying very small numbers).
We can then separate this expression in A1, A2, A3 and A4, like that:
So the qu... |
$X$ and $Y$ are Bivariate Normally distributed as $N(0,1)$ with a correlation coefficient of $p$.
Is there any way to find the expectation of $f(x)*g(y)$ - Let $f(x)$ this be a function of $x$ which is Integrable as well as Differentiable
$E[f(x)*g(y)]$? Where $g(y) = 1$, if $y>c$. $g(y) = 0$, otherwise
Is there any wa... |
In this question the general formula P(A|B) = P(A ∩ B)/P(B) is used. I understand through intuition why the answer should be 1/3. What I don't understand is why P(both girls, at least one girl) is 1/4. I know that P(A ∩ B) = P(A)P(B) if A and B are independent. Here P(Both girls) = 1/4 and P(at least one girl) = 3/4 so... |
I created a Time series signal of 1024 values based on combination of sine waves
Y=Sin(2pi*50*t) +Sin(2pi*300*t) with t incremented in milliseconds (i.e) f=1000Hz.
I used R Discrete Wavelet package to get the Wavelet Coefficient using Daubechies transform with number of levels=4 . The output were the coefficients W1,W... |
I have 3 mutually exclusive events, probability of each one happening is $\frac13$. What's the probability none of the events happens 3 times out of 3 tries.
My approach is this : $(\frac23*(1+\frac13+\frac19))^3=0.893$
Simulation shows 0.889, That 0.004 makes me think I'm incorrect.
Note:I'm looking for general formul... |
I am trying to do some repeated measure anova in R.
Consider the following data.
uni <- read.table("http://www.stat.ufl.edu/~winner/data/phsynco2u.dat",
header=F,col.names=c("pop","trt.ph","id","co2conc","co2uptake"))
multi <- read.table("http://www.stat.ufl.edu/~winner/data/phsynco2m.dat",
... |
Hello to the CrossValidated community. I could use some help.
I am struggling with the analysis of an experiment, specifically with deciding and defining in code the structure of a mixed model for analysing it.
The experimental design is as follows:
We wanted to see if there are any differences on the growth of lesions... |
I have fit a random intercept model in glmer and stan_glmer with the following model formula where my event is 0/1 and x1 and x2 are continuous covariates:
model <- stan_glmer(binary event ~ x1 + x2 +(1 | group), family="binomial"
The predicted probabilities (i.e. the fitted values from the model) are not normall... |
The question is basically on the Title, but I will provide more details:
How avoid several loops in a hyperparameter grid search in order to save time?
I'm developing on matlab a Regression with the following pseudocode:
# Training and test spliting (Fictitious function)
train , test = train_test_split(data)
# Perform... |
I'm planning to contrast two independent groups of participants on a particular performance measure in order to determine which of two theoretical models explains their behaviour. I will calculate a value that we hypothesize will have a mean near 0 according to Model 1, and a mean significantly different from 0 accordi... |
$X$ and $Y$ are two uniformly distributed variables in interval $(a,b)$ and $(c,d)$ respectively (a>0 and c>0).
What is the distribution of the variable $Z$ defined as $Z=X^3/Y$?
|
I have 3 variables R&D Spend, Administration and Marketing spends. I wanted to calculate VIF and eliminate a variable for better fit to the model.
I tried to use the solution at https://stats.stackexchange.com/questions/155028/how-to-systematically-remove-collinear-variables-in-python
[8.3845707545599613, 4.0264055178... |
I have the population data about the spread of animals in country (sheep, goat, cattle etc) by ranches.
Can i use ANOVA to see the difference between the means of animals by ranch type or can annova be only applied to a sample of the population
Note: the population distribution is not normal.
Thanks in advance
|
As part of my thesis, we wanted to investigate the ability of using z-scores as indicators for the homogeneity of clusters (or speaking more generally of partitions of a vector). After some modelling I believe this is not entirely possible and I would like to get some opinions on this.
Suppose I have some 2D data with... |
I am analyzing a dataset. Each row corresponds to a participant who answered a questionnaire. Each participant is assigned a score based on their answers. I calculated the average score for each regional subgroup and I am interested in a statistical test that would suggest whether some regional subgroup's average score... |
It is very well-known that neural network (NN) has the universal approximation characteristic, which seems to be one of the properties that make NN popular.
However, I don't know how to convince myself that a high dimension linear regression model ($n/p\rightarrow 0$ where $n$ is number of samples and $p$ is the numbe... |
Aside from Convolution Neural Networks, are there any other methods that allow for classification of Tensors? My observations consist of multi-dimensional tensors with height of 1, where each channel corresponds to a particular time-series and am wondering how I can effectively classify the tensors, taking into accoun... |
I have a time series data of monthly sales for the last 4 years. The sales for one month eg Feb 2017 is much higher same month last year or the last month sales of Jan 2017.
If i wanted to detect if this was only due to random chance which test is advised
Thanks
|
I am currently working with extra-trees in the sklearn package but was wondering how the feature importance (function) is calculating the importances of the features. Is it also calculated by the mean decrease Gini or is there another way?
Could not find anything in the source code on GitHub.
|
Scenario
I have a treatment (T) and control (C) sample.
In my T sample, I have 600 observations, and in my C sample, I have 250 observations. Because the number of observations might be important for the issue I'm addressing, I wanted to test different subsampling bootstraps (X? bootstraps) of my T sample (force N=250)... |
I know it's common to test for the presence of spatial autocorrelation with Moran's I. In our case, running Moran's I on the residuals of our OLS yields a statistic of 0.53 and a z-score of a little over 54, so we certainly need to account for the spatial autocorrelation. In this sense, we've used the Moran I to conclu... |
Let $p ∼ B(α,β)$ and $X ∼ Bin(n,p)$. Given a sequence $x \in X$, how would I calculate the probability that x is indeed obeying the given distribution as opposed to some other distribution?
|
In an industrial example, I have an age distribution of a particular component. I know the ages of the items currently in service. From this information, can I deduce the average lifespan of a component?
Can I deduce the lifespan if I make certain assumptions about, say, constant rate of arrival of new components, or a... |
The Design Expert software gives me the picture of resolution for the fractional factorial design, in which Resolution III, IV and V are most critical.
But can I ask, how can I determine the resolution by myself, based on the number of factors?
|
I would like to perform a psychometric meta-analysis of stigma measurement instruments. A potential candidate for a specific analytical approach could be in my opinion the Hunter and Schmidt method: http://www.metafor-project.org/doku.php/tips:hunter_schmidt_method. This method aims to explain a proportion of artifact ... |
I have a question about the interpretation of mediation models.
So i have a situation where I meet all but one of requirements for a significant mediation model.
This is my model
It meets the following requirements:
X significantly predicts M
X predicts Y not controlling for M
The relationship between X and Y is reduce... |
I'm estimating an ICC from 2 and 3-level hierarchical models using rstanarm. The simplest models are: y ~ (1|group) or y ~ time + (1|individual) + (1|group)
For the group variance parameters there is not much information in the dataset. I'm using the default rstanarm/stan_lmer priors.
My question is: given the poster... |
This question has just bothered me hard enough to sign up here, so hello everyone. I have simulated, out of curiosity, simple linear data ($y = b_0 + b_1 x + \text{standard normal error}$) to let ML estimation compete against beta estimation through minimizing mean absolute error. Turns out that as long as the error te... |
I am trying to run a random forest model with the following code:
rftest <- randomForest(as.numeric(depn)~., data=for.rf, na.action=na.omit,
importance=T, ntree=1000)
depn is the dependent variables and for.rf contains the set of dependent and independent variables. Next I am trying to predict ... |
(Sorry if this is obvious or is a duplicate. I couldn't find one.)
Suppose two researchers are studying whether average height of some population has changed significantly. Researcher 1 hypothesizes that there has been some change (two-tailed) and researcher 2 hypothesizes that it has increased (one-tailed). Both want ... |
My confusion stems from reading the following paper
http://www.bmj.com/content/351/bmj.h3868
It states in its abstract (and they later show an empirical study that conforms to the claim) - "Overfitted models tend to underestimate the probability of an event in low risk patients and overestimate it in high risk patients... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.