instruction stringlengths 9 38.7k |
|---|
I have just started learning about using reproducing kernel hilbert spaces for regularisation in machine learning. I am looking for some examples of reproducing kernels that produce identifiable and non identifiable models of the following form:
$$
Y_i \sim \text{EF}(\mu_i,\phi),~g(\mu_i) = \gamma + f(x_i), f \in \math... |
Suppose I am a doctor trying to predict the probability of a patient getting a heart attack. The way I would approach this, in a clinical setting, is by using a logistic regression. For exmaple: P(HA) = 1/1+e^-(b0 + b1age + b2race + b3sex + ... + bnvariable_n).
Is it possible to obtain predicted probabilites from other... |
I have the following dataset:
Date
ID 1
ID 2
ID1avg_rtg
ID2avg_rtg
ID1avg_Importance
ID2avg_Importance
16/7/2022
1001
1000
1.21
1.68
23
68
In this dataset I have the average score of electric output samples and the average importance with which this rating came. So rating 1.21 was achieved with importance 2... |
Assume I have a pair of vectors $a,b$. Upon discussing their correlation $\rho_{a,b}$ we can usually test whether $\rho_{a,b}=0$, $\rho_{a,b}>0$ or $\rho_{a,b}<0$ (as asked previously here and here). These tests can be easily conducted in R using cor.test. For Pearson's $\rho$ we even have a specified distribution of t... |
I study the use of the emergency treatment by children with asthma at home using electronic monitoring devices.
For each child, I will have the date and time of each actuation of their emergency treatment.
Thus, on a x-axis corresponding to time, I have for each asthma attack the following patterns:
Child A: ++++++++ ... |
During capture-recapture sampling, we aim to estimate a population size (e.g. of organisms) by capturing a sample of size $ n_1 $, marking them, releasing them, then re-sampling (assuming they have mixed) with size $ n_2 $ and counting how many are marked. If we find that $ m $ out of $ n_2 $ are marked, then we estima... |
I've been asked to help determine the design of an RCT. The design is primarily interested in the benefit of using a laser on some dental procedure in addition to a local anti-biotic and scaling, versus just the anti-biotic and scaling.
The outcome us gum attachment loss. A dentist will probe the area between the too... |
Does significance testing (p-value, 95% prediction interval of a forecast, etc.) of an ARIMA model require time series data to be normally distributed? As in, according to the tests used to assess normality before linear regression (histogram, qqplot, etc.)?
If not, why?
Similarly, what about state-space models, such a... |
I am replicating the Bhalotra-Figueras paper on women's political agency and health (Paper Here) an IV model where $x$ is measured at the district-level and have an instrument $z$ measured at the smaller constituency level. They use the mean of $z$ at the district-level as an IV for their endogenous $x$. They cluster t... |
I have utilized the ClusterBootstrap package in R to run bootstrap analysis for mixed models. Is this possible in SPSS? Using the BOOTSTRAP-command in SPSS combined with
/RANDOM=INTERCEPT | SUBJECT(id) COVTYPE(VC)
does not work for repeated measures data unless there is a way to identify the clusters to be sampled. A... |
In considering ROC AUC, there is a sense in which $0.5$ is the performance of a random model. Conveniently, this is true, no matter the data or the prior probability of class membership; the ROC AUC of a random model is $0.5$ whether the binary classes are balanced or not.
Does PR AUC have a similar notion that is data... |
I'm preparing for an exam and I got stuck on this question.
I understand that the alpha values 'affects' how much influence corresponding data point has on the position of the decision boundary, and that the alphas are between 0 and C=4 in this case.
Therefore, since point b) is closest to the decision boundary it mak... |
I have data of the following form:
Rating
1
2
3
control
0
20
11
treatment
6
14
12
Where 1 is a plant of top quality, 2 is a plant of lesser quality that USED TO BE top quality, and 3 is a plant of poor quality that USED TO BE of type 2 quality. The values listed are the counts of each type of plant from a... |
I have a small survey dataset with 10 variables (Gender, International (Yes or No), and some Likert scale data) and all of them have categorical data. Having performed descriptive analysis, I was curious about what can I do to make good inferences. I have worked with a regression with numerical variables but never with... |
I have the follow variable
$$y_t = e_t + u_t + \theta u_{t-1}$$
Here $u_t$ and $e_t$ are mutually independent i.i.d
and $u_t \sim N(0, \sigma_u^2)$ and $e_t \sim N(0, \sigma_e^2)$.
I am trying to show that I can re-write $y_t$ as an MA(1) process, i.e. : $y_t = \lambda_t + \phi\lambda_{t-1}$ where $\{\lambda_t\}$ are i... |
Right censoring was not a major issue in my prior research on education because I was modeling outcomes like grades and graduation rates where all participant results occur on the same day.
But now I am seeing loads of hypothesis tests where data arrive sequentially such as when patients enroll in a medical study or on... |
Suppose I take two samples, $a$ and $b$, from a population (or super population) but that I only observe $b$. However, I want to construct a confidence interval for $\bar{a}$, the average of the sample that I don't observe.
Now, a confidence interval that contains the population mean 95 percent of the time cannot also ... |
If your task is to predict $t_{n+1}$ given tokens $(t_1,...,t_n)$, you could do two things:
Straight NN - feed $t=(t_1,...,t_n)$ into a neural network as an n-dimensional input and train it on predicting $t_{n+1}$ (with all the embedding / layernorm / skip connection stuff that transformer models have)
Attention - tak... |
Rookie question - is it possible to compare a single year's total number of cases of a disease in a specific region compared with previous years. I have a data set showing total yearly cases of a certain disease over the past 10 years. I want to know whether the increase in 2022 is statistically significant compared to... |
I have a problem deciding whether my data has dependant/pairwise or independant samples.
I have read multiple online guides now, but I can't figure it out:
I am testing about 10 different surface materials, which are placed outside for about half a year. In cold weather those materials begin to ice over. This icing beh... |
Background
The lecturer of statistical computing asked such a question in title. To be specific, the population distribution is
$$
f(x_1, \cdots, x_p) = \left(x_1^{p-1} + \cdots + x_p^{p-1}\right)I(0<x_i<1,\forall 1\le i\le p)
$$
The theory of drawing an approximate sample is conditional distribution.
$$
f(x_1, \cdot... |
Consider the probability distribution $D \sim X - a$ where $X \sim \text{Exp}(\lambda)$. My task is to find the MGF of probability distribution $D$. I think I have a solution but it contradicts what I thought would be the intuitive solution, so I would like to confirm my work:
For $D \sim X - 5$ where $X \sim \text{Exp... |
Can $\chi^2$-test be used to compare two densities?
For example count of something per 5000 meters: like 2050 counts/5000 meters and 1500 counts/5000 meters.
Can $\chi^2$-test be used to see if these two densities are significantly different? I know $\chi^2$-test is used to compare two proportions but not sure if it ca... |
Using a generalized linear model; I got particularly large or small OR with 95% CI; while these are all insignificant as P > 0.05 for these, I just wanted to ask on the community if I am missing something?
Some of the strange values are as follows:
# Intercept OR: 3.913049e+08 2.5%: 2.776314e-29 97.5%: 2... |
Is it possible to rewrite
$$
\frac{-1}{2}\left(x^T\Gamma^{-1}(\mu_1-\mu_0)+(\mu_1-\mu_0)^T\Gamma^{-1}x\right)
$$
as
$$
-\theta^Tx
$$
where $x,\mu\in\mathbb{R}^d, \Gamma\in\mathbb{R}^{d\times d}$ and $\theta$ is some function of $\mu,\Gamma?$
Tried to rewrite as
$$
\sum x_i\Gamma^{-1}_i\mu_i + \sum \mu_i\Gamma^{-1}_ix_i... |
I have the following matrix:
$ U = \begin{bmatrix}u_{1} \\ u_{2} \\ \vdots \\u_{T}
\end{bmatrix}$
where $u_i$ are $k \times N $ matrices and
$E[vec (u_i) vec (u_i)'] = \Sigma_i \otimes I_k $
for $i=1, \ldots,T$ and $I_k$ is the $k \times k$ identity matrix. The $\Sigma_i$ matrices look like:
$\Sigma_i = \begin{bmat... |
I am confusing about the relationship between z-score and the normal distribution.
Do we apply z-score normalization to get a data with normal distribution, or given we have a normal distribution, we can apply and use z-score?
What is the exact relationship?
|
While fine-tuning a deep neural network I ran into the following situation:
My train- and validation loss are both decreasing and have very similar values throughout training. Especially the train-loss is not significantly lower than the validation loss. Still both loss values are rather high. Thus, I would argue the ... |
Let $X_1, ..., X_n$ be i.i.d. samples drawn from a pdf $f(x)$ on the real line. The kernel density estimator is defined as follows,
$$\hat{f_n}(x) = \frac{1}{nh}\sum_1^n K(\frac{x-X_k}{h})$$
where $K:\mathbb{R}\to [0, \infty)$ satisfying $\int_{-\infty}^{\infty}K(x) = 1$ and $h>0$.
How to prove that $\Vert \hat{f_n}(x)... |
The subsample option in XGBoost is described here as follows:
Subsample ratio of the training instances. Setting it to 0.5 means that XGBoost would randomly sample half of the training data prior to growing trees. and this will prevent overfitting. Subsampling will occur once in every boosting iteration. [default=1]
... |
With regarding to OLS estimators why $\hat\beta_1$ and $\hat\beta_0$ have a variance?
|
In ESL section 4.3.3 , Author gives three steps for finding optimal subspaces using LDA as below
compute the K × p matrix of class centroids M and the common covariance matrix W (for within-class covariance);
compute M** = MW-(1/2) using the eigen-decomposition of W;
compute B** the covariance matrix of M**(B for betw... |
I am fitting the following model (random intercepts and slopes) on my data:
lmer(MuscleActivity ~ Period+ (1 + Period|ppnr), data = df)
My goal is to test whether the muscle activity during stimuli presentation is larger than during muscle activity during random time points.
The data frame looks something like this:
... |
I plan a study where I predict variables with machine learning methods integrating data from multiple surveys. The questionnaires assessed with each survey slightly differ, so that I have a lot of missing values (e.g. Questionnaire 1 was assessed in survey 1,2,3, but not in survey 4).
My question is, do the Missing at ... |
I have some highly skewed real world data, from which I want to create a probability density function which I can then use to generate random samples that mimic the original data. The data is a long list of lengths and it approximates this function in R...
library(rBeta2009)
x <- rbeta(10000, 1, 3)
plot(density(x))
... |
I am analysing the time to the end of rehabilitation; however, not all patients receive rehabilitation. Therefore, for making Kaplan-Meier curves for the whole study population (including non-receivers), these curves should start below survival 1. For example, if only 70% of patients received rehabilitation, the y-axis... |
I have this data:
x = np.array([[ 6.2120e-01],[ 8.4310e-01],[ 1.2467e+00],[ 1.0147e+00],[ 3.0860e-01],
[ 5.2160e-01],[ 6.9720e-01],[ 4.2600e-01],[ 6.5200e-01],[ 1.3448e+00],
[-3.5860e-01],[ 1.0618e+00],[ 1.0513e+00],[ 7.5890e-01],[ 2.8270e-01],
[ 5.2180e-01],[ 3.9240e-01],[ 1.6279e+00],[ 1.8290e-01... |
I wanted to cluster https://www.kaggle.com/datasets/iabhishekofficial/mobile-price-classification?resource=download data.
I used 2 different R implementations of Hopkins statistic:
hopkins::hopkins() (https://github.com/kwstat/hopkins/blob/main/R/hopkins.R) and
factoextra::get_clust_tendency() (https://github.com/kassa... |
This is my first question here, so I hope it is posed correctly. It is a Bayesian probability question:
I would like to know the probability of P(A|B,C,D).
I can sample everything (including P(A), P(B), P(C), P(A|B,C), P(B,C|A), P(A|C,D) etc.), except for anything that requires sampling B,C and D all at the same time.
... |
Exercise. Suppose you train a Ridge model to a regression problem that has a normalized perfomance measure (say K) that attains a value in the interval [0,1], where 0 means that the model is terrible and 1 means that the model is perfect. Suppose that you evaluate the trained model and obtain in the training set K = 0.... |
I have a dataset of 2 variables collected repeatedly at 5 different timepoints on a group of individuals, structured like this:
ID TimePoint Variable Result
1 1 Var1 5
2 1 Var1 7
3 1 Var1 3
1 1 Var2 5
2 1 ... |
I am trying to fit a decision tree on a data with only one explanatory variable and both explanatory and response variables are continuous. I believe in such case the result tree is almost like a step function as in a constant prediction value will be assigned for each subinterval of the horizontal axis. Most of the pl... |
I'm doing a study with five proportion predictors that sum to 1. I'm wondering if a LASSO regression is an appropriate analysis?
|
I'm a new learner to R. I can properly find a KM curve for Overall survival, but stuck when it comes to relapse free survival. In RFS, is your time to event the time to relapse vs censoring? How do you account for death? I'm confused as the two variables here, relapse Y/N or death Y/N. Ive been using the survfit (Surv ... |
I'm having trouble fitting my model to a bacteria growth curve. I made a sample of my data below.
Code:
df <- data.frame(Bacteria = "EC",
Strains = c("AR1", "AR1", "AR1", "AR1", "AR1", "AR1",
"AR2", "AR2", "AR2", "AR2", "AR2", "AR2",
"AR1", "... |
In the context of machine learning, consider a scenario where multiple models are trained to make predictions on a particular task, which could be either a regression or classification problem. However, the ground truth data of the target phenomenon is unknown. The objective is to determine whether there exists a metri... |
I'm going back through Simon Wood's book on generalized additive models (GAMs) and came back across the definition of the penalty term employed, which is supposed to combat overfitting of smooths. The equation used is the following:
$$
\Vert{y-X\beta}\Vert^2 + \lambda \sum_{j=2}^{k-1}\{ f(x^*_{j-1})-2f(x^*_j) + f(x^*_{... |
In the mgcv package in R, I'm working on models whose covariates are forced to change shape at the median (=0). These are the models:
gam1 <- gam(Y~ s(X1, pc=0)+s(X2, pc=0), data=data)
gam2 <- gam(Y~ te(X1, X2, pc=c(0,0)),data=data)
Unfortunately, the constraint on the gam2 model with tensor products doesn't work and ... |
Let dataset $D = \{(x_1,y_1),...,(x_n,y_n)\}$ where $x\in\mathbb{R}^d$ and $y_i\in\{0,1\}$
There are 2 mean vectors $\mu_0,\mu_1\in\mathbb{R}^d$ that represent the means of each feature split by label. Meaning that $\mu_0$ represents the means of data with $y=0$
The likelihood function is given by
$$
\log\prod_i^np(x_i... |
I'm a student working with https://www.kaggle.com/aksha17/superstore-sales, primarily as an exercise in resampling and using prophet and it was suggested to me to create dummy variables and use the likes of 'Category' and 'Segment' as additional regressors to improve the 'Sales' forecast
And for the life of me, I can't... |
Start with a normal distribution with mean M and standard deviation S. Now exclude all values below the Kth percentile. What is the mean of the remaining 100%-K% of the values as a function of M and S?
I'd just like a simple answer and don't need a proof or generalization which are provided in lengthy answers to relate... |
I am trying to do a simple linear regression of a scatterplot and it results in this:
So, the red line is the result I get, but I expect something more like the black line (drew it roughly). I use ordinary least square minimization and I understand that the black line would have huge residuals for the points on the fa... |
I am unsure as to how to compute a two sided p value following permutation testing, following different examples online.
For example, this post Two-sided permutation test vs. two one-sided, gets the proportion of the absolute correlation coefficients from the permutation test greater than or equal to the absolute non-p... |
I want to compare two alternative approaches for evaluating the uncertainty of the multi-dimensional MLE $\widehat \theta$ based on a log-likelihood function $l$:
Compute a Fisher-information-based quadratic confidence interval for the MLE as $$l(\theta_i) \approx l(\widehat \theta_i) -\frac12 I_n(\widehat \theta)_{ii... |
I have been told to estimate a gender and nationality gap using a regression model for a dataset provided by a third party.
The dataset contains information about workers in a very specific sector.
A sample of X companies was drawn from a population of companies operating in that specific sector. Then, data were collec... |
I created two donation campaigns, one loss framed (N:1993) and one gained framed (N:1989) I understood donations are usually veeeery low and the sample was a lot smaller than previously expected, so I had to let go the idea of having a control group (as if I divided my group into three I most likely would have gotten ... |
I am looking for a method that incorporates historical data and future incomplete data. I have historical demand data (container usage at a rail yard) that I can use to predict future demand. However, I also have future container booking/reservation data that customers placed in advance. This data may change in the fut... |
I have the following problem:
The weights of large eggs are normally distributed with mean 65 grams and
standard deviation 4 grams. The weights of standard eggs are normally distributed with
mean 50 grams and standard deviation 3 grams.
One large egg and one standard egg are chosen at random. Find the probability that... |
Im currently working on a regression model that looks at how the electricity price is impacted by imports of intermittent (wind, solar) electricity from interconnected countries. In the research process I have found that demand is an important factor that may "hide" the effect of intermittent generation especially when... |
I have a corpus of book publications split into different clusters. I have information about the nationality of the authors (variable A) and the nationality of the publishing company (variable B).
In the case of variable B, publishing companies are either US-based or Euro-based (2 categories). In the case of variable A... |
I know that a family of Gaussian copulas generates a standard bivariate normal distribution if and only if the marginal ones are standard normal. This characterizes the Gaussian copulas, where I have a problem is, if I change the standard normals for normals with mean $\mu$ and variance $\sigma^2$, do I get a family of... |
During my work I encountered a plot, in which we have two curves indicating:
Mean value of observations of dependent variable $Y$ (in my case it was annual frequency of claims), calculated for diffent values of some other variable, let's say $Z$;
Mean predicted value $\hat{Y}$, which is an evaluation in data point of ... |
Good afternoon all,
I've got a model that models a time series and I am trying to decide which how the residuals are correlated. The first model, called $m1$ is models $AR(1)$ residuals and the second model models $AR(2)$ residuals called $m2$. I'm looking at the residual plots, ACF/PACF plots and also the AIC/BIC valu... |
Looking for the circumstances of when we should use a ROC curve vs. a Precision Recall curve.
Example of answers I am looking for:
Use a ROC Curve when:
you have a balanced or imbalanced dataset (Source).
when the cost of false positives and false negatives is roughly equal (needs verification)
...
Use a Precision Re... |
I have many variables ( ~2000 and 320 samples) and I have found the correlation coefficient for each unqiue pair of these variables through Spearmann (underlying data does not have normal distribution). As some outliers can affect the correlation coefficient value, I am considering bootstrapping and/or permutation tes... |
I am using the BaSTA package in R to estimate sex differences in survival parameters for a capture-recapture dataset. When I use a simple Gompertz model the parameters are very interpretable (b0 represents the baseline hazard and b1 represents age-dependent mortality rate, or senescence). However, when I look at a simp... |
I am trying to perform t-tests and ANOVAs on numerical parameters (eg. bone density) comparing groups. t-tests will be applied to a 2-group grouping method, and ANOVAs will be used when I hope to analyze in a 3-group manner. I want to adjust the parameter (bone density) taking another numerical parameter into considera... |
I'm super new to R and wanted to make a pie chart of the results found from a 6 faced die. From what I understand, this is supposed to throw the 6-faced die 500 times, and then map out the results in a pie chart.
It seems fairly simple, but the pie chart splits into 500 ways. What am I doing wrong?
die <- 1:6
result <-... |
I'm sorry if the title is confusing. I am working with a model with $(X,Y_1,Y_2,...,Y_k)$ such that $X$ is some random variable (a latent factor) and the $Y$'s are generated according to:
$$ Y_i = \mu_i + \lambda_i X + \varepsilon_i$$
with all $\varepsilon$'s and $X$ mutually independent, all $\mu$'s and $\lambda$'s ar... |
Let's say we have a probability distribution in x,y space:
$$
p(x, y)=\frac{1}{4 \pi} \sqrt{x^2+y^2} \exp \left(- \sqrt{x^2+y^2}\right)
$$
This can be converted into polar coordinates as:
$$
p(r, \theta)=\frac{1}{4\pi} r^2 \exp (-r), r\geq0
$$
Now let's say we want to know the most probable distance from the centre, th... |
From this post, Confidence regions on bivariate normal distributions using $\hat{\Sigma}_{MLE}$ or $\mathbf{S}$, the equation
$(\mathbf{x} - \boldsymbol{\mu})^{T} \mathbf{\Sigma}^{-1} (\mathbf{x} - \boldsymbol{\mu}) \leq \chi_{p, \alpha}^2$
can be described by the parametric curve
$
\mathbf{x} = \boldsymbol{\mu} + \sqr... |
Let $x \in \{0,1\}^N$, and
\begin{align}
D &= \begin{bmatrix}
x_{1} \\
x_{2} \\
\vdots \\
x_{M}
\end{bmatrix}
\end{align}
So that $D \in \{0,1\}^{N \times M} $.
This is the original dataset. The zero indicate a trait and 1 indicate absence of the trait. The ord... |
Consider the general problem of predicting the conditional mean $E(Y|X)$ where $X$ is the predictor. One assumes $Y$ can be written as:
$Y=f(x)+e$ where $E(e|X)=0$ which implies covariance of predictor and $e$ is 0. Is $E(e|X)=0$ an assumption that is made or is it something that follows automatically from the fact tha... |
I am dealing with the following exercise:
Exercise. In a linear regression model of the form $y = w_1x + w_0$, if we increase the value of $x$ by one unit, what can we expect from the value of of $y$?
$(a)$ An increase of value equal to $1$;
$(b)$ An increase of value equal to $w_0$;
$(c)$ An increase of value equal to... |
In statistics there are 4 type of data ; ordinal, nominal, interval and ratio. Based on what i read on many website, in a multiple linear regression analysis you have to use interval or ratio data. Let's say i have Y as dependent variable and X as independent. I have Y = stock price (in usd), X1 = profit (in usd) and X... |
Let $X_1,\dots, X_n$ be a random sample from the geometric distribution $P(X=x)=\theta(1-\theta)^x$ for $x=0,1,2,\dots$ where $0<\theta<1$.
Find a function of $\theta$, say $\tau=h(\theta)$ so that there exists an unbiased estimator $\hat{\tau}$ of $\tau$ and the variance of $\hat{\tau}$ coincides with Cramér-Rao lower... |
In Causality - Models, Reasoning And Inference by Pearl, definition 2.7.1 says -
Potential Cause definition:
A variable $X$ has a potential causal influence on another variable $Y$ (that is inferable from $\hat {P}$) if the following conditions hold -
1. $X$ and $Y$ are dependent in every context.
2. There exists a v... |
Which tests can and cannot be run on a nonprobability sample? (Collected by convenience and snowball sampling - not by me.) Finding a hard no to t-tests and ANOVA across the board. Then finding both yes and no, depending on the website, to chi-squares, correlations, regressions, Mann Whitney, Kruskal Wallis, Wilcoxon ... |
I am trying to compare completion rates of 4 online assessments, A1, A2, B1, B2. A2 is the modified version of A1, B2 is the modified version of B1. I have categorical variable of Completed, Not Completed for each participant (total around 15,000 participants).Probably very igmorant questions.
Could I combine A1 and A... |
I am trying to calculate the marginal distribution P(X) of the following joint distribution P(X, Y).
y=0
y=1
y=2
x=0
.2
.1
.2
x=1
0
.2
.1
x=2
.1
0
.1
Here is how I am calculating $P(X=0) = P(X = 0, Y=0) + P(X = 0, Y=1) + P(X = 0, Y=3) = .2 + .1 + .2 = .5$. Similarly I can find P(X=1) = .3 and P(X=2) = ... |
The central limit theorem states that:
for identically distributed independent samples, the standardized sample mean tends towards the standard normal distribution even if the original variables themselves are not normally distributed.
But I'm confused about the precise meaning of this statement. If the original rand... |
What are the steps to manually calculate the backpropagation gradient with the architecture that I mentioned? because I'm confused, the architecture on google regarding backprop is different from the neural network architecture that I use, I'm confused about the linear layer that doesn't use the activation function and... |
In linear regression, if we assume the error term follows a gaussian distribution of zero mean, and assume we are using mean squared loss, then we can show that this minimisation will lead to finding optimal parameters that estimates the conditional expectation of the target $y$ given $x$.
I have no trouble with this a... |
A glm, where the response is Poisson distributed, is tested by using the analysis of deviance.
In R the model looks like this:
glm(Y ~ A + B + C + A:B + A:C + B:C, family = poisson, data = data)
If I use the anova()-function on this model, which part of the output can be used to test the interaction effect of B:C at s... |
Let's assume the following Null and Alternative hypothesis of a proportion:
H0: $p < 0.01$
H1: $p \geq 0.01$
Generally, in all various hypothesis testing literature, I see equality condition being used for H0. I wonder how I can think about this scenario? and what the test statistics will look like?
|
I currently reading Whitney Newey and Kenneth West's paper "a simple, positive semidefinite, heteroskedasticity and autocorrelation consistent covariance matrix"
For a multi-regression linear model:
\begin{equation}
y_t = X_t \beta_t + e_t, \qquad t=1,\cdots, T
\end{equation}
where $y_t$ and $X_t$ are given, $\beta_t$ ... |
I am using the pROC package in R to generate ROC curves. Using the "coords" function, I can extract the sensitivity (Se) , specificity (Sp), negative predicted value (NPV) and positive predicted value (PPV) for different thresholds. I also calculated the Se, Sp, NPV and PPV for some thresholds using the Caret package t... |
I am studying relations between migration movements of different types of fish and acidity (pH) of water. I am stuck on which statistical test i should use to find those significant correlations and/or regression.
The data are structured:
Date column (between the start of 2021 and the start of 2022)
pH (mean pH for ... |
I am using two data sets to compare total population vs our dataset. E.g.
10% of population are in this age group (census data) vs. 15% of our observed population are in this age group (out dataset)
I would like to be able to show if this difference is statistically significant.
The data comes from raw numbers (discree... |
I would like first to mention that I am relatively new to the Machine Learning (ML) world, but I have a decent background in statistics and econometrics. I am working on a research paper focusing on the gender labor force participation gap. Using the language of econometrics,
the dependent (outcome) variable is a bina... |
Disclaimer: I checked some similar questions but I could not find anything in particular that would work for my case.
I am dealing with a time series going from 2015 to 2023. The data points are the results of an aggregation of scores calculated on a European country's financial news (simplifying: I take financial news... |
How to test the difference between prediction accuracy of two regression models?
My idea is to compare the errors of the two models, e.g., one-predictor vs. multiple-predictor model, in order to show that the difference between the two models (i.e., in terms of the accuracy of their results) is statistically significan... |
How do I calculate mean square error (MSE) from the error obtained from ANN output
|
In logistic regression, we often use maximum likelihood to estimate the parameter vector $\boldsymbol{\beta}$ that parametrizes the logistic equation.
My confusion stems from the following:
We know that the logistic regression is finding the conditional probability of $Y$ given $X$, i.e. $P(Y = 1 \mid X)$ for the bina... |
My data is observational data, and that's made it all kinds of ugly, and I can't decide what statistical test is needed. I have one response variable, which is categorical (Species 1, Species 2, or None). I have about a dozen explanatory variables, which are numeric (canopy cover, soil moisture content, etc.). I want t... |
An offset is a variable that is included in the regression but without coefficient (i.e. the coefficient is fixed at/assumed to be 1). I want to impose restrictions on my regression and I read that it can be done with offsets (source). However, I do not understand how an offset can result in a restriction. Furthermore,... |
My question is specifically directed to the hiClass Python package for hierarchical classification (I am not sure if it is right to ask here, since I am not reporting an issue). After reading answer to this question that the package is actively supported.
I am working on a dataset for travel mode recognition problem. I... |
Cox proportional hazards model:
$$ \lambda_2(t)=\lambda_1(t)e^{\beta}$$
I have survival data for two different groups
I would like to find the profile of the partial log-likelihood for the data as a function of $\phi$, the hazard ratio $\phi=\exp(\beta)$, and produce of plot in R but I am not sure of where to start.
I ... |
I am testing invariance between two groups. Configural and metric invariance is given. When adding the restriction of equal intercepts, lavaan gives me the warning that the smallest eigenvalue is close to zero (albeit positive) and that this might indicate that the model is not identified. Model fit is great, however, ... |
I have run the model:
model2 <- lmer(tas ~ station + (1 | date), data = all5)
where station is a categorical variable with 4 levels.
I want to check for variance homogeneity.
I find the residuals from lmerresid <- resid(model2).
If I run the levene test:
leveneTest(lmerresid ~ all5$station) I get p = 0.6572 so it impl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.