All Questions
211,700
questions
0
votes
0
answers
11
views
Modelling Changes in Number of Tesla Charging Stations over Years
I am analyzing a dataset about different cities (from 3 different EU countries) over different years. For each city in each year, there is information about the crime rate, GDP, literacy rate, total ...
0
votes
0
answers
12
views
Finding the correct formula for a mixed-effects linear regression model
I have the following data:
...
0
votes
0
answers
11
views
Confidence Intervals Overlaping Although Significant Effects in glmer in R
Below is the output of a glmer:
...
1
vote
0
answers
18
views
When and why is a likelihood ratio preferable to a difference as a test statistic?
We want to know whether two sample sets {x} and {y} were drawn from the same distribution. The null hypothesis $H_0$ is that they are. As statisticians we test the hypothesis by calculating the p-...
0
votes
0
answers
5
views
How do I report sex differences in meta-analysis when some studies included only report data for one sex?
I am completing a meta-analysis of the sex differences in athlete ECGs. I have included studies that only talk about one sex to broaden the amount of data included. Is there a way to meta-analyse ...
-1
votes
0
answers
9
views
My total number of respondents are 61, but in frequency it is showing 89. all my frequencies shown are wrong now, please help [closed]
I ran the frequency tests at 1st, it was showing the right numbers (total 61). I had to recode one question, and after recoding it, the frequency for all the questions shows a total of 89, however, it ...
0
votes
0
answers
14
views
What linear formula is this model fitting? [closed]
The rstatix R package has a wrapper around the aov called anova_test. It allows to pass ...
1
vote
0
answers
7
views
Time series model without ARMA component and with exogenous variables
I am trying to know what is the most simple model for time series data, with exogenous variables. What is the most simple framework I can use ? Is it possible to build a model more simple than ARIMAX, ...
0
votes
1
answer
32
views
Does the matrix notation for OLS loss function assume that indexing a row from $X$ return a column or row vecotr?
I'm confused about the matrix notation of the loss function in ordinary least squares regression. In matrix form, the expression for a linear model is:
$$\hat{y} = Xw$$
Where
$\hat{y} \rightarrow$ ...
1
vote
0
answers
6
views
Custom contrasts in piecewise mixed effects models
I have longitudinal data from a two-group RCT in which the primary outcome was assessed at baseline, each week during the intervention, post-test and 5-month follow-up (6 times total). I am modeling ...
0
votes
1
answer
16
views
Derivation of acceptance probability from Linero, Yang (2018)
I am wondering how this paper Bayesian Regression Tree Ensembles that Adapt to
Smoothness and Sparsity by Linero & Yang (2018) derived the acceptance probability for $\sigma$.
The authors give $\...
2
votes
0
answers
52
views
How to interpret the population parameters of a Bayesian Hierarchical model?
This is almost certainly a fatal misunderstanding of mine / knowledge gap but I am confused as to how to interpret the population parameters of a Bayesian Hierarchical model.
This is incredibly ...
0
votes
0
answers
5
views
Mutual information between a vector of values and a statistic computed on the vector
I understand that the mutual information between two vectors X, Y from two distributions gives a measure of uncertainty of X knowing information about Y. But is it possible to measure mutual ...
0
votes
0
answers
12
views
Interactions in regression and choosing appropriate model?
I’m running the following regression model, where MR is a continuous predictor and grade, gender, and race are all categorical.
DV~MR + grade + gender + race
I’m also interested in how the 3 ...
0
votes
0
answers
2
views
Why detections count is not equal to unique truth count in YOLOv4 test result report?
I trained model using YOLOv4 on GPU, CUDNN and openCV (python) with AlexeyAB\Darknet with multi-label on windows environment. These labels are 25 classes (from 0 to 24). Then I test the model and I ...
0
votes
0
answers
12
views
Modelling 3-level MLM of longitudinal data in R
I have two questions regarding modeling a 3-level multilevel model in R.
I have a dataset of different variables that were assessed 4x as part of a longitudinal study. At each of the four assessments ...
3
votes
0
answers
42
views
On an infinite linear combination of chi-squared random variables
Question
Let $Z_i\sim\chi_{(1)}^2$ be i.i.d. chi-squared random variables with 1 degree of freedom. We define:
$$
W_{\infty} = \sum_{k = 1}^{\infty} \frac{Z_k}{2^{k}}
$$
I have interest in computing ...
0
votes
0
answers
48
views
Why does weights argument in glm change the outcome of lsd?
I have dataframe df.
...
0
votes
0
answers
12
views
Drawing Circular histogram in R [closed]
I want to visualize my results as in this diagram. I have p-values, log2 FCs and metabolites. how to create this in R. please help me. I am new to this.
1
vote
0
answers
19
views
Finding the smallest possible sample size of a 2x7 contingency table, given row-wise proportions and relation between row marginal counts
NB: this is not about power analysis.
Consider the following table, which has the following row-wise proportions:
cat_1
cat_2
cat_3
cat_4
cat_5
cat_6
cat_7
A
0.3222449
0.302041
0.208163
0.089796
0....
0
votes
0
answers
10
views
Adapting the Viterbi Algorithm
I'm currently doing an NLP course , and am going through some past papers but am stuck on this question (in the context of tagging , specifically for named entities , e.g. people organisations etc . ) ...
0
votes
0
answers
8
views
Tests for comparing ratio data from independent samples
The data are from an international study comparing participants' perceptions of how much more corporate CEOs make compared to unskilled workers (median ratios are used because mean ratios did not pass ...
2
votes
1
answer
72
views
Why can a model's SHAP values change on a new dataset?
Background
I'm validating a model and as part of the process I've been calculating SHAP values for different validation datasets.
I've calculated SHAP values for every sample in each dataset taken ...
1
vote
0
answers
13
views
Why are residuals correlated with prediction when using linear mixed model with low number of observations per group?
I have a database composed of n = 1000 observations of a variable to explain (y), an explanatory variable (x). The observations are grouped according to a variable "group", and I have only ...
0
votes
0
answers
14
views
Difference in Difference Regression (Showing a change in independent variable coefficient for treat-post group)
I want to measure the the change in the relationship between one of my independent variables (gold price) and my dependent (conflict deaths) for my treatment post group. Any help would be greatly ...
1
vote
0
answers
37
views
Unbiased estimator of $\sigma^4$
In the post [here], the user asked the question
$\{X_i\}_1^n$ is random sample from $N(\mu, \sigma^2)$ with unknown parameters. Find an unbiased estimator of $\sigma^4$.
The solution uses a property ...
0
votes
0
answers
5
views
link log and identity in GLMER
Say that we have a GLM model with the following formula:
outcome = b1x1 + b2x2 + b0
and outcome is cost, x1, x2 are independent variables
Fitted using log link with gaussian distribution, so log ...
0
votes
1
answer
15
views
Survival Analysis: Treatment not beginning of observation period
I am new to the field of survival analysis and looking for recommendations on how to deal with the following scenario:
I have data on patients suffering from a certain disease. Some patients receive ...
0
votes
0
answers
24
views
Data mining for categorical variables that correspond to modes of a continuous variable
Is there a good method or test to find categorical variables associated with modes of a continuous variable?
Take the velocity of a car as an example. You would expect there to be at least two modes ...
0
votes
0
answers
5
views
How does the training set size affect the uncertainty (variance) of performance estimation?
I am reading this paper which discusses the factors that affect the uncertainty (variance) in the performance estimation of a learner.
The authors say (p. 2, "The monotonicity of the learning ...
0
votes
0
answers
20
views
Error in quasibinomial regression using glm in R [closed]
I have the following dataframe:
...
0
votes
0
answers
12
views
which statistical test should be used for testing the significance of the mean differences in time series data?
I was looking to investigate if the monthly total return of US Treasury bond index depends on the magnitude of the US inflation readings.
So i downloaded the US CPI YOY monthly data for the last 50 ...
1
vote
1
answer
8
views
AB Testing with and without counterfactuals
My boss wants us to run a simple experiment where we manipulate the search results on our website. He is insisting that we must have counterfactuals for the results to be valid. The way I see ...
0
votes
0
answers
14
views
GAM of complex time-series: how to solve strong temporal autocorrelation?
I have a time-series of data from quasi-continuous sampling over multiple years and different sites. I'm interested in the diel scale at the various sites.
I a priori know that:
we have overall inter-...
0
votes
1
answer
24
views
GLM vs Kruskal-Wallis/ANOVA?
I am trying to analyse some data in R that has one continuous dependent variable (x) and two categorical variables (sex: M/F, surface: D/V). My main goal is to understand if sex and surface affect 'x'....
0
votes
0
answers
9
views
What are the main differences between a traditional receiver-operating curve and a Lorenz curve?
I am analyzing a dataset of cardiac echocardiographic exams, aiming to compare the diagnostic accuracy of a novel test in comparison to a standard one.
I have recognized that using Stata I can ...
1
vote
0
answers
15
views
Statistical significance of "bump" in DFT magnitude
I am simulating data according a statistical model and then calculating the magnitude of the DFT of the empirical histogram (full MATLAB code below). If the parameter ...
0
votes
1
answer
50
views
Consider $X_1, \cdots, X_n$ which are iid and have common pdf $f(x | \theta) = e^{-x+\theta}$ $(x > \theta)$
Consider $X_1, \cdots, X_n$ which are iid and have common pdf $f(x | \theta) = e^{-x+\theta}$ $(x > \theta)$. Why is $$\frac{f(x|\theta)}{f(y|\theta)} = \exp \left\{{\sum_{i=1}^{n} (y_i-x_i)}\right\...
0
votes
0
answers
7
views
Random forest for feature selection over large inhomogeneous data set
I have a very large dataset (500,000 examples, 3000 features with a lot of missing values). I want to run a random forest algorithm for feature selection with sklearn. Unfortunately, I cannot load the ...
1
vote
2
answers
41
views
Which type of t-test is best to use for my data
I'm looking for some guidance on which type of t-test is most suitable to use for my data.
I want to compare the means of the variable 'Rate' between two groups in my data. I have 6 years of data and ...
0
votes
0
answers
28
views
GLM or GLMM design for different tasks
I am conducting a study involving 70 participants diagnosed with Mild Cognitive Impairment (MCI) and 75 without MCI. All participants were engaged in taxonomic semantic, thematic semantic, and ...
0
votes
0
answers
7
views
Power-law fitting with x-y relationship [closed]
I would like to fit a power-law distribution to data taking into account the x-y-relationship. I tried plfit & powerlaw package for python. But the problem with them is that if I shuffle the y-...
2
votes
0
answers
34
views
Random partial correlation matrices
Suppose that we simulate random correlation matrices by assigning iid $U(-1,1)$ random variables to all off-diagonal entries and accept matrices $\boldsymbol\Sigma$ that are positive definite. ...
1
vote
1
answer
12
views
How can I tell if a clutser-randomised crossover trial has made a unit of analysis error?
I am studying the following paper:
https://jamanetwork.com/journals/jama/fullarticle/2698491
This is a cluster randomised control trial with crossover. I want to ensure they have not made a unit of ...
0
votes
0
answers
14
views
Questionable results using powerCurve on nbinom2 glmer [closed]
I have a problem with a power analysis using powerCurve. The data show a drastic decrease over time, but powerCurve suggests that I would need data from over 100 sites, to be able to show this. I get ...
4
votes
1
answer
168
views
Does it make sense to fit linear regression on single-case studies?
Just on principle, do you think it would make sense to make linear regression models for each individual in a study and treat replicates as data points? I don't mean reporting p-values or anything ...
0
votes
1
answer
29
views
How to perform a 2 sample Kolmogorov-Smirnov test controlling for a type II error instead of type 1
I have four completely different sets of two samples and want to check for each set if both samples come from the same distribution, so four Kolmogorov-Smirnov tests total. If it's going to be ...
0
votes
0
answers
4
views
How to calculate IoU metric if there is no mask
For example: YOLOv8 segmentation doesn't output any mask for concrete class if no masks was detected, but there is a mask for this class in the ground truth masks.
I should set metric to zero for such ...
0
votes
0
answers
18
views
Data analysis - ranking observation based on multiple parameters [closed]
I am currently looking for a method to rank my observation based on three numerical parameters. I would like to maximize two parameters and to minimize one in order to rank my observation. I have been ...
0
votes
0
answers
6
views
Nonparametric MANOVA with nested problem
I would like to find out if my dependent variable Y which is a measure of the similarity of two shapes to each other and has no normal distribution, is dependent on factors A, B and C. To do this, 4 ...