instruction stringlengths 9 38.7k |
|---|
I have found several authoritative sources with differing methods for calculating the control chart factor $c_4$. Are these methods truly equivalent, and if they are not, which method is the "real" method for calculating this constant?
$$c_4=\sqrt{\frac{2}{n-1}}\frac{\left ( \frac{n-2}{2} \right )!}{\left ( \frac{n-3}... |
I am using an R package called PEC to use together with coxph regression models. In estimating the C-index (area under the curve) I can use cross-validation and bootstrapping to validate the true C-index which is great. However, I have to supply an already trained model! How can I train and evaluate the model simultan... |
Let's assume I have some industrial manufacturing process with one costs and a produced output as well as a number of variables to configure the process.
Based on my historic data I would like to find out what is the optimal range of var1, var2, var3 to produce my output with low costs (costs/unit). So I would like to ... |
Is there a quick way to count the number of columns in a LIBSVM data set? So the obvious way is to look through every single entry and take maximums, but I was hoping there was a better way that I didn't think of. Counting the number of rows is easy, since it's the same as the number of rows in the text file. I'm using... |
I know the the discrimination of a ROC curve is optimal when the curve goes through the top left corner. But does this also count for the bottom right corner?
|
I'm a complete novice when it comes to stats, so my question may not even be relevant. I have been using the glm() function in R to model a response variable (bird species) versus predictor variables (habitat variables etc.) with a Poisson distribution. I selected the best model based on the AIC. Now I'm curious if I c... |
I'm training a simple logistic regression classifier on top of a rich feature set of 512 features for a binary classification problem. The training set is 200 observations and the validation set is 50 observations. These sizes cannot be changed. Early stopping is used based on the validation set to prevent overfitting ... |
I have two categorical variables. One variable has 5 categories, the other has 7 (a 5x7 table) B/c there were less than 5 frequencies in each cell, instead of doing a chi square I want to do a fisher's. However, when I try to run the code in SAS, I get a warning that it will take a long time. It has been now 30 mins an... |
I want to conduct an A/B test between two different Ad Copies I have for a given advertisement on Google.
Ad Copy A might have 30 k impressions (number of times ad was displayed) with approximately $700 in revenue.
Ad Copy B might have 60 k impressions with approximately $600 worth of revenue.
Originally I thought I... |
I've just learnt the method of backtracking line search. As described by Backtracking line search, it is a line search method to determine the maximum amount to move along a given search direction. In this way, would it increase the possibility of overfitting?
|
I have a Gaussian probability density function $f(x;\mu,\sigma)$. The mean and the standard deviation of this pdf is known.
I have an unknown probability density function $g(x)$. I only know $g(x)$ by its $n$ realizations $\{X_1, X_2,..., X_n\}$.
$g(x)$ is different from $f(x)$ but the density functions are expec... |
Steven and I have a biased coin. The coin has a 90% chance to show heads, and a 10% chance to show tails. We flip the coin in the same way 4 times. Steven picks heads for the first two rounds and I pick tails for the first two rounds. Then I choose heads for the last two rounds and Steven chooses tails for the last two... |
I have a simple question regarding using time as a random effect.
Briefly, I am modelling population-level changes in the movement rates of 68 woodland caribou using generalized additive mixed models that have been specified using the function gamm4 from the R package gamm4. I have calculated the daily movement rate f... |
I have time series data for 80 individuals and I'm trying to fit a nonlinear ODE. I am comparing the result of doing the fit separately for each individual vs. doing a mixed effects model. My approach is to use the (marginal) AICc for the mixed effects model, i.e.,
$$
mAICc=-2\log L+2(2k)+\frac{2k(2k+1)}{(N-2k-1)}
$$
w... |
I have a $2 \times 2$ contingency table I would like to analyze through logistic regression AND the Fisher's Exact Test. The table tells us how many people responded to treatment vs control for headaches.
Headache No Headache
Asprin 55 42
Control 67 ... |
For a random variable $X = (x_1,x_2,\ldots,x_n)^T$, I understand that the entries of the covariance matrix would just be the covariance of $x_i$ and $x_j$, but how do I find the eigenvalues and eigenvectors after that, and how does that turn into the eigendecomposition of the covariance matrix?
|
I am trying to conduct a test of independence between two multivariate datasets. For canonical correlation, I have used Wilk’s lambda test. What should be the test statistics for kernel CCA. I believe I can use F-statistics, need a measurement of degrees of freedom for the same
|
Can anyone explain what the differences are between $R^2$ vs. Adj$R^2$ in MuMIn function dredge?
The help file says only The character strings "$R^2$"
and "adj$R^2$" are treated in a special way, and will add a likelihood-ratio based
$R^2$ and modified-$R^2$ respectively to the result. Specifically, for a set of OLS l... |
I have a random variable $X$ and its pdf $f(x)=4x^3$ - which happens to be distributed as $Beta(4,1)$.
I would like to approximate $E(X)$, $Var(X)$, $P(X>0.5)$ using Monte Carlo simulation with 1,000 draws 5 times.
I know that,
$$E[\bar X]=\frac{1}{n}\sum_{1=1}^n X_i=\hat \mu =\bar X \\
Var[\bar X]=\frac{1}{n-1}\sum_{1... |
In doing a Fisher's exact test, on wikipedia it states that the p-value is calculated as the sum of the probabilities of tables having probability less than or equal to the probability of the observed table. It then states that we use the Hypergeometric distribution to find the probabilities. HOWEVER, in R, the documen... |
I have a panel data set. The dependent variable is a certain numerical score for each individual and time period. I have a number of independent variables that vary by individual, by time, or by both.
Over the time of the data, two interventions were done (for all individuals at the same time) to increase the score. No... |
Assume X and Y have a bivariate lognormal distribution (x,y>0) that is:
$f_{X,Y}(x,y)$=$$\frac{1}{2p\sqrt{1-r^2}xy\sigma_1\sigma_2}exp\{\frac{-1}{2(1-r^2)}[(\frac{ln(x)-\mu_1}{\sigma_1})^2-2r(\frac{ln(x)-\mu_1}{\sigma_1})(\frac{ln(y)-\mu_2}{\sigma_2})+(\frac{ln(y)-\mu_2}{\sigma_2})^2]\}$$
I want to know the median of |... |
I used a GLMM to fit a poisson distribution. The likelihood ratio test with the null model is significant, and now I should carry out a posthoc analysis. Using glht:multcomp I got this output:
Estimate Std.Error zvalue
> C - POST == 0 0.19402 0.03025 6.413 8.55e-10 ***
>
> E - POS... |
Fairly broad question, but I'm really just looking for general ideas rather than specific solutions.
I have an N x N diagonally symmetrical matrix where each element is between ~1 and (realistically) ~200, and N is < 150. Each element in the matrix describes how closely coupled the the i,j indices into that position ar... |
Suppose I have a $2 \times 2$ table that looks like:
Disease No Disease
Treatment 55 67
Control 42 34
I would like to do a logistic regression in R on this table. I understand that the standard way is to use the glm function with a cbind function in the... |
Let $X$ and $Y$ be two i.i.d random variables. I am trying to prove that $\mathbb{P}(X<Y)=\mathbb{P}(Y<X)$. The author claims that this is true by symmetry. But I am trying to prove this in a rigorous way.
I haven't studied joint distributions yet. Here is my attempt for the proof.
Let $\Omega$ be the sample space of... |
I am trying to create a simulation, and I have my probability distribution function changing over time (getting more skewed, etc.) We can have up to 5 consecutive years. Can you please explain where to look at. What I do is that I first use EasyFit link then I see the changes in the parameters per year.
I am trying to... |
If I have a $2 \times 2$ contingency table for treatment/no treatment in the rows and response/no response, would Fisher's exact test break down due to assumptions of fixed marginals? In other words, suppose the table looked like:
Cancer No Cancer
Drug Given a b
No Drug Given ... |
For a 2 by 2 table that looks like:
Response No Response
Treatment Given 25 60
Treatment Not Given 55 43
We may fit a logistic regression by introducing the table as a binomial relationthrough cbind:
glm(formula = cbind(c(25, 60)... |
I am trying to understand how this Markov chain would arise.
denote $p_{ij}^{(n)}$ the probability of going from position $i$ to $j$ in $n$ steps.
Assume $p_{ij}^{(n)}>0$ and $p_{ji}^{(n)} > 0$ is it possible for state $i$ to be transient?
I do not quite know how to think of this, here is my current take:
Maybe given t... |
What is the difference between least squares and linear regression? Is it the same thing?
|
After reading a recent paper by Hadley (link), I got to thinking about whether what we'd refer to as tidy data changes by application. For example, consider a sample dataset:
Food item | Carbohydrates | Fat
F1 | 10 | 12
F2 | 16 | 19
F3 | 29 | 30
F4 | 11 ... |
I am new to Bayesian parameter estimation. I have a model with a set of parameters I want to estimate from data. I know how to estimate the parameters from single data set (i.e. data of single experiment). The credibility interval I get now is totally influenced by my prior on the parameters. In order to relax this dep... |
In the paper "Admissible clustering procedures" the authors Van Ness and Fisher (1971) have explained well structured data as follows:
Data is said to be well structured if it has exact tree structure, i.e. if one can reconstruct the similarity matrix of the data from knowledge of the hierarchical tree alone.
I am not... |
I have four questions representing one variable called work family conflict. They are all ordinal. And I added all the items and made it one variable.
After adding them up, I got code ranging from 1 to 16. Now 16 means high conflict and 1 means low. I have to to run the regression, how can I do it. Work family confli... |
I would like to know how to interpret following linear model:
$$
Y_i = \beta_0 + \beta_1X_{1i} + \beta_2 X_{2i} + \beta_3 X_{3i} \tag{1}
$$
Now assume that variable $X_2$ is the result of another model:
$$
X_{2i}'= Y_{2i}' = \beta_0' + B_1'X_{3i} \tag{2}
$$
from the subset of data used for first model.
Can we use t... |
I have a logistic regression problem at my disposal. I need to build a model such a way that it predicts/classify accurately. The data I am having is having the response variable values of unsuccessful event is too much. That is the ratio of 0s (84 % (26880 values) is much higher than ratio of 1s (16 % (5120 values)).
... |
We have a debated issue in our area of research that I am hoping you can help me with. I'm part of a group of researchers who research crime linkage and, in particular, the assumptions that underpin it. One method we use is to take a sample of solved serial crimes and we create all possible pairings. Some of these pair... |
I'm new to Caffe. I'm trying to understand the rules of using convolutional neural networks. And my questions are:
is it mandatory for the images to be small for training?
is it mandatory for the images to be squared?
I'm asking this because the biggest example of images used I found is 512 x 512. Would it be coun... |
I have a dataset that consists of three predictor variables: time (1,2,3; within-subjects), density (1,2; within-subjects), vocabulary ability (continuous; between-subjects). The dependent variable is accuracy (0, 1), and I want to incorporate by-participant (ID) and by-item random effects in my analysis.
I centred my ... |
We have an infection dataset where individuals have been treated (or not) with a chemical and then were followed them over time to see whether they picked up infections in the wild at different rates.
Because in this species the detection of infection requires destructive sampling, at each time point the individuals w... |
I am using binary classification and at the moment mainly 10-fold crossvalidation. However the result of the crossvalidation is very variable - hence what I was doing recently was to run the 10-fold crossvalidation itself repeatedly, and then average over these classification accuracies (I know that the accuracy of eac... |
I am trying to reproduce a Gibbs sampling but some points are unclear to me. Let's assume a linear model of the following form $$y=x\beta + \epsilon$$
The prior distribution for the beta sensitivities is normal, while the prior distribution for the error term epsilon is gamma.
Can you provide me the intuition of this t... |
For some purpose, I need to generate random numbers (data) from "sloped uniform" distribution. The "slope" of this distribution may vary in some reasonable interval, and then my distribution should change from uniform to triangular based on the slope. Here is my derivation:
Let's make it simple and generate data form ... |
In my studies I've been working recently on dependency between debt and GDP growth in USA from 1966 to 2015. I used logged and differenciated GDP time series data and combined it with 0/1 debt-to-GDP time series data which takes value 0 when the debt-to-GDP level is below some arbitrary value and 1 when it's above. I h... |
Let us consider variables $A,B,C,D$ such that
$A$ is conditionally independent of $B$ given $C$, i.e. $A \bot B|C$
$A$ is conditionally dependent on $B$ given $D$, i.e. $A \not\bot B|D$
Are $A$ and $B$ conditionally independent of each other given $C,D$? Are they not? Can we conclude anything about their conditional ... |
The BIC is defined as (according to wikipedia)
$BIC = k\ln(n) - 2\ln(\hat{L})$
where the likelihood $\hat{L} = p(x|\hat{\theta},M)$ where $M$ is the model, $x$ are the data, and $\hat{\theta}$ are the to-be-inferred parameters of the model, set at their highest-likelihood point. Although the question could similarly a... |
I ran a chi-square test of independence on a 2-dimensional cross table, which resulted in a significant p-value.
I then ran post-hoc tests for all pairs of populations and adjusting by a bonferroni correction (I used the function chisq.post.hoc from the fifer package in R, if that matters).
There, no single pair was si... |
According to Leon Bottou on page 10 and page 11, he mentions :
Use learning rates of the form $γ_t = γ_0 (1 + γ_0λt)^{−1}$
Im trying to implement it for my neural network but im having trouble understanding the variables...
I think i understood a few but im still confused :
$y_t$ = New Learning Rate
$y_0$ = Initial L... |
B) When doing a two way ANOVA
After calculating the sum of squares column(between), the sum of squares error(within), and the sum of squares block.
1. Are there any other sum of squares?
2. What is the degree of freedom for MSB (block)? I know in one way ANOVA degree of freedom for MSC and MSE is k-1 and n-k respect... |
I have two subject groups--one received a drug treatment and the other didn't. We collected a lot of behavioral observations on all the subjects. For the purposes of running stats, I want to reduce the number of behaviors using PCA.
Preliminary analysis reveals some of the behaviors are affected by the drug treatment ... |
I want to fit a regression model (well, actually the y variable is continuous, I don't care about the model), and I'm wondering if there is a way to constrain all coefficients to be -1, 0 or 1. It almost feels like some kind of a rule system.
Does anyone know how to do this? Preferably a solution in Python :)
|
I have a data set - results (measurements) of experiments for several years. Now I want to reduce the number of experiments (to save the money, time etc.) without a big loss in precision and power.
Which statistical test can be applied to check, if the results of experiments are still reliable/accurate/precise by con... |
I perform the following experiment:
each observer performs 3 tasks to evaluate his strength (S variables), additionally each of them perform 2 IQ tasks.
So, I have a dataset with 18 rows for observers and 5 columns: 3 for S and 2 for IQ variables.
I do PCA and for PC1 all 5 loadings are of the same sign, and have simil... |
I create a spline model in a Bayesian framework and all the parameters that are estimating the spline (the random effects of the spline) are lying between a Credible interval of negative something to positive something (meaning that they could all be 0).
Here is an excerpt of my parameters:
Summary of the model:
... |
I am new to Statistics. I am studying Poisson process, I have certain questions to ask.
A process of arrival times in continuous time is called a Poisson process of rate $\lambda$ if the following two conditions hold:
The number of arrivals in an interval of length $t$ is $\text{Pois}(\lambda t)$ random variable.
The ... |
I want to show faster runtimes of a technique compared to another technique. On the x-axis, I have different scenarios and on the y-axis the runtime for each technique in each scenario.
The problem is that the runtimes of the newer technique are magnitudes shorter and are not visible (on the x-axis) even when using a l... |
I am new to meta analysis and have been given some binomial data. These are the results of clinical trials, and there are two entries for each trial, where one refers to "response", and the other to "remission". Some entries are from the same trial but from different times.
My question is, what do I now do with this da... |
I read in more than one place that residual standard deviation can differ at different points on X. I cannot understand this statement.
I find this while learning the very basics, so for me the standard deviation of the residuals is a single unique number, and I see no way how this single number can change depending o... |
Consider spatially distributed data $\boldsymbol x = \{x(t_1),x(t_2),\dots,x(t_n)\}$ which is described by a multivariate Gaussian distribution with mean $\mu$, standard deviation $\sigma$ and stationary correlation function which depends on the absolute distance $\tau = |t_1-t_2|$ between points:
$$\rho(\tau) = \exp\l... |
I work with the book 'Introduction to statistical learning with R', link. I got a question about the cross-validation for ridge and lasso regressions (ellipsis indicate that part of the original code was omitted for brevity. The code can be found here).
x=model.matrix(Salary~.,Hitters)[,-1]
y=Hitters$Salary
# Ridge R... |
I am working on the following problem:
I want to show that for a Markov chain with state space $S$, $\sum_0^\infty P^n(x,y) \le \sum_0^\infty P^n(y,y)$ holds $\forall x,y \in S$. I am able to prove this for the case where $y$ is recurrent, by using the result $\sum_1^\infty P^n(x,y) = \frac{\rho_{xy}}{1-\rho_{yy}}$. Ho... |
I collected anaerobic power during a cycle stationary cycle test (Wingate) for 30 seconds. During one trial the cyclist performed the test using a traditional cycling technique. One the other day, subjects were instructed to rotate their hips - exaggerated movement in the transverse plane at the half-way point. I want ... |
A colleague wants to examine the directionality of amphibian dispersal to and from a pond. He set up a drift fence around the pond and had buckets at different positions to capture the amphibians. He measured the angle from the center of the pond to each bucket. There are 23 buckets arrayed around the pond; due to phys... |
I have used flexsurvreg to estimate the parameters of a Weibull distribution and got the following output. I would like to reconstruct the survival function to estimate the survival rate at a given time t.
flexsurvreg(formula = Surv(time, Censor) ~ 1, data = CC, dist = "weibull")
shape 1.02
scale 2630.00
I ha... |
Hi if I rescale a series of numeric variables from, say 1 to 6 to 0 to 1, will the Pearson correlation coefficients be different? I think so, but I'd like to ask people here.
#Set up some variables that run from 1 to 6
#in my data set these are Likert items
var1<-sample(seq(1,6,1), replace=T, size=100)
var2<-sample(seq... |
These are the results of a classification problem using decision tree, naive bayes and 1-nearest-neighbor as classifiers. There are 10,000 data objects and these results were validated using 10-fold cross validation.
+---------------------+--------------------------------------+--------------------+
| classifier ... |
I am looking at clickstream data - sequence of page visits of a user in a website. I am trying to identify anomalies in a session that could be related to bots.
To do so I am looking at a user's session and calculating the time difference between every two consecutive page impressions (views). I am calculating this ti... |
For a $2 \times 2$ table, two ways to do inference on the table is through Fisher's Exact Test and also a Logistic Regression.
I was told that using a Fisher's Exact Test, we are only interested in the presence of association. But that with a Logistic Regression, we are interested in the magnitude of association.
How... |
What is the null model in regression and what's the relationship between the null model and the null hypothesis?
From my understanding, does it mean
Using "an average of the response variable" to predict the continuous response variable?
Using the "label distribution" in predicting discrete response variables?
If tha... |
I have 8 time series data. How do I determine how many lags to use in ur.df from library(urca)?
Is it right to visually inspect the results of acf() and pacf()?
What does it mean if, for the same data, the acf graph cuts off after 2 lags and the pacf graph cuts off after 1 lag?
|
I have to work with 1000 time series of food retail products (with weekly data).
Each of these time series corresponds to the sales of each product.
I need to obtain forecasts for each of these time series and I would like to know if I'm doing this in a right way.
STEP 1: Data Adjustment
With the group_by function (dpl... |
I am trying to use Time-Series Split to establish a training and testing dataset and encountered the problem that I can not incorporate two features in the training set. Use the code below would generate
IndexError: indices are out-of-bounds
from sklearn.model_selection import TimeSeriesSplit
import quandl
... |
A coin with heads probability p is flipped n times. A "run" is a maximal sequence of consecutive flips that are all the same. What is the probability of exceeding 4 groups after 10 tosses?
Now, I have already found that the expected number of runs is:
$1+2(n−1)p(1−p)$
But I have been stuck on this part of the question,... |
So I just started dealing with random forests and I have some questions regarding feature selection.
Should I omit some features if they highly correlate with others? And if so - is there a common threshold or certain method generally used? I ask this because I feel I should since the random forest method picks random... |
I've been using multiple liner regression with several predictors and I was also examining the importance of each one with the R package relaimpo. Now, I'd like to modify the model introducing two more predictors. My problem is that both are constant and I am not sure how to address the regression in those cases (or w... |
The standard definition of an outlier for a Box and Whisker plot is points outside of the range $\left\{Q1-1.5IQR,Q3+1.5IQR\right\}$, where $IQR= Q3-Q1$ and $Q1$ is the first quartile and $Q3$ is the third quartile of the data.
What is the basis for this definition? With a large number of points, even a perfectly norm... |
I'm working with a dataset dealing with product sales in a supermarket. I'm using a large neural network (with large I mean I have many inputs compared to the number of training instances) to forecast the sales, but I would like to reduce the input dimension, using an autoencoder.
Let me describe the input data for on... |
I've got a directed, probabilistic graph (network). See the picture below for a super-simple example:
The adjacency matrix $\mathbf{A}$ has values between zero and one, and it isn't a symmetric matrix.
For each node, I want to calculate some statistic $f_o(\mathbf{A})$, where $o$ is the order -- first-order, second... |
Pearson correlation computes linear association between variables and Spearman computes monotonic relations that could be non-linear. I computed Pearson and Spearman correlation between different features. Both of them gave similar values. What does this indicate. How can a linear method give similar values to a non-li... |
According the p-value Wikipedia page:
When the p-value is calculated correctly, this test guarantees that the Type I error rate is at most $\alpha$.
However further down the page this formula is given:
$$\Pr(\mathrm{Reject}\; H|H) = \Pr(p \leq \alpha|H) = \alpha$$
Assuming 'type 1 error rate' = $\Pr(\mathrm{Reject... |
The goal is to run non-parametric general linear model with no restrictions on the design (e.g. not limited to one-way ANOVA as in Kruskal-Wallis test; quantitative factors should be admissible, etc) and to be able to estimate contrast p-values. Each observation will be converted into rank with no ties.
I saw a few wa... |
I am sorry if this is a naive question, but I wanted to have your suggestions before considering anything. Suppose I have a group of "n" students and I have their score in three courses: A, B, and C. If the scores are not on the same scale, I can standardize them before comparison. For comparing the mean difference bet... |
I am a fresher to statistics. Currently I am doing my project in Finance which is a kind of research.
I have got 30 companies with 1 dependent variable and 3 independent variables. I have data for 5 years. Which method should I use to do regression analysis incorporating data of 5 years? Which software can be used for... |
I am completely new to time series and trying to understand correlograms.
For acf function, there is a lag.max value.
How do you determine the value of lag.max of the data?
Is there a formula or a rule for this?
|
I am still trying to learn (may be the terminology issue) what does "link function" mean. For example, in logistic regression, we assume response variable is coming form binomial distribution.
The $\text{logit}^{-1}$ link function convert a real number from $(-\infty, -\infty)$ (output from $\beta^{\top}x$) to a proba... |
I was given the following problem for a homework assignment:
My solution to Part A gives the joint distribution:
$ P(\text{D} \vert \text{B, e} ) = \dfrac{P(\text{D,B} \vert \text{e} )}{P(\text{B} \vert \text{e})}$
$ \dfrac{P(\text{D=true, B=true} \vert \text{e=true} )}{P(\text{B=true} \vert \text{e=true})} = \dfrac{... |
I have two nominal variables which are site (location) and Depression Scores (PHQ-9). I have found a significant association after running a Fisher's Exact Test (with monte carlo approximation) on a 5x5 table.
I realize that this test only tells me that there is some kind of association b/w site and depression scores.... |
I am fitting a subdistributional hazards model (Fine, Grey 1999) for multiple causes of death in a mortality incidence model following diagnosis of cancer. The researchers are interested in a nomogram, basically a type of risk prediction that allows for multinomial failures. I am struggling to connect cumulative incide... |
I have a question I was hoping this group could help answer or provide more insight on.
I'm looking to construct an overall composite index for counties. Really a simplified version of the County Health Rankings http://www.countyhealthrankings.org/
I have 49 county-level health outcome variables such as prevalences o... |
I've probably read any article on dimensionality reduction of Self Organising Maps but just couldn't fully comprehend this process.
My understanding so far is:
SOM are two-layer networks, whose layers (first - input layer, second - output layer) are connected via a weight matrix.
Dimensionality reduction is the proces... |
I have some data I would like to look at to investigate associations between specific TLR genotypes (wild type, heterozygous, homozygous) and both a binary outcome variable (death) and continues (biomarkers).
Would an ordinal logistic regression be appropriate here? Or separate logistic models between the wild type an... |
Is there i.i.d. assumption on the response variable of logistic regression?
For example, suppose we have $1000$ data points. It seems the response $Y_i$ is coming from a Bernoulli distribution with $p_i=\text{logit}^{-1}(\beta_0+\beta_1 x_i)$. Therefore, we should have $1000$ Bernoulli distributions, with different par... |
Context:
My response looks like a mixture model with two classes as you can see on the picture.
I have a couple of predictors that perform relatively well in a linear regression (Bayesian or not). In the Bayesian context I am using MCMC sampling with stan like this:
\begin{align}
\beta \sim {\rm Student}(7, 0, 20)& \... |
I am surprised to not be able to find a straight forward answer to my scenario. I have created a series of mixed effects models using lme4. I am trying to plot the data in library(plotly), and want to include a surface showing the mean of two interacting variables. I understand I need to create a cubic interpolation sp... |
I have 4 test strata and I need to estimate sample size for each. Each strata have different proportion value (based on historical data):
Stratum #1- Proportion = 0.75%
Stratum #2- Proportion = 1.5%
Stratum #3- Proportion = 5.5%
Stratum #4- Proportion = 1.77%
Population proportion= 1.25%
Next I need to calculate s... |
In a Coursera lecture on multi-variable linear regression with three variables, the professor shows that the sum of the residuals for y* residuals for x) / sum residuals x^2 equals the coefficient for y regressed on x.
Can someone explains why this is so? The relevant code used is below:
$ > n = 100; x = rnorm(n); ... |
Below is the distribution of my outcome variable y in the data, characterized by a heavy mass at zero and very long tail. Can you help me select an appropriate probability distribution for the likelihood in Bayesian analysis? My goal is to figure out the posterior mean y_bar and its credible intervals, given the data (... |
I ran an egarch(1,1) model. I have a negative alpha1 and a positive gamma1 (leverage effect). Does this mean good news is more volatile? Or do you interpret these two parameters combined, I've read the alpha1 indicates the size effect of shock and the gamma1 shows the sign effect? Is it sensible, or is it due to some m... |
I really don't get if X is a univariate normally distributed random variable with a mean of 0 and variance of 1/16. What is the pdf of X?
and what is the State the value of this pdf at 0 as well as the probability that X = 0?
and why the answers of pdf at 0 and probability that x=0 are different?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.