instruction stringlengths 9 38.7k |
|---|
I'm modelling binary ecological data using a GAMM and I'm having trouble understanding what the 'Select = TRUE' option is doing. As I understand it, 'Select = TRUE' is meant to add extra penalization to all smooths in the model (i.e. lower EDF of covariates and sometimes knocking them out of the model entirely), but I'... |
I am trying to self-teach probability and statistics for Machine Learning career. However I want to learn very well as doing research in AI is my goal.
Which books should I use to learn probability, frequentist statistics and Bayesian statistics and which one should I go first ?
I also know some basic probability, the ... |
I watched this (with time marker to important moment https://youtu.be/TCH_1BHY58I?t=3040) video of Andrej Karpathy explaining some language model, and in ~50:40, he explains how to pick good initial learning rate. He does 1000 consecutive training steps while gradualy increasing learning rate. Then he plots LR versus l... |
I have several variables and I would like to test for possible linear correlations between. However, the data is across 2 groups, and there is a significant group difference in these variables. I know I could just correlate within subgroups, but then I would have only half the data points in each subgroup. Would it be ... |
I have a correlation of 0.777 but only a p-value of 0.069 (not significant) on my Pearson's test. My sample size was of 54. Should my hypothesis still be rejected even if there is a correlation? Is the non-significant p-value due to sample size?
What can I say about the hypothesis in this case?
|
My apologies if this has been previously answered.
I am fairly new to statistics of clinical trials and I want to know how the expert statisticians handle continuous variables like "time to event" to identify responder groups and non responder groups within a clinical trial.
I am assuming Survival graphs (https://cran.... |
I am new to R and would like to follow the answer to this: Simulation of logistic regression power analysis - designed experiments
I would like specifically to know if I have power to detect a contribution to the model in an interacting co-variate term (Combined represents gene*prs_standardised). My data is case/contro... |
I am currently working on a dataset (count data) from a rather heavily unbalanced sampling design.
In particular, I would like to be able to predict the abundance of the studied species according to multiple landscape and meteorological metrics. To do so, I have tried to build GLMMs (with a negative binomial distributi... |
I'm following the derivative calculation of Batch Norm paper:
Something doesn't seem right. In the 3rd equation shouldn't we lose the 2nd term as the sum is equal to 0 ($\mu_B$ is the mean of the $x_i$ over the batch)?
And worse, in the 4th equation, for the same consideration, once we will sum the loss over the entir... |
I've heard that one solution to analyzing compositional data (in my case five predictors that are proportions summing to 1) is to simply remove the intercept.
This seems like a much simpler solution than transforms, and allows all predictors to be included.
I'd like to double-check that this is an acceptable approach. ... |
I have implemented a beta regression and am a little confused on how I should interpret the coefficients of my model. For context, both my independent variables and dependent variable are expressed in percentage form, ranging from [0, 1]. The only exception is one independent variable which takes the binary value of 0 ... |
I have a dataset were a small number of individuals were sampled each year for their sex. I would normally use a binomial model (link = logit), to analyze sex ratios, however, in this system, the ratio of F:M varies by size class. Therefore, to estimate the overall proportion of females in the population, I need to acc... |
I have $X_1, X_2,\ldots,X_n$ be a random sample of size n from a distribution with probability density function:
$$p(x) = \theta^2xe^{-\theta x}I (x > 0).$$
How can I find an asymptotically normal estimator?
|
Given these data, reflecting individual data on 206 subjects, two treatment groups ("uc" and "texting") and race ("nonblack" and "black").
My goal is a calculate a risk ratio (with 95% CI) for each treatment group. The risk ratio of interest is defined as the proportion with outcome == 1 in the 'nonblack' category divi... |
I Would like to compare if results from two models are significantly different.
The models have been trained on the same samples in a K-fold cross validation setup, so both will spit out K performance scores, for which we can test is the mean of the performance is significantly different with a related T-test.
At first... |
When I run the code posted at the bottom (using the summary() function of the R survival package, I get the output shown immediately below:
Some sources (http://www.sthda.com/english/wiki/cox-proportional-hazards-model) state that the z-value is the “Wald statistic value” and continues “It corresponds to the ratio of ... |
I have implemented a beta regression and am a little confused on how I should interpret the coefficients of my model. For context, both my independent variables and dependent variable are expressed in percentage form, ranging from [0, 1]. The only exception is one independent variable which takes the binary value of 0 ... |
I was wondering if someone can shed some light on which cross-validation method should I, in general, use more often: k-fold cross-validation or repeated random sub-sampling validation.
From Wikipedia, I understood that k-fold cross-validation makes sure to partition the data, that is, that every data point is in the t... |
I am in the context of an observational study, but let's take as an example a randomized control trial studying the effect of treatment $T$ on outcome $Y$.
A difference-in-means test indicated no change in $E[Y]$. However, you notice that $Var[Y \mid T=1]$ is much higher than $Var[Y \mid T=0]$. a) How do you test for $... |
I've been working on building a random forest model using h2o.ai in R for climate data. I know that there is some issue, either with my understanding of randomforest, code or dataset. However, I'm not sure exactly what is causing my model to have a very high MSE and low percent variance explained. My apologies in advan... |
Let’s say that my survey has 2 sections that I want to find the correlation between, they each have 5 questions with each question being a 5-point Likert scale. What do I do after? What are the steps to doing this in Excel? I can't seem to find any good guides on how to do correlation with Likert scale variables. I was... |
I may be missing something obvious, but is there a python package that can reliably do density estimation of a PDF in high dimensions (e.g. 512)? I know of scipy's gaussian_kde but KDE methods work poorly in high dimensions. There is a lot of literature on various ways to get high dimensional density estimation to work... |
Apologies if the question is unsuitable for this site. Please direct me to the appropriate place, and I will take this down.
I am a statistician, and I have been struggling to find a meaning to the existence of statistics as a discipline in today's world where everyone cares about big black box models applied to big da... |
Suppose $\text{supp}(X)\subseteq \mathbb{R}_{\geq 1}.$ Can we say $$\text{Cov}(X,\log X)\geq 0?$$
On one hand, we can say by monotonicity of log and Jensen's inequality that $$X\geq E[X]\implies \log X\geq \log E[X]\geq E[\log X].\quad (1)$$
Now if it also holds that $$\log X\geq E[\log X]\implies X\geq E[X]\quad (2)$... |
I took some of the data analysis courses and did a few projects on my own and I feel that I am so far from the community of data analysts and knowing new features when it releases or any new articles, questions, etc.
So I want to know the best resources where I can follow to grow up my knowledge and level up my skills,... |
My ultimate goal is a way to evaluate a group of "m" covariance matrices (all size n*n) so I can pick an arbitrary one and calculate "this one is tighter than the average covariance matrix by a quantifiable amount" so I can select the top XX% and weight them according to how good they are.
One approach would be to desc... |
This question is a follow up to this question.
Suppose $f$ is strictly increasing. Can we say
$$\text{Cov}(X,f(X))\geq 0?$$
Ben's answer on the aforementioned linked post can be extended to show the result holds for $f(x)$ concave and $g(x):=xf(x)$ convex. This post seems to suggest the desired inequality for the gene... |
The following is code for optimization, during which I calculate the validation error(or test error) too.But I am not sure whether it is a good graph or if there is some problems with my code.Please give me some suggestions.
code
colnames(data_plot)[3] <- "CellType"
n <- nrow(data_plot)
set.seed(12345)
id <- sa... |
Could you provide formal definition for p-value? Or, do you have any good source for it?
For a day, I've been searching for the formal definition of p-value, but I couldn't yet. The majority of the book of statistics are mathematically non-rigorous and most of them didn't define p-value formally. I found two books belo... |
I'm performing survival analysis on time to drop out of a certain program. However, the censoring of each case depends heavily on the length of the program. For example, some programs only last 3 months, while some can last up to 18 months. Programs of length 6, 9, and 12 months account for 80% of the observations. The... |
I am currently using the package PSweight from R to do propensity score with 2 different methods : IPW and Matching.
I first used it to make a propensity score based on IPW method to get the average treatment effect (ATE), but then i also tried the matching method and i am wondering if i should chose between one or ano... |
I have a time series broken down by day, and there are gaps in it that I have marked in red:
the distribution there is not normal
How do we approach modeling a system that will look for anomalies here if they appear?
Because if you differentiate as I did above and try to set limits, for example, using Z score or IQr,... |
Im working on a quantile regression model where I look at how imports (impi,t) of intermittent electricity (inti,t) such as wind solar from country i in period t impact day ahead prices in Norway in period t. My current model can be simplified to this:
pricet ~ impi,t + inti,t + impi,t*inti,t
However, i´m not entirely ... |
I have 4 experimental groups/conditions and 5 measurement times for each group/condition. Each participant only took part in one of the 1 conditions. In total there are 27 participants and each condition has around 6 participants.
In my data set, several participants are missing a value during one of the 5 measurement ... |
I have conducted a very large survey (n>10,000). I asked all participants a series of demographic questions (gender, ethnicity, educational background etc - all categorical). I then asked all participants further questions where again all is categorical, for example "what will you do? a, b, c, d, e (1)
Afterwards,I ask... |
I am self-learning about structural time series, and for me the best way to understand topic is to simulate the data myself. I want to simulate a time series of local level model with seasonal components:
$$y_t = \mu_t + \gamma_t + v_t$$
$$ \mu_t = \mu_{t-1} +w_t$$
Where both disturbance terms are normally distributed.... |
I have a regression which has treatment and control groups.
I want to test how the treatment group (binary variable) reacts during crises periods compared to control group.
The crisis variable is a summation of several crises dummy variables that the maximum value is two (showing only values of 0, 1 and 2) as there are... |
I ran an ordinal regression in R using polr(), and have checked the proportional odds assumptions with brant() from the brant package. I am very new to ordinal regression and I am a bit confused about how to interpret the output of the polr model.
My dependent variable is an ordered factor with 11 levels, and I have a ... |
I'm trying to figure out under what conditions one would make 'unconditional = FALSE' (in plot.gam and gratia::draw), because in my case 'unconditional = TRUE' shrunk the uncertainty bands around my smoothing parameters - which I take as a good thing. This is probably not always the case, but is there an intuitive expl... |
Let us assume that we are given $m$ iid samples from an unknown discrete distribution over $[k]$. Let's also assume that we are interested in a distributional property that is label-invariant. Let us define the fingerprint $f$ (also known as collision statistics or histogram of histogram) of the $m$ samples as a vector... |
I have a dataset of 40 patients which receive 4 different treatments, group 1, is placebo, group 2, drug A, group 3, drug B and group 4, drug A+B. Only one dose from each drug and combination. I would like to use Bliss independence model to test for synergy of drugs A and B. My response variable is tumor growth from ba... |
I have a general question about running multiple pairwise comparisons. I did some genetic work in grad school, where we (I believe) utilized a statistical test (Student's T-test?) followed by a FDR-adjustment. This seemed to work fairly well at limiting our gathering of false-positives. However, in my current role, in ... |
Can someone explain to me what's going on in the following?
Suppose we have data with constant dependent variable:
set.seed(42)
dat <- data.frame('y' = rep(10, 100), 'x' = rnorm(100, mean=10))
A bivariate regression model with intercept has perfect fit and constant residuals, as expected:
m1 <- lm(y ~ x, data = dat)
s... |
I'm new to time series analysis and I would like to know if any of you has any suggestion on website to check out about this topic.
|
My motivation is to produce carcasses of animals in an ecosystem.
The animals have discrete sizes in kg (75, 216, 700, 2500, 5000, 8500, 25000).
I also have the estimated percentage each animal contributes to the
total ecosystem based on scaling relationships (49.3,
36.8,6,6.7,0.6,0.4,0.2)
Finally, I also have the ave... |
From various sources and reading, I get to know that, the Nickell Bias associated with employing fixed effects with a lagged dependent variable is small when T is large. I understand the notions intuitively, but I am unable to comprehend the underlying mathematical consistency. I would appreciate it if someone could ex... |
I am struggling to understand two different quantile regression specifications and the assumptions of conditional quantile independence and full independence. In the first specification, suppose we have the location-scale model:
\begin{equation}
y_{i}=\beta_{0}+x_{i}^{'}\beta+(\delta_{0}+\delta_{1}x_{i}^{'})\epsilon_{i... |
The Aalen model assumes that the cumulative hazard H(t) for a subject can be expressed as a(t) + X B(t), where a(t) is a time-dependent intercept term, X is the vector of covariates for the subject (possibly time-dependent), and B(t) is a time-dependent matrix of coefficients.
My intuition was that coefficient plots fr... |
I have a dataset (n=290) that I need to run an EFA. I was hoping to also run a CFA but I'm unsure if I have enough data to do a split sample approach. Please advise.
|
Take the following regressions:
y1 = a1+ d1*y3+ lag(Y)B1 + XG1 + u1
y2 = a2 + d2*y3+ lag(Y)B2 + XG2 + u2
y3 = a3 + d3*y3+ lag(Y)B3 + XG3 + u3
where Y = [y1, y2, y3] is a time-ordered matrix of data, terms "a" are intercepts, X is a matrix of covariates, B and G are vectors of coefficients, and u are error terms. lag... |
I am going through the introduction to XGBoost page, and there is a section where they derive the optimal value of the leaf node, for a given tree structure.
To quote the specific section,
In this equation, $w_j$ are independent with respect to each other, the form $G_j w_j + \frac{1}{2} (H_j + \lambda) w_j^2$ is quad... |
Say I have a questionnaire with 5 questions about anxiety. For each question, their response is rated a 1 or 0. Their total anxiety score is the sum, so an integer between 0 and 5.
Now I would like to run a regression model for explanatory purposes to see the effects of predictors on anxiety level. This data isn't cont... |
This question discusses two equivalent ways to express the canonical loss function for a logistic regression, depending on if you code the categories as $\{0,1\}$ or $\{-1,+1\}$. In the following, let $x_i$ be the $i$th feature vector, $w$ be the parameter vector for the logistic regression, $N$ be the sample size, and... |
Suppose the linear model is $y = \beta x + \epsilon$, where $X \sim \mathcal{N}(0, 1), \epsilon \sim \mathcal{N}(0, s^2)$. If we only observe the sign of the output $y_i$, and the number of observations is large, $i$ how can we estimate $\beta$?
|
I have conducted a CFA for a one-factor measurement model and then proceeded to do multigroup CFAs to test for measurement variance for gender and age (binary variable, median split). Testing for measurement invariance proceeds as would be expected for gender, but I am getting some strange results when testing for scal... |
I am trying to write some code to automatically detect whether a time series is seasonal. I have been looking into using the Kruskal-Wallis test, as there are a few examples of this being useful online, e.g. here.
Basically, you would perform this test by breaking your time series into groups (say, yearly) and performi... |
I am trying to self-taught myself on Calculus for machine learning and read the book by Spivak. But it is too rigorous and need a lot of time to finish it.
As far as I am concerned, Calculus is only used for optimization in machine learning.
I am seeking some good calculus resources especially apt for machine learning ... |
Say I have a laser that emits pulses of light containing a random number of photons, which follow a Poisson distribution. So it has a mean number of photons per pulse.
These pulses go through a filter, which results in each photon having a probability of being either absorbed or transmitted.
I am trying to figure out w... |
Assume we have matrices $A_{n\times n}$ and $\Delta_{n\times n}$ and know that:
$$A^{-1}_{i.}\Delta_{.j}\sim N(0,\,A^{-1}_{i.}\,\Sigma_j\,[A^{-1}_{i.}]^\top)\,,$$
where $\Delta\sim N(0,\,\Sigma_j)$, $i$ shows the rows and $j$ the columns; $_{i\,.}$ means row $i$ (vector with dimension $1\times n$) and $_{.\,j}$ means c... |
if a data set is set up such that it has 5 independent variables and an array of 201 elements of "smooth continuous" data as the dependent variable. I was wondering if there was a model optimized to handle a situation like that. And what form would I provide the data in.
Here is an example of how the data would look. E... |
Let $W_t$ be a complex-valued stochastic process such that
$$W_t = \sum_{l=-L}^L
C_le^{
2iπf_lt}$$
where $C_l$
is a complex-valued rv such that
$\Bbb E{(C_l)} = 0, \Bbb E(C_l^2)
< ∞, |l| ≤ L < ∞$
Also assume $f_l$
is a fixed real-valued constant with $f_{−l} = −f_l$
. Show that if $C_l$ are uncorrelated then $W_t$
is a... |
I'm trying to use an RNN to predict a time series {$y_t$}, where $y_t \in {0,1} \forall 1 \leq t \leq T$ given an input time series {$x_t$}. The elements of the target sequence are not necessarily independent. Which distributions would be a good model of this output? Ultimately, I want to use this distribution over th... |
I have acquired videos from a dashcam installed on a vehicle that went around different portions of an airport. My objective is to detect cracks in the pavements. After identifying them, I then need to geolocate them, i.e., tell where the cracks appear in terms of lat/long.
So far, I have labeled a handful of images an... |
I am trying to obtain the required number of sample $n$ for a given confidence interval $\alpha$ and $X_1 ... X_n$ which are Gaussian rv with $\mu$ mean and $\sigma^2$ variance. I know that
\begin{equation}
Pr(\frac{1}{n}\sum_{i=1}^n X_i - \mu \geq t) \leq \exp{(\frac{-nt^2}{2\sigma^2})}.
\end{equation}
yet, I don't kn... |
Studying Brownian Motion and stochastic integrals in class, my professor rewrote this summand $$1/2*\sum_{j=0}^{n-1} (W((j+1)T/n) - W(jT/n))^2$$ as $$1/2*W^2(T) + \sum_{j=0}^{n-1} W(jT/n)(W(jT/n) - W((j+1)T/n))$$
I can't figure out the algebra between these two steps. I've been trying looking at it as a telescopic sum ... |
I’m curious to read about the importance of normality testing in AB tests and clinical trials.
It seems that there is a lot of mixed (and strong) opinions about the necessity for normality testing, the methods in which normality would be determined (quantitative vs. visual inspection), and even what data should be norm... |
The variance inflation factor (VIF) in an ordinary least squares linear regression coefficient is calculated using the $R^2$ of a linear model that uses the other features to predict the feature to which the coefficient corresponds.
If the feature for which we want to calculate the variance inflation factor is binary, ... |
So, the constrained TRPO objective is the following:
$$
J(\theta) = E_t\left[
\frac{\pi_\theta(a_t|s_t)}{\pi_{old}(a_t|s_t)}\cdot A_t
\right]\\
st. D_{KL}[\pi_{old}(\cdot|s_t)||\pi(\cdot|s_t)] \le \epsilon
$$
The off policy actor critic objective instead is:
$$
\nabla J(\theta) = E_t\left[
\frac{\pi_\theta(a_t|s_t)}{b(... |
In linear or logistic regression, we have the following (adapted from Foundations of machine learning.):
As in all supervised learning problems, the learner $\mathcal{A}$ receives a labeled sample dataset $\mathcal{S}$
containing $N$ i.i.d. samples $\left(\mathbf{x}^{(n)}, y^{(n)}\right)$ drawn from $\mathbb{P}_{\mathc... |
I am performing a missing data analysis from a modified (the original data has been modified for the purposes of teaching) Randomised Control Trial.
The missing variable of interest is "prior use of aspirin before randomisation".
There are eight other variables in the dataset. The key variable of interest for this post... |
I used here linear models for simplifying my final approach. Let's assume that a first linear model is estimated to obtain a response that will be then used as covariate in a successive linear model. How could one analytically find the uncertainty around the response of the second model, presuming that uncertainty in t... |
Suppose you are playing a guessing game where there is a box with three marbles. There are three kinds of boxes. Box A contains red, green and blue marbles; Box B contains red, green, and yellow marbles. Box C contains black, white and purple marbles. You are told that there is a 60% chance that this is Box A, 20% that... |
I had to design a loss function max(0,x). It's not differentiable at x=0. In order to train it with gradient descent, what should I do?
I have learned that subgradient can be used instead, so does it need to be changed in the code, or will pytorch/tf calculate subgradient automatically?
Or use surrogate loss, so what ... |
When reading Cox's Principles of Statistical Inference (CUP, 2006), I'm struggling with the case-control study example (Example 7.16, pp. 154ff.) in §7.6.6 on pseudo-likelihood.
Set-up:
Random variables $Y,Z,W$ are modelled by $P(Y=1|W=w,Z=z)=L(\alpha+\beta^Tz+\gamma^Tw)$ (7.65) in which $L$ is the logistic function.
... |
I’ve got an interesting question at one interview.
Assume that we already trained and deployed some fraud detection model for some online service, and it has helped us to decrease amount of fraudulent transactions by 50% (for example, we temporarily ban suspicious cards).
This is great, but how can we deal with the fac... |
I am using a neural network to input some complex numbers and to obtain complex numbers. I converted the input complex numbers into real values by stacking the real part and imaginary parts as a vector. I used the ReLU function as an activation function. I need to put a constraint of unit modulus in the output value.
I... |
According to Statistics libre texts Equation 5.9.20, a non-central chi square distribution can be approximated as sum of Poisson weighted central chi square distributions.
$\tag{1}g(y) = \sum_{k=0}^\infty e^{-\lambda/2} \frac{(\lambda/2)^k}{k!}f_{n+2k}(y)$
Here, the term $e^{-\lambda/2} \frac{(\lambda/2)^k}{k!}$ follow... |
I have the following model:
RT ~ condition + (1|participant)
RT is a continuous variable. Condition has three levels and is coded using Helmert contrasts.
I standardized the variable RT using scale(center == TRUE, scale == TRUE).
Can I know interpret the outcomes (differences between conditions) as "effect size" as it... |
I am conducting a study to check whether a drug causes fractures, and I am using time dependent Cox PH model.
My question is regarding the follow-up time when stratifying. Let's say that we want to look at any fracture and then stratify by location of fracture e.g. hip, knee, elbow...
First we want to look at all fract... |
I'm trying to do a meta analysis of ~30 studies (total N = ~2000) on the correlation (X, Y). However, the heterogeneity is soooo high. My hypothesis (and what has been suggested in the literature) is that the range of X differ from study to study and it contributes to the heterogeneity.
What I'm thinking is, can I gene... |
Hoping to get some clarification on my understanding of interaction terms in a GLM model I have produced.
I have written the following model
interactionmodel <- lme(ChangeTotal ~ PreTotalCentre + SexCode
+ AgeCentre + SexCode*PreTotalCentre
+ AgeCen... |
I have data consisting of three type of tumors (see column names, counts per tumor at the bottom of each column). A tumor can be tested and be given a score (negative, weak, moderate, strong). The cells indicate the respective counts. I want to test whether the different tumors get significantly different scores on thi... |
I just read that to use MICE Imputation, variables with missing values need to have a relationship to other variables. In my case, I will anonymize the variable just for convenience purposes:
Numerical Continuous Variables: 'A', 'B', 'C', 'D'
Categorical Variables (Nominal): 'X', 'Y'
'A' has missing values of around ... |
Long story short, I have a set of vectors for each image after training on a model. I'd like to find the most unique image from the scores generated by cosine similarity. The below 2D tensor array is the scores grid for 5 images, each being compared to each image.
tensor([[1.0000, 0.9849, 0.9606, 0.9227, 0.9508],
... |
why for neural networks it is advised to set a test dataset apart to check if it overfitted while for statistical models fitted through mcmc this is never done?
if a model has too many parameters shouldn't it overfit with both methods?
|
I have a test dataset of 11m records. The dataset contains a global customer id and spend figure.
I need to group customers into the following categories:
0 Low
1 Low/Med
2 Med
3 Med/High
4 High
I tried K-Means to group. See results below.
As you can see 10m records or so are in the low group as 80% of the db has l... |
I have a counts response variable with 46% of the observations being zeros, and am validating model fits to different distributions with GAMMs. I have plotted the observed number of zeros in the response against # zero from 10000 simulated datasets for both Poisson & NB distributions to see if either can cope with the ... |
Quick overview of my data and aims:
I have two groups, 50 samples per group, and 6000 features. I want to find the minimal amount of features capable of distinguishing both groups. I know the sample number is not the greatest, but I work with biological samples and getting a total of 100 samples took a lot of work. Bes... |
I asked a similar question in the past, but I've thought about the message I am trying to convey a bit more and feel I can articulate it better. For context, I am on an introductory course in machine learning. A while ago we covered PCA, and from my point of view, I really can't see what it's good for in the real-world... |
I regularly read that clustering will cause standard errors to under-estimated. So I simulated two distributions - one with clustered observations, one without. In both cases the standard error is 0.09. Should standard error of clustered distribution not be smaller?
Clustered - se = 0.09
rep(1:10, 100) -> dependent
s... |
Consider a real random variable $X$ with zero mean. Does the following inequality hold in general?
$$\langle X^4\rangle \ge 3 \langle X^2\rangle^2$$
I'm not sure how to prove this or if a counter-example exists. If the inequality is true, it is also tight because for a standard normal this is an equality.
I found a rel... |
I'm working on a project in R where I'm looking at California's census tract-level demographic data in an explanatory logistic regression model. I have 6 demographic variables of interest and am controlling for population density. My binary predictor is 1=exposed to pollutant/0=unexposed to pollutant for each census t... |
I want to know the effect of differentiation on the independence of random variables. For a random variable $X$, when are $f^{(n)}(X)$ and $f^{(n+k)}(X)$ independent?, $\forall n\geq0\;, k\geq 1$.
|
I am looking for guidance on whether I am approaching my problem correctly.
I have an annual time series { $x_{1}$, $x_{2}$, ..., $x_{t-1}$, $x_{t}$ }, where each observation is the estimated median rent price for one-bedroom apartments in an area. These data were derived from pooled cross-sectional samples collected e... |
I am a non stat person so pls be kind in your reply! What sort of statistic can I use to compare how the items of 3 different Likert scales covariate? My respondents sample is 150 ppl. Each respondent completes all 3 scales. I would like to understand if there is a pattern between the way items of different scales are ... |
I am using LSTM to model time series data. My target variable is categorical so I am using one-hot encoding. The goal is to predict the target class based on the given time. My dataset spans over eight days.
input_nodes = look_back = 10
batch_size = 128
train_generator = create_data_generator(train, look_back,... |
I'm reading a documentation on causal inference on graph and I'm currently on the chapter about identification. In this section, the authors give examples of invalid adjustment sets, one of which is as in Figure 4a below, followed by a description of why conditioning on a collider biases the estimate of P(B|do(A)):
Ho... |
According to my understanding, $C(X)$ is a random variable defined as follows:
Let $\mathcal{P}$ be a family of distributions (defined by user). Let $\alpha>0$. Let $\theta$ be some parameter of a distribution (e.g.,
mean). When $C(X)$ satisfies the following inequality for all
$\mathbb{P}\in \mathcal{P}$: $$ \mathbb{... |
I've been running several mixed linear models in R. I use the lmer function from lmerTest. I also ran the same analyses (or so I thought) in JASP. JASP uses R behind the scenes and shows you the R code. It turns out that JASP constructs a different model (see 1 below) than I did (see 2 below).
Short question: What is t... |
I know I am able to calculate Mann Whitney U tests when comparing 2 samples unequal inside but I am wondering if I am able to carry this same principle when calculating ROC AUC via the formula:
AUC = U / (n1*n2)
where U is the U statistic, n1 is number of positive examples, and n2 is the number of negative examples
I... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.