instruction stringlengths 9 38.7k |
|---|
I am trying to figure out if/how I can understand if animals are choosing particular plant species for foraging or just using them based on their availability. To do this, I need to characterize the availability of multiple plant species in plots. I have many plots, each one had 8 quadrats (roughly 5% of total plot are... |
I am analyzing a set of data of two factors, one at three and other at seven levels, to check how they influence my response variable. However, when testing the ANOVA assumpions it results it follows a normal distribution but the data is heterocedastic. I know that for heterocedastic one-way ANOVA there is the Welch te... |
When fitting a Poisson regression on data with low expected values, the intercept term has a small bias even when the model is perfectly specified. Below, I simulated data just using $y \sim rPois(exp(\beta_0))$ and then fit the data using the glm model $log(E[y]) \sim \beta_0$. On average, the estimates are slightly b... |
We are using a mixed-effects model to assess the potential impact of different treatments (categorical variables) on a specific soil characteristic (numerical variable). The study uses a randomized complete block design with plots nested in blocks.
Longitudinal data were collected and initial assessments of the raw dat... |
Let's suppose I perform two separate logistic regression models in two different subgroups of my dataset.
glm(death ~ age + ..... , data = female, family="binomial") #female population
glm(death ~ age + ..... , data = male, family="binomial") #male population
From these, I obtan an OR for age in the female group and o... |
I am confused about the derivation of importance scores for an xgboost model. My understanding is that xgboost (and in fact, any gradient boosting model) examines all possible features in the data before deciding on an optimal split (I am aware that one can modify this behavior by introducing some randomness to avoid o... |
I want to prove the following, for a given image distribution $P(X), \mathcal{X} \in \mathbf{R}^{n \times m}$, we have a masking model, $\phi:X \rightarrow \{0,1\}^{n\times m}$. We also have the complement mask $\bar{\phi}$, which basically does the complement masking of $\phi$. I want to find the entropy $H(X \circ \p... |
This is the target I want to integrate with Monte Carlo with control variate method:
$$\theta = \int_{1}^{\infty}\frac{x^2}{\sqrt{2\pi}}e^{-x^2/2}dx$$
I have checked with Wolfram that it is 0.400626, so the control variate should be converge to this value.
I use standard normal distribution and gamma distribution (shap... |
I am doing a longitudinal study investigating how Y changed across time, with two time-invariant covariates at level two (between-person), one is Gender and another one is OnAge. So I tried to formulate a conditional growth model via lme4, and if I was correct, the equation should be like this:
Level 1: Yti=b1i+b2i Ti... |
In my study I want to test if certain cities were predominantly visited for holidays or for work (see boxplot below). That means I want to know if there is a difference between the grey box and the white box for each group (City). I have about 20 persons in my study. Some were traveling a lot. That is why for the boxpl... |
I'm working with a data set from here: https://nij.ojp.gov/funding/recidivism-forecasting-challenge
To put it simply, it is a binary classification problem. The gang affiliation variable is pretty useful, but it is only recorded for men, making this a missing not at random data, with the missingness completely correlat... |
I am interested in numerical data imputation problems: how to properly estimate missing values in a tabular data set (rows and columns) with missing numerical values?
In 2018, Yoon et al. proposed the GAIN framework, a Generative Adversarial Network tailored for numerical data imputation. Here is the link to the origin... |
Suppose that the DGP is an AR(p) with a unit root. When we fit, using OLS, an AR(1) model $x_t=\alpha x_{t-1}+u_t$ to the data, we get $\alpha=1$, indicating, correctly, that this is a unit root process. I've been trying to prove this, but so far I've not been successful. Can someone give some hints?
|
So I am trying to validate my STAN model before using real data and am having some trouble estimating parameters separately. My data structure contains count data with people on the rows, and test items in the columns. I am trying to use a covariate for item type, for example multiple choice, and see how this affects m... |
Hi StackExchange Community,
I am performing a Principal Components Analyses (PCA). I would like to know how to extrapolate some PCA components with other variables that were not considered in the PCA function.
I have a nutritional survey with 60 questions that was applied to 420 people. The frequency of consumption was... |
To compare two treatments (independent variables = intervention A vs intervention B), dependent variables are lipid levels (i.e. LDL, HDL, TC, TG) in scales. Blood samplings were collected at various time points for 3 times. What is the best test to calculate the mean change for each dependent variables while factoring... |
A dataset is having 2 or more timeseries
eg: with two timeseries x and y
I need to predict the slope and intercept using Linear regression model b/w x & y.
But my data can have Outliers
My Approach:
Calculate Mahalanobis distance using MCD
Find the Outlier using some threshold value, if greater than threshold then ou... |
While building ML model I'm facing a covariate shift detection, so I need to compare old labelled data and new unlabelled data. I'm planning to use KL divergence to quantify the distances between these two distributions. However, KL divergence is asymmetric. Hence, which distribution should be $P(x)$ and which $Q(x)$? ... |
I'm trying to implement the (R-)ALoKDE algorithm for the density estimation of the data streams. The algorithm has been published and presented in [1, 2]. Although the algorithm seems simple, I'm struggling to implement it, even in the 1D case. My current (1D) implementation can be found on GitHub [3]. I believe that m... |
I would like to do a DIF analysis on a scale
The problem is that I have missing data for 10 items for the focal group
The questionnaire in question exists in two forms: a 15 item version and a 25 item version
When we collected the data from different researchers we realized that they had not all used the same version: ... |
Is there a way to demonstrate strength of a Hierarchical Bayesian Model versus a non-Hierarchical Bayesian Model on simulated data?
I'm ideally looking for a plot that shows that a Hierarchical Bayesian Model better succeeds in detecting a difference/effect against a non-Hierarchical Bayesian Model as we keep decreasin... |
Let the DGP be given as:
$$X_t\sim t^2\chi_1$$
with all $X_t$ independent. Based on simulations, an ADF test fails detect non-stationarity (i.e. it does not find a unit root). This makes sense, since ADF is a parametric test that assumes a completely different model than the DGP above.
I'm looking for some other test t... |
I have already a SARIMA model working at my company (an ecommerce) to predict sales. Right now I am only trying to improve it.
The current model is only using endogenous variables (i.e the sales variable). Commercial teams claims that Stock info should be really useful to help predicting sales, as it is very correlated... |
Per the regression model:
$\mathbf{y} = f(\mathbf{x},\mathbf{\beta}) + \mathbf{\epsilon}$
Where the $\beta$ estimate of LAD regression is given by:
$ \hat{\beta}_{LAD} = \text{argmin}_{ b} \sum_{i=1}^n |y_i - f(\mathbf{b},x_i)|$
Now, some background, per Wikipedia on the topic of Iteratively Reweighted Least Squares, ... |
To illustrate the problems imagine I'm drawing labelled spheres from a box. I may or may not know the number of spheres in the box (does it make a difference?)
If I draw 10 spheres from the box and they are all different what did I learn about the distribution of the probability of drawing each label? They may be just ... |
I'm learning to make a book recommendation system but I am facing some difficulties to evaluate the model. I chose the collaborative filtering item based strategy. The dataset is a matrix (book, user) filled with the ratings of the books. The dataset is something like:
user_a user_b user_c ... user_x
book_1 ... |
I am trying to create a dataset where columns 2,3,4 are correlate (0.98,0.97,0.96, respectively) to column 1. Right now I have this code:
library(MASS)
X<-mvrnorm(20,mu=c(5,6),Sigma=matrix(c(1,0.98,0.98,1),ncol=2),empirical=TRUE)
cor(X)
Y<-mvrnorm(20,mu=c(5,6),Sigma=matrix(c(1,0.97,0.97,1),ncol=2),empirical=TRUE)
co... |
Here I generate a dataset where measurements of response variable y and covariates x1 and x2 are collected on 30 individuals through time. Each individual is denoted by a unique ID.
The observations are collected in hourly increments, but are only available for given individuals (IDs) when they are present during the r... |
As precipitation prediction models can only predict positive values, they won't be able to undershoot small values by much. When it comes to overshooting, there is no boundary. High precipitation values can essentially be overshot and undershot equally, except a model predicts ridiculously large amounts. Furthermore, ... |
In a regression setting with input-output pairs $(x_n, y_n)$ for $n =1, . . . , N$, where the inputs $x_n = (x_{n,1}, . . . , x_{n,D})$ are generated by:
$$x_{n,d} \sim N(0, s_d/N),$$
for dimension $d = 1, . . . , D$.
$X$ denotes the input matrix and $X^TX$ is a diagonal matrix with diagonal elements $(s_1, . . . , s_D... |
Let $X$ and $Y$ be real valued random variables. And define a truncation operator as:
$\begin{align}
X(\tau) = (|X| \wedge \tau) \; \text{sign}(X), \quad \tau > 0
\end{align}$
Now, I am not sure how to show the inequality:
$\begin{aligned} & \mathbb{E}\left[X Y\right]-\mathbb{E}\left[X(\tau) Y(\tau)\right] \\ \leq... |
Each time that I wanted to build mediation models a-b-c symbols were very confusing, especially in more complex SEM relations. Therefore, I made some pre-built models (for lavaan in r) that I propose for better name-representation. Please, feel free to comment on that or to propose changes.
Note that the pre-built exam... |
I am trying to write/understand a conditionally-conjugate Gibbs sampler for what is essentially a linear, mixed effects model. I more or less get the conditionally-conjugate posterior for the hierarchical parts of the model (nested/random effects), but I am having trouble understanding what the conjugate posterior loo... |
I have following issue: I am trying to cluster similar countries with respect to different temporal features. Therefore, I have twelve different datasets each representing a different country. Each dataset contains of a couple of features as time series. The features can differ from dataset to dataset (e. g., dataset1 ... |
Before training a machine learning algorithms, it is advisable to perform feature scaling. Suppose we have a "toy" dataset where each image is composed of two pixels $x_0$ and $x_1$. Lets assume that $x_0 \approx 0$ and $x_1 \approx 1$ for all the training samples. Initially, all images will be $(0, 1)$ but after e.g. ... |
I want to prove a consistency of the sample correlations from canonical correlation analysis(CCA). Here is an informal statement of the theorem: Let $\textbf{X}$ and $\textbf{Y}$ be two p-dimensional and q-dimensional random vectors, respectively, with joint distribution P. Let $\left( x_{1},y_{1} \right), \ldots,(x_{n... |
In the 2015 paper "Deep Unsupervised Learning using Nonequilibrium Thermodynamics" by Sohl-Dickstein et al. on diffusion for generative models, Figure 1 shows the forward trajectory for a 2-d swiss-roll image using Gaussian diffusion. The thin lines are gradually blurred into wider and fuzzier lines, and eventually int... |
Experiment is designed as it follows:
9 different pH treatments (controlled), in each treatments 40 marked individuals (randomly chosen from a larger population). Measurements (length, weight, etc.) were performed on the same day on every marked individual from each pH treatment over several time points.
Research quest... |
I´m trying to find by hand the se.fit. I have 30 different values of the Y real and the Estimate Y. How can I calculate it? Thank you!
|
I have a data set that looks like this toy data
library(tidyverse)
data <- tibble(ID = rep(c("Billie", "Elizabeth", "Louis"), times = 1, each = 6),
Group = c(rep("control", 12), rep("patient", 6)),
Time = rep(c("T1", "T2"), times = 3, each = 3),
Item = rep(c("a", "b", "c"), times = 6, e... |
I'm working on a project developing a predictive model for whether or not an individual has a (rare) disease based on some non-invasive test results. The idea is that this could help patients avoid lengthy and invasive tests.
One of the non-invasive techniques is very predictive for this particular disease; if a patien... |
I have a .csv data set (N = 140) that I want to perform analysis on. Specifically, I want to find a relationship between the .csv's "P" (Predictor) cells and the "T" (Target) cells (pictured below). T_Summed is simply the sum of the T cells and P_Avg is simply the average of the P cells. An observation containing these... |
I found a similar question here but unanswered.
Given a binary treatment generated from a Bernoulli distribution with probability $p$ of success ($(_=1)=$, $(_=0)=1−$), how do I know how the error of the difference in means estimator scales with $p$ and $n$?
I know that writing the difference in means estimator as $̂=1... |
I read the textbook https://web.stanford.edu/class/bios221/book/06-chap.html about the
false discovery proportion and the p-value histogram.
library("DESeq2")
library("airway")
data("airway")
aw = DESeqDataSet(se = airway, design = ~ cell + dex)
aw = DESeq(aw)
awde = as.data.frame(results(aw)) |> dplyr::filter(!is.... |
I understand that in creating prediction intervals for point prediction we typically use root mean-squared error (RMSE) if we meet our linearity, homoskedacity, and normality conditions. Our normality and homoskedacity conditions allow us to use the empirical rules to construct intervals. That is about $95\%$ of our da... |
Does anyone know how to model selection for function on function linear model to find the best subset of functional covariate in R
|
I am looking at the incremental validity of the MMPI-A-RF (a psychological instrument) and MACI (another psychological instrument) in the prediction of the DSM code for depression disorders found in the clinical record prior to testing. Both psychological instruments are continuous variables, and the outcome variable (... |
Here's the sample data: Link to a .csv file
To briefly explain this: grandparent is 1 if the individual is a grandparent and 0 if otherwise. m_age is the individual's age. m_work is the individual's working status and m_workhour is the individual's weekly working hours. child1_female indicates whether the individual's ... |
0
I have a set of data points. The first coordinate is time and the second coordinate is energy. I am trying to figure out how the energy is decaying over time. Particularly, I have to find if it is decaying over time exponentially or as a power law. I used Mathematica FindFit to model my points as both an exponential ... |
Note that a distribution function (cadlag etc) $F$ is said to be stochastically dominated by a distribution function $G$ if $F(x)\geq G(x)$ for all $x \in \mathbb{R}$. The following result characterizes stochastic dominance equivalently:
Theorem: $F$ is stochastically dominated by $G$ if and only if for every increasi... |
I'm working on a negative binomial model for count data. Unfortunately I can't provide a more detailed description because I wasn't explicitly allowed to. All I can say now is that the data is about people (social sciences).
Here is my model:
model = glmmTMB(Y ~ offset(log(offset.var)) + X1 + X2 + X2.squared + X3 + X2:... |
I am not clear on the difference between the two concepts but I am interested in air pollution exposure in a given period of time and in the literature, I know that lag models are used. I have also seen the moving average for air pollution, is this the same as lag models? If not, what is the difference between them?
|
Definition (Consistency)
Let $T_1,T_2,\cdots,T_{n},\cdots$ be a sequence of estimators for the parameter $g(\theta)$ where $T_{n}=T_{n}(X_1,X_2,\cdots,X_{n})$ is a function of $X_{1},X_{2},\cdots,X_{n}.$
The sequence $T_{n}$ is a weakly consistent sequence of estimators for $\theta$ if for every $\varepsilon>0,$
$$\lim... |
I am doing a regression to find what are the association between hospital admission (yes/no) and disease severity (mild, moderate, severe) using multinomial logistic regression.
I noticed that the regression estimates differ when I fit severe vs mild (mild as the reference category) and mild vs severe (severe as the re... |
I like to organize my studies always with the weakest hypotheses possible. In this case, I want to understand well what assumptions I should add to be able to study linear regression models in time series. I want to analyze how far I can go in the OLS context assuming that my sample is not independent. At the end of th... |
Suppose we want to solve
$$max_{\theta} \sum_{i}^N log f(y_i|x_i; \theta, \gamma).$$
Here, $\theta$ and $\gamma$ are two parameter vectors. The problem above derives an estimate of $\theta$, taking the parameter vector of $\gamma$ as given. Suppose we know that $\gamma\sim N(\mu, \Sigma)$. Then, we can plug in $\mu$ as... |
When I tried SPSS two-way ANOVA analysis, the result shows df is zero,and no value in F, Sig, and Mean square.
Does anyone know why this happened? Does it mean I need to input more data to analysis?
|
My LSTM model is configured as follows:
Input: 60 measurements of the same float feature over time (cell dim = 60)
Output: 3 classes
Training and validation function: cross entropy with softmax
Optimizer: Adam
Learning rate: 0.0005
Batch size: 180 (3 sequences)
The classes have the following distribution in the train... |
So for an assignment, I am looking at how plant foliage health (ranked on a scale of 0-5, 0 meaning the foliage is all dead, 5 meaning the foliage is all alive) has changed over time (I have data from 2008 and 2023) as an indicator of population health. It has been a while since I have done statistics so any help on wh... |
When you do LASSO or ridge regression, and pick the hyperparameter using cross-validation, the 1SE rule suggest to select not the best CV result but the one with the most penalization that's still within 1SE of the best value. That's meant to be a good approximation to accounting for the overfitting to the validation s... |
I am studying survival analysis and am trying to see if there's a way to probabilistically forecast future outcomes, using simulation or other means.
In the first example below, I fit a Cox model to the complete "lung" data from the survival package, showing 1000 months of outcomes. In the second example, I adjust the ... |
My answer still unaddressed for some unknown reasons. Given the constants $\{a,b,c,d,e,f$}, I want to compute the conditional mean $\text{E}[Z|S_1,S_2]$ and the conditional variance $\text{Var}[Z|S_1,S_2]$, with:
$Z=a+bX_1+cX_2+dY_1+eY_2+fY_3$
Is the following true?
$\text{E}[Z|S_1,S_2]=a+b\text{E}[X_1|S_1,S_2]+c\text{... |
I am confused about one aspect of the use of Gaussian processes for Bayesian inference. I understand that it relies on the assumption that your train and test data points form a multivariate normal distribution where you define a prior mean and covariance for the distribution. What I don't understand is that I believed... |
I have a question on how to account theoretically for the risk of competing event in a specific setting.
Suppose we have a cohort of patients at high risk of both infection-related mortality and non-infection related mortality.
We randomize these patients to receive treatment A, which has an effect in reducing the risk... |
I'm looking for a way to compare 2 (or more) igraph objects in R. These are trajectories in 3-dim which are a network of nodes and edges but are not necessarily the same number of either, just that they have a corresponding coordinate in 3-dim.
I think something like Procrustes could work nicely but requires an equal n... |
this is my first post.
I am not sure how to approach this problem, I would like direction or even an algebraic solution please.
I have to sort 70 different sized items out into 12 groups.
Each group has the same total allowed size, the size has minimum and maximum.
I want to know how to work out the total possible per... |
I need some clarification: Is it correct that when applying a VAR or VARMA model, there is only dependent variables? for example you will have a dependent variable X_t and dependent variable Y_t. Thus, there is no independent variables included in the data set.
|
I am using lmfit to fit a function in Python. This is my fit:
Log scale:
Lin scale:
where the histogram is my data and the dashed line the fit. The error bars are simply the sqrt of the number of counts.
I would like to decide on whether it is a good fit automatically, for this I am using the chi squared test. Despit... |
I asked a question originally here, but my notations were confusing and I couldn't convey properly in terms of statistics. Notations in statistics is a bit new to me, because my background is mostly related to deterministic sciences.
I have an i.i.d. random variable
$$ Y_1, Y_2, Y_3, ..., Y_M \sim \mathcal{N}(0, \sigma... |
Suppose $Y_i=X_i'\beta+\epsilon_i$ with $E(\epsilon_i|X_i)=0$. Consider the usual OLS estimator for $\beta$ using a random sample $\{X_i,Y_i\}_{i=1}^n$: $\widehat{\beta}=(\frac{1}{n}\sum_{i=1}^nX_iX_i')^{-1}\frac{1}{n}\sum_{i=1}^n X_iY_i$.
Substitute $Y_i=X_i'\beta+\epsilon_i$ into the expression gives $\widehat{\beta}... |
I'm comparing the performance of the Restrected ML estimator and the Baysean method for estimating a multilevel model by Monte Carlo simulation. As I'm a beginner in Baysean analysis, I don't know how to specify the prior distribution. In general, it is preferable to use an uninformative prior for a fair comparison. Bu... |
We regress $Y$ on categorical data $X_i,\ i=1,\ldots,\ p$. Suppose this is a large dataset and many of the rows of the design matrix are duplicated. We minimize the dataset as follows:
We average $Y$ for each unique row of the design matrix,
We perform a weighted regression with each row of the design matrix weighted ... |
I'm running Linear Mixed Models on a dataset. The assumption for homoscedasticity is not being met, however when I remove one independent variable, then it's being met. So all the other variables except this one are homoscedastic. To fix this and make the dataset fit the model better, could I just transform the indepen... |
I try to compare the logistic regression with XBGoost on the simulated data. What I found is that XBGoost AUC is better than that of logistic regression, even when logistic regression predict perfect probability (the probability used to generate binary outcome).
Please see details below:
Simulate X: generate 4 random ... |
I have recently read some work that features hypothesis testing of individual regression coefficients when the overall regressions featuring those coefficients have $R^2_{adj}<0$. One example is Schmidt & Fahlenbrach (2017), granted, in regressions where the primary variables of interest (the ones whose tests I am skep... |
I have a dataset from a class taught in two different ways, groupwork or lectures, and they chose which one they preferred after the first lesson and then again after the second lesson.
I'm not sure the best way to analyse this potential change in preference; the data is all anonymous and not paired from the 1st questi... |
I don't understand how we obtain the model that we test for a unit root in the ADF test. Let me explain better.
ADF test is used to test if a time series has a unit-root. We assume that the Data Generating Process of the time series is an AR(p).
$$Y_t = \rho_1\cdot Y_{t-1} + \rho_2\cdot Y_{t-2} + \rho_3\cdot Y_{t-3} +.... |
I have the below graphical causal model. I thought that when we apply the intervention i.e. do calculus we get to the graph on the right - that is deleting arrows going into the treatment (drug). to be clear i want to see effect of drug on cancer.
However when i used R daggify and use the ggdag_adjustment_set it only ... |
I am interested in testing for equivalence. I know about the TOST procedure, but many people who I work with do not, so I wanted to apply a method that they are more familiar with it. Specifically, I was about to use the two-sided $1-\alpha$ confidence interval of an estimate $\hat{\theta}$ to check whether this estima... |
I'm trying to find the variance of an ARMA(1,1) model of the following form:
$$y_t=a_0+a_1y_{t-1}+\epsilon_t+b_1\epsilon_{t-1}$$
where $\epsilon_t$ is a white noise process. I have found it more convenient to write this model in terms of $\epsilon_t$'s:
Writing using lag operators:
$$(1-a_1L)y_t=a_0+(1+b_1L)\epsilon_t$... |
I am fairly comfortable with Bayesian hierarchical regression models, but I am new to panel data analysis. As someone from the social sciences, I have found that the majority of resources on panel data come from econometrics, which can be confusing. The terminology, particularly the distinction between 'Fixed' and 'Ran... |
I am fitting a function to data. I want to tell whether the fit is good or not. Consider this example (which is actually my data):
Despite the definition of 'fit is good' being totally ambiguous, most humans will agree in that the fit in the plot is reasonable. On the other hand, the 'bad fit example' shows a case in ... |
I have a measured signal with additive noise that is sampled from a Rician distribution originally. For processing I divide the signal by the baseline measurement (first few points), and then end up taking the log of this signal to yield my final vector, y. I want to then use maximum likelihood to estimate the most lik... |
Due to the inequality $2\sqrt{xy}\leq x+y$, the geometric mean is always closer to the smaller value than the arithmetic mean.
In my situation, I need a "mean" that is closer to the larger value, so I thought of simply "flipping" the geometric mean $g(x,y)$ at the arithmetic mean $a(x,y)$:
$$a(x,y) + \Big(a(x,y)-g(x,y)... |
I have been seeing the notebooks provided by GPy to do a Coregionalized Regression.
The notebook is here. From what I see you have two inputs and two outputs, $X_1$ which is related to $Y_1$ and $X_2$ which is used to model $Y_2$.
Is there any way to make a coregionalized model that uses both the input of X1 and X2 to ... |
I have carried out a designed agricultural experiments with two treatments and recorded the effect on the abundance of a pest insect. The field experiment was divided into four blocks with two plots (replications) per block, resulting in 2 x 2 x 4 = 16 plots. Pest insects were counted per plant on the same 15 plants in... |
For classification problems, I wonder why using different kinds of loss functions makes sense. In particular, it feels like the model being learned, $p(y|X)$, can always be thought of as a binomial or multinomial distribution. Consequently, we can always minimize cross-entropy, as it is equivalent to the maximum likeli... |
I have multiple explanatory variables and one dependent variable.
Data for all are collected at an annual basis, time series, dependent on their t-1 value.
¨
Will use of ARDL Autoregressive distributed lag be appropritate to apply?
If so, some other questions regarding ARDL:
Do all, both Xs and Y, need to be I(1)? or i... |
I have data which has additive Rician noise. I found that the likelihood function for the Rice distribution in equation 2.3 here:
https://arxiv.org/pdf/1403.5065.pdf
For my analysis, however, we take a signal (a vector of N points) that has Rician noise, and then we transform it in the following way (given in Python co... |
I am looking for some guidance (published or otherwise) on performing PCA on left-censored environmental data (where data above an instrument's detection limit is reported). Any help is appreciated.
|
Overview
I want to perform a Bayesian model selection on many datasets and use these datasets to determine the required parameter priors.
Example Scenario: Coins
Suppose I have a collection of thousand coins produced by a machine that randomly produces fair and loaded coins.
The loaded coins are not identical, but thei... |
I have eight independent variables, and also think of adding a ninth variable for time. Is this too much? Are there any consequences?
Annual data for nine years.
|
I want to perform LDA in my cohort which is based on 140 inviduals distributed according in 3 groups. These individuals have undergone an analysis of 50 variables (gene expression). So my dataset is 137x51 (1 categorical variable + 50 numerical variables)
I want to perform LDA and see how the individuals behave using t... |
I have an ARMA(2,1) model of the following form,
$$y_t=a_1y_{t-1}+a_2y_{t-2}+\epsilon_t+b_1\epsilon_{t-1}$$
Re-arranging and using lag operators:
$$(1-a_1L-a_2L^2)y_t=(1+b_1L)\epsilon_t$$
solving for $y_t$
$$y_t=\frac{(1+b_1L)}{1-(a_1L+a_2L^2)}\epsilon_t$$
Using the definition of an infinite geometric series
$$(1+b_1L)... |
The form for MSE for $N$ data points with scalar values $Y=[Y_1,Y_2,...,Y_N]$ is given by the formula:
$$ MSE = \frac{1}{N} \sum_{i=1}^N (Y_i - \hat{Y}_i)^2 $$
How I see it, $ d_i = Y_i - \hat{Y}_i$, where $d_i$ is the Euclidean distance between the actual and predicted values for the $i^{th}$ data point.
Thus, extendi... |
I have a function that takes a few hundred parameters and which returns a score I want to optimize for - It's a piece of software attempting to play a game against another player. The parameters partially determine the actions of the player and so have an effect on my final score
I would like to find a set of parameter... |
I am conducting a study where I look at the interaction of 3 categorical variables and 1 continuous variable. However, I want to be able to see all the possible comparisons of these 4 variables. In the past, I have used emmeans but I noticed that emmeans only takes the lowest and highest value of the continuous varia... |
I am working on a model to account for flood risk and it is based on three variables:
Variable 1: drainage (float: 0 - 80)
Variable 2: estimated population (float: 0-2,000)
Variable 3: road network importance (float: 0-1)
All the 3 variables are highly left-skewed, but they are not correlated. Supposing that the 3 vari... |
Tests exist to determine whether a distribution is normal. For example the Shapiro-Wilk’s method. I'm wondering how to determine whether I'm powered to detect that my distribution is non-normal (e.g., null hypothesis is that skew is 0, alternative is that it is different from 0). I could of course run a simulation - I'... |
A literature search yielded no obvious answers, so I wonder here if there any feasible methods to estimate the following.
Suppose I have data $Y_i, \vec X_i$ indexed by $i = 1, \cdots, N$.
Note that $Y_i$ represents a scalar binary outcome, and $\vec X_i$ a vector of predictors.
I assume that my data are generated by t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.