instruction stringlengths 9 38.7k |
|---|
I assume my understanding of propensity score matching using R's matchit package is wrong.
MatchIt has a ratio argument where I can specifiy k:1 matchings. I did a 2:1 matching with the lalonde dataset which gives me in result 185 treated and 370 controlls.
In another variante I did 1:1 matching but in two iterations.... |
In an experiment (4 sessions, 2 groups), subjects try to remember words.
We want to test
H1: the overall (marginal) main effect of group
H2: the specific interaction contrast of group and sesson1 _ 2
library(lme4)
library(lmerTest)
library(emmeans)
set.seed(123)
imgdat_final_shortterm[20:25, c("VP", "GROUP", "sessio... |
I have a repeated measures dataset (8 measurements) with three experimental groups (Randomly generated). The dependent variable (Y) is on a continuous scale bounded inferiorly at 0. I am trying to model the effect of the different groups and time on Y. What would be the appropriate model here? -
repeated ANOVA is comp... |
I am new to stacking. I have a dataset with N samples and 7 tables corresponding to different data types, plus a binary label. Some tables have dozens of features, other have many thousands. I train 10 ML models (SVM, KNN, XGB etc.) separately on each table, excluding one sample and forming a prediction on the excluded... |
I have a typical example of A/B testing where we want to investigate the change in user behaviour after having tested a new website design on a specific group of users.
The metric that we're using (and the only one that I have available) it is whether the user opened an account on a competitor website: kind of the oppo... |
Let's say I want to assess the effect of a treatment (A or B) on a continuous variable measured on subjects.
The subjects I want to experiment on are organized into "groups". It has been previously demonstrated that the "group" a subject is a part of can have an effect on the continuous variable I want to measure. Also... |
Background: Pearl presents the following Equation (7.6) for the probability of a counterfactual, $Y_{x'} = y'$, given the observed quantities $X=x, Y=y$:
$$
\begin{align}
P(Y_{x'} = y'| X=x, Y=y) &= \frac{P(Y_{x'} = y', X=x, Y=y)}{P(X=x, Y=y)} \\
& = \sum_u P(Y_{x'}(u) = y')P(u|x,y),
\end{align}
$$
where $u$ is a pa... |
We have a dataset with around 20,000 variables and only 200 observations.
Our Naive Modelling:
We split it into train set (=150 observations) and validation set (=50 observations) and fit Linear regression.
Results / Train set: As expected, we get $R^2$ as 1 and $MSE$ as ~0 for train set.
Results / Validation set: As ... |
I want to generate time-series data with specified AR(1) and standard deviation.
I am using arima.sim to generate univariate time series.
(Ultimately, I want to use VAR.sim in tsDyn package for multivariate data, but I will keep it simple here with arima.sim for demonstration in a univariate situation).
I noticed that ... |
Let us recall Bayes Theorem, where $\mathcal{D}$ is the data and $\theta$ is our parameter(s) of interest.
$
\operatorname{p}(\theta|\mathcal{D}) = \frac{{\operatorname{p}(\mathcal{D}, \theta)}}{\operatorname{p}(\mathcal{D})} = \frac{{\operatorname{p}(\mathcal{D}|\theta)}{\operatorname{p}(\theta)}}{\operatorname{p}(\ma... |
I might be looking for something fairly obvious but here is my setup:
I have one group of participants who will perform multiple (different) tasks in an experiment. For each one of the tasks, I want to compare the performance of the participants against a given, fixed value. I might be comparing the tasks against each ... |
I have a table that looks like this:
initial
final
fsa_top
hours_top
fsa_bot
hours_bot
2020-01
2020-06
1540.33
35222.21
984.5
28765.22
2020-02
2020-07
1765.43
36782.99
976.22
27666.07
and so on
I want to perform a test to compare the proportions fsa_top / hours_top to fsa_bot / hours_bot and I have been... |
I assume that it is not possible to calculate a mean() from a factor() column with three expressions.
But it seems to me that R's MatchIt package is able to do that. Please see this summary output which reports a mean for all three expressions of the factor column race:
Summary of Balance for Matched Data:
M... |
Say someone runs a survey with, 100 binary question to which 10,000 randomly selected people responded. For 5 of those each questions (#20 to #24), answers looked like this (lets call this set of questions "A"):
Question 20: 75% yes
Question 21: 70% yes
Question 22: 71% yes
Question 23: 72% yes
Question 24: 73% yes
... |
I'm looking for some direction on the proper way to cluster forward commodity curves based on their day over day returns.
I've worked on clustering in the past but I only dealt with spot prices rather than a full forward curve. For instance I would want to try and which forward curves move similarly across the full len... |
I am trying to generate the data which follows the distribution $ZOID(\alpha,\beta,\theta)$ with pmf as follow:
\begin{align}
Pr(X=0)&=\alpha\\
Pr(X=1)&=\beta\\
Pr(X=x)&=\frac{(1-\alpha-\beta)}{2}x(x-1)\theta^3(1-\theta)^{x-2}\quad; x\geq2,
\end{align}
The $Pr(X=x)$ when $x\geq2$ relates to $Geom(\theta)$. I have tried... |
How is the log-rank test a "non-parametric test" according to wikipedia.org if one has to specify the parametric survival model for this test?
We may run log-rank under the assumption of exponential probability distribution, weibull, gamma, log-logistic all of which are parametric models.
|
Setup:
Assume I have a linear mixed effects model of the form: outcome ~ x + f + (1|ID), where x is a between-subjects predictor variable, f is a within-subject factor with 2 levels and ID is a subject ID. Each subject has 2 outcome values (one for each level of f).
Question 1:
What is the correct way to interpret th... |
I have some proteomics data of 16 biological replicate samples split between 8 control and 8 knockdown. One of the tests I wanted to do was to see if the knockdown impacts the variance of the protein expression levels (either through physiological mechanism or the experimental procedure itself). I've been looking for w... |
I am currently working on machine learning problem with the following characteristics:
- Data have binary outcomes and are severely imbalanced (positive class is ~0.5% of my sample of ~500,000 data points).
- I'm using an XGBoost to estimate probabilities of positive outcomes.
- It's important that probabilities pre... |
How does Pandas Interpolate method = time function work? From my understanding, it sounds very similar to an Exponential Moving Average, but it gives me different results, even when I play around with the function parameters.
import pandas as pd
import numpy as np
index_date = pd.to_datetime(["2020-12-01", "2020-12-02... |
Let's say we design a RCT for two different populations and want to test an intervention vs a control. It could be adults and children, male and female, etc.
We have one primary endpoint to be tested in both groups. But for each group we will have an intervention and a control, so two intervention arms and two control ... |
I am trying to test the autocorrelation of a VAR model using the Portmanteau statistic. I am using the R function serial.test().
I would like to fully understand how this test works. Can someone explain clearly how the statistic is calculated?
$$
Q_h = T\sum_{j=1}^h tr\Big(\hat C_j'\hat C_0^{-1}\hat C_j\hat C_0^{-1}\Bi... |
I am trying to do factor analysis on a few variables and one particular variable (given in the example below) is covering/ explaining all the variance due to some outliers. I am not sure what else I can do apart from removing this variable from factor analysis. But doing so will lose a lot of information. Hence, I am t... |
I am just despairing of the derivation of the minimum variance procedure. The method of the combination of forecasts was first established in 1969 by Bates and Granger. They also invented the minimum variance method.
Here is an excerpt from the paper:
My problem with this is that I don't understand where the error var... |
I'm currently doing a prediction model using Cox regression on a dataset coming from an ongoing clinical database and containing information about patients who all have the same genetic disease.
In it, I have several binary variables for clinical manifestations of the disease(Present/absent), a birth date, a binary var... |
I am pretty much a beginner in statistics/R and I would need your advice.
I have tried to look for the answer for my problem (believe me, I prefer to search rather than post) but it only increased my uncertainty regarding the appropriate course of action.
I am trying to fit a linear mixed model on my data, however, dur... |
I have seen several examples of people performing bayesian linear regression in python packages such as stan or pymc3 where they have the parameters/distributions as exponents w.r.t the variables.
e.g
def transform(x, ec, slope):
return 1 / (1 + (x / ec)**(-slope))
Where slope follows lets say an normal distributi... |
My model identifies objects with a specific quality in a large population. I tested it on a sample of 500 and found that it fails to identify about 7% of the objects (false negatives) due to some difficulties with the data which I cannot correct. This is a systematic measurement error, which should not affect regressio... |
I have a quick question, possibly stupid one. Can someone explain to me what T, K, q, Omega means in this ARCH-ML formula? Is it K - number of parameters, T-number of observations, q - lag, Omega - covariance matrix of VAR model?
Thank you
|
I often see things like
$$ p(w|X,y) \propto p(y|X,w) p(w)$$
where $w\in\mathbb R^p$ denotes some parameters, $y\in \mathbb R^n$ denotes some observed outcome values, and $X\in \mathbb R^{n\times d}$ denotes the matrix of observed inputs. But strictly following Bayes rule, isn't it
$$ p(w|X,y) \propto p(y|X,w) p(X|w) p(... |
I'm looking to get some insight on what methods I can use to help identify key factors in my dataset that influence my dependent variable and how to prove that they are statically significant. There is about 15 columns and a couple thousand rows of data. I've included a small sample. All of the data is in binary. I'm n... |
I am working on creating a cost estimate for an order code, which is an order for medical procedures (category variable). I have estimated costs by patient encounter (visit to the doctor).
I am creating dummy variables for the order codes. I am then grouping the patient encounters so all the appropriate category va... |
There are a couple of threads (1, 2) which address the dependency of reward on the next state in addition to the current state and action. Clearly, modeling the transition probability as a joint distribution over next states and rewards $p(s', r \mid s, a)$ as done in Sutton and Barto's Reinforcement Learning: An Intro... |
I've conducted a study comparing two different teaching strategies in two different sections of the same class; I gave participants in both classes the same 5 tests and wanted to see if test grades in Class A differ significantly from test grades in class B.
My plan was to do an independent samples t test, but as it tu... |
here is a question I posted on StackExchange, but I was hoping if anyone here would also have insight in how to manually estimate a Gamma log-linked GLM model using 2SLS.
https://stackoverflow.com/q/73228998/19687003
Thank you!
"I want to estimate the following model using Gamma log-linked GLM and 2SLS:
'Unemployment_t... |
There is a confusing facet of the concept of a specification test.
According to many textbooks, a specification test is roughly a statistical test investigating whether assumptions in a statistical model are true or not.
Here, I think, it is not clear whether specification tests are arguments for the population of inte... |
For two samples equal sample size $(n\ =\ 100)$ that are randomly selected and dependent, only the sample means$(\overline x_1, \overline x_2)$ and sample standard deviations($ s_1,s_2 $) for both samples are given and the pair data for two samples are not given.
Also, it is given that population variances are equal f... |
I am in the last phases of my master’s thesis, and came across a question regarding my data analysis results that I cannot seem to find a clear answer for.
For context, my data is from a randomised, double-blind, placebo-controlled, between-subject study, in which 50 healthy subjects were randomly assigned to receive e... |
I have been trying to learn more about the inner workings of different correlations lately and noticed that the Pearson correlation so far has been easy to figure out the why's and how's of. However, I have found the Spearman correlation is quite straightforward to calculate, but I'm having trouble understanding why th... |
Could you please answer how should we approach this situation in linear regression problem: The target variable is distributed in a skewed fashion(50% of the values lie in the range 0-300 and 40% in 300-500 and 10% in remaining 500-1000. Will this cause a problem to my regression model and how will you approach to tack... |
I added a follow up question what if the coin is unfair? to my original question A flips a fair coin 11 times, B 10 times: what is the probability A gets more heads than B?, but the moderators asked me to start a new question
I believe the "naive approach" in the original question is wrong, it is only correct by acci... |
Sorry, I am new to linear mixed models. I run a linear mixed model and get the following Output:
I researched the yield and LAI of Sweetcorn. Yield and LAI of [A] pic was measured in ground-base using portable machine. In case of [B] pic , all data was recorded by UAV (Same field). So, the No. of data is different bec... |
I came across a post by the SEC showcasing teams’ home record during the past 5 seasons.
Although Alabama ranks first for having the most won games at home, I questioned the fairness of the average win rate as some teams played less/more home games than others.
From my understanding, normalizing scales each input var... |
I've got a questionnaire in which I'm asking participants to rate 17 countries on eight different rating scales each (scale 1-7). I'm now interested in finding out which countries are similar to each other in their rating profiles and ideally find groups of countries that are perceived similarly in some way.
The datase... |
I was reading Gregory Gundersen's blog entry on the local reparameterization trick
and at a certain point he writes
$$\nabla_{\theta} \mathbb{E}_{p_{\theta}(\bf{z})} [f_{\theta}(\bf{z})]=\int_{\bf{z}} (\nabla_{\theta} p_{\theta}(\bf{z})) f_{\theta}(\bf{z}) \,d\bf{z} + \mathbb{E}_{Q_{\theta}(\bf{z})} [p_{\theta}(\bf{... |
As I am about to submit my master thesis, I am having doubts about the mathematical correctness of the regression equation I have used to represent my model. A bit of context: I am predicting review rating with 12 continuous variables (labelled topics 1 to 12) and an industry factor (that can be "Finance", "Tech", "FMC... |
I want to know how did author compute the probability of eleven runs if all arrangements are equally probable.
My attempt to answer my own question:
This example indicates wide applicability of the probability model of placing randomly r balls into n cells. Here n cells = 16 seats and r balls = 5 persons. Such an even... |
I have a longitudinal data including 4 follow-ups and the individuals are old. My event of interest is if happening of ability fall and I am also looking for competing risk of death. But the problem is that when I check there is no competing risk of death which is kind of strange. Individuals may have missing values. I... |
Is there a rule of thumb for dropping certain categorical predictors if the most frequent value in the column is above a certain threshold? For example, should I drop a column/predictor if more than 95% of the values are the same category?
What would be the proper way of dealing with such kind of columns? Should the ra... |
Is it readily possible to do predictive churn analysis (i.e., associating a churn risk with every individual/customer) using statistical tools (e.g. in Excel) not involving the use of machine learning or AI or deep learning? Is such a thing commonplace at all?
My guess was that people would be doing some sort of predic... |
Background:
I am currently working on a dataset representing the evolution of the income of a hospital which hosts several medical specialties.
The ratio income/medical act increases between year $N$ and year $N_1$.
I would like to compute the part that is to be imputed to the change in the activity mix (that is, the f... |
I am working with educational data. To do so, I am using the classic three-level hierarchical linear model (student, class and school).
I am using the R software lmer package and the stata software.
When I perform the residual analysis, the assumptions of homoscedasticity and normality are not met.
Here is the adjusted... |
not quite a math-question, but I have a doubt.
I'm trying to build from scratch the Pix2pix network, on the facades dataset, and I think I finally got a good model (from the paper I borrowed just the idea, the model structure I'm trying to find it myself), however, if all the previous trials had some artifacts that was... |
What is the probability of two people who hit with probabilities p and q respectively neither hitting their targets?
A is the event that person one hits ~ Ber(p)
B is the event that person two hits ~ Ber(q).
I thought the answer is $1-p \cdot q = P((A \cap B)^c)=p((A^C \cup B^c) = P(A^C)+P(B^C) - p(A^C \cap B^C) = (1-p... |
I have time series data which is as shown below
To proceed with this series for building forecasting , I read many places if your data is not white noise and does not have random walk then you can model forecasting , Otherwise if your time series data is either white noise or has random walk then don't use time series... |
The thought experiment:
STEM = having a science, technology, engineering or mathematics degree (0/1), W = wages in the top quartile (0/1), LOC = individual location vector (integer values 1-20 representing different cities)
When we regress W on STEM (reg w STEM), we find that the coefficient on STEM is positive
When w... |
I have a question regarding a mixed model I am using: In a study, participants have been presented with 40 different news article headlines and indicated for each headline whether they would share the headline or not (Yes coded as 1, No coded as 0). There are the two binary within-subjects factors “Accuracy” (true vs. ... |
I would like to check if I correctly derived my the expression for $p(\mathbf{s}|\mathbf{d})$. Here's the question:
Consider a model of diseases and symptoms. $s_i\in\{0,1\}$ is a binary random variable indicating whether the patient is showing the $i$-th symptom and $d_j\in \{0,1\}$ is a binary random variable indica... |
I am trying to understand how ANN is different from LSTM when we include lagged variables as predictors. Is the difference solely in forget gate for LSTM?
|
thank you for reading.
I have been attempting to train a simple VAE on very sparse 2D and 3D data. So far I have been training using dense tensors which - I think - is resulting in horrible training due to the submanifold dialation (so coined in this paper: https://ui.adsabs.harvard.edu/abs/2017arXiv170601307G/abstract... |
I'm trying to implement the forward-backward algorithm for a Linear Chain Conditional Random Field, as to compute the marginal distribution over labels for each time step in a sequence. I'm following Hugo Larochelle's (excellent) course on Neural Networks on YouTube.
More specifically, he describes how to compute the $... |
I want to perform an ANOVA test on a mixed linear model.
I have variable response "CK" measured in 2 independant conditions:
-2 groups of horses (independant variable : Groupe: Groupe 1 and Groupe 2 : between)
-at 2 time points for each subject (independant variable : Temps: T0 and T4, within subject: repeated measures... |
Suppose that we have an AB test in which the individuals have been evenly split. We are measuring many variables simultaneously for each one of the individuals of this test (for example, X and Y). All the variables only take values >= 0.
When doing a T-test on X values, we obtain a p-value = 0.02 and when doing T-test ... |
I am preparing for an exam and I have stumbled upon this exercise, which I am not certain of.
a)
You are given i.i.d. data $x_1, \dots, x_n$ from a continuous distribution with density $\frac{\alpha p^{\alpha}}{x^{\alpha +1}}$ if $x \geq p$ and $0$ if $x \leq p$ and prior $\pi(x)\propto p^{\gamma-1}e^{-\beta p}$ for $... |
I'm having problems using betareg. I have a dataset that always shows different results depending on how I perform the analysis. I'm using lrtest to compare the models as follows:
snf.null <- betareg(overlay_of_niche_flowers ~ 1, data = data)
snf.tra <- betareg(overlay_of_niche_flowers ~ treatment, data = data)
... |
I have a friend who used this function to compute a chi-squared contingency table in a paper they are writing, and I don't think I fully understand what the results of this test are.
Function docstring in case the link breaks:
Chi-square test of independence of variables in a contingency table.
This function computes ... |
For example, in my current project assessing the impact of health care intervention on # hospital inpatient visits compared with a control group, age and sex are moderators that could influence the relationship between the intervention and the outcome.
Is standard practice to match on moderator variables just as you wo... |
Assuming I have a curve fit that depends on 4 parameters. How would I compute the 95% confidence interval if I had many variations of this curve fit (many combinations of samples of these 4 parameters). I tried taking the 95% interval for each parameter separately, but this seems completely wrong as it gives borders th... |
I'm working with a time-series data set where I'm given an entities', quarterly, total balance (measured in billions of dollars) over 15 years (dependent variable). I'm also given 16 explanatory variables to choose from which are mainly macroeconomic variables like: GDP growth rate, unemployment rate, inflation rate, s... |
I am trying to assess the effect of different amounts of native biomass and non native biomass on four reproductive metrics:
Lay date
Clutch size
Chick size
Fledgling success
I've run models for these - 2 Linear Models (lay date, chick size) and 2 GLMs (Clutch size, fledgling success). Included in these models are rel... |
I am conducting a regression analysis.
I have a first problem and that is that the database has only an n of 41 (n=29 for one group and n=12 for the second group).
But I have gone ahead with the logistic regression. For this I used the following code:
model<-glm(grupo ~arrayil2+citometriail2+citometriail4+citomtriail5... |
$R^2$ equals the "amount of variance explained by the model".
However, we rarely use variance in descriptive statistics. We say a sample's weight is 78 ± 13 kg, which is $\bar x$ ± $\sigma$ (stdev), not $\bar x$ ± $\sigma^2$ (variance). This is because the standard deviation is in the same scale as the variable and is ... |
I am reading a paper and it points out some common statistical misconceptions (the following are supposedly false):
The p-value is the probability that you are taking the wrong decision if you reject the null hypothesis
The significance level is the percentage of times that rejecting the null hypothesis is a wrong de... |
In Wadoux et al. 2021 I came across two modes of statistical inference, design-based and model-based. I get the difference between the two modes and I know what that means regarding a sampling scheme (design-based relies solely on randomness while model-based relies on the model parameters). In the mentioned paper they... |
Suppose we have an AB test running for enough time to observe an effect size of at least 3% on certain variable X. When checking the results, we obtain that the p-value is below the significance level (< 0.05) but the effect observed during the experiment is just 2%.
To me, it looks like we don't have enough statistica... |
I am trying to understand the difference between discrete data and continuous data in a real world application.
My example is this:
Once a day I do pushups until my body is tired. I am counting how many pushups I do and recording it. I do not count partial pushups.
day
n_pushups
difference
1
15
null
2
12
-0.2... |
I'm trying to understand multiple regression visually.
So far I understand that when you have two continuous variables explaining y, this will take the shape of a plane (see the image).
What happens if you have 3 continuous variables? Does this take the shape of a cube or rectangular prism? What about 4 continuous var... |
I have a dataset that looks at the default and non-default of companies. Thus it contains one variable 'company default' that is 1 or 0 and some extra descriptive variables. However my dataset is highly unbalanced. 97 percent of the samples are non-default, i.e. 'company default' equal to 0. Only 3 percent of my datase... |
For case-control study study, one can calculate sample size to determine power of the study with respect to particular estimator of interest. Suppose I am interested in treatment effect in case control study with two treatment arms and I have calculated sample size $n=200$ to find effect size $t$ with 0.05 confidence l... |
I'm trying to build from scratch the pix2pix architecture, the one on this paper.
As they did, I'm using the facade dataset, and this is one of their result:
I'm particularly interested in the last one, where they have used cGAN+L1, specifically because the dataset is filled with images like that one, where on the bor... |
Let's say that if I aim at a position $a$ on a dart board, there is a normal distribution $P(X=x)$ describing the probability of the dart landing at position $x$ given aimpoint $a$.
Then, if I assume that the mean of the distribution is the aimpoint $a$ (and the std. dev. is given), I can solve for threshold $t$ such t... |
I can take a set of multivariate observations belonging to a class, and use them to generate a copula. This can then be used to generate synthetic multivariate data which are statistically compatible with the data originally observed.
If I now have a new observation which I wish to classify, how may I calculate the lik... |
I have 3300 road inspection records summarized in a SQL query:
YEAR AVG CONDITION CLASS ROAD_COUNT
---- ------------- ----- ----------
2013 8.0 A 300
2014 7.8 A 300
2015 7.3 A 300
2016 7.3 A 300
2017 7.... |
I want to measure the effectiveness of a promotion but I'm lacking a true control group. The data I have consists of a user base that can opt into signing up for a promotion (every user has access to the promotion). Currently, I am using users who opted into the promotion as my test group and those that did not as my c... |
I am wanting to use a multimembership MCMCglmm with the following model
nsamp <- 2000
THIN <- 100
BURNIN <- 3000
NITT <- BURNIN + THIN*nsamp
mcModela <- MCMCglmm(cbind(count.tog,count.apart) ~ Sexpair +
Sexpair:(scale(TrioML.R)), random = ~ mm(ID1 + ID2),
nitt = NITT, thin = THIN, burnin ... |
Do wald and score-tests work when we have nuisance parameters?
In statistics, a nuisance parameter is any parameter which is unspecified ${ }^{[1]}$ but which must be accounted for in the hypothesis testing of the parameters which are of interest. The classic example of a nuisance parameter comes from the specific exa... |
Suppose that the conditional hazard rate for subject $i$ follows a proportional hazard model in the form of:
$h_i(t)=h_0(t) exp(\beta_1X_{i1}+\beta_2X_{i2}+\beta_3X_{i3})$
$X_i$ are subject-specific covariates. They follow known distributions (categorical or normal distribution). Suppose baseline hazard $h_0$ is consta... |
I am currently doing a logistic regression analysis and wanted to cross validate the results. Now that I have the probabillities calculated for each fold, I made a ROC Curve for each one as well. But how do I choose Cut-Off-Values? I want to sum up the classification of all folds and then calculate the accuracy based o... |
I came across a paper here that has developed the following model:
\begin{align}
Pr(X=0)&=1-\alpha\\
Pr(X=1)&=\alpha\beta\\
Pr(X=x)&=\alpha(1-\beta)f(x;\lambda)\quad; x\geq2,
\end{align}
where $f(x;\theta)$ is the displaced log distribution.
The authors explained the development of the model with assumptions:
Only tho... |
I am confusing with the actuarial text book. It said the residual standard error is s =RSS/(n-2), why it is not $\sqrt{\frac{RSS}{n-2}}$?
And also, what is the difference between the MSE and RSS, since $MSE= \sum_{n}^{i=1}(y_i-\hat y)^2$ and residual sum of square=$(y_i-\hat y)^2$? could I understand $\sqrt{MSE}=RSE$ ?... |
While reviewing some scientific blogs, I found them recommending using gradient clipping for large error gradients. However, intuitively one would think that when model predictions are completely off, it would make sense to drastically update the weights. Therefore, why do we clip gradients in such cases?
Please note t... |
I have a weather dataset containing four features that are continuous values. Temperature is almost normal, but precipitation is highly negatively skewed. In addition, wind speed and humidity are positively skewed!
Performing log transformation on all features can somehow improve the skewness of the precipitation but n... |
I have data from a couple studies. The outcome I have is ordinal/likert. For each value I have the proportion of people who had each of the values at a measured end point. For example, in a study I have a record saying 12 people had value 1, 52 had value 2, 28 had value 3. I have these records for every study and each ... |
I have been using a logistic model from rms::lrm to estimate the odds ratio of a binary exposure on an outcome, using splines [time] as Frank Harrell recommended. I am using Predict and Contrast to estimate time-varying coefficients which can be further manipulated.
An example using the inbuilt ToothGrowth dataset:
#In... |
I would like to know how to interpret the Std. Pair Dist. (standardized pair distances) of summary() output of R's MatchIt package.
The maintainer @Noha said here that "The average difference between pairs is in the Std. pair dist. column.". Of course I assume he is correct. But I misinterpret it.
See the last column i... |
I have run chi-square tests on occurrence of species across two time periods. As I have 1300 species I analysed them in bulk using a multiple loop function in R:
chitest1<- t(sapply(seq(nrow(SPECIES)), function(i)
chisq.test(SPECIES[i, c('boxT1','boxT2','urbT1','urbT2')])[
c('statistic', 'p.value')]))
The resulting chi... |
I am facing a problem in comparing the coefficients from two separate regression equations. I can't use SUR (Seemingly unrelated regression) framework here. By that, I am especially talking about infeasibility of systemfit command in R. The reason is that it takes input from objects that come from lm command. I am usin... |
Let's say we have a posterior distribution $q(\theta) = p(\theta \mid D, \mathcal{M})$ over parameters $\theta$ given data $D$ and a model $\mathcal{M}$. As is often the case, computing $q$ is hard, because of its normalization constant (aka partition function, or model evidence) in the denominator of $q$
$$
Z = p(D \m... |
I'm trying to replicate the results from a paper which states: "Estimated overall accuracy is 79.6% with a standard error of 5.1% which would yield a 95% confidence interval of 69.5% to 89.7%.".
When I calculate the 95% confidence interval using the 5.1% standard error, I gain a CI of 10% not 10.1% as I presume it is i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.