instruction stringlengths 9 38.7k |
|---|
So I'm reading the Guihenneuc-Jouyaux & Robert paper from 1998 about discretization of Markov Chains in which they claim that a naive discretization of a continuous Markov chain is not usually a Markov chain. I can't find a way to prove it, and i just need the proof that a naive discretization does not lead to a Markov... |
I have gathered 41 variables that are supposed to explain dependent variable Y in a dataset. Is the following reasonable?
First, I will conduct EFA, reduce the dimension, conduct CFA to confirm/reduce. and then multiple linear regression be logical on the outcomes of the CFA? with the goal of finding a base model in th... |
I am doing a study to measure the level of agreement between two pieces of medical equipment (one gold standard one and a new device). I will measure the agreement using weighted Cohen's kappa and other correlation statistics (Spearmen or Pearson's correlation). The two devices will be taking measurements for a group o... |
I am interested in the audio classification problem. After labeling the audio recordings I have in Praat software environment, I extract the MFCC features from each labeled frame and create an SVM classifier model from random 80%-20% separated data set. The results are quite good on the 20% separated test data, the tes... |
Consider a regression task (e.g. predicting house prices) with a given train and test sets.
We start with constructing a linear regression model, in which we assume $y_i=X^T\beta+\epsilon$ with $E[\epsilon_i]=0$ and usually $\epsilon\sim\mathcal{N}(0,\sigma^2I)$. As we know the real value of the dependent variable $y$,... |
For the context, I was writing my BSc thesis on the topic of Linear Regression through the Origin (RTO). My goal is to analyze RTO, and find the appropriate use cases for it. In the case of simple linear regression, we know that we can take partial derivatives of log-likelihood function $l$ to get the maximum likeliho... |
I am performing a linear mixed model to asses whether pain scores differ between surgically treated patients who tested positive for a bacterial culture versus negative. I have 5 follow up moments but do not know if I should only include the follow up moment as a "repeated measure" or as a fixed factors as well.
As var... |
I've seen previous questions here that the sample mean can be considered an unbiased estimator of the population mean. e.g.1, 2.
While the examples seem to refer to independent sample points, it seems to me that their argument should also be true for autocorrelated data (or for that matter for any data). This intuition... |
Background
I am interested in the distribution of
$$\theta_0=1-\prod_{i=1}^n(1-\theta_i)$$
where the $\theta_{i>0}$ are iid beta random variates:
$$\theta_{i>0}\sim\text{Beta}(\alpha,\beta)$$
In my case $\beta\gg1\gg\alpha$ and $n\gg1$, so I used the following transformation:
$$\phi_i=-\ln(1-\theta_i)\\\theta_i=1-e^{-\... |
I have following dataframe:
Impute Technique Mean Std SMAPE
1 EINSTEIGER_ROH 0.00 0.00 NaN
6 MEAN 20.18 8.83 123.40
5 KNN_IMPUTER 20.30 8.79 126.56
7 MEDIAN 22.12 9.30 112.35
3 INTERPOLATE 28.91 10.56 120.24
2 FFILL 35.67 11.27 112.86
0 ... |
I'm taking a course in advance statistics and we have to prove whether the following expression is true: $E[zz^T]=E[z]E[z^T]$. I am assuming it is not, since the formula of the covariante matrix is $Cov(z)=E[zz^T]-E[z]E[z^T]$. However, I don't know how can I prove that.
|
We want to run Bayesian statistics on 2 variables on which the H1 hypothesis to be directional for both of the variables at the same time (ex. A>0 and B<0), while the rest of the case to be H0.
We are not sure what is the best way to do it and would really appreciate if anyone has some experience or could give us a hin... |
Is there a proper name for the following misfit quantification?
misfit=√{∑[(xi−xi')^2/(n*i^2)]}
where n is the number of data points xi−xi' is the ith residual, and i is the standard deviation (uncertainty) of the ith data point.
|
I am performing Bayesian Optimization to select a hyperparameter configuration for my supervised learning model. I understand that with each additional hyperparameter that I choose to optimize, the search space grows exponentially. My initial idea was to increase the number of search iterations exponentially as search ... |
I am trying to replicate a study that created a structural equation model (SEM) to explain effects on the intention to reduce meat consumption. The interactions of the latent variables are as follows:
mident affects att, norm, pbcon, and redint.
att, norm, and pbcon also affect redint.
att, norm, pbcon, and redint wer... |
I have a model that looks into a 3-way interaction between 2 categorical variables (Group: Gr. A, Gr. B, Gr. C; Area: A1, A2, A3) and a numerical linear interaction (Distance from center - ECC: 1, 2, 3) on participant accuracy. Formula = lmer(Accuracy ~ Group + ROI + Group:ECC:ROI + (1+ECC|ID), data =Ecc, REML = TRU... |
I am trying to model my proc surveyreg from SAS in R, because their survey package provides an IV option that I intend to use.
proc surveyreg data=df varmethod=brr(fay);
class IC152Q02HA;
weight w_fstuwt;
repweights w_fsturwt1-w_fsturwt80;
model score_m = IC152Q02HA active_l passive_l gender klasse_8 indvandrer ESCS
... |
I have a Gibbs sampling algorithm, for which I would like to estimate burn-in time. The model isn't hugely complex, and I run sampling for 1000 iterations.
One approach I took was tracking the running mean/standard deviation with increasing samples. This showed me that approximately 100 samples were needed before the m... |
I am conducting a Monte Carlo simulation to assess how OLS homoskedastic standard errors (i.e., based on $\sigma^2(X^\prime X)^{-1}$) change as serial correlation changes in a bivariate linear regression. Theoretically, OLS standard errors should be too large (relative to the true standard deviation of the estimate) wh... |
I am trying to calculate sampling error for a questionnaire that was answered by some of the participants in a program (say about . I want to calculate the sampling error for the proportion of the respondents that answered "yes" to a "yes/no" question.
I have seen some sites that use this formula for the calculation:
S... |
There is a large concern about using control variables that are not predetermined (i.e. may be affected by a treatment), in DID and Matching approaches.
How is this in an RD approach after the newest advances? Should we hesitate to add controls that may be affected by the treatment? Take a pension reform as an example,... |
I was reading through Wasserman's All of Statistics and I came across this property in the Bayesian statistics chapter:
I think I don't really get what is supposed to be the intuition behind it, and the "appropriate regularity conditions" even less so. I would get it if a connexion between the MAP and the MLE existed ... |
When extrapolating a regression line a bit further from the observed range of predictors, I get values way over what seems expected from the fitted model. If the intercept and the slope create a line that should go through the original dataset, I wonder why the predicted new values do not just lay close to an extension... |
When applying Gaussian Processes to applied problems, the choice of length-scale parameter parameter for the radial basis function (RBF, ie Gaussian) kernel makes a big difference. In practice, I have found that instead of using a single length-scale parameter, then optimizing it via cross-validation, it often works we... |
Let $(Y_t)_{t \in Z}$ be a covariance-stationary stochastic process. According to Hamilton (page 46-47), we say that the process is
Ergodic for the mean if
$$\overline{Y}\equiv \frac{1}{T}\sum_{t=1}^T Y_{t} \stackrel{\mathbb{P}}{\to} E[Y_t]=: \mu,\quad \text{as} \quad T \to \infty.$$
Ergodic for the second moments if
... |
I have a problem that each customer gives us a revenue and a cost, one of the indicators of the company is the:
$\frac{\sum Costs}{\sum Revenue}$
To estimate the confidence interval for this parameter can I assume it's a mean and use the t or z distributions? (After checking for minimum sample size, normality, etc).
|
I'm trying to run a latent moderated mediation analysis SEM with R lavaan. It is essentially "First Stage Moderation", per Edwards & Lambert (2007), with a few extra factors. I'm using the UPI approach with matching indicators to specify the latent interaction term, and the semTools package to probe interactions. I've ... |
I assume Baye's Theorem is expressed as either:
$P(B|A) = \frac{P(A|B)*P(B)}{P(A)}$
or
$P(A|B) = \frac{P(A) * P(B|A)}{((P(A) * P(B|A)) + (P(A') * P(B|A'))}$
The tutorial problem was:
Assume ten children have the following ages (years) and heights (inches):
I interpreted events A and B as:
P(A): Age x = 9 yr., 4/10
P... |
I'm tuning the hyperparameters for different Machine Learning models with Optuna package. For ExtraTreesRegressor I got r2 train = 0.938, r2 test = 0.922 and RMSE test = 0.907. In this case the average 5-fold CV on training data was 0.924.
But for HistGradientBoostingRegressor I got r2 train= 0.977, r2 test = 0.941 and... |
Consider two probability density function g(y) and f(y: $\theta$), $\theta \in \Theta$.
The KL divergence of f and g is defined by
$$
D_{KL}(g|f) := \int \log \frac{g(y)}{f(y: \theta)} \, dy = \int -\log f(y: \theta)g(y)\, dy.
$$
I want to check the following three conditions hold for some specific distributions of... |
I'm new to all of this so I apologise in advance.
I'm currently conducting a meta-analysis and have pooled AUCs that represent the accuracy of two very similar prognostic factors in predicting mortality.
Both values come from the same group of studies that assessed both factors concurrently in the same sample. I can't ... |
I would like to "relate" two arithmetic averages and then use them in Poisson. I currently already use a method, but i'm sure we can do better and that there is a better way. I currently sum the two averages, then divide by two, then use the result in Poisson
In the championship matches played so far, Team_A and Team_B... |
Two random variables (RVs) $x$ and $y$ are uncorrelated, which implies that $\mathbb{E}[xy]=\mathbb{E}[x]\mathbb{E}[y]$. Let the zero-mean deviation variable be marked with a tilde, e.g. $\tilde{x}=x-\mathbb{E}[x]$.
The second central moment is calculated as $\mathbb{E}[\tilde{x}\tilde{y}]=\mathbb{E}[\tilde{x}]\mathbb{... |
I have already read all the associated questions on the topic but couldn't find a clear answer. I initially split my data into training (80%) and hold-out testing (20%). Then, I am performing nested cross-validation (outer loops: Leave one out approach) using all the data except the 20% that is hold-out. I repeat the n... |
Background
I'm working on a Fraud dataset with 500,000 samples, and 130 features.
There are:
98 numerical features,
32 categorical features,
There are missing values in:
7 numerical features,
12 categorical features,
20 of the categorical features have cardinalities above 10.
The fraud incidence is 1.5%.
I have bui... |
Consider we have a population regression function (log-level model) with only one independent variable:
$$\log(y) = B_0 + B_1 \times x_1+u$$
In order to find the relationship between the increase of $x_1$ and $y$, I initially give $x_1$ value of 1, then:
$$\log(y_1) = B_0 + B_1 \times{1} + u $$
And also, to find the ch... |
Let's suppose that we perform Box-Cox transformation in R for the following data
library(MASS)
set.seed(1)
n <- 100
x <- runif(n, 1, 5)
y <- x^3 + rnorm(n)
# run a linear model
m <- lm(y ~ x)
# run the box-cox transformation
bc <- boxcox(y ~ x)
lambda <- bc$x[which.max(bc$y)])
What I'd now is to fit a new model
m2 ... |
Lets say I have the following sample data.
person_id gender age_group cluster buys sells gender_age
0 1 F Y 1 8 4.5 F_Y
1 2 F O 2 12 4.8 F_O
2 3 F O 3 10 5.1 F_O
3 4 F O 1 13 5.5 F_O
4 5 M Y 2 14 3.8 M_Y
5 6 M Y 3 7 5.2 M_Y
6 7 M Y 2 ... |
I am a bit confused with the time series dataset preparation. From the internet, I saw all examples which used tree-based models, had input features and target defined as:
X = df.drop(['target'], axis=1)
y = df["target"]
i.e. we use input features and target of the same timestamp here.
While using LSTM, say with a win... |
Consider a biochemical method which is sensitive to the concentration of reagent A.
The method produces a signal with variance var(method) when reagent A is repeatedly sampled from the same stock (no difference in concentration between experimental repeats). The method produces a total variance, var(total) = var(A)+var... |
So, I have survey responses from users. Just to make it clear, if you select an issue like Poor UI then you are prompted with 4-5 specific issues about the UI to select from. Poor UI is the main variable and then we have 4-5 sub-issues related to the poor UI. For example,
Q1. What do you have a problem with?
Poor UI -... |
I want to make sure i get the right analysis.
I have taken chemical measurements of soil at two grasslands at two depths. For example soil PH.
So one with chemical treatment and one without at two different depths (10cm and 50 cm).
What is an appropriate analysis. I was thinking just a T test?
best Wishes
|
I have performed a leave-one out cross-validated prediction using a lasso regression (with both lambda min and lambda 1se). My sample size is 52 and I have a bit more than 20 predictors.
While lambda min give me acceptable results, the lambda 1se gives me weird results:
The correlation between predicted and actual dat... |
Currently reading up on Ridge and Lasso regression, have some questions to clarify.
Suppose Model 1 has all predictors (i.e., 8) and Model 2 only has a specific subset chosen after EDA (i.e., 5)
Understanding that they both impose penalities on the coefficients (albeit different types), I was wondering if Lasso and Rid... |
I am having a hard time understanding ACF and PACF. I estimated a GARCH(1,1) model and now I am checking its standardized residuals. This is what I get:
I can not really understand why the lag 0 has p-value=1. Also, the Ljung-Box test on std residuals is OK.
|
I have tree-structured dataset about parents and childs values. Each data node (except father-node) has some float values. I need to predict childs values.
For being more obvious, I made a picture to show how my data looks like:
Now it is stored as table with information about parents ids. Fathers do not have any valu... |
I have a question about calculating the rate of inflation between two time periods using the CPI index, generally, if I am interested in comparing the rate of inflation between a current year 2022 and an earlier time period, 2019, is the CPI index calculation as follows:
CPI 2022 index minus CPI 2019 index, divided by ... |
I need to find the best, in the mean-squared sense, piecewise linear regression of an emprical density function (eCDF, which I do not know but can be sampled online) on the largest possible uniformally distributed grid. The domain is all reals and the residuals are normally distributed.
I am envisioning a Monte-Carlo-l... |
I am discussing the question whether to normalize the data or not in the following setting:
I have a true time series
$$s_t = iid(0,\sigma_s^2)$$
however I only observe different $$\hat{s}_{t,i} = s_t + v_t$$ where $i$ are different sources and if $t \le T_b$: $$i=1,...,n \\ v_t = iid(0, \sigma_h^2)$$ and if $t > T_b$:... |
I'm trying to follow the book A Step-by-Step Guide to Exploratory Factor Analysis with R and Rstudio, by Marley W. Watkins, and apply the principles in the book to a real-world data set. Ultimately, my goal is to perform a logistic regression, but my variables are highly correlated; so although the model performs well,... |
For a specific research question i fitted a generalized linear mixed model using a poisson link function due to the characteristics of my data.
For reporting purposes i used the report package and the report function. However, i noticed that the standardized coefficients and CIs are equal to the normal coefficients and... |
I want to do multiple linear regression as explained on this Wikipedia site: I am given the following data:
$$
yx=(~(y_1,x_{11},\ldots,x_{1p}),\ldots, (y_n,x_{n1},\ldots,x_{np})~)
$$
of $n$-many samples where for each sample $(y_i,x_{i_1},\ldots,x_{ip})$ the variable $y_i\in\mathbb{R}$ is ''dependent'' (the ''dependent... |
I did a pre and post-test with a small number of students ($n=12$).These values came after a science intervention that took $4$ weeks. I used a Wilcoxon test for 2 related samples as there was not a normal distribution. And I have gotten some values, but I don’t know how to make sense of the values I got. Simply put, w... |
The mean squared error has a famous decomposition into bias and variance.
$$
\text{MSE} = \text{bias}^2 + \text{var}
$$
Brier score is also a mean squared error calculation, and Brier score has a decomposition into measure of how well the model is calibrated and how well the model can discriminate between categories.
C... |
Suppose I have a single time-dependent variable $y_{t}$ (e.g. stock price) and a few hundred independent variables $X_{it}$ with data available for the same time frame as $y_{t}$ (e.g. company revenue, total market sales, interest rates, value of $y_{t-1}$ etc.) I want to identify a model to use for forecasting using t... |
Hey just scratching my head with this problem:
If I have a process that produces say 10,000 items. Each item can either be correct or incorrect (pass or fail). How many items do I need to check to be 95% sure that all items are correct?
When performing these checks on this subset of items let's say I find an item that'... |
Imagine two people must bet on the timing of the occurrence of an event, which we know will happen within the next 12 months, but we don't know in which month. Each person has 12 dollars and can bet in units of 1 USD, resolution monthly.
It's 1 January, and Person B thinks the event can happen with equal probability in... |
I am trying to report honest statistics about an experiment. I do not have a statistics background and am unsure how to approach this question.
My experiment measures a signal (S) minus background control (C) for each data point, this is the 'response'. The points are plotted against concentration, the 'dose'. I measur... |
I have a trouble understanding the concept/interpretation of confidence interval. It is commonly said that if I construct a hundred of 95-percent-confidence-intervals, then it is expected that 95 of those intervals would contain the true parameter. However, I am not sure why this should be true.
Question 1:
First, defi... |
Im cleaning some panel data for a regression. Subjects are firms and a substantial amount of firms have been involved in mergers. Should I just drop all firms that have ever been part of a merger? Could I drop the smaller firms from each merger and keep the bigger firms?
|
Given a uni-dimensional CFA, reliability can be calculated as:
$$
\omega = {\left(\sum_{i=1}^p \lambda_i\right)^2\over \left(\sum_{i=1}^p \lambda_i\right)^2 + \sum_{i=1}^p\sigma^2_i}
$$
where $\lambda_i$ is the factor loading of item $i$ and $\sigma^2_i$ is the measurement error/unique variance of item $i$.
It can be s... |
Assume that you are using the FAST algoritm for corner/feature detection. You pick an image and run the FAST algorithm.
Question:
All these green dots are actully coordinates in x and y direction. What type of rotational invariance information can I get from only knowing the coordinates that are created by the geometi... |
I'm using cox regression to analyse my data. The explanatory variable is a congenital disease (X) and the outcome is an another disease (Y), which is a comorbidity of the congenital disease. I'm looking at the association between the two diseases. The individuals in my data that has a congenital disease, may be diagnos... |
Firth (1993) states in his introduction that for a $p$-dimensional parameter $\theta$ the asymptotic bias of the maximum likelihood estimate $\hat{\theta}$ may be written as:
$b(\theta) = \frac{b_1(\theta)}{n}+\frac{b_2(\theta)}{n^2} + ...$,
where $n$ is the number of observations.
I understand why the first term is $\... |
The minority class of my target variable is 40% of the dataset. Is there any point to upsampling them to 50%? or is upsampling only used when there is severe class imbalance?
|
I'm pretty new to categorical data analysis. I'm trying to understand why my confidence intervals are so wide, I've never seen CI's this wide. From what I'm reading online this is mostly related to the small sample size. Are there other things I'm missing? I've pasted some of my output from R. I was using 'epitools'
OR... |
I am studying Markov Decision Processes (MDPs) using Puterman's classic text, but am finding it challenging due to my limited background in measure theory and Borel subsets. Additionally, the lack of solutions for the end-of-chapter problems makes it difficult for me to check my own work. I would appreciate any advice ... |
I'm planning a Kaplan-Meier analysis and need to determine an appropriate sample size for the study. I have two treatment arms and want to show that there is a differential biomarker effect depending on the treatment - I expect that the biomarker should be predictive of outcome for one treatment, but have no outcome as... |
I am working on a bench study comparing two commercial devices (Device X and Device Y) and their ability to hold contact force over 30 seconds on a substrate at 2 independent angles (16 and 130). This will be done on fresh devices and after multiple articulations (0, 50, 100, and 120). The more articulations = device f... |
I am doing linear regression in R. I have identified an outlier in my data:
outliers::grubbs.test(all_pav$fmd_perc)
Grubbs test for one outlier
data: all_pav$fmd_perc
G = 4.42003, U = 0.75274, p-value = 9.442e-05
alternative hypothesis: highest value 43.6823104693141 is an outlier
I can see this outlier in my mode... |
Good evening,
I have a question concerning a linear regression. The first picture shows my model and the hypotheses. The second picture shows the linear regression output for H1, H2 and H3. I understand that H2 and H3 are not significant but H1 is significant. Now I want to know: Is the β vor H1:
β = - 0,29 (Model 2) o... |
Let $X$ and $Y$ both be standard normal distributions - so with mean 0 and variance 1, and independent of each other.
Now let $Z = XY$.
We know that $P(Z=0) = P(XY=0) = 0$, because the set $\{0\}$ is of measure zero, and this is a continuous probability.
However, let's say that we know that $Z$ is equal to 0. This is p... |
I have 4 IVs: gender (male, female), marital status (married, single), threat (continuous variable) and stress with four levels (ranging from 7 to 10 with ten being 'most stressed'). My DV is prosocial behaviour. I'm doing a binary logistic regression. I've been advised to do orthogonal polynomial contrasts on the ordi... |
I understand that a neural network is a universal function approximator, meaning that it can learn to approximate any function that maps inputs to outputs. For a classification task, it creates a boundary line that separates different classes of inputs. For a simple case like the AND gate, it is easy to see how it crea... |
I have a panel data with treated and non-treated firm year-quarters, and I would like to do propensity score matching to generate a treated/control firm subsample. The matching needs to be 1 to 1 and matched pair needs to be in the same year.
The code I'm using is :
m.out <- matchit(treated ~ covariates +I(year),
... |
I've computed a ctree model, but the individual tree plotted is just one level, with all samples (below). How could this scenario have occurred? My response variable is a principal component and the predictors are nine environmental variables. There is no problem when I compute other principal components for the same d... |
Wikipedia has an article about the Brier score whose notation confuses me.
The article starts out easy enough by defining the Brier score to be:
$$
BS = \dfrac{1}{N}\overset{N}{\underset{i = 1}{\sum}}\left( f_t - o_t\right)^2
$$
$N$ is the sample size.
$o_t$ is true value $t$, either $0$ or $1$.
$f_t$ is probability fo... |
Let $X,X^1,\dots,X^{k-1},X^k\in\mathbb{R}$ be random variables, and let us define the conditional expectations as
$$
f_{k-1}=\mathbb{E}[X|X^1,\dots,X^{k-1}]; \quad
f_k=\mathbb{E}[X|X^1,\dots,X^k].
$$
Is it true that
$$
\mathbb{E}\Big[\mathbb{E}[f_k\,|\,X^1,\dots,X^{k-1}]f_k\Big]
=\mathbb{E}[f_kf_k].
$$
My attempt:
\beg... |
I am running a second-order (multiple indicator) latent growth curve.
The model has three latent factors (excluding the growth intercept and slope factors) that each have 4-5 indicators. Two of them are time-varying covariates.
My question is, "Do I need to add covariances among the residual variances of the
factors me... |
I have discrete, independent, but not necessarily identically distributed random variables $X_1,\dots,X_n$ that take on non-negative integer values. Each random variable has unknown distribution function $F_1,\dots,F_n$.
However, for each $X_i$, I've got $n_i$ values that were drawn from it, $\mathbf{d}_i = (d_{i1}, \d... |
I need to do a power calculation for a planned experiment, is my reasoning correct?
12 comparisons are planned
success is defined as at least one H0 rejection
Because a very specific missingness pattern is to be expected, I simulated one comparison (i.e. 2 groups) under Ha with the expected effect size. Because the ... |
I have to perform a comparability study between pre and post change of a production process.
I'm using the final purity to measure comparability and wanted to compare medians between pre (n=40 runs) and post(n=?).
Median of purity pre-change is ~99% so distribution is very skewed and so far I'm using a beta distributio... |
I have fit a GARCH(1,) model in Python, assuming the residuals are $t$ distributed. I am checking the standardized residuals. ARCH and Ljung-Box tests don't reject the null hypothesis. However, I am having trouble understanding the behavior of the graphs.
The first graph displays the distribution of standardized residu... |
I am trying to replicate the results in Table V of the paper Individualism and Momentum around the World (2010) by Chui et al. This is attached herewith.
Dataset:
Dependent variable: Monthly returns on momentum portfolios across 48 countries. The dataframe is shown below:
Independent variables: Monthly indicators o... |
My data has 5 binary dependent variables, 9 categorical independent variables, and 3 continuous independent variables, with a sample size of 1232. The 5 dependent variables are just different ways of measuring enrollment persistence, specifically Next Subsession Persistence, Next Term Persistence, Next Year Persistence... |
Model distillation (or knowledge distillation) consist in making a student model learn from a teacher model in order to eventually use the student model as an alternative to the original teacher model. The student model is usually designed to be more efficient, so they are are for example made to have fewer parameters ... |
I am looking at the results for survival analysis for leukaemia patients, categorised based on Copy Number Variation (CNV) levels using array comparative genomic hybridisation. So far I have plotted Kaplan-Meier (KM) curves and used the logrank tests for different leukaemia types. Additionally, I fitted a univariate Co... |
In the setup, assume $\left(\mathbb{R}, \mathscr{B}\left(\mathbb{R}\right), P\right)$ is the underlying probability space and suppose that $\left\{\mathcal{F_n}\right\}_{n\in \mathbb{N}}$ is a filtration inside the Borel sets.
I am interested in recovering the asymptotic normality of a maximum likelihood estimator with... |
I use Gaussian mixture model (GMM) to infer probability density of multidimensional data written as:
$p(x) = \sum_{j=1}^{K}\pi_j*N(x|\bf \mu_j, \Sigma_j)$, where $K$ is a number of mixtures, $\pi_j$ are their mixing coefficients and $\bf \mu_j, \Sigma_j$ are corresponding mean vectors and covariance matrices. These par... |
If we want to calculate $\mathbb{E}[X]$, we know this is $\int_{-\infty}^{\infty} x f_X(x) dx$.
When we want to calculate $\mathbb{E}[X^n]$ (for, say, positive integer $n$), we also do this with respect to the pdf of $X$, i.e. $\mathbb{E}[X^n] = \int_{-\infty}^{\infty} x^n f_X(x) dx$. Why can we do this? Is $Y = X^n$ n... |
I want to simulate an AR(1) process, knowing the last observation, but not the first. This should be an easy problem, but it does not seem to be so. Specifically, I can generate sensible average behavior, but the time series of individual units running through the process have a pronounced "kink" at the time I start ba... |
Suppose that we make measurements of an effect, and we know that the values that we obtain follow a normal distribution. But we don't know the mean nor the variance. The hypothesis is that 95% of the measurements are below a threshold $\theta \in \mathbb{R}$.
So far, I have tested this with a binomial test. If I have $... |
I have a multi-class problem that which classes are simultaneously mutually exclusive and have ordering. You can think of the classes as being some score: 0 (Low), 1 (Medium), 2 (High).
What I would like to do is make a custom loss function that will capture this characteristic. Following from Section 7.2.1.
XGBoost's ... |
I am trying to understand sklearn's function for computing the roc_curve. If I understand correctly, one needs the TPR and FPR to compute ROC. However, sklearn's function takes as input - y_true, y_score.
How does one compute TPR with y_score, when it's a probability estimate of the positive class? That doesn't tell wh... |
Assume we have 2 predictors $X_1$ and $X_2$ and an outcome $Y$ that we wish to model with the following function
$y = e^{\beta_0} * X_1 ^{\beta_1} * X_2^{\beta_2}$
Also assume that we have some priors for our parameters $\beta_0,\beta_1, \beta_2$ and we run MCMC as to generate posterior samples of our parameter estimat... |
Latent Class Growth Analysis and Growth Mixture Models (synonyous; henceforth referred to as GMM) explain between-subject heterogeneity in growth on an outcome by identifying latent classes with different growth trajectories. The below tutorial refers to how to implement them in R using the packages "lcmm" and "flexmix... |
This question was already asked at Stackoverflow - R Language Collective, but they said this might be a better place to post this question, so here I am.
I'm doing the statistics in R. I have this database with over 6,000 entries and 75 variables. I want to make a few models. The outcome variable is always mortality. T... |
This question relates to: How to pick the winner in the "Play the Winner" treatment assignment scheme (Urn model) which is like a Pólya urn model where the additions of balls into the urn relate to an additional randon variable.
Let's start with an urn that contains $x=2,y=1$ red and green balls.*
Pólya urn: We draw r... |
I'm using coyote telemetry data to understand the impacts of various environmental characteristics on their survival. The data I have includes the locations of a few hundred animals throughout their tracking period, mortality data for the animals who were recovered postmortem, and the birth year of some individuals.
I ... |
This may seem like a pretty simple question, but I want to make sure I am getting this right because it seems pretty foundational.
I'm reading this note on conformal prediction. In the very first section the scenario is this:
We collect i.i.d pairs $(X_i, Y_i)$, $i=1,\dots,n$ from distribution $P$ on $\boldsymbol{\math... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.