instruction stringlengths 9 38.7k |
|---|
Is it possible, given that Hotelling's T² (or Hotelling-Lawley Trace for that matter) is just a generalization of Student's T, to reformulate the same testing procedure (to test if two vectors differ) as a relative Likelihood comparison between two multivariate linear models?
Analogous to expressing a t-test as a linea... |
I have written a python script that uses a variety of different integrators to simulate the gravitational N-body problem. I would like to compare the positions obtained from my simulation to the positions as observed/calculated by an ephemeris. Suppose that each of the N bodies have a position array of shape (t, d) whe... |
Is Bayesian Analysis, and the judgement it allows on the chance of a true effect being significant despite an overall analysis being not statistically significant, something that can be retrospectively applied to published data?
|
the question states that no data set with only 5 terms has an outlier, and I'm stumped
you're given a set of 5 numbers in ascending order
$$
x_1, x_2, x_3, x_4, x_5
$$
I started by finding the IQR, so
$$
\frac {x_4+x_5-x_1-x_2}{5}
$$
then I used the outlier formula
(UB = Upper Boundary)
$UB = UQ + 1.5 * IQR $
to get
$... |
I started to self-taught reinforcement learning a few weeks ago. These days I've encountered a problem with the definition of the reward function.
The reward function, defines and quantifies the reward the agent will get, at (s) or (s, a) or (s, a, s') [depends on the reward function we defined in the specific problem]... |
I have a CLMM model that accounts for repeated measurements within individuals (ID) over time, using mixed effects.
clmm1 <- clmm(response ~ time + group + (1|ID), data=DatasetLong)
I'm seeking methods to assess the model fit, similar to what's available for mixed_models(), such as using the simulate() function or DH... |
I have chosen survival analysis and mixed effects to be analyzed in a joint model using the frailty pack. I am not sure if I am dong it right and I need more expert insights.
I am testing people's recall of 9 numbers on screen. Their status (success) is 1 if they score all 9 and 0 if they don't. I have repeated measure... |
I'm learning VI, and specifically Coordinate Ascent Variational Inference, and I'm wondering when we actually get a strong benefit for this method.
In particular, the objective is:
$$
\min D_{KL}(q(\theta)||p(\theta||D))
$$
And the whole point is that we can minimize this distance without knowing $p(\theta||D)$
However... |
I'm basically playing around with some lipidomics data to practice, so my question is purely theoretical.
I wanted to see if I could find lipid classes that differ between two groups and I was comparing the results. When I use hypothesis tests (parametric and non-parametric) I consistently find one lipid class that is ... |
I have a well-phenotyped survival dataset (i.e. it has a high number of relevant covariates for a study of mortality) for which I estimate how certain conditions influence life expectancy (LE). It would be much more informative to compute this in lost or gained years of life rather than stating a hazard ratio from a Co... |
I have an imbalanced time series dataset for use in a time series forecasting problem for regression (forecast 1 video of 24 hour data (144 7x7 images) given a 1 video of 24 hour data (144 7x7 images)). I did a test, in which I filtered the data from the training set, so that the training target data was equal to or le... |
For my analysis, I'm interested in a particular subset from a non-normally distributed population. I would therefore like to generate a sample from that population. The sample will have drastically different mean/variance and has a "known" shape that may itself be normal, "seminormal" (looking normal-ish but not a smoo... |
I am following the process described in that image --->to generate my high-quality pseudo-mask for the task of semantic segmentation. However, after training a classification model to obtain the CAM (Class Activation Map), I notice that the CAM is of undesired quality(Why are there overlaps of different classes in the ... |
I see different answers everywhere. Intuitively, I would think if residuals are autocorrelated then there is some information that you are not incorporating into your model and is a sign of a biased fit. However, I see sources saying it is not biased, but not the "best" estimate.
What is the answer and why?
|
Let's assume I have actual numbers (randomly generated) between 1 and 1000. Let's further assume, my prediction model tries to predict the actual numbers. My "forecasting" model is a monkey that true-randomly presses buttons between 1 and 1000. Essentially, it is the same function which is used to generate the actual n... |
A builder claims that heat pumps are installed in $70\%$ of all homes being constructed today in Chennai. Would you agree with this claim if a random survey of new homes in this city showed that $8$ out of $15$ had heat pumps installed? Use a $10\%$ level of significance.
Here the null hypothesis(H$_0$) is $p = 0.7$ an... |
I am using the in-built GLM function in R to identify the model that best predict frogs' occupancy based on survey data. One of the independent variable (saturation) is highly skewed, as 36 of the 57 sites had 100% stream saturation. I used the skewness function with the moments package and I had a value of 1.73, would... |
I have a problem where I am mapping from 1D input sequences of length L to 1D output sequences, also of length L. These sequences contain numerical data. The input sequence is the time evolution of a particular physical quantity of a material, and the output sequence is the time evolution of a related physical quantity... |
I am learning statistical analyses for experimental and quasi-experimental studies.
From my class and by searching answers here and asking ChatGPT, I have some preliminary understandings of Difference-in-Difference analysis, repeated measures ANOVA, and ANCOVA.
Please correct me if I'm wrong: It seems both DiD and repe... |
I'm hoping to get some clarification on a "mismatch" between some simulated data I'm creating and the resulting model fit by R's nlme library. Specifically the random effects parameter estimates. I'm desperately trying to balance the length of the query with enough details to be complete and helpful to others who might... |
Hi I'm wondering if I may gain some insight on how the predict() and predict.gam() function work.
Below I have my GAM model and the name of my original dataframe I am using.
chamber_data_gam <-read.csv("./data_chamber_Gam.csv")
This dataframe has observed values for my response variable CH4.
c_model<-bam(CH4~ s(waterp... |
i am new in R and studying statistical analysis for experiments, please help me~
I have 3 age groups (Y/HO/LO) and 2 conditions (Related/Unrelated). I am running a linear regression model on RT (reaction time) with Group and Condition as fixed effects, Subject and Item as random effect:
mdl_RT <- lmer(Target_RT ~ Group... |
I see many questions on this topic, but I promise none seem to explain what I'm after.
I want to understand how to tie the coefficients I get from a logistic regression model back to the model equation that relates log odds to the sum of coefficients and variables.
Consider this example. Below are the predicted values ... |
I have information regarding 80 metabolomics measurements for 3 individuals who had a treatment (two of them are alive at the end of the study, one is dead).
Patient
Time
Metabolite1
Metabolite2
1
10 nov
1.07
0.4
1
11nov
2.05
0.86
1
12 nov
0.76
0.5
...
...
...
...
2
8 nov
2.1
1.01
...
...
...
...
Mo... |
There is a statement that got my attention recently, which is "ANOVA is just linear regression".
I was watching this video that seemed to explain the relationship between the two topics.
At one point the teacher explains the SSE breakdown between $\text{SSE}_{Reg}$ (i.e. the variability explained by the model) and $\te... |
I am computing the following model in R, using lme4::lmer:
m3 = lmer(e ~ (X*Y*Z) + (1|ID/R), data = data_transform)
e is a continuous variable. X, Y, and Z are categorical factors. ID is the subject ID and R is the measurement repetition. The error was measured multiple times for each subject under the conditions, giv... |
In the SPSS Statistics Algorithm Manual Version 29 (p.132 in the pdf) the computation of the two-sided p-value for the bootstrap procedure is described as follows:
Sadly, because of different RNGs, I cannot verify the computation via R and have to rely on the manual in order to recreate SPSS's computation.
What is unc... |
I am performing a statistical analysis of a clinical study where the dependent variable is a binary variable (whether or not a myocardial infarction occurred). As a novice, I first learned the following statistical analyses, but I would like to add new statistical analyses or replace previous studies with other analyse... |
Is it necessary to average the shap values that have been processed through cross validation?
I saw an online site called 'towardsdatascience' that calculated the shap value through 10 CV and then averaged it. The author stated that the reason for averaging was reliability. My question is, do I really need to average... |
Currently I'm struggling to handle the following question.
Suppose $x_i,(i=1,2,\dots,n)$ follows Poisson distribution:
$$p(x_i|\theta) = \frac{\theta^{x_i}e^{-\theta}}{x_i!}, \quad x_i\in\mathbb N,\quad \theta>0.$$
If $\theta|(\alpha,\beta)\sim\Gamma(\alpha,\beta)$, we have
$$p(x_i|\alpha,\beta) = \binom{\alpha+x_i-1... |
A study I’ve read shows that all of the results relevant to me were at >0.1 p value. Does it mean that the study used a <0.1 p value as significant? Is there still at possibility the study choose <0.05 as a significant p value, but just wrote the p values as >0.1 because they not only was higher than 0.05, but also 0.1... |
I have dataset which is split into train:val:test=80:10:10. I have carefully separated the data such that there is no overlap between them but each set is representative of the overall population. I understand that, train is used to fit the model, validation is used to tune the hyperparameters and test data provides un... |
Consider a standard ERM problem based on quadratic loss where we solve
$$
\hat{f}_n\in \operatorname*{arg min}_{f\in \mathcal{F}} R_\text{tr}(f)
$$
where $R_\text{tr}(f)=\frac{1}{n}\sum_{i=1}^n (Y_i-f(X_i))^2$, $\{(X_i, Y_i): i=1,\dots, n\}$ is the training dataset, and $$\mathcal{F}:=\{f_\theta: f_\theta(x)=\sum_{i=0}... |
I have encountered a problem here. Suppose $x_1,x_2,x_3\in\mathbb{R}^p$ are three independent r.v. following $N(0,I_p)$, then I want to derive the value of
$$E\bigg\{\big(\frac{\beta^T(x_1-x_2)}{||x_1-x_2||_2}\big)^2\big(\frac{\beta^T(x_1-x_3)}{||x_1-x_3||_2}\big)^2\bigg\}$$
or equivalently, the covariance
$$cov\bigg\{... |
I have conducted a latent class trajectory analysis using growth mixture models on a sample of 150 individuals. Individuals are assigned to 2 classes - 1 consisting of 18 individuals and the second 132. In testing predictor variables based upon the probability of being assigned to class 1 I have used some static time v... |
Consider the VAR(1) process $X_t = \Phi X_{t-1} + \epsilon_t.$
Is there a generally accepted decomposition for the coefficient matrix $\Phi$ that would decrease the degrees of freedom?
My initial thought is to explore a technique akin to factor analysis, but I'm uncertain whether this approach is widely accepted or if ... |
I am looking at a case where you take a 2-year degree. I do not have panel data, each person is observed once. I have cohorts for the years 2013-2019.
I have two groups. A control group and a treatment group (persons subject to reform). In 2019, there was a reform. Which means that the treatment group in the 2018 cohor... |
I'm applying VAEs to sections genomic data (haplotypic vcf format, so binary variables), with one model being trained on each section. Depending on which section I'm applying these methods to, my models sometimes exhibit mode searching behaviour quite heavily.
These are PCA plots of my data for 4 sections before and a... |
Given the following data and model, we'd like to assess if treatment affects the effect of conc on uptake.
library(gratia)
library(tidyverse)
library(mgcv)
# Data
data(CO2, package = "datasets")
plant <- CO2 |>
as_tibble() |>
rename(plant = Plant, type = Type, treatment = Treatment) |>
mutate(plant = factor(plan... |
I've been working with a SARIMAX model for forecasting and found myself struggling to accurately interpret its long-term forecasts. To better understand the underlying mechanics and perhaps pinpoint where my confusion originates, I decided to revisit the fundamentals and examine the behavior of a simpler AR(1) model wi... |
I am confused what to sample for getting the prediction $y_{t}$ if I have access to the previous observations $y_{1:t-1}$ and the hidden states $z_{1:t}$.
I want to predict the observation at time $t$ but I don't know the standard way of doing this in a HMM.
The distributions in the question express different predict... |
In Bayesian inference, there are two parts: the problem formulation, where the structure of the problem with parameters is built, and the solution of Bayesian inference, through MCMC, grid or normal approximation, etc. Most references I see spend the vast majority of their time on the solution space in Bayesian infere... |
Hi I am using Cox regression to do some survival analysis.
I have one continous predictor variable called "biomarker" and two binary categorical variables sex and diabetes.
I want to get the interaction p-values between sex and "biomarker", in both non-diabetics and diabetic patients.
I am currently using the following... |
I would like to know if DeLong test valid for comparing two independent AUCs? or it is only for two dependent AUCs?
|
I've tried to model a multicategorical multilevel mediation by using the logic of Hayes et al., 2014 on multicategorical mediation and an implementation of a multilevel mediation.
Here's a MWE:
library(reshape2)
library(lme4)
# Number of subjects
n_subjects <- 30
# Number of conditions
n_conditions <- 4
# Levels of c... |
I run a multinomial logistic regression. The input data are given below:
And the results are available here.
> summary(factors)
Call:
multinom(formula = Juice_knwolege ~ Age + Gender + Education +
Access_to_resources, data = Juice)
Coefficients:
(Intercept) Age GenderMale EducationSecondary Educatio... |
I'm not sure whether the McNemar test is an appropriate choice in the situation below. I'd like to see whether an intervention had an effect on screening adherence, which can be done only once your life. For instance, before the intervention the proportion was 15% (15/100). After the intervention, this proportion (in t... |
I want to examine genderdifferences in three variables, and also an interaction effect. I am going to use ordinary least square regression, but i dont know if i should split the dataset by gender and do seperate regression analysis, and them compare the resualts for each one.
The dataset is aproximentally equal for mal... |
I would like to compute prediction intervals for LightGBM at the sample level. In other words, given a certain row to be classified (supervised classification, not regression), what is the upper bound for my prediction, and the lower bound for my prediction, with a 90% certainty.
I have thought a bit about possible app... |
Let $\theta_i$ be a Bernoulli random variable of success probability $p$.
Given two fixed sets $A = \{a_1, a_2, ..., a_N\}$ and $B = \{b_1, b_2, ..., b_N\}$ where $a_i$ and $b_i$ are constants.
For any realisations $Z = \{\theta_1, \theta_2,..., \theta_N\}$, wee define two random variables $X$ and $Y$ such that:
\begin... |
I am learning about Bayesian analysis from some slides that were handed down to me (as opposed to a proper textbook on the subject). My knowledge on the subject is thus limited, but I was hoping to get some help in understanding what the following means.
The slides have the following paragraph:
Note that the original ... |
I have performed a study in which I converted performance on a cognitive test to z statistics and from that derived t scores. We would like to examine the relationship between t-scores and various demographic variables. Is it appropriate to conduct linear regression using t-scores as the dependent variable?
|
Consider three variables, $y, x, z$. Variable $y$ is a linear function of $x$ and $x$ has a 'part' that is driven by $z$ and another that is not. For example, the volume traded of a certain stock ($y$) is driven by last month's returns of this stock ($x$), which depends on a 'market' component (i.e., how well is the ec... |
I'm still a bit new to the world of statistics, so I apologize for the naivety of this question.
I have three populations each with fifteen features, and I would like to determine if Population C is more similar to Population A or Population B. Is there some test which will allow me to come up with one statistic to det... |
When I run this code, I see the episode length mean continually increase (like a good model should), while the episode mean reward stays the same at -1, which is how the sutton_barto_reward system works.
import gymnasium
from cartpole import CartPoleEnv
from stable_baselines3 import PPO
from stable_baselines3.ppo.polic... |
$\operatorname*{argmin}_\beta\{\|y-X\beta\|^2 + \lambda\|\beta\|_1$, where $X$ is orthonormal. $\beta \in \mathbb R^d$. $X = [x_1,\ldots,x_n]^T$ and $y=(y_1,\ldots,y_n)^T \in \mathbb R^n$. $X^TX=I_{d\times d}$.
I am attempting to find an expression for \beta, which solves this lasso optimazation problem for practice th... |
The lifetime of a device is a continuous random variable having the continuous uniform distribution $\mathrm{Unif}(0,15)$. Suppose that under an age replacement strategy a planned replacement at age $T=12$ costs 300 dollars, while a failure replaced at time $X <T$ costs 350 dollars. Determine the long-run average cost ... |
How does one find the covariance structure theoretically for a Bernoulli GLM?
For Normal LMMs ($y_{ik} = x_i^T\beta + \epsilon_i + u_k$) it's quite straight forward. For observations within the same group we can calculate
$$ cov(y_{ik},y_{jk}) = cov(x_i^T\beta + \epsilon_i + u_k, x_j^T\beta + \epsilon_j + u_k) = cov(\e... |
I've been working on simulating ARMA (Autoregressive Moving Average) time series data in Python and fitting ARIMA models using the SARIMAX class from the statsmodels package. However, I've encountered some puzzling results in the parameter estimates, more specifically when including an MA component in my data generatin... |
I need to ask you for help on what method to use to calculate the reliability and validity of a scale that I measured repeatedly on the same subjects during an experiment.
Let me explain: normally when you want to measure the reliability of a construct you do an EFA, a CFA, Cronbach's alpha, composite reliability, AVE ... |
I just started a new job that is a bit more stats heavy than my old DS job. In my old gig I was mainly in the domain of scraping, descriptive statistics, visualizations, dashboards, etc. So I'm having to brush off the old stats knowledge.
I have acquired some new data and my boss wants to know how it pertains to our ex... |
I am looking to create an analysis showing how many people in a given country have more than than X dollars in income.
I know the average income, population count, and Gini Coefficient of income disparity.
Is it possible to back into X with those three data points?
Thank you so much in advance and apologies is this is... |
I have a large dataset (n > 500,000) which I'm building a linear model with lm(PV1READ ~ PV1MATH + PV1SCIE + ST004D01T). Tests for Normality, No multicollinearity, Independence seem fine, but it keeps tripping up on Homoscedasticity. The Breusch-Pagan test ols_test_breusch_pagan(mdl) gives:
Chi2 = 930.8976, Prob > Chi... |
I need a little help with my meta-regression interpretation. The effect sizes are based on odds ratios.
I have used rma in the metafor package:
reg <- rma(yi = es,
sei = se,
data = df,
method = "ML",
mods = ~ Group)
which produced this table:
b see zval p ci.lb ci.ub
Intercept -0.... |
I am building an audio classification system using CNN. My dataset consists of different audio I have recorded and spliced to equal time lengths. Like with any other common ML or DL tasks, I am to split my dataset into training and testing data and evaluate my model. However, my professor said that the testing data mus... |
I'm unsure if this complex allocation rule is appropriate for RDD. I will have data for a staggered rollout treatment where there will be about 10 rounds of selection over two years for services (treatment). We have administrative data that will be updated for each round that we use to rank individuals on "Score 1", fl... |
My problem is that I have data of sexual assertiveness (7 point Likert-scale, SAQ) and relationship satisfaction (5 point Likert-scale, RAS) but I would like to divide the sexual assertiveness variable into 3 groups: low, medium, and high sexual assertiveness. This is because my hypothesis is that people characterized ... |
A trading card game that is called Flesh and Blood (description and rules here) has two players construct a 60 card deck and the hand limit is 4. Player 2's Deck color combination: 60 cards in deck; 34 are blue, 17 are red, and 9 are yellow. Statistical scenario: Player 1 is at 26 Health Points and has 1 card in hand. ... |
I have 30 animals (factor: animal_id, 30 levels) which have been treated with a drug or a vehicle (factor: treatment, 2 levels). Their activity has then been measured with two sensors (technical replicates) simultaneously (factor: sensor_id, 2 levels), yielding 1 reading per sensor for each day, over 30 days (variable ... |
I have the following situation:
I'm trying to model groups arriving to some location by some process. I assume the distribution on some interval $T$ is a Gamma-Poisson mixture where $\Lambda \sim Gamma(k, \theta)$ with $k$, $\theta$ (shape, scale) known. I then get the marginal distribution of the number of groups arri... |
I wanted to compare biases and mean square errors for three estimators of variance. I took one unbiased (first) estimator and two biased.
W1=c()
W2=c()
W3=c()
n=5000
for(i in 1:1000)
{
X=rnorm(n,0,2)
S_n=sum((X-sum(X)/n)^2)/(n-1)
S1_n=((n-1)*(S_n))/(n)
S2_n=((n-1)*(S_n))/(n+1)
W1=c(W1,S_n)
W2=c(W2,... |
I'd like a book or any PDF that teaches about linear regression in a complete way. That is, I want something that, for instance, doesn't use any random variable without stating its domain or the $\sigma$-algebra associated with it. Or at least tell which assumptions are being made (say which distributions are known and... |
I have a question regarding question 2 of chapter 6 of "All of Statistics" book by Larry Wasserman.
let: $$X_1, ... , X_n \sim \operatorname{Uniform}(0, \theta )$$
and let:
$$\hat{\theta} = \max(X_1, ..., X_n)$$
be the estimator of the parameter $\theta$.
My question is that how one can calculate the Expected value of ... |
I have a numeric variable $\{x_i\}$, which corresponding weights $\{w_i\}$, where the weights are survey weights from a corresponding complex survey design.
I want to visualise a weighted histogram of $\{x_i\}$ that also communicates the uncertainty on $\{x_i\}$ due to sampling error. What are some good ways to communi... |
I have a set of objects S1 = {a1, b1, c1, d1, ..., z1} that perturbed a reference object q and were tested for effects in Experiment 1. The measurements for S1 were normalized to q.
From this dataset, I derived modifications S2 = {a2, b2, c2, d2, .., z2} for further testing using machine learning, and included as refer... |
I am trying to perform a simulation for Poisson regression.
I generated X1,X2 from $\mathcal{N}(0,1)$, and then set $\lambda=0.5X1-0.3X2$. After that, I generated $Y$ from a Poisson distribution with $\lambda$ as its mean.
I generated 10000 samples, and want to fit the Poisson regression. I accidentally forgot to add t... |
I ran Hayes process Macro 8 in SPSS. In my results below, you'll see the index of moderated mediation is significant; however neither of the interactions in this model are significant. Model is below.
How do I make sense of this? Does this simply suggest that while paths a and c' do not depend on levels of moderator, ... |
I am working on a project estimating salmon escapement through visual spawner surveys. We conducted weekly surveys and counted the number of individuals we observed. These numbers were used in an Area-under-the-curve model to estimate the number of salmon present across the entire survey period. This model provides a c... |
I am trying to find the Fisher information of a binomial distribution where $n=2$ and $p=\theta$. I have the log-likelihood function as $$n\ln2 + \sum^{n}_{i=1}x_i\ln \theta + (2n-\sum^{n}_{i=1}x_i)(ln(1-\theta))-\sum^{n}_{i=1}(\ln x_i!+\ln((2-x_i)!))$$I have the second partial derivative of the log-likelihood function... |
QUESTION UPDATE due to the comments I have received so far.
The data, the example and the results below are fictitious, as I am interested with the correct interpretation of these results.
Suppose I study the relationship between the human weight and its height with a Bayesian linear model. Suppose I plot posterior pre... |
I'm currently working on implementing the Upper Confidence Bound (UCB) algorithm for the Multiarmed Bandit Problem, but I'm encountering some difficulties with the computation. Here's what I've understood so far and where I'm stuck:
In the Multiarmed Bandit Problem, we have a set of slot machines (arms), each with an ... |
I have 4 groups (G1, G2, G3, G4) consisting of samples of biological material, and we test them in order to identify are there any bacteria present. We also know that all of the samples contain virus X. So the idea is to see is there at least one bacteria present (coinfection) in a sample, and then to test whether the ... |
I am confused while studying VAE(Auto-Encoding Variational Bayes).
My problem is as follows:
We have a continuous variable $x$ and a random variable $z$.
The dimensions of $x$ and $z$ are different, with $x$ typically representing an image.
The $z$ is generated from some prior distribution $p_{\theta^*}(z)$.
And the $x... |
I'm running a mixed effect logistic regression model (function glmer from the package lme4) in RStudio with two random intercepts ad three different predictors as fixed effects. All the indipendent variables are categorical. However, although the model does not show any convergence problem, there is something strange.
... |
Consider the market model for security $i$,
$$
R_{i,t} = \alpha_i + \beta_i R_{m,t} + e_i.
$$
With daily frequency, the error term has an ARCH pattern, so I use ARCH(1) or GARCH(1,1) models, whereas at monthly frequency, OLS estimates work fine.
Question 1: Is it appropriate to compare these two values ($\beta^\text{OL... |
I'm now studying for a partial least squares regression (PLS-R).
Unlike PCA, it says that score vectors are orthogonal, while loadings are not.
Does this mean that loading vectors (which are actually just regression parameters) can happen to be linearly dependent?
At first I thought loading matrix should be linearly in... |
I want to evaluate the repeatability of measures for a force device (the same records consecutively at the same conditions with the same device). Is there some option to check how many measures are required?
A few may be due to chance or the error being very large; many are not economical and may also present variation... |
I know that in the case of the normal distribution, the MLE estimates of the mean and the variance are independent. My impression is that this is a rare property for a distribution to have. Are there any known results that guarantee this property or the weaker condition of being uncorrelated, or are there other well-kn... |
I have very simple custom model which I am doing experiment with, I have model which takes one input and produce one output. the model equation is: y = sin(ax + b). (a) and (b) are single learnable variables, where y is the output and x is the input. I am using (target - y)**2 as loss function. The following is the set... |
I'm working with repeated cross-sectional data where each measure comes from a different sample of respondents per neighborhood. My study aims to evaluate the impact of varying police patrol levels (more patrols, fewer patrols, and normal levels) on neighborhood livability scores, using pre- and post-intervention measu... |
I apply a Cox proportional hazards model to some machine failure data and I want to know, "how good" my model is. Metrics like RMSE or MAE are said to be not suitable for this kind of model, "because the difference between a censored value and the predicted value could be due to poor prediction or due to censoring" (ht... |
I have the following data structure:
X R Y Z ID YZ error
<fct> <fct> <fct> <fct> <fct> <fct> <dbl>
1 G 1 18 6 3 18,6 20.1
2 G 1 36 12 3 36,12 35.9
3 G 2 18 6 ... |
Background
I have (unbalanced) panel data of a set of agricultural firms. I am attempting to estimate the effect of the surface area of crops (wheat, potatoes, onions, sugar-beets, corn) on the fixed yearly cost of a farm.
Regrettably (but not surprisingly), a fixed effects estimation of the data shows that very littl... |
What are the possible issues, if any, of estimating a standard two-dimensional $VAR(p)$ of $I(0)$ variables that are first differences of $I(1)$ variables whose potential cointegrating relationship has not been tested? Also, what hints, if any, might you want to look out for in this $VAR(p)$ estimation that might indic... |
I cannot spin my head around how to implement linear restrictions into multivariate models. Or, at least, what is the basic intuition behind it.
Let's start from the easy stuff I understand:
Restrictions for single model
We have a single model (1):
$$y = \beta_1 x_1 + \beta_2 x_2 + \beta_3 x_3 + \epsilon$$
Then, if we... |
I think if it wasn't for the outliers on the tails, I'd be sure this normal QQ plot is light tailed but I'm not sure.
I'm aware I can use formal tests to find out, but I was told statisticians like to analyse plots without having to resort to tests if possible, and I'd like to develop the same type of intuition.
Edit:... |
Consider the random variable $\textbf{x} = (x_1, x_2, ..., x_N)$ where $x_i \sim N(\mu_i, \sigma_i)$ for $i=1,2,...,N$ and $\textbf{x} \sim N(\mu, \sigma)$ where $N$ stands for normal distribution, $\mu = E[\textbf{x}]$ (expectation) and $\sigma$ is the covariance matrix and $\sigma_i$ is the standard deviation of $x_i... |
I have a geographical map of a region, with a few locations of interest on it. For these locations (a dozen - edit: I just counted them, they are actually 25! Sorry for the underestimation), I want to represent how long people stay there, on average.
What is the best way to represent duration?
I was thinking about usin... |
I am attempting to perform an autocorrelation study using python on a discontinuous time series dataset. To share a bit about how my data looks like, it is a single column of values, which spans over 18 time slots per day, for multiple days.
My problem is that if I use the "traditional" autocorrelation function plot fo... |
Suppose one performed an experiment, which was a bad one - judged by quality control measures. Can one still rely on the p-values generated by statistical tests on this data?
As a specific case, suppose it is reasonable to think of the experiment's failure as causing a reduction in the amount of data generated - in a r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.