instruction stringlengths 9 38.7k |
|---|
From this post (Use median survival time to calculate CPH c-statistic?), the author makes clear explanation that why we can use negative hazard scores to calculate c index.
In the lifelines document (https://lifelines.readthedocs.io/en/latest/Survival%20Regression.html#concordance-index), it mentioned that the syntax i... |
currently starting to study bayesian ML, and specifically MCMC, in order to compute the posterior:
$$
P(\theta|D) = \frac{P(D|\theta)P(\theta)}{P(D)}
$$
Now, I see how the acceptance ratio makes sense considering the detailed balance definition of the Markov Chain. However, the final result doesn't really sound too goo... |
Can anyone refer me to a paper or book showing that Cohen's kappa is bounded below by $-1$? I've read various papers stating this, but I have never found a complete proof. This question was asked here, but the answer only shows that $\kappa \leq 1$, which is very straightforward. Any help would be much appreciated!
In ... |
Suppose I have two variables X1 and X2, following a bivariate standard normal distribution with a correlation coefficient of 0.2, if I create a new variable X3 that is equal to X2 if X1 and X2 have the same sign and zero otherwise, is there an analytical expression (i.e. discard simulation approach) for the correlation... |
Let's say that I want to perform K-fold cross validation for a neural network model. So, as usual, I split my dataset D into $K$ different folds. The fold $k$ is the validation fold while the remaining $k-1$ are training folds. My question is: would it be correct to use the validation fold $k$ as validation set for the... |
I have a panel dataset and ran two fixed-effects regressions. I use two R functions, plm and feols. My models are:
pdata <- pdata.frame(data, index = c('unit', 'year'))
rownames(pdata) <- make.unique(rownames(pdata))
mod_plm <- plm(servS ~ pastS + horS + lpd + wjob1A + rail + agroS + paupSRSD + enc10, model = 'wi... |
Consider I have a $n \times n$ distance matrix I want to use for hierarchical clustering, where the distance metric I use ranges from 0-1.
I also have a second $n \times n$ matrix that gives me the p-value corresponding to each pairwise distance.
The p-value is calculated based on permutation tests. Here, for each pair... |
I have data frame named "finalend", I conducted multiple logistic regression model named "model" with all predictors as categorical or binomial variables and "TestAnxiety" as outcome variable, I was asked to calculate power, but I do not know how to do it, after reading some posts here and using copilot:
1- I think I s... |
In Hasties book "statistical learning", just above equation 2.28, it says that $\mathbf{X}^T\mathbf{X} \rightarrow NCov(X)$ (when $N$ is large and $E(X)=0$).
Why is this true?
$Cov(X)$ is obviously $Cov(X,X)$, and since $Cov(X,X) = Var(X)$ and $E(X)=0$, $Cov(X)=E(X^2)$. So the original equation says that $\mathbf{X}^T\... |
I am struggling to understand the relationship between the variance of the random intercept in a linear mixed model (LMM) and the fitted random intercepts of the clusters.
Suppose the following model.
$$y_{ij} = (\beta_0 + b_{i}) + \beta_1x_{ij} + \epsilon_{ij}$$
Where subscript $ij$ denotes the $j^{th}$ observation wi... |
I am not sure how to do this. To find the method of moments estimator I did:
$$E[X] = \frac{-\theta + \theta}{2} = 0$$
use 2nd moment:
$$E[X^2] = \frac{(-\theta)^2 + -(\theta^2) + \theta^2}{3} = \frac{\theta^2}{3} = \frac{1}{n} \sum_{i=1}^n X_i^2$$
$$\hat{\theta} = \sqrt{\frac{3}{n} \sum_{i=1}^n X_i^2}$$
And to find if... |
I had two continuous variables, neither of which were in line with normal distribution. spearman correlation analysis found moderate positive correlation (r=0.597). Then spss was used for partial correlation analysis, and the control variable included was platelets (continuous variable). The results given by spss seem ... |
TLDR; there are 3 approaches I have come across to longitudinal CFA (not SEM) and I am not sure which one is appropriate for simple dimensionality reduction.
I have come across 3 common flavors of CFA models that model latent variables over time.
Q1: which is most appropriate for the intention of dimensionality reducti... |
I want to solve the following exercise:
John tells the truth two out of every three times he is asked, while Peter tells the truth four out of every five times. Both agree in assuring that from a box of marbles containing 6 marbles of different colors a red one was taken. Determine the probability that this statement i... |
While following some code to for a least squares problem using gradient descent, the claim was that the functional to be minimized is the "mean square error", $E=\frac{1}{n}\sum_{i=0}^n(y_i-\hat{y_i})^2$, where $y_i$ are the data points, and $\hat{y_i}$ are the outputs in the linear model for data points $x_i$.
My ques... |
Reaching equilibrium in a Monte Carlo simulation often refers to a state where the system has evolved sufficiently such that its statistical properties no longer change significantly with additional sampling. This is particularly important in simulations used for statistical mechanics and thermodynamics, such as molecu... |
I was reading the hypertools docs and came across this pictorial that shows 10 clusters (some seem to share very similar coloring) generated from some (mushroom) data. I was wondering what in the K-Means algorithm would cause these clusters to overlap. For instance, you can see some red patches surrounded/separated by ... |
I have seen these two definitions:
Let us consider a multivariate non-stationary random process
$y=\left\{y_1, \ldots, y_T\right\}$ that takes value in
$\mathbb{R}^d(d \geq 1)$ and has $T$ samples. The signal $y$ is
assumed to be piecewise stationary, meaning that some characteristics
of the process change abruptly at... |
Both log-likelihood and Brier score are proper scoring rules. As such, they reach the optimum when the predicted probabilities match the true ones. Since there is only one true probability for each predictor vector ($\textbf{x}$), minimising either of the two (or, for that matter, any other proper scoring rule) should ... |
In the k-means based kernel SOM, proposed by MacDonald and Fyfe (2000), the update of the mean is based on a soft learning algorithm
mi(t + 1) = mi(t) + Λ[φ(x) − mi(t)]
where Λ is the normalized winning frequency of the i-the mean and is defined as
where ζ is the winning counter and is often defined as a Gaussian func... |
I am interested in how closely a person places themselves to a certain situation in the responses they give. The responses are coded, and I create a score, with the lowest value indicating the person distancing themselves from the situation as much as they can and the highest value indicating that they place themselves... |
The variables I am discussing below are not the ones I am actually using but I think that they should give a better sense of what I am trying achieve.
I am performing a meta-analysis of some chosen factors on subjective wellbeing. Let's say, I would like to focus on how subjective wellbeing is affected by positive vs n... |
I want to compute the autocorrelation for the series {1,2,3,4,5} at lag k=1.
I step through the calculation in tabular format.
t
$x_t$
$x_{t+1}$
$x_t - \bar{x}$
$x_{t+1} - \bar{x}$
$(x_t - \bar{x})(x_{t+1} - \bar{x})$
1
1
2
1 - 3 = -2
2 - 3 = -1
(-2) * (-1) = 2
2
2
3
2 - 3 = -1
3 - 3 = 0
(-1) * 0 = 0
3
3
4
3... |
Assume that $X∼ N (μ, σ^2)$ and that $Y = e^X$ and we have set $μ = 0$ and $σ = 1.5$. We have to prove that $E[Y] = e^{(μ+σ^2)/2}$ using 10000 simulations. I.e. rnorm(n=10000,mean=0,sd=1.5). I have simulated values of $X$ using rnorm, but how can I use these values to make simulations of $Y$?
|
I am studying about Gradient Descent and Stochastic Gradient Descent, and the text says that one of the advantages of sgd over gd is, that gd can be computationally expensive for large datasets. In particular, it says that in gd, the gradient is calculated for all of the data points and in sgd on a random batch.
My que... |
I was reading about an approach to Survival Analysis called "First Hitting Time Models" (threshold regression): https://www.jstatsoft.org/article/view/v066i08 , Can Survival Models model the time at which a random variable will first pass a certain point? , Modelling Time to Events
It took me a long time to understand... |
Can someone please help me address the following two doubts.
First question: I have often heard from practitioners that you should plot the dependent variable and see the way it is distributed. That should hint you towards what kind of regression you should use. If it is normal, then general linear model, if it is rig... |
I have a question regarding the cross-sectional sample from the most recent visit and the nested case-control sample extracted from a cohort study, especially when the exposure of interest was collected at baseline.
Suppose the exposure of interest was collected at baseline and does not change over time. In this scenar... |
I have two images from erp_data and noerp_data matricies. In erp_data we can see a pattern (sigmoid), in no_erp we see no pattern. ERP is event-related potential, if you are curious.
My goal is to find a metric that detects patterns. I used entropy to determine if there is structure in the data. If there is structure... |
I am trying to quantify the effect of financial sanctions on cross-border capital flows. I have built a dyadic dataset of sanctions and capital flows by country pair and year. My sample period spans 20 years.
I conducted a fixed effects regression where the explanatory variable for sanctions is a dummy variable that ta... |
I'm currently conducting some research on inflation perceptions and I have two groups of data (Group 1 with 67 responses, Group 2 with 71 responses). Group 1 were asked question x, and Group 2 asked question y (both questions essentially were what do you think the current inflation rate is, just asked in different ways... |
I am currently trying to build a stacked algorithm in order to determine how many people in each region of a country will be likely to buy a product versus its competitors. I have some data from an online survey which collects user's demographics as well as their preferred product and I've weighted these so they reflec... |
A person is asked to perform a task for a number of times and each time the researcher judges whether the performance is a success or a failure. The person continues performing the task until he/she has been succesful for five consecutive times, in which case the person in said to have reached the target criterion. For... |
I'm working on a logistic regression model using R with a binary outcome (prescribed DPP-4 inhibitors or other drugs) and several predictors. My model is specified as follows:
model_dpp4is <- glm(dpp4is_binary ~ age + sex + year_of_rx_fill + bmi + dgf + creatinine +
esw + insulin_at_start + log_tim... |
I am trying to analyze a dataset in which I have a binary DV, one continuous IV, one 2-level categorical IV, and one 3-level categorical IV. I initially thought of running a binary logistic regression, but then I didn't get all pairwise comparisons for the 3-level categorical variable (which I would like to have).
This... |
I am confused about whether the value of the sampling variance of the OLS estimator of a regression coefficient (e.g. slope) differs from sample to sample.
Assume we have the following simple linear regression model:
$$Y = \beta_0 + \beta_1X + \epsilon$$ where $\epsilon\sim N(0, \sigma^2)$.
Let $\hat{\beta}_1$ be the O... |
I have used R to compute the mean, median, and SD of 100K monthly salaries of public state workers salaries in a US state. I then took the log of each of those salaries, and got:
The mean, μ = 11.29312
The SD, σ = 0.3538964
I then calculated the expected value, using this formula $E(Y)=e^{μ+σ^2/2}$ = e^{11.29312+(0.353... |
Context.
I am tutoring a final year secondary school student in mathematics. To illustrate the principles of card-counting in a situation of sampling without replacement, I've decided to show her a toy model known as Red-Black (or Odd/Even), which received much analysis from a cohort of renowned probabilists in the opt... |
Research Question
I am trying to determine if maternal nest-site choice influences offspring sex ratio in a species where nest temperature determines sex.
Data
I have temperature traces from real nest sites and random sites at six nesting locations. The data was collected over five years. From these temperature traces,... |
We're tracking users' hourly usage on our cloud service and have a risk model that uses aggregated usage data plus other signals to identify potential fraudsters. Basically, it's an anomaly detection model. The current approach uses simple filters, like checking if today's usage is suspiciously high on yesterday (aroun... |
I currently have data that can be split into two categories: one is a repeated measures data (collected at multiple time points), whilst another is a single measure dataset (one single time point out of a set of potential timepoints). In the interest of trying to integrate the repeated measures dataset with the single ... |
I am having issues attempting to derive this new design matrix. The objective function for the previous question was as follows: $\sum_{i}^{n}(Y_{i}-\mu)^2+\lambda\mu^2$
Find a design matrix $X(\lambda)$, and a data vector $Y(\lambda)$ such that:
$\hat\mu_{\lambda} = (X(\lambda)^{T}X(\lambda))^{-1}X(\lambda)^{T} Y(\l... |
I am struggling to understand why interaction cannot be measured in a CBD. While many sources say it is because there is only one observation per block/treatment combination, could you not compare the different response values for each level of the treatment within a block compared to that of another block, and be able... |
Suppose a person has a $0.2$ chance of drawing a red dot, a $0.4$ chance of drawing a blue dot, and a $0.4$ chance of drawing a green dot. If they draw a blue dot, they get a second chance to draw dots, in which they have a $0.5$ chance of drawing a second blue dot, and a $0.5$ chance of drawing a second green dot.
As ... |
Cross-posted at MMSE and at SciComp.
In the case of Monte Carlo simulations:
Autocorrelation Time ($\tau_{\text{int}}$): A measure of how many steps are needed for the correlations in the chain to become small; it affects the variance of estimators based on the Markov chain.
Relaxation Time ($\tau_{\text{relax}}$): T... |
I have a scatter plot that I've fitted with a natural cubic spline with 4 knots using ns(), pictured below:
I would like to find the value of x where the slope is zero at the abline pictured below:
Is there a straightforward way to do this in RStudio? I'm having trouble with trying to figure out what the natural cubi... |
Given the model:
$\log(y) = \beta_0 + \beta_1 x_1 + \beta_2 x_2 + \beta_3 x_1 x_2$
Which can be for example a Poisson or a Negative Binomial model ($y$ would be a count variable) or a logistic regression ($y$ would be odds), what is the interpretation of $\beta_3$?
I came up with the following, and I ask you (1) if it ... |
I was having a discussion with some colleagues about graph theory and how it could be applied to analyzing fMRI datasets, where the matrix is a pairwise correlation matrix between pairs of region of interests (ROIs). Given that we define our ROIs anatomically by using a reference Atlas, I had asked if we could analyze ... |
I know that for OLS: $y=X\beta+\epsilon$ with $\epsilon\sim N(0,\sigma^2)$, we have $var(\widehat{\beta}|X)=\sigma^2(X^TX)^{-1}$.
For logistic: $y^*=X\beta+\mu$, where $\mu\sim logit(0,1)$, and what we observe is y the indicator function, the variance of $\beta$ converges to $(X^TWX)^{-1}$, where $W$ is diagonal with ... |
I am trying to understand where the formula used in Posterior Predictive Check comes from:
$$P(y^* | y) = \int p(y^*|\theta) p(\theta|y) d\theta$$
Where:
$y^*$ is the new data
$y$ is the original data
$\theta$ are the model parameters
$p(\theta |y)$ is the posterior probability distribution
$p(y^* |y)$ is the probabil... |
I have a variable called Instagram reach, which represents the number of people who viewed a post, and engagement is the number of unique individuals who interacted with that post. We know that engagement is influenced by reach, so there is a very high collinearity between these variables. I would like a method that se... |
I'm trying to understand whether my analysis for a problem is in the right direction.
I have 2 algorithms (3d object detectors) that I've applied to the same dataset to obtain TP, FP and FN's for each (using a separate 'optimal' threshold for each one). Now I'm trying to gauge whether their performance is different eno... |
I'm looking to model the effectiveness of an intervention on human behavior. I have control groups and treatments groups for the outcome of interest and pre and post measurements (just 1 for each) for the outcome. The outcome can be calculated as a rate or count variable. I have specific features of the person that may... |
Suppose that I have a dependent variable which is the proportion of persons infected with a certain disease out of the total number tested in different locations. Assuming the difference in geographical areas is negligible, would it be appropriate to use binomial GLM and include the weights (Total number tested) or bet... |
I recently learned about confidence interval for proportion now let's say i use a Z score and get the confidence interval of 95% as follows:
$$ C.I = \hat{p} \pm Z_{(1-0.95)/2} \sqrt{p(1-p)/n}
$$
now as i see it i have two options.
I can substitute p for p hat as it's an estimator for the proportion.
I can substitut... |
I am looking for how FROH (inbreeding level) change with age, island and year are random. I got the following result and got NA for p value of intercept, what might be the cause of it and how to interpret in such case?? is use of perm.lmer function wrong here??
permmod1<- perm.lmer(FROH ~ age + (1|island) + (1|year) , ... |
What is the distribution of $E[Y|X]$ (=$X\hat{\beta}$) and $X\hat{\beta} + \epsilon$ in a multivariate linear regression
There are several places this question has been answered implicitly or explicity. I am asking this question because:
The other answers never prove why the model prediction is t-distributed or normal... |
Why the commitment loss is necessary in the VQ-VAE objective function?
I understand that it's serving the role of keeping the encoder outputs(continuous latent representations) close to the codebook.
What I don't understand is why the encoder outputs will tend to blow up/grow to infinity without this commitment term?
w... |
I am trying to model particles generated by a mechanical crusher.
We put a big chunk into crusher and we get small particles.
These particles are categorised into 3 categories
Size <2 mm, 2-50 mm and >50 mm.
Assume these particles are spherical in shape.
Target is to find the particle size distribution such that.
Size ... |
I'm currently using the bootci package in MATLAB to compute bootstrapped confidence intervals. I have data for two variables and I'm interested in comparing differences in means of these variables. However, I'm unsure whether and how to control for multiple hypothesis testing when computing these intervals. Any guidanc... |
The authors of the paper "Explaining and harnessing adversarial examples" (ICLR'15) give the following rationale for taking the sign of the gradient of the loss with respect to its inputs in Section 4 of the paper:
We can linearize the cost function around the current value of $\theta$, obtaining an optimal max-norm c... |
I am studying small-bodied ground snakes and skinks (lizards). I use artifical cover objects to determine their presence.
Artificial cover objects (hereafter CO) consisting of 7 different types of materials were placed at seven different sites within my study area. At each site, seven CO were placed on each side of a... |
These data are from SAMHSA, Mental Health Client-Level Data. I am trying to find the right parameters to obtain clustering as in this paper. Code here.
For now, I'm dropping columns which aren't disorders. I expect life factors (employment, insurance, housing status, etc.) to be correlated.
I'm using this tool to under... |
In "Almost Sure Convergence" by Stout, there is indicated that the concept of invariant event (and further, the concept of ergodicity) can be defined in terms of given stationary stochastic sequence $\{X_n,n\geq1\}$ (with no reference to the concept of measure-preserving transformation) as:
$$
A=\{\omega\in\Omega\,|\,(... |
I'm running a linear regression in SPSS to test for effects of a binary variable (X) on cost of hospital admission. The variable is correlated with a cost increase of around $3000W
When the model has variable X and a few other correlated categorical variables, I get a B value of $2400 for X.
As soon as I add length of ... |
I'm a novice at stats and thought I'd ask this question to those with much more experience than me.
I've got temperature data and count data for number of animals hibernating in man-made boxes. The temperature data is very detailed (hourly) but there are relatively few counts (12 in total split between four sites) that... |
I'm analyzing simulated portfolios generated using the stationary bootstrap method proposed by Politis et al. (1994). This method is expected to be robust to the choice of average block size, as it employs a random block with mean m-months. However, I've observed that the selection of block size significantly influence... |
I am currently teaching an ecology class how to use the variance to mean ratio (VMR) as a method for looking at the spatial clustering of individual organisms across a landscape. This method takes the number of individuals in each "plot" and compares it to a Poisson distribution. If the distribution of the data fits th... |
I'm looking at a panel of observations where, for each column (15 sets of Y) in time series, I'm running individual OLS's to estimate each slope against a common (1) X variable. I now have the 15 slopes and the corresponding 15 standard errors of those slopes.
What I'd like to do is get an idea of how beneficial it wa... |
<I asked a similar question earlier: Question>
I am seeking guidance on methods for estimating the parameters of a process when the characteristic function is known but the distribution is not. Theoretically, I understand that one can compute the moments of this process from the characteristic function. However, in my ... |
In OLS regression, do the control variables need to have linear relationship to the dependent variable (linearity assumption) or just the independent/explanatory variables? Thank you.
|
I have a dataset $D$ of binary values, with length $|D|$. There is some unknown $d \in \left[1,2,\ldots,|D|\right]$ (usually, $d$ will be somewhere in the middle) such that, for any $i<d$, $D_i$ comes from a Bernoulli distribution with success probability $Q_1$, and for $i \geq d$, $D_i$ comes from a Bernoulli distribu... |
Many frequentist methods have direct Bayesian analogues, and vice versa. But there are some instances where the frequentist version is extremely cumbersome if not outright impossible. Those methods, if widely applicable and useful, could be considered system sellers of the Bayesian paradigm.
Allen Downey (whose blog po... |
I'm a Swedish PhD student in psychology looking for advice on what to read to understand linear mixed models in a longitudinal context better. We're running a RCT with two active groups and weekly measures that will continue to collect data for a couple of years. When it's over the intention is to investigate a couple ... |
As a data scientist without much formal training, I'm looking to get some professional feedback on the following question:
Is it ever advisable to use causalimpact (or I guess BSTS generally) to forecast time series without an intervention?
I do know that causalimpact is meant to be used with an intervention, but one c... |
I'm having trouble with the statistical idea of a fixed regressor, it seems that our $X_i's$ are not treated as random variables, but we are still able to meaningfully condition $Y$ on them in a way that we couldn't if $X_i$ was just the constant $c$. The fixed regressor seems to be occupying a middle ground between a ... |
I am trying to understand how a design matrix was obtained in this problem below.
Consider the one sample problem:
$Y_i \sim N(\mu, \sigma^2), 1 \le i \le n$. with the $Y_i's$ i.i.d. The MLE is:
$\hat\mu = \frac{1}{n} \sum^{n}_{i=1} Y_i$.
Find a design matrix $X$ such that $\hat\mu = (X^{T} X)^{-1} X^{T} Y$.
The answer... |
I got a quick question I got a markov chain with this trans matrix $$\begin{pmatrix}1&0\\1/2&1/2\end{pmatrix}$$
And I got 2 states right [0,1] right.
So I know state 0 has a period 1 and is positive recurrent cause it keep returning to itself but has period 1.
But not sure about state 1. I know it has period 1 because ... |
I'm seeking some advice or references concerning the optimal number of observations required for each category within a categorical variable, specifically for machine learning projects. To give an example, consider a column labeled "color", which encompasses three categories: red, green, and blue. I've encountered a ge... |
I am working on a problem using a Bradley Terry Model and was asked to derive the design matrix of for this model applied to some data, but I am not sure how to do this using this data. Are there any examples or references on applying the bradley terry model and extracting the design matrix?
The data I am using comes f... |
Typically, the subgradient is defined for convex functions. And convex functions are continuous.
However, DeepMind's VQ-VAE paper defines a model with a discontinuous vector quantization (VQ) layer, resulting in a discontinuous objective function. Still, the authors remark:
One could also use the subgradient through t... |
Assume that K-Fold cross validation is used on time series and the data experiences a regime shift after the 1st fold (assume it is the leftmost one for simplicity). Regime shift in this context means that the model is not appropriate (performs badly) in-sample after the regime change. We apply a fix to the model by tr... |
Can a deep learning classifier, trained on a dataset derived from a reinforcement learning (RL) agent's interactions with an environment, achieve the same performance as the RL agent itself? Assuming an environment that can generate unlimited data, where the RL agent's actions and outcomes are recorded and formatted as... |
Through 10 cv, the roc-auc value was obtained as follows. At first, I tried to select the feature with the highest average roc-auc value, but I had doubts about whether the difference in these scores was statistically significant. What should I do to resolve this question?
roc auc value
0.848, 0.847, 0.848,0.848,0.845,... |
Edit: this question is not:
about programming
About post-hoc power analysis (at least not with the intent to use sample statistics in post-hoc analysis - I have pretty good population estimates and I want to show people to USE those)
This question is about:
proper use of a common tool used extensively in the scienti... |
Please understand I am not familiar to the statistical languages. All I want is to resample a probability distribution from an existing sample drawn from another distribution using MCMC, without postponing my dissertation by a year or two.
Suppose I have sampled a series of vectors, $\{\vec{x}_i\}_{i=1}^{N}$, that foll... |
I have a digital terrain model (DTM) downloaded from NASA's SRTM dataset at a resolution of 1 arc second covering Spain and France. This has a stated RMSE of 9.73m [output 1]
I projected this to UTM30N and resampled (bilinear) to 25m x25m cells which seems to be the best cell size approximation for 1 arc second in thi... |
Some days ago another user posted a question which was something like this:
$$ A \sim U(0,4)$$
$$B \sim U(0,6)$$
$$A - B \sim U(-4,4)$$
The question was originally to find the distribution of A conditional on B. Immediately two famous users of the community spotted a problem and commented that it was impossible, then p... |
I'm looking for ways to to find the probability of an earthquake event from Twitter posts. I came across an equation in a research article that I need to understand and use. My goal is to write a function $f(n)$ where $n$ is the number of tweets posted during a time period, say 1 hour. These tweets are assumed to descr... |
I have a dataset with the number of events (numerator) and population (denominator) by age and year. My aim is to calculate a growth rate for each age over the years with how much uncertainty there is. To do this, I'm running a WLS of the log of the rate [ln(numerator/denominator)] with year as an independent variable,... |
I want to perform a panel data event study using quarterly data. I have collected time series data on stock prices for approx. 1000 firms from 29 different industries over a 365 day period. My goal is to test for abnormal returns in stock markets as a result of war. However, the methodology seems mixed on the best way ... |
I'm trying to interpret an early and pretty dense (to me) paper on the theory of linear regression:
Bartlett, M. S. (1934). On the theory of statistical regression. Proceedings of the Royal Society of Edinburgh, 53, 260-283.
The paper, and particularly the second half, is devoted to deriving as much as possible about t... |
I'm working with survey data, which I've never done before (from the SHARE database). What I basically want to do is create a composite variable for cognitive function, mental health and maybe some others from variables where some are objective measures (numeracy, memory etc.) and some are self-rated or rated by a clos... |
I am following the methods described in:
Clogg, C. C., Petkova, E., & Haritou, A. (1995). Statistical methods for comparing regression coefficients between models. American Journal of Sociology, 100(5), 1261-1293. and Paternoster, R., Brame, R., Mazerolle, P., & Piquero, A. (1998). Using the correct statistical test fo... |
I'm fusing acceleration data from an accelerometer and the derived acceleration from a distance sensor to learn about sensor fusion. The derived acceleration (2nd derivative) from the distance sensor was fairly noisy. I used a moving average filter to clean up the data and it seems to match the accelerometer data fairl... |
This is a follow up to my question here: Deriving Distributions of Linear Regression
I am trying to manually derive the distribution of the observed residuals (I call the $\epsilon$ as the theoretical errors and $e$ as the observed residuals) in a linear regression model. I keep getting confused on how to do this and w... |
I am confused about how can implementing regression to recommend books ratings be an item-based collaborative filtering? Can you elaborate?
|
Consider bootstrapping the $t$-statistics: $T_n = T(X_1,...,X_n) = \sqrt{n-1}\frac{\bar{X} - \mu}{\hat{\sigma}}$ for iid observations $(X_1,...X_n)$, where $\bar{X} = \frac{1}{n}\sum_{i=1}^{n}X_i$ and $\hat{\sigma}^2 = \frac{1}{n}\sum_{i=1}^{n} (X_i - \bar{X})^2$..
Now, I know from the Central Limit Theorem that $P(T_n... |
Suppose I have $N$ different items to be ranked, and $M$ different people who provide a ranking of the items according to their personal preference. What is the best way of combining all rankings into one?
The simplest approach would be to compute the sum of all ranks, and then rank the results from lowest to highest. ... |
I am currently trying to set up a python program to implement Westfall & Young (1993)'s minP permutation procedure using Python. The computationally efficient algorithm I was able to find by referring box 04 of Ge et al. (2003) https://statistics.berkeley.edu/sites/default/files/tech-reports/633.pdf is given below.
Pl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.