instruction
stringlengths
9
38.7k
I am estimating a VAR model in R, using the vars package. There is an argument in VAR() function called type=c("const", "trend", "both", "none"), which is used to choose the type of deterministic regressor to include in the model. My question is, in which case should I use one or the other? In my case, my variables are...
Hi there would someone be able to explain to me how the s(x1) terms work in the GAMS? For instance in the equation: gam(response ~ s(x1) + s(x2) + s(x3)) Would each smoother variable be “accounting for the influence on each other and on the response” after than gam was ran? In other words, would the graph produced bet...
I have a sample of individuals for each of two treatments measured across several days (different individuals for each treatment, but the same individuals within treatment across days). The pattern I see in all my dependent measures is that comparisons across both days and treatment appear significantly different - res...
Here Rob Hyndman says In the predictive approach to statistics (McLean, 2000), problems of statistical analysis are viewed as prediction problems, and the central theme is a statistical (probability) model. A key idea in the approach is to use only those models that work, only those producing reasonably good predictio...
Background: We have a large database of measurement data. The individual data points are actually the mean results of a particular sampling. No further information is available against each data point, only the sample mean is available. We can assume that the sample sizes are the same for each sampling. Commissioning a...
I am looking for some good suggestions. I have highly fluctuating data from multiple samples (three samples are shown in light blue). When I calculate the mean (black line) of multiple samples, it appears that it reduces the high and low peak signals. Furthermore, Savitzky-Golay filtering (red color line) destroys the ...
Functional principal component analysis (FPCA), according to the original paper, does not use scaling before FPCA, as in PCA. Instead, it uses a covariance matrix to compute the eigen-components. I just don't get it. Is it supposed to be better to use scaling before FPCA? Related question: Functional principal componen...
I am looking at this source: It defines changepoint and changepoint detection the following way: 1 Change point detection A particular change point test seeks to identify the specific period of time that relates to a change in the probability distribution of a stochastic process or time series. In general, the problem...
Apart from Euclidean and Mahalanobis distance metrics. Given a sample with multivariable values, is there a way to find the samples that are similar to the given sample? Does KNN clustering find the similar samples? Thanks
Let $X$ and $Y$ be continuous random variables with Probability Density Function (PDF) $f_X$ and $f_Y$, respectively. Upon observing $Y=y$, the log-posterior PDF is given by Bayes' rule in log form: $$\ln f_{X|Y}(x|y)=\ln f_X(x)+\ln f_{Y|X}(y|x)-\ln f_Y(y)$$ Laplace approximation is based on a second-order Taylor-serie...
I'm trying to prove that: Given a sequence $(X_n)_{n \geq 1}$ of independent and identically distributed random variables, $E(X_i^2) < +\infty$ for all $i \geq 1$, then $$\frac{2}{n(n-1)}\sum\limits_{1 \leq i < j \leq n} X_i X_j \xrightarrow[n\to +\infty]{} E(X)^2 \;\; \text{a.s}$$ My solution so far is to write $$\s...
I work at a small mobile game development studio, and I've been asked to analyze the relationship between paid and organic traffic for a particular app. The hypothesis is that an increase in paid traffic causes an increase in organic traffic. I am also tasked with testing this hypothesis using a Bayesian approach. Howe...
Consider a clinical trial where we want to study the evolution of the occurence of some event during two time periods, with and without treatment. We know that, not only a difference close to 0 won't be clinically relevant even if statistically significant, but only a large difference would be clinically relevant. Plea...
I am dealing with VARs in which the dimension of the systems, k, can become quite big. My question is how are the number of observations counted in a VAR? The reason I am asking is the following passage from a recent paper (reference below) on regularized VAR: "Those characteristics allow estimating the VAR model equat...
I am currently analyzing daily sales data for a product sold across multiple stores using a Multilayer Perceptron (MLP) model. For simplicity, let's assume it consists of a single layer, structured as follows: $$ \text{MLP:} $$ $$ h_t = f(UX_t), $$ $$ Y_t = Wh_t, $$ Here, $X_t$ encompasses both lagged and seasonal lagg...
I have the SMRs of different local areas. The same reference population was used for the standardization. The local areas were divided into 5 groups (group1, group2,...,group5). I want to know if the groups have the same mean SMR or not. I performed an ANOVA to test if the means of the SMRs between the groups are signi...
I have a model of the following kind: $y_t = \alpha +\beta x_{t-1} + u_t$ $x_t = \rho x_{t-1} + v_t$ Where: $Cov(u_t, v_t) = \sigma_{uv}\neq 0$ $u_t \sim N(0, \sigma^2_u)$ $v_t \sim N(0, \sigma^2_v)$ Both ${u_t}$ and ${v_t}$ independent across $t$. I am trying to compute the OLS estimator $\hat\beta^{OLS}$, and its v...
I am evaluating the effect of a number of examiners (who examine in pairs) on the marking scores of candidates. As a background, there are multiple, separate sessions (I am looking into over a 100), with each session having between 30 - 40 candidates. Each candidate has 4 x 5 questions, and is seen by 4 pairs of examin...
I'm sure this type of model has a name but I can't for the life of me find the correct keyword to look it up. For each $t \in \{0, 1, \ldots, T \}$, suppose I have $n$ data tuples $\{ (X_{0,t}, Y_{0, t}), (X_{1,t}, Y_{1,t}), \ldots, (X_{n,t}, Y_{n, t}) \}$. What would be an appropriate method by which to estimate a mod...
Let $\phi$ be an activation function. In this lecture note, The author assumes that the dual activation function, denoted as $\check{\phi}$ is normalized such that $\check{\phi}(1)=1$. How can it be possible? Since \begin{equation} \check{\phi}(\xi) = \mathbb{E}_{(u,v) \sim \mathcal{N}(0,\boldsymbol{\Lambda})} [\phi(u)...
I hope this is the right place for this question. I have the following logistic regression output (these are the coefficients in log odds, not AMEs): This is from a logistic regression. The R command I used to create (3) is: logit_mint3_me = logitmfx(formula = mint ~ agen_sh_mint1 + komm_sh_mint1 + female + same_kldb_...
I am trying to find an analytical expression for the KL divergence between a normal distribution and a skewnormal distribution. In this paper https://www.mdpi.com/1099-4300/14/9/1606 they derive the KL-divergence between two skewnormal distributions $\boldsymbol{X}\sim SN(\boldsymbol{\xi}_1, \boldsymbol{\Omega}_1, \bo...
I have a signal, corresponding to a time series, in which I want to identify "outliers", actually corresponding to samples for which the signal is not "sufficiently stable" (see hereafter for an illsutration of what I would like it to mean). I have implemented this: def count_outliers(series, window_size=5, stability_t...
I am using the forecast package by Prof Hyndman, and have had success fitting ARIMA models to excess mortality (from the COVID-19 pandemic) data. I am currently trying to produce plots for cumulative excess deaths, but am unsure how to proceed about producing prediction intervals for these plots. In more detail, I am f...
I have N 2-dimensional points (X,Y) where X and Y are gaussian distributed and have a strong correlation, i.e., X and Y are not independent. What is the simplest way to perform a z-test? In other words, what mean and standard deviation (s.d.) do I use to perform the calculation $$z = \frac{x-\mu}{\sigma}$$?
My independent variable is measured on a likert scale (1–5). My moderator is dichonomous (yes or no) I want to use SPSS process macro to measure the moderation relationship. Should I use a dependent variable that can only take values 1,2,3,4,5 (same as IV) or can I use a continuous variable with a range of 10–20? In ca...
I hope this is the right place for this question. I have the following logistic regression output (these are the coefficients in log odds, not AMEs): This is from a logistic regression. The R command I used to create (3) is: logit_mint3_me = logitmfx(formula = mint ~ agen_sh_mint1 + komm_sh_mint1 + female + same_...
We have a use case where we are using F1 score to optimize threshold selection for a binary classifier. In this use case however, FP's present a higher risk impact than FN. We'd like to consider a way to modify the conventional F1 score formula in such a way that its calculation weights FP as a higher impact than FN. D...
I currently have a dataset with two factors: Gene and Timepoint. Both of these factors are categorical in nature where Gene has 2 levels defined as control vs disease, and timepoint has 4 levels: Month 1, 2, 4, and 6. The justification for having categorical time instead of a continious variable is that the month can a...
I am trying to analyze data from a crossover study. The study has two phases and subjects are randomized to received either treatment A or Treatment B first, and then switch to the alternative treatment for phase II The responses are measured at three time points at each phase, baseline, acute, and chronic (so six meas...
Among statisticians there is an ongoing debate whether the long-standing "standard" threshold for declaring the outcome of a statistical test as "significant" (a.k.a. alpha-level) should be reset from the current default value of p<0.05 to p<0.005. This suggestion is floating around for a while but has ben specifically...
Why does Poisson Regression require an offset variable when we model rates instead of a count? In a Poisson Distribution, lambda itself is a rate (e.g. cars per minute). It seems like the Poisson Regression should be naturally able to handle rates since its based on the Poisson Distribution which itself is based on a r...
I want to fit a model y ~ b * exp(-exp(a) * x), but including a random effect, with this data: # data: data = structure(list(re = structure(c(1L, 1L, 2L, 2L, 3L, 3L, 3L, 2L, 2L, 3L, 1L, 1L, 3L, 3L, 2L, 2L, 1L, 1L, 2L, 2L, 3L, 3L, 1L, 1L, 2L, 1L, 1L, 3L, 3L, 2L), levels = c("A", "B", "C"), class = "factor"), x = ...
I have a dataset with the concentrations of several lipids. I'm interested in finding lipids that are altered between two conditions, but the lipids are not indepentent from each other and the differences in concentration are very small. Lipids can be grouped into lipid classes, so I thought I could add up all the conc...
we were recently introduced in class to GLM's and I am still trying to wrap my head around link functions, variance functions and dispersion paramters. In particular we were asked re-write the linear regression using GLM. First we specified the type of distribution in linear regression: $Y_i|X_i \sim N(\mu,\sigma^2)$ f...
I have read that in path analysis that assumptions are similar to assumptions of multiple regression Streiner,(2005) Columbia Path Analysis Particularly around normality of only the dependent/endogenous variables. I feel conflicted if the normality assumption only applies to the endogenous variables when considering h...
I have two binomial random variables $X_1 = \text{Bin}(N, p_1)$ and $X_2 = \text{Bin}(N, p_2)$; same number of trials but different probabilities of success. Suppose that the number of trials $N$ is unknown, but I have estimates of $p_1$ and $p_2$ are known to me. I want to use a statistical test at a significance leve...
I have been having trouble fitting my data of seedsets of flowers. I have gathered data from seven flowering species in four different elevations. Not all the species appear in every elevation and the elevations are not equally spaced from each other. I would like to see if there is a trend in seedsets based on elevati...
Suppose I run the following OLS regression: $y = \beta_0 + \beta_1 D + \varepsilon$ where $D$ is a binary variable for treatment group, and $y$ is the outcome variable, say income. $D$ is randomly assigned to the sample, so $\beta_1$ represent causal effect of the treatment on $y$. Suppose $\beta_1$ is positive and sta...
Consider independent Poisson random variables $X_1\sim \text{Poisson}(\alpha_1)$, $X_2\sim \text{Poisson}(\alpha_2)$, $Y\sim \text{Poisson}(\lambda)$, and suppose $Z_1=X_1+Y$ and $Z_2=X_2+Y$. I want to find the conditional expectation $$ \mathbb{E}(Y|Z_1 = z_1,Z_2=z_2). $$ It is not difficult to see that $$ \mathbb{E}(...
I'm reading the original paper by Schoenfeld from 1982. It is very laconic. Few parts that I don't understand: Why can we substitute $\hat \beta - \beta$ with the Score, and why is the score equal to $U^{-1} \sum r_k$ ? It continues: Here I don't understand anything. He doesn't even define $\delta_{ij}$ (though I'm a...
Shouldn't a deep enough linear neural network (with activation functions) be able to learn anything, even recurrent and spatial patterns? I could just flattened timeseries data or image data and pass it as input to a fully connected feed forward network. Why wouldn't it be able to learn from that data. This would be in...
Maximum-likelihood estimators are, according to Wikipedia, asymptotically efficient, that is they achieve the Cramér-Rao bound when sample size tends to infinity. But this seems to require some regularity conditions. Can you give, or point me to, a set of conditions that ensure that the maximum-likelihood estimator is ...
Is there a version of the Cramér-Rao bound when samples are independent but not identically distributed? More specifically, I am considering a sample set that is divided in two subsets, each subset containing i.i.d. samples from a different Bernoulli distribution, with samples of different subsets being also independen...
My goal is to test whether reaction is significantly different between tasks (a, b, and c). However, the order in which I run the tasks in my experiment may affect the reaction. But I'm not interest in the specific levels of the factor Order, so I decided not to account for that as a fixed effect. Each subject had a di...
I am currently studying "Understanding Machine Learning from Theory to Practice" written by Shai Shalev-Shwartz and Shai Ben-David. I am a bit confused about an example regarding the calculation of the True Error of a Distribution that the author presented in one of his lectures on YouTube. Let $X=\{a,b\}$ our Domain a...
I am writing this topic because there is a statistical problem which does not let me sleep at night. For introduction, I am a clinical researcher interested in niche fields, and many of my projects deal with (very) low-quality evidence. In fact, often times we are talking about exclusively single-arm studies, which pro...
I'm trying to design a model to analyze hospital length of stay, and more specifically to ascertain the effect of sex on LOS in my data. My data contains demographic, comorbidity, and intra-operative variables (mostly continuous data like heart rate and medication dosage). My outcomes of interest are all categorical, e...
I realized that some data I have collected may be able to make use of what I originally considered to be a nuisance issue that arose during data collection. I'm looking for input about whether I may be able to use econometric (or similar) approaches to take advantage of an exogenous, "natural" change to the treatment v...
I have a bit of a situation I would like some advice on. I'm currently running a human subjects study where I have two groups (group 1 and group 2), and three time points. Each subject performs a repetitive task at the same rate, with a slight difference between the groups. I take a baseline, an early time measure (aft...
Suppose I want to buy a CNC machine to automate guitar-making, for instance. I have access to a warehouse of CNC machines that are all reported to be the same model and advertised as having equal performance (e.g. 100 guitars/day) and I can test them in any way I want so that I can ultimately choose one of them. Unfort...
I am trying to look at how the number of events X is affected by the three factors A (4 levels), B (2 levels) and C (2 levels) using a negative binomial model as follows: model.count.nb<-glm.nb(X.total ~ A*B*C, link = "log", data = count.X) summary(model.count.nb) Call: glm.nb(formula = X.total ~ A * B * C, data ...
I'm trying to perform an a-priori power analysis for a mixed effects model using the simr package, but I'm not sure which effect size to choose. When performing a power analysis for ANOVA I've used Cohen's suggested f values to represent a small, large, and medium effect size (0.1, 0.25, and 0.4). It looks like simr us...
My dependent variable is a share of workers on long term contracts. I test the effect of 10 variables, including topographic factors, population density, availability of alternative employment opportunities etc. I have a panel dataset and use plm to run a fixed-effects regression and get the coefficients plus a set of ...
I am learning linear regression and I am trying to create a visualisation. Say I want to estimate a power model $y=ax^b$ using linear regression. I take the logarithm to get $$\ln(y)=\ln(a)+b\ln(x)$$ Now I can run linear regression on log log of the data. Say I run the regression and I get that $$\hat{y}=\hat{\beta_0}+...
Consider the statement: In a city, $1 \%$ of the population is known to have a rare disease. A test is available to detect this disease, which has a true positive rate of $99 \%$ and a false positive rate of $ 2 \%$. First, you want to determine the probability that a person has the disease. I try to solve the problem,...
If you are computing a regression, want to know if specific IVs predict the DV when controlling for covariates (one included because age was different between IV groups, another because it is significantly correlated with DV), do I do a simultaneous regression or a hierarchical regression with covariates in step one an...
I have time-series data (brGDGT samples from a core with an age-depth model), and each data point in the time-series has an error associated with it as per the dummy table below. time value plus minus 15.9 10 2 1 12.8 12 2.5 2 11.0 9 1.5 1 9.3 16 4. 3.5 I want to be able to report the mean value and com...
I am trying to learn how to derive the distributions of terms in Linear Regression Models (both theoretical model and observed model): For example here is a linear regression model: $$y = \beta_0 + \beta_1x + \epsilon$$ Theoretical Model: $$\epsilon \sim N(0, \sigma^2)$$ $$f(\epsilon) = \frac{1}{\sqrt{2\pi\sigma^2}} e^...
In a previous question (How does simulation help validate model assumptions?), I received the following comment: "When a model is too complex such that a derivation of the distribution of the residuals, given the assumptions, is intractable, then simulations might be used to estimate what a distribution of the residual...
Question: Given $X\sim\text{Bernoulli}(\alpha)$, $Y\sim\mathcal{N}(0,1)$, and non-random positive constants $C,\epsilon>0$. Let $H(\cdot)$ be the differential entropy. Is it true that $$ H((C+\epsilon)X+Y)>H(CX+Y), $$ and is there a rigorous way to show this? Attempt: Intuitively I suspect this to be true since from he...
Im trying to understand the math behind the L1 and L2 SVM but Im kind of confused at this point : in the following picture we see that the regularization term is squared for the L2-SVM. Does that mean that the loss will be squared hinge instaad of the standard hinge ?
I often see this: If we have an AR(1) process,$x_t=\phi x_{t-1}+w_t, $ $x_t$ is: stationary if $|\phi|<1$ an unit root(nonstationary) if $|\phi|=1$ explosive(and nonstationary) if $|\phi|>1$ But then I have seen the following idea in other sources( a course that uses the book by “Time Series Analysis and its Applicatio...
I noticed that most RCTs use simple univariate statistical test to perform sample size calculation. For example for continous outcome, z-test may be used. But eventually for final analysis, mixed model for repeated measures adjusting for randomization stratification factors may be used to perform the analysis. This is ...
Consider an OLS estimator, $$y= \beta_0 + \beta_1 x_i + u_i $$ I think $E((\Sigma_i^n \: u_i)^2) $ is equal to zero because simply $\Sigma_i^n \: u_i$ is always zero. But my professor in class showed it is equal to $n\sigma^2$. Here is the derivation assuming n=3. $$ E((\Sigma_i^n \: u_i)^2) = E((u_1+u_2+u_3)^2) \\ E((...
Many of you will be familiar with the use of the log log linear regression model to estimate elasticity. I am in this situation where I can get zero demand, the dependent variable, which obviously prevents the unbiased use of this model (ignoring the fact that this approach is probably biased in many ways in the first ...
I am trying to understand why the RBF kernel is usually used in many research papers doing kernel tricks. To reduce the scope, we can focus on linear regression (thus effectively, increasing the degree of the polynomial and reducing bias and underfitting). Can someone point me to the correct direction where such an exp...
I have stratified random sample of individuals which represents a large geography. Some of these individuals are self-employed. Can I take subset of these surveyed individuals who are self-employed and treat it as a sample of self-employed individuals from the same geography? I understand the answer is most likely no s...
I have thinking about a problem that can be encountered in environmental epidemiology, but I guess in other research fields too. Background: In environmental epidemiology the interest is mostly to assess the associations between an exposure (e.g. air pollution) and an health outcome (e.g. mortality). In general, we hav...
Reviewer's opinion :The Table 2 fallacy may also apply for the linear regression. Again, the authors should show that for any estimate from the linear regression that is reported in this manuscript, none of the other variables in the model were potential mediators. If there are potential mediators, then several model...
I am reading up on linear regression from 18.650 MIT. In the way of explaining it, the professor derives a few results and I have attached them in the image The first result gets used along with the theorem's mentioned towards the end in deriving the distribution of $\hat{\beta}$ which consequently gets used in testi...
I have a simple survival problem from an RCT, whereby there are two treatment groups (A-control and B-intervention), and the primary outcome is overall survival. We can estimate the Kaplan-Meier estimator and confidence bands using the Greenwood method. We are interested in survival at two years. How can we estimate th...
The problem statement is as follows - Given an altered image (an image from which some object has been removed), generate a mask for the removed object. For instance, say an original image contains three dogs. After some alteration, one of the dogs is removed from the image. Now, given the altered image, a mask should ...
I have some training videos and skeletal keypoint data with annotated labels for each activity. There are around 15 activities. After segmenting the keypoint data by their labels, the sample size is around 10k. I have extracted basic features like velocity, acceleration, joint angles and distances. For models, I have t...
In the test there are these 2 questions. My friends and i cannot tell the correct answer because it is so confusing. It is a multiple choice test. Are two dependent variables correlated? A. always B. never C. only if r>0 D. yes if referred to the same feature then the same question but with independent I hope you ca...
0 I am trying to compute Sobol index by myself using python but I am facing some problems. The formula is very simple however I don't understand some part : Here, E[Y|Qi] denotes the expected value of the output Y when parameter Qi is fixed. The first order Sobol sensitivity index tells us the expected reduction in th...
I am attempting to learn how to find a complete and sufficient statistic. So, I am working on this problem for class: Let $X_1, \cdot\cdot\cdot,X_n$ be a random sample from the pdf $f(x_i|u)=e^{-(x-\mu)}$, where $- \infty < \mu < x_i <\infty$. Show that $X_{1} = min_i\{X_i\}$ is a complete sufficient statistic. Here is...
I am using survey panel data and a linear fixed effects model with an event dummy variable to examine the effect of Biden visiting Ukraine on the concern of the US citizens about US getting more deeply involved in the Ukraine War(Dependent variable). The same survey participants answer the same survey questions every w...
I am well aware, that this is a FAQ, but other questions could not provide me answers to my question. Also, I hope this will not be considered a double post, since I have posted this issue with a different question (see here). I have data that I fit into a gls model from the nlme package in R. This is what the data loo...
I am interested in understanding if two predictors variables are associated with treatment outcome (DV). I included two covariates that 1) differed across my levels of IV (age) and 2) another that is strongly associated with the DV (baseline functioning). I ran a simultaneous multiple regression with the covariates and...
I have a question regarding the distances between points (RNASeq samples) within a single UMAP cluster. As far as I have understood, the distances between clusters can not be measured in a specific distance value. However I wonder if in my case the shape of a single cluster can be interpreted. As an example, the shown...
I am working with economic data and trying to create a linear regression model for forecasting purposes. The dependent variable data is in terms of percentage change and I've differenced the independent variables to achieve stationarity. The model takes the below form: $y_t= β_{0}+ β_{1} x_{1,t}+β_{2} x_{2,t}+ ϵ$ The p...
I'm attempting to fit a logistic regression model in R and need some guidance on handling both numerical and categorical variables simultaneously, especially when looking for significant explanatory variables. Background I have a dataset named df containing 12 columns in R. My response variable, renewal, is binary with...
I'm running a survival analysis to find out if some kind of regulatory intervention affects time to firms' default. After running the model I get the following results: Hazard ratio: 1.00 P-value: 0.01 I know that hazard ratio below 1 means reduced risk of death (in this case default) and the hazard ratio above 1 means...
This is industry related stuff, so I'm not thrilled about being in this position and could just use any helpful other opinions. My company has a program where we provide extra dollars to a hospital to help them see more of our members, known as supplemental funding. This has been around long before I've been there and ...
I am trying to wrap my head around this: Other than a standard linear regression model, we almost never know the theoretical distributions of the error terms Thus, how do we simulate random errors from these models? How do we know if the model fits the data well (apart from the deviance residual)? For example, here ...
I have numerical, 1D datasets from measurements that I each want to match to the closest dataset in a library containing similar datasets. Coding is done in Matlab. Unfortunately I am not too experienced with this kind of work (this is for my mech. eng. master thesis) and I hope someone can point me in the right direct...
I've done a simple mediation analysis, but not completely sure how to interpret the findings. I've found a significant (just) indirect effect, but no significant direct or total effect (see below). I'm just wondering if anyone has thoughts on how to interpret this? It's not a suppression effect, which is what I've seen...
I can’t understand specifying correlation between within-participant conditions when generating artificial data for mixed-effect model regression. It would be grateful if you could help me. My story is here. I would like to make artificial data for reaction time in a behavioral experiment. Log-transformed RT is analyze...
I plan to investigate the effect of a personality trait on reaction measures (emotional reactions and intention for political participation) in a vignette study with two conditions. I assume that the condition moderates the relationship between personality trait and reaction only as long as potential confounding variab...
Setup Suppose we have a random data element $X$ and an estimator $\hat \vartheta = \hat \vartheta(X)$ for a parameter $\vartheta \in \mathbb R$ of the distribution of $X$. I’d like to generate a p-value for the null hypothesis $H_0: \vartheta = 0$ vs the alternative $H_1 : \vartheta \neq 0$. Suppose we have a method of...
I'm a student in AP Stats and our teacher just told us that z* is the critical value used for calculating a confidence interval, but I was wondering where it actually came from. Like is there a connection between the z* value and a z distribution - why do we need to multiply the margin of error by z*? Thank you so much...
I'm trying to understand how to interpret the hazard ratio of time-varying covariates, returned by lifelines.CoxTimeVaryingFitter. Following the example on their page, I have the following data: start var1 var2 stop id event 0 0 0.1 0.0 5.0 1 False 1 5 0.1 1.4 9.0 1 False 2 9 ...
Main questions are in bold but feel free to correct me if I'm wrong somewhere else. As far as possible, I need both intuition and formal explanation. Let $X \sim Uniform(a,b)$ and $Y \sim Uniform(c,d)$ be two independent random variables and $Z=X-Y$ be the difference of these variables. I need to compute $P(\mathbf{Z} ...
I am trying to use Mallows' $C_p$ to select linear regression models. I have been reading the excellent text by Cosma Shalizi at https://www.stat.cmu.edu/~cshalizi/TALR/TALR.pdf (page 323 to 327). That text already gives 2 separate definitions of $C_p$. The first definition, which is convincingly derived from first pri...
I have performed an in vivo study evaluating splenic white:red pulp ratio as determined by AI on histopathologic slides (neural network trained and validated per published guidelines). The questions being posed are what impacts do radiation source and/or dose have on splenic lymphodepletion as measured by white:red pu...
I'm doing a time series analysis, and I want to fit a negative binomial regression model. I did a GRANGER analysis that told me that the LAG of X explains Y better than the LAG of Y. And in the problem it makes sense. So I performed the LAG of X and the present value of X in the model, and only the present value of X i...
I am trying to understand Neyman Pearson Lemma's proff from Rice's book. The lemma is intuitive, however I am not able to understand the reasoning for the first inequality in the proof. I highlighted their reasoning (just below the inequality), but not able to follow it. I also believe there is a typo where 0 should be...
I'm trying to understand what "fixed effects" means in the following paragraph. "The SF-36v2 PCS score change from baseline to month 9 was analyzed as prespecified, using a restricted maximum likelihood-based mixed-effect model for repeated measures, including fixed effects for randomization strata, treatment group, ca...
The original problem is: Given $Y_i = \beta X_i + \epsilon_i$, $i=1,2,...,n$, where $X \sim N(\mu, \tau^2)$ iid and $\epsilon \sim N(0, \sigma^2)$ iid, $X$ and $\epsilon$ are independent. What is the expectation and variance of $\frac{\sum Y_i}{\sum X_i}$ $\sum Y_i \sim N(n\beta \mu, n(\beta^2 \tau^2 + \sigma^2))$ $\su...