instruction stringlengths 9 38.7k |
|---|
Let's set up a toy problem. Say I make a vat of soup every week. Different kinds of soup, different volume each week (e.g. 50 gallons, 46 gallons, 10 gallons, etc.) and sometimes there are flies in the soup, which is understandably gross but stay with me. The question is: are there certain soups that are more likel... |
I have the following plot, which appears to have two pretty distinct trends.
The plots shown here and here depict similar situations. Is there a name for data that have two or more distinct trends, particularly when the distinct trends cannot be attributed to different factors?
|
I am using the Blavaan R package to fit bayesian path analysis models. The output includes an R-squared value. It has come to my attention that there are problems with using R-squared for bayesian analysis i.e., it is a point estimate and can be greater than 1. I would like to know if Blavaan calculates it in a way tha... |
I have data with one I(0) and seven I(1) variables. I found by Johansen procedure that maximum cointegration rank is 1 (applied to I(1) variables).
Now I try to understand, how can i add I(0) variable into VECM?
|
I have fitted a regression tree on my data and would like to demonstrate that it is a good model. Are there any standard goodness of fit test or index for a regression tree?
I understand that I can calculate the Confusion Matrix or Gini's index etc. to assess performance of each node but are there any way to assess the... |
At t = 0 my two variables x und y do not correlate. Due to an event, at t = 1 x und y suddenly correlate....
Is there a way to measure the the disorder of the two variables at t = 0, so that I can say that due to the specific event, the data becomes more "ordered". Something like skewness, entropy, ...?
|
I first ran a regression with my dependent variable and covariates:
reg dv treatment covar1 covar2 covar4 covar5 covar6
The n=738
Then a used psmatch2 to generate new treatment/control groups according to propensity score:
psmatch2 treatment covar1 covar2 covar4 covar5 covar6, out(dv) logit
I then ran a regression with... |
I am conducting a study to estimate the effect of Medicaid expansion on the uninsured rate using a classic Difference-in-Differences (DID) design with two-way fixed effects (twfe) model. My mathematical model is as follows:
$$
UNINS_{ist} = \alpha_s + \delta_t + \beta EXPANSION_{ist} + \epsilon_{ist}
$$
In this model:
... |
I estimated a hurdle negative binomial regression model with zero-truncated negative binomial model as the count component in R using the pscl package. I wish to present elasticities for the count component and I am having a hard time figuring out the relation for the elasticity estimates from the regression coefficien... |
I am working with raw data from a multiplex Luminex assay ( not by commercial kit); I have found that some duplicates have a high %CV. I would like to know if you can advise me on dealing with this data (I can't remeasure these samples).
I describe some of the solutions I have found:
1.- Choose a cutoff CV and eliminat... |
I am a physician looking for help with research. I am looking to learn the best way to analyze my data. I thought it would be simple enough, but after speaking to a colleague and doing my own research, it seems a little more complicated.
Basically, the project entails me taking a about 100 patients and looking at their... |
I have 2 new conversion webpages to test. Leadership recommends 80% traffic to existing conversion webpage and 10% each to the 2 new conversion webpages (non-negotiable)
How do I calculate sample size? I understand the fundamentals of sample size calculation - alpha, power, baseline conversion rate and minimum detecta... |
$f_X(x)$ gives value of the probability density function of random variable $X$ at point $x$. I am not sure how to wrap my head around $f_{Y|X}(y|x)$; is $Y|X$ still a random variable (sorry for the very basic question, I have not been able to find an answer on Google)?
This confusion comes from me trying to figure out... |
I need to limit the output value to [0,1], but using tanh or sigmoid activation function after the last layer of convolution or full linkage will result in a return gradient of 0, (falling in the level of the activation function), but also do not need to let the value of the sum of 1 (softmax), is there any good way, t... |
I am working on training a Seq2Seq Variational Autoencoder (VAE) model using healthcare data. In my dataset, I have features that exhibit varying levels of variance across patients. For instance, blood glucose values are highly variant for each patient, while HbA1c levels (which reflect an average of blood glucose over... |
I have two models to fit a set of categorical features.
One uses an encoding followed by a Kernel Density Estimation (with cross-validated bandwidth search) to make a continuous distribution. I am aware that this might be a stupid idea, but bear with it.
One models the distribution directly using a probability table (w... |
I have a block in a CNN that splits the input channel-wise in half, and one half goes through a regular 3x3 2d convolutional layer, and the other goes through a dilated 3x3 2d convolutional layer. After each is a batch normalization, then an activation function. They are both then concatenated again channel-wise before... |
I am trying to inspect a circular time series (a long time series of angular measures in 0-360°). The main aim would be to identify abrupt changes in the time series, but as a start I would like to plot it and visually inspect it. What is the best way? I am aware of the Fisher & Lee 1994 paper, but I found it difficult... |
I have fitted a regression tree on my training data and would like to demonstrate that it is a good model. For now, I am doing that by calculating the RMSE between the actual values of the dependent variable and the corresponding model outputs. The dependent variable is a continuous variable.
Are there any standard Goo... |
We have a gold standard test and a new test, and want to compare them prospectively, in a diagnostic accuracy study. I want to work out the sample size required. I have done some reading, and there is a calculator online:
https://turkjemergmed.com/calculator
However, this asks you to enter the sensitivity and specifici... |
I am doing an analysis of a population of animals that died during the first year of their life. I am comparing them a) to all animals that died, ever, after how-ever long life; and b) animals that did not die and were not born before the earliest birth date in the first-year-death cohort. The data is all categorical a... |
I am trying to understand and implement Sieve bootstrap (maybe also known s a parametric or model based bootstrap) for time series, where the bootstrap samples are sampled from centered fitted residuals. The actual centering step is not clear to me, what does it actually do, and why is it there?
The method is introduce... |
I am calculating the weights for a survey, but I don't know what to do with my selection probabilities.
Let's say I want to ask people from some country what their opinion is about several subjects.
I have created a panel where I have asked people to partake in. I got SRS sampled adresses that have the same age and res... |
I am generating from a standard AR(1) process. Lets assume a decay time lag $\tau=100$ and unit time steps of $\Delta t=1$, so $\phi=\exp(-1 / (\tau/\Delta t))=0.99$. The predicted autovariance is $\sigma^2 = \frac{1}{1 - \phi^2}$.
Then the AR is defined as $y_{i+1} = \phi \times y_i + \epsilon$, where $\epsilon \sim \... |
I have a graph like this above and I used the tab_model function in library sjPlot to report the results of my model. My Model is random intercept and random slope model. I am quite new with advance level of stats like this. My question is about odd ratio. Odd ratio of 1.40 (p < 0.001***, significant), which means th... |
I'm working on a project on time series multi-step ahead forecasting in Python.
I have a time series, and I apply an ARMA model on it (statsmodels SARIMAX library). I know that ARMA models, as many other models, when forecasting tomorrow value give as output the estimate of the conditional expected value of the process... |
I am running an ordered logistic regression for my thesis. I am trying to test the relationship between counterterrorism aid and state repression levels in recipient countries. I ran my regression, and for my first model, my International War control variable has a coefficient-value of 38.007 and a very large standard ... |
I've been wondering why most publications give stats as mean +/- standard deviation, even for things like measurement devices, where reproducibility is a major concern. (E.g., for a given sample, our devices measured 50 +/- 5). Wouldn't it be be more appropriate to use something like a confidence interval?
Is there any... |
Problem
am wanting to do a leave1out sensitivity analysis of an rma.mv (three-level) meta-analysis, where "1" is a cluster / sample (rather than a single effect size).
I understand that some functions, such as leave1out, do not work with rma.mv model objects (e.g., Metafor package: bias and sensitivity diagnostics).
At... |
I've been reading Probabilistic Machine Learning, by Kevin Patrick Murphy but I don't quite get the motivation for presenting Machine Learning from a probabilistic point of view. For example, when presenting Linear Regression (or any other model for that matter) it goes like this:
The key property of the model is that... |
In LayerNorm, for a given layer, we first compute the mean and variance of the activation of each sample and then use them to normalize the said activation.
Specifically, the LayerNorm formula looks like this (from here):
$$
y = \frac{x-E[x]}{\sqrt{var(x) + \epsilon}}\times \gamma + \beta
$$
If $\epsilon$ is small, th... |
I am analysing suicide counts and thus it seems appropriate to use Nb/Poisson regression. However, my counts come from survey data and are only whole numbers when unweighted. Once I realise the weights (which include decimals) the counts contain decimals, and I believe Nb/Poisson models require whole numbers to properl... |
I am having trouble understanding and proving Isserli's theorem for n=4:
$$ E(x_1x_2x_3x_4) = E(x_1x_2)E(x_3x_4) + E(x_1x_3)E(x_2x_4) + E(x_1x_4)E(x_2x_3) $$
My attempt goes as follows:
Assuming
$$ P(x_i) = \frac{1}{\sqrt{2\pi}}e^{-\frac{x_i^2}{2}}$$
Then
$$\small{ E(x_1x_2x_3x_4) = \int_{x_1=-\infty}^\infty \int_{x_2=... |
Im currently working on a data set and I can not get my statistics to add up. It is a survival analysis and I'm using Kaplan-Meier and Cox proportional-Hazards regression. I have used STATA for analysis.
My cox regression indicates no increased nor decreased risk of survival. I then test the PH assumption and obtain a ... |
I have a series of numbers ranging from -0.69 to 14.703. These datapoints measure YoY change. I want to create a text descriptor based on where a value falls in a range determined by the Standard Deviation. My mean is 1.13144 and Std Dv is 2.1579. This leaves me with these standard deviation steps, to which I assign a ... |
I have data assessing reaction time (RT) with 2 variables:
Variable 1: 'HighLow', with 2 levels ('High' and 'Low')
Variable 2: 'Condition', with 3 levels ('Predicted', 'Implausible', 'Plaus/Unpred')
I am learning about contrasts and have therefore run 2 mixed models that differ based on the contrasts used.
Contrasts fo... |
I have pairs of observations $(X_i,Y_i)$ with errors in both variables and I need to find the line that best fits the data. I have found some methods, but it is essential to know the standard deviation of the errors of $X_i$ and $Y_i$ or the ratio of error variances. What method could I use if I don't know these values... |
I tried to use a QLR test for structural breaks for a variable that I am forecasting, and I found a break, which is very accurate to geopolitical events in 2022.
Because of this, my significance of some exogenous variables in the model (ARIMAX) changes depending on the size of the training sample.
I'd like to capture t... |
The Problem
Given probability distributions $P(\theta)$ and $P(X)$, and given an inverse function $Y=f^{-1}(X,\theta)$ that returns a unique $Y$. How can one estimate the unkown distribution $P(Y)$ in the following hierarchical model?
$\theta = f(X,Y)$
$Y \sim P(\cdot)$
$X \sim P(\cdot)$
The Questions
What is this pro... |
I have two random matrices one on the top of the other:
$ \begin{bmatrix}\boldsymbol{B_1} \\ \boldsymbol{B_2} \end{bmatrix}$.
and they are both of dimension $k \times N$. I have that:
$ vec\begin{bmatrix}\boldsymbol{B_1} \\ \boldsymbol{B_2} \end{bmatrix} \sim \mathcal{N}\left(\begin{bmatrix}\boldsymbol{\mu_1} \\ \bol... |
Let $\alpha, \beta$ be independent d-states (d > 2) Markov chains with the same
transition probability matrix $\pi$, and let
$P(\alpha_0 =1)=P(\alpha_0 =d)= \frac{1}{2}$, $P(\beta_0 =2)=P(\beta_0 =d−1)= \frac{1}{2}$.
Find ALL transition matrices $\pi$ such that $\alpha$, $\beta$ may be successfully coupled.
My attempt
... |
I am looking at the proof given in this paper constituting lines (3) to (6) but am stuck on the first line. The setup is as follows:
Consider $X \in \mathcal{X} \subset \mathbb{Z}$ with a discrete probability distribution $P(x)$, uniform noise $U \in [0,1]$ and noisy data $Y=X+U$ with density $p(y)$. Suppose we model $... |
I would like to find the standard error of the median survival time and do some approximation to estimate the density function around the median survival time according to equation (5) of this: http://www.med.mcgill.ca/epidemiology/hanley/c609/material/KaplanMeierEstimator.pdf
Is it possible to do it in R? If so, can ... |
I've seen attempts to answer this particular question before, but I'm either not understanding something (often a priori correct), or I'm missing a better way.
Essentially, what I want to do is draw n random samples from (say) a normal distribution, with specific mu and sigma, where there is a serial autocorrelation ou... |
I have 3 dataframes with the same structure (each dataframe includes a different type of tweet). Here are the columns of dataframes: id, tweet_time, cascade_lifetime, cascade_size.
I would like to compare the cascade_lifetime and cascade_size of different types of tweets. To do this, I plotted the empirical CCDF of the... |
I have fit a time-series count HGAM with environmental covariates as parametric terms and year as a site-varying smooth term. I am wondering if I need to use an alpha threshold of 0.01 to interpret significant p values for the parametric terms, or is a 0.05 threshold appropriate?
Thank you for any help
|
I have a situation where I compute a posterior probability using the vanilla Bayes' Theorem:
$P(A|B) \propto P(B|A)P(A)$
As a concrete example, $P(B|A)$ is a Normal distribution establishing the likelihood that a measured value plus random noise is consistent with a known expectation value (and variance), and $P(A)$ i... |
I would be grateful for a cross-check on my understanding of the criteria for valid ANOVA analysis. The orthodoxy I've always used is the Hartley’s Fmax test, if that fails ANOVA is simply no-go.
The question is in two parts:
Could D’Agostino-Pearson test for normality alone be used to justify ANOVA analysis? If this ... |
Background: I did an experiment in which 30 people watched 3 movie clips ("A", "B", and "C") in a random order. For each song and participant I measured one continuous neural variable named SNR (1 value for each participant and for each song) and one continuous behavioral variable named RT (1 value for each participant... |
I found this plot in a paper. I have found similar plots in other papers from the same team. It is basically the comparison of MODIS C6 and C5 products with AERONET. I wanted to understand what that 'Frequency' color coding means and how was that calculated. I also have a data frame with AOD and AERONET data, but even ... |
I am trying to implement sampling from GEV distribution without using external libraries (except numpy) and this is what I came up with:
import numpy as np
def gev_rvs(c=-0.583, loc=68.44, scale=66.05, size=1000):
u = np.random.uniform(size=size)
sample = loc + scale / c * (np.power(-np.log(u), -c) - 1)
ret... |
I don't have a strong background in statistics, I am reading two papers which mention Wilcoxon tests, signed-rank and rank-sum, and they are applied on two different situations.
I found a bit cumbersome to understand what they do, and how to chose between them for appropriate significance testing.
Could you please unde... |
I am currently working with a VAR model in R using the second difference of some variables (it only becomes stationary after differencing twice). So far I'm trying to see if the model fits one of the variables which seems to be the case to a reasonable amount. However, when I'm trying to transform the fitted values bac... |
I'm trying to figure out how to get the probability that you reach a certain point in my game.
The way it works is that you start off with 22 things (including yourself), and each time you press enter a random thing explodes and you get a point.
The twist is that if something explodes, that thing cannot be exploded aga... |
I'm processing several time series in an effort to identify meaningful trends over time.
More specifically, I'm computing several time- and frequency-domain metrics (e.g. RMS, Peak-to-Peak, Integral, Median and Peak frequencies) over sequential same-length windows/segments (no overlap) and performing a 1st order polyno... |
I am trying to write the neural network as written in the book "Neural Networks and Deep Learning" by Michael Nielsen. I have finally gotten the code to run but every epoch results in the same output no matter where it starts it gets stuck at a similar, very inaccurate value. The code and results are below.
import rand... |
In the Definition 3.4.1 of Pearl's causal inference book (Primer), the second rule for the front door criterion is "There is no backdoor path from $X$ to $Z$". But from my understanding, there EXISTS one backdoor path from $X$ to $Z$: $X \leftarrow U \rightarrow Y \leftarrow Z$. And this backdoor path is blocked by th... |
I am interested in learning about how to calculate the Standard Deviation of the Weighted Mean.
From Wikipedia (https://en.wikipedia.org/wiki/Pooled_variance, https://wikimedia.org/api/rest_v1/media/math/render/svg/0224c1c53591c619794682f2bc3560dc86530e2b), I obtained the formula for the Weighted Mean:
$$\mu_x = \frac{... |
Does there exist a point process $X$ in the plane with the following two properties?
$X$ is hard core. Discs of radius $h$ can be centered on the points in $X$ without overlapping.
$X$ is encountered as Poisson arrivals. Propel a disc of radius $r \leq h$ at constant velocity along a randomly selected line across the... |
Could you please help to understand if this interpretation for OR 1.318 and 95 % CI 0.72-2.42 is correct. Especially, I want to understand how we determine the positive or negative direction, do we focus on 1? whether it is included in CI or not?
the odds of depression among personnel who worked for more than 8 hours p... |
I am new to using mixed effect models and all the information online has me quite confused. I hope someone can help me.
I have data of patients who did the same test at three different timepoints. I want to use a mixed effect model (lme4 package) to look at effect of time on change in score. I added an example data set... |
I'm writing code to calculate if the correlation between two random variables is significant.
I've recently come across Fisher's z transformation as a method for finding significance. But from reading around:
SAS on Fisher's z
Wikipedia on Fisher's z
it seems this transform only applies to normal variables. A lot of ... |
Let $P$ be a finitely additive probability measure. I learn from my friend that:
$[P(X>Y)=1 \implies \mathbb E_P[X]>\mathbb E_P[Y]]\iff$ $P$ is countably additive.
Seems to be a very useful result. Is this result covered in textbooks or literatures?
|
I need help to statistically test a uniform distribution of a toss of 7 independent coins.
Here is the table :
Coin_nb Heads Tails Nb_toss
Coin1 86 73 159
Coin2 42 63 105
Coin3 52 62 114
Coin4 53 55 108
Coin5 73 48 121
Coin6 60 77 137
Coin7 66 43 108
How could I ... |
I have the intuition that applying a deterministic function to a pair random variables cannot increase their mutual information, because the function can only decrease each of their entropies.
I would like to know if this is true and prove it.
So far I've been trying to expand the mutual information definition to reach... |
I am looking for help with what statistical test I should use to analyse my data.
I want to know if there is a statistically significant difference between the animals behaviour before and after interaction with a tour vessel
There are five types of behaviour, and for each encounter I know what the behaviour was pre ap... |
I have a database of defects on plastic films. Defects are burns, holes, and similar things. Some defects are direction specific. A vertical sign on the material represents a scratch done on the material during the extrusion process. Data augmentation is a useful tool, but can be harmful for these defects.
I was thinki... |
Is it possible, using custom cost functions or otherwise, to run xgboost regression for a single target variable, but rather than outputting just the conditional mean (conditioned on the feature values) of the variable as a prediction, to output condition distribution parameters.
For example, the way to interpret Poiss... |
I have multivariate time series (VAR), and i found a break near the end (84.7%).
I wanted to use a dummy variable in this situation, but even if I choose 90% training set, the dummy only trains on 100 values (i have 1900 values in total).Сould this skew the results?
|
I plotted some time series data that looks non-linear as can be seen below.
![Text] [Looks pretty non-linear, but I decided to implement a linear regression model for learnings sake.
train_data = df["High"].iloc[:math.ceil(10382*0.8)].to_numpy().reshape(8306, 1)
y_data = df["High"].iloc[1:math.ceil(10382*0.8)+1].to_nu... |
In my project I generate synthetic energy demand data using a neural network. I want to check the cross-correlation of those two time-series: the original and the synthetic one. I found, that the detrended cross-correlation coefficient is a good measurement to determine cross-correlations between two non-stationary tim... |
For a given data $y_{i}$, with $i=1, \dots, n$, we consider the following signal approximation:
$$
\hat{y} = \arg \min_{w}\sum_{i=1}^{n}(y_{i}-w_{i})^{2} + \lambda \sum_{(i,j)\in E}|w_{i} - w_{j}|,
$$
where $E$ is the set of edges corresponding to the two-dimensional grid.
The question: for image denoising what are the... |
I'm working with a GNN model for link prediction and using precision_recall_curve and roc_auc_score from the sklearn.metrics functions. For the GNN definition and use, I'm using Pytorch geometric.
The last layer of my GNN is a dot product between aggregated node features, which I'm considering as the score.
It means I ... |
I'm trying to think of a descriptive statistic in the context of sports betting.
Some background:
Sportsbooks post odds such as -150, +200, etc... for moneyline bets (aka betting on winner).
These odds can be converted to explicit probabilities of who the winner will be.
Source: https://www.sportsbookreviewsonline.com... |
In ordinary least squares linear regression, given a set of data points $(x_1,y_1),(x_2,y_2),...(x_N,y_N)$, that we want to fit to the function $y=\beta_0 + \beta_1 x$, we would usually write the linear model as the matrix equation
$$
\begin{align}
\mathbf{Y} &= \mathbf{X}\boldsymbol{\beta} + \boldsymbol{\varepsilon} ... |
Let $\mathcal{L}(\theta\mid x_1,\ldots,x_n)$ be the likelihood function of parameters $\theta$ given i.i.d. samples $x_i$ with $i=1,\ldots,n$.
I know that under some regularity conditions the $\theta$ that maximizes $\mathcal{L}$ converges in probability to the true value $\theta_0$ as the sample size becomes infinite ... |
I came across a proof on a statistics book using the following, if$$
S=P(|X|≥\epsilon,|B|≤b)+P(|X|≥\epsilon,|B|≥b)
$$then$$
S≤P\left(\frac{X}{|B|}≥\frac{\epsilon}{b}\right)+P(|B|≥b)
$$
I want to verify if my thinking is correct.
The event $\{\frac{X}{|B|}≥\frac{\epsilon}{b}\}$ is a subset of the event $\{|X|≥\epsilon\c... |
In class, my professor that a recurrent neural network is for problems where the state changes as a function of past state and new input, i.e. h_(t+1) = f(h_t, x_t), for any f. Then he said we would have, in each RNN cell, a universal function approximation (e.g. a deep neural network) to learn any f and thus solve all... |
I have a within-subjects study where for each participant I have 10 datapoints from the control condition and 10 datapoints from the treatment condition. The treatment effect is calculated as [mean of outcomes from treatment condition] - [mean of outcomes from control condition].
I am trying to use bootstrap to calcula... |
I want to run a linear mixed model (LMM) testing the effects of two continuous variables (FD and FI) over time (Year:FD, Year:FI) on my response variable (QMD). For LMMs I typically use lmer4 but as in this model the variance increases over time, I want to use nlme to weight the model variance by year (using VarIdent=Y... |
I am studying the incidence of different types of stroke in a hospital. I have the information about the time of arrival of each patient and the type of stroke. I divided the whole day into 6 time slots (00-04, 04-08, 08-12, 12-16, 16-20, 20-00) and counted the number of each type of stroke (ischemic stroke, hemorrhagi... |
Let say I have the below time series data(It is a return data of a financial derivative):
x<-structure(c(-0.030727, -0.009815, -0.001215, 0.010281, -0.03471,
0.01946, -0.027811, -0.002559, -0.001176, 8.3e-05, 0.026288,
-0.015959, 0.010825, -0.022024, 0.008582, 0.023524, 0.00139,
-... |
I'm look to learn about extreme value theory, starting from univariate case and then moving onto the multivariate case.
I have tried the textbook by de Haan, but I'm constantly lost trying to read the proof of Fisher–Tippett–Gnedenko theorem in the first chapter. I have also tried Statistics of Extremes: Theory and App... |
This is a follow-on to post Correctly simulating an extreme value distribution for survival analysis?, as I work towards adaptation of that code to the Weibull distribution. In the below code I generate random numbers for $W$ for the Weibull model that takes the form $logT = α + σW$ where $α$ is the linear predictor an... |
I am thinking of running a regression of $Y ~ Xi$, but for each $X_i$, I have a pre-determined "score" $S_i$ in terms of quality of the data. The higher the score is, the more confidence I have in $X_i$.
So I want to run a modified regression of finding $w_i$ to minimize
$$| y - \sum w_i X_i |^2 + \lambda \sum w_i^2/S... |
I am currently working on a logistic regression model using the mgcv package.
The mode contains 3 variables (x1 and x2, continuous) and x3 (categorical) and I believe there is interaction between the variables x1 and x2.
This is my base model:
gam_model <- gam(Output ~ s(x1) + s(x2) + x3, method = "REML", data = data, ... |
How interpret Pr(>|t|) results?
Can I consider the "speed" significant for regression despite the "intercept" having no statistical difference?
Or the linear regression model is only reliable if there had a significant "intercept"?
Example
summary(lm(dist~speed,data=cars))
#
# Call:
# lm(formula = dist ~ speed, data =... |
Does ANCOVA require homogeneity of regression slopes? In other words, do the slopes of the lines need to be the same in order to use this method?
Per this blog post ANCOVA can be used to discriminate between models, with different slopes, but this blog post says the slopes must be parallel for ANCOVA to be used. Please... |
For one experiment, I have two data sources A and B contributing data points, and a function that takes the union of the sets of datapoints and assigns a quality weight to each point.
I'm trying to analyze the quality of A vs B over many such experiments to evaluate if B is "as good" of a data source as A is. One basic... |
I am trying to understand how to actually implement the Harville-Fellner-Schall algorithm for the estimation of the P-splines penalties presented in Appendix E (Sec. E.2) of Marx and Eilers [1]. Let me summarize here the main points. Given a P-spline basis matrix $B$, the data vector $y\in \mathcal{R}^m$ and the discre... |
From the summary of my fitted generalized additve model (gam) I see two edfs. The first edf is the model edf and second is the reference edf.
However, for AIC estimation, the reference edf is used. But what is the reason behind that?
As model is estimated using the edf, why are we using reference edf?
This is a sample ... |
I want to make a correlation analysis of two nominal columns, the "advocates" column and the "company" column, the advocates in this case are processing the companies, the data looks like this
Advocate
Company
Adv 1
Comp A
Adv 1
Comp A
Adv 2
Comp C
Adv 3
Comp B
Adv 3
Comp B
Adv 2
Comp D
Adv 3
Comp E... |
I'm having trouble finding references to (and the name of) an obvious correction procedure that surely must have been used extensively in time series forecasting, but my Google searches keep turning up references to anomaly detection (which isn't what I'm looking for).
In (univariate) time series forecasting, we're alw... |
I have a continuous treatment variable which I dichtomize into a binary treatment dummy. Using MatchIt and the newly created dummy variable, I conducted genetic matching to create a dataset of treatment and control observations. My question is, can I replace that binary treatment variable with the original continuous t... |
I have two features. I need to perform T-test for these two datasets but with the same model.
train_x, test_x, train_y, test_y = model_selection.train_test_split(X_pac, labels, test_size=0.2)
train_x1, test_x1, train_y1, test_y1 = model_selection.train_test_split(author_post_new, labels, test_size=0.2)
I need to per... |
Suppose there are N measurements of a random variable x which has Gaussian p.d.f. with unknown mean $\mu$ and variance $\sigma^2$. Classical textbook solution for estimation $\mu$ and $\sigma$ is to maximize likelihood function:
\begin{equation}
L(\mu, \sigma) = \Pi_{i=1}^N\frac{1}{\sqrt{2\pi\sigma^2}}\,e^{-\frac{(x_i ... |
I would like to plot contour plots of covariance functions in R:
one for a fitted separable spatio-temporal covariance;
one for the empirical covariance function,
similarly to Figure 4.4 in Wikle et al Spatio-Temporal Statistics with R.
I understand the theory behind these concepts, I just need help with implementing... |
Ranking of Raters and Cases
I am looking for a method for ranking a set of raters with partially overlapping binary assessments. I also want to rank the cases according to their difficulty.
Context
I have dataset with N cases, $\{c_n\}_{n=1}^N$, and M raters, $\{r_m\}_{m=1}^M$, where each rater $r_m$ has assessed some ... |
I'm trying to calculate a good mean shrinkage parameter for a custom quadratic discriminant analysis (QDA), and I ran into a math problem. Suppose $X=(X_1, X_2, \ldots, X_k)^T\sim{\mathcal{N}(\textbf{0},\Sigma)}$, where $\Sigma_{ii} = 1$ for $i=1,2,\ldots, k$. Define
$$
\text{mean}(X) = \frac{1}{k}\sum_{i = 1}^k X_i.
$... |
I'm trying to gain deper understanding of the logic behind vanishing and exploding gradients. Most sources I've come across explain the problem by saying that when the weights become too small, the forward pass and back propagation essentially become a chain of multiplications of numbers $< 1$, resulting in increasingl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.