instruction stringlengths 9 38.7k |
|---|
So I have multiple datasets which are all histograms and cannot be linked. The topic of the data is quite complex so for example imagine I was surveying different qualities between men and women. The data I have is equivalent to me spending a day running around the town centre surveying men, and the next day running ar... |
Consider that $X \sim N(\mu_X, \sigma_X^2)$ and $Y \sim N(\mu_Y, \sigma^2_Y)$ and $\text{Cov}[X, Y] = \sigma_{XY}$ where $\sigma_{XY} \ne 0$.
How can an expression for $\text{E}[Y(X-\mu_X)^p]$ in terms of $p$, $\mu_X$, $\mu_Y$, $\sigma_X$, $\sigma_Y$ and $\sigma_{XY}$ be found?
So far:
I have tried to use a moment-gen... |
I have quote observations for 9 FX rates, which I would like to analyze via multivariate dynamic linear model (e.g., Chapter 16 in West and Harrison Bayesian Forecasting and Dynamic Models (1997).
In general, missing observations in a multivariate series can be handled like any other parameter in a Bayesian analysis: e... |
I'm trying to complete an exercise from my book, asking me to find
the variance to allow a sample of 49 items (that follows a normal law)
to stay in bounds of one confidence interval, at 95% of confidence.
The original question, in French: le chef d'atelier souhaite que 95% des échantillons de 49 pièces donnent une hau... |
I have a time-series data (Fig 1) that clearly look non-stationary on visual analysis.
There is a clear trend and seasonality in the time series as shown in the Final figure below.
But the ADF test and ACF/PACF show a Stationary time series.
My understanding and interpretation of the results are that over the course of... |
I've recently been working through Statistical Learning with Sparsity (SLS) by Hastie, Tibshirani and Hastie.
I found some exercises very hard, and think I found some mistakes. A set of solutions would be very helpful.
I've recently discovered that Elements of Statistical Learning now has a manual of notes and solution... |
I am reading Yudi Pawitan's In All Likelihood chapter 7 section 5. He mentioned the following in sequential design using likelihood approach with justification of stopping rule not affecting likelihood inference.
'A strict adherence to the strong likelihood
principle in this case implies that the evidence from such an ... |
I am working on a lithology identification project similar to the one described here.
The idea is to train a model using well log data collected at a handful of drillholes, in order to predict the "rock type" in other drillholes.
I am comparing the performance of 3 different algorithms:
AdaBoost
SVM
RandomForest
I am... |
here is a vector: [0,0,0,1,0,0,1,4,2,5,0,0,0,0,0,0,0,0,0,....,2,0] and is there any statistic test and p value to tell me such vector is holding too many zero ? I just check https://www.statsmodels.org/stable/api.html but they didn't fit my requirement. I am not statistician but I prefer to use statistic test, because ... |
We're using forest-based models in a personnel selection context. For a dataset with 57 features, 230 observations, and a binary outcome, we got the following ROC curves.
This shows the first 6 folds of a 14-fold cross-validation on the dataset. To me, it looks like good performance from the model on 5 out of 6 folds.... |
Let $U$ be a random variable with mean $0$. Take other two random variables $X,Y$. Assume
$$
(1)\quad E(U|X,Y)=0.
$$
I believe (1) implies
$$
E(U\cdot X)=E(U \cdot Y)=0.
$$
Does (1) imply
$$
E(U \cdot f(X,Y))=0\quad ?
$$
where $f$ is any function of $X,Y$?
For instance, does (1) imply
$$
E(U \cdot X \cdot Y)=0
$$
|
I am trying to train models to predict if somebody will get breast cancer- it is a binary classification problem, using limited features that replicate data a patient's primary care physician will have on them.
I have the following steps:
Fill in missing values - 'mean' for continuous columns, '10' for discrete column... |
I’m trying to interpret the meaning of the shocks when they are written in terms of standard errors. I have constructed a multi-country Global Projections Model similar to IMF's model here. Suppose the equations for the endogenous variables are:
Y_GAP = output gap in % terms = log(real GDP) - 100* log(potential GDP)
Th... |
In short, my question is:
Can group-level comparisons (such as t-test, Mann-Whitney tests, etc...) can be used after creating a pseudo-population using inverse probability weighting? (using propensity scores)
Longer version:
Let's assume I am interested in comparing (e.g. t-tests) a control group with patients group,... |
I'm currently working on predicting the energy consumption of a house (in KWH). After preprocessing the dataset, I used XGBRegressor to find the importance of features (feature importance method). The following features got the highest importance - energy consumption of AC (in KWH), energy consumption of other applianc... |
This paper argues that models trained with gradient descent like neural networks can be expressed as kernel machines with an interesting kernel function.
The kernel is
$$ K(x, x') = \int_{c(t)} \nabla_w y(x) \cdot \nabla_w y(x') \, dt$$
where $c \colon [0, 1) \rightarrow \mathbb{R}^n$ is the path taken by the weight ve... |
I am modelling a joint distribution for two random variables: $F(x,y)$. I observe $n$ data points $(x^{}_{i},y^{}_{i})^{N}_{i=1}$. I would like to model $F$ as the product of its marginals and a copula: $F(x,y)=g(x)k(y) \times C(G(x),K(y))$.
A problem arises when one or both of the random variables have large numbers o... |
I am currently working on big dataset. There are a few columns which are ordinal categorical data. In order to simply the dataset, I decided to change them into numeric.
However, there are missing values within these few columns. I would like to drop these rows which contain missing values in these columns cause it onl... |
Suppose we observe $n$ pairs of points $(a_1,b_1),~(a_2,b_3)~..~(a_n,b_n)$. The underlying data generating process is known to be as follows:
$u_i \sim N(0,1)$ and $a_i \sim N(u_i,1)$
$b_i \sim N(u_i + k*a_i, 1)$
independently for each $i$ and $k$ is a constant. What is a good unbiased estimator for $k$?
|
I am trying to analyse several heavily right skewed datasets in order to determine their mode.
The story behind the sets is that they are calculations of performance data from marketing posts. The datasets are the calculations and I am trying to use to determine a baseline for scoring future posts. My theory is that th... |
I'm training an LSTM model architecture with the following hyperparameters:
hidden_size = 128
num_layers = 1
batch_size = 64
learning_rate = 0.001
The learning curve looks as shown below
I'm wondering why is the training loss decreasing, while the validation loss is oscillating around some mean value. Does it mean tha... |
I have been looking into incorporating seasonal effects using the gTrans function in the rms R package. However, I am having some difficulty interpreting the statistical explanation in the document.
As explained here:
https://hbiostat.org/R/rms/gtrans.html#non-spline-basis
section 6...
We can make a function called hrm... |
I want to test for an association between socioeconomic deprivation and death rates. My data are raw death counts and deprivation ranks for a set of small geographic areas. Some areas have very low death counts. This will lead to high standard errors (SE) in those areas when I apply indirect age- and sex- standardisati... |
I understand that Odds Ratios are ratios of the odds of one thing occurring with another. But I don't understand how/ why they are used in Logistic Regression.
Specifically, what odds are you calculating and what ratios are you taking in a typical Logistical Regression?
|
I'm trying to create artificial correlated data using the genCorData function, in the simstudy package. I'm running the following in R:
set.seed(1234)
n=50
p=200
X=genCorData(n=n,mu=rep(0,p),sigma=rep(4,p),rho=0)
X=X[,-1]
beta = rnorm(p)
y <- as.matrix(X)%*%beta + rnorm(n) # calculate response
intercept <- mean(y)
y ... |
I'm working on a problem where all my variables are dummy variables (i.e. I have 5 dummy variables and a binary dependent variable). I'm exploring how each variable affects my dependent variable. My dataset is from a questionnaire with a sample size of around 2000. All the responses are either yes (= 1) or no (= 0). Th... |
It is well established that a necessary condition for stationarity of both $AR$ and $ARMA$ processes is that the coefficients of the autoregressive components sum to less than unity in magnitude.
Do we know any conditions that if taken in addition to the above suffice for guaranteeing stationarity? Of course, only non-... |
I was reading Introduction to Statistical Learning 2nd edition chapter 3.1.2 when I came across the following sentence:
We typically assume that the error term is independent of X.
Which made me wonder why do we have to assume that.
What would happen if the error were dependent on X?
Also, what would be a good exampl... |
Let's say I collected data from a single mouse that either pressed a lever (1) or not (0). There were a total of 3 environments (env), and the mouse spent 10 minutes wandering (the time variable levels corresponds to each minute).
dat1 <- data.frame(time=rep(seq(1,10), times=3), response=c(0,0,0,1,0,1,1,1,1,1, 0,0,0,0,... |
Consider a vector $r$ of $n$ random variables. Let $\mu = E[r]$ and $\Sigma$ denote the covariance matrix of $r$; that is,
$$\Sigma_{ij} = \sigma_{ij} = E\Bigl[\bigl(r_i - E[r_i]\bigr)\bigl(r_j - E[r_j]\bigr) \Bigr].$$
We know that $\Sigma$ is a positive semidefinite matrix, because we can show that
$$x^T \Sigma x = E\... |
In my research, I use a questionnaire so that students mention some classmates according to a group of characteristics. Each item is a different characteristic, and for each one they must name the classmate they consider to have it. In this case can I use Krippendorff's alpha to assess the reliability of the students' ... |
How does one interpret a correlation that does not appear until an asymptotic point? For example, in the graph below?
|
So there's a domain of interest where the machine learning models are all specific to one entity. Let's call it a building. So there's a model made for every building. The literature in the domain all revolves around studies showing how they tailor a NN or other ML model to make a prediction for the building in questio... |
while performing a logistic regression for two variables I also wanted to perform an interaction analysis.
Particularly, I was looking to the use of a diagnostic test over time (before and after a certain period, a binary variable) and deepending on age (elderly >75 y.o. ore younger individuals, still a binary variable... |
I am forecasting a few macro variables such as inflation rate (INF), GDP, unemployment rate (UNRATE), federal funds rate (FFR) etc. Then, I imposed a 2 % upward shock on the federal funds rate, and the examined the impact of the shock on other variables by creating impulse response functions and plotting them. Suppose ... |
The regression is
$$\ln y = \beta_0 + \beta_1 x_1 + \beta_2 x_2 + \varepsilon$$
I know there is an approximation, but what about the exact interpretation of $\beta_1$ in non-log terms of $y$?
This source says a one-unit in $x_1$ increase will give $(e^{\hat{\beta}} – 1) * 100$
This source says a one-unit in $x_1$ inc... |
I have a dataset with parallel time series. The column 'A' depends on columns 'B' and 'C'. The order (and the number) of dependent columns can change. For example:
A B C
2022-07-23 1 10 100
2022-07-24 2 20 200
2022-07-25 3 30 300
How should I transform this data, or how should I build the mod... |
It seems that the Latent Semantic Indexing (LSI or Latent Semantic Analysis, LSA) can take as input information frequency data (such as TfIdf-weighted space), e.g., according to this documentation for gensim https://radimrehurek.com/gensim/auto_examples/core/run_topics_and_transformations.html#available-transformation... |
How do I compute power (1-beta) for GLMM in SPSS?
Thanks.
|
Law of large numbers states that:
If $X_1, \dots X_n \sim p(x)$ are IID, then $ \frac{1}{n} \sum_{i=1}^{n} X_i \rightarrow \mathbb{E}_{p(x)}\{X\}= \mu$, where $X \sim p(x)$.
Below is what I'm having trouble connecting to this, as this is new notation for me from an online lecture:
If we have a function $f(X)$ of some r... |
I have the regression
$$ y = \beta_0 + \beta_1 x_1 + \beta_2 D + \beta_3 x_1 D + \varepsilon $$
where $x_1$ and $y$ are continuous, and $D$ is binary. Say the estimates are as follows:
$$ y = 0.02 + 0.5 x_1 + 2 D + 0.7 x_1 D + \varepsilon $$
Questions:
What is the interpretation of $\beta_3$?
How do I get the 'total e... |
I have learned that one property of multinomial logit models or the data used to build these models is scale heterogeneity. What does Scale Heterogeneity mean in the sphere of multinomial logit models?
|
I am working with a pretty large dataset containing 760 rows and arround 58k-60k features and I'd like to perform a feature selection to reduce the dimensionality of those. After stardardising the data I've decide to try with the SelectKBest method from sklearn and I realized that I have to provide a number of features... |
I want to model counts of an event in a pre-post design. A sample dataset could look like this:
dat <- tibble::tibble(
day = 1:20,
event = c(0,0,2,5,0,10,3,0,0,0,1,3,4,0,5,0,0,2,0,10),
group = c(rep("pre", 10), rep("post", 10))
)
In my real data there are definitely too many zeros for a Poisson process. Thus I a... |
This may look easy but I'm not sure about it. Suppose we have 3 random variables $D$, $Y$ and $Z$ such that $P(D=1|Z) = P(\{Y \le Z\}|Z)$. Let $z$ be in the support of $Z$, is it correct to write : $P(D=1 |Z=z ) = P(Y \le z)$ ?
|
The purpose of my study is to understand if changes in environment policy or changes in people concerns about climate change affects volatility or if they can help in the prediction of volatility. In this case I check the volatility of the Dow Jones from January 2003 to June 2018. In order to do it, I’m using a GARCH(1... |
This post concerns three versions of the independent two sample t-test:
Student's t-test uses a pooled standard deviation in the denominator (all equations are shamelessly copied from Wikipedia - Student's t-test):
$$ {\displaystyle t={\frac {{\bar {X}}_{1}-{\bar {X}}_{2}}{s_{p}\cdot {\sqrt {{\frac {1}{n_{1}}}+{\frac ... |
I am new to VAR, and I got confused about how I can interpret the IRFs in my research. In fact, I am analysing if there is any interplay between Twitter, Telegram, and Instagram in Iran. I have collected data, classified all datasets, and conducted standard VAR using EViews 12. However, I am not sure if my interpretati... |
I heard that a too high F-statistic in the first stage of an instrumental variable regression can also be bad because it means that the IV is highly correlated with other endogenous variables. Does anybody know of a more formal treatment of this?
|
Preparing exams, I ran into the following problem:
Edit: it shouldn't be represented as it was. Added the storkes.
Let $A$, $B$ be two independent variables having probability distribution:
$$
\require{cancel}
\cancel{P(A = a) =} f_a(t) = \begin{cases} \lambda_ae^{-\lambda_a t} &, x \geq 0 \\ 0 &, x < 0 \end{cases}\... |
I have a object detection problem which has extremely imbalanced dataset. Lets say there is only one class to detect, say banana or not banana. This detection network will be used in a real case where positive/negative samples ratio is extremely huge, 1:1Million.
What are the best approaches to this imbalanced dataset ... |
A pensioner receives 2 (thousand dollars) at the beginning of each month. The amount of money he needs to spend during a month is independent of the amount he has and is equal to i with probability $P_i, i= 1,2,3,4,\sum_{i=1}^4 P_i =1.$
If the pensioner has more than 3 at the end of a month, he gives the amount greater... |
What are some reasons why the PC algorithm might generate zero edges for a certain dataset? How and why could this happen?
|
I have read several recent papers on new machine learning methods to find causality using textual unstructured data. Here are some famous examples, and I am still not sure if we can hold the SUTVA assumption in text data. For example, if we are interested in studying the impact of exposure to Russian propaganda account... |
If I have a generalized linear model (GLM) with a particular likelihood, and I have another GLM of the same data (say nested within the first model), I can compare the model performance using Akaike information criterion (AIC).
Let's say that I fit a Poisson GLM.
However, I wonder if I might get a better fit by using a... |
My question is related to [1], [2] and [3].
Assume we estimate a multiple regression,
$$ y = a + b_1x_1 + b_2x_2 + u $$
and are mainly interested in the value of $\hat{b}_1$ (lets denote this specific estimate $\hat{b}_{1; \text{model 1}}$).
If we run a different model by including an additional independent variable $x... |
In the photo attached, I am comparing the D, Ra, H, and AED values of Glutinous rice in Songkhla (see 4th to the last row) to the rest of the values. I understand why most of it has uncertainty values (standard deviation). However, I can't quite understand the implications of some variables not having uncertainty va... |
For example:
Let's say I have dataset A:
Measured body temperature of a person during the day.
I have measurements from 3 people in the span of a year.
If I cluster it, I expect the clusters to inform me of something that will help me give advice to each person "Drink more water at this and this hour during the day".
... |
It is known that logistic binary classification is well calibrated.
Q1: If I add random effect into the model where I assume correlation in data structure, do I expect mixed effect logistic regression well calibrated? There is a saddle point here. When I predict subjects not in training sample, I do not have random eff... |
I tried to recreate the original ResNet 50 model myself, using all the same layers, hyperparameters, and data augmentation methods mentioned in the paper. (I only trained on a few hundred iterations as opposed to 64k iterations that the authors did, so that's the one difference.) However, when I try training on CIFAR-1... |
I am conducting a latent profile analysis (LPA) in R and I'd like to examine the relationship between most likely class membership and some covariates (e.g., can I predict class membership from background characteristics, etc.)
I fit the model using mclust (4 classes, EEI configuration) but I can't figure out how to sa... |
I have a dataset containing more than 1000 predictors and I would like to do the feature selection. The features belong to several big categories(geographical factors, customer information....etc) When I do the feature selection, I split the dataset into several sub-dataset, and each sub-dataset contains one category o... |
I have a scenario where a person presents an item to a panel of 10 experts, who then value the item. If at least 6 out of 10 experts say the value of the item is greater than zero, then it's considered to be "valuable". Otherwise, it's considered "worthless". Basically, if the 5th-ranked expert (in ascending order) say... |
I am reading these notes on slide 34 and came across strategies to prevent gradients from becoming too big in Deep Q Learning (DQN). Since, we don't usually use deep architectures in DQN, I don't think it's an exploding gradient problem. My understanding is that it has something to do with the linear regression squared... |
I am using ensemble-tree for regression (in Matlab) for my research. I have 22 features that includes 16 continuous (numerical) and 6 categorical variables. Categorical variables are based on time, which are: 24 hours (24 levels), weekdays (7 levels), months (12 levels), number of weeks (52 levels), weekend or weekday ... |
Suppose I have a discrete variable $S_t$ and a continuous variable $X_t$. Further, suppose I wish to evaluate $P(S_t=s_t)$. Would the below derivations be correct?
\begin{align}
P(S_t=s_t)&=\int P(S_t=s_t,X_t)dX_t\\
&=\int P(S_t=s_t\mid X_t)P(X_t)dX_t
\end{align}
Now suppose I have a realisation $x_t$ for $X_t$, such t... |
I consider the next piece of code
library(UsingR)
data(babies)
hist(babies$wt)
shapiro.test(babies$wt)
As you can see the data seems perfectly normally distributed, moreover the sample size seems to be good enough > 1000 individuals.
However, the results of the Shapiro Wilks test have different results.
data: ba... |
What exactly is overfitting while building models ?
|
The question is related to computing the likelihood function of a simple problem for MCMC. The full problem can be found here on page 2.
The question in the title is written more succinctly in the screenshot below: How do we compute $N(\mu|x,\sigma)$ given $\mu$, $\sigma$, $x$?
|
I am having trouble understanding a basic Bayesian inference exercise:
Suppose we are interested in inferring the proportion $\theta$ of
individuals in a given population suffering from a certain disease. A
group of epidemiologists initially determined that this prevalence can
be:
Low $(C_1: \ \theta = 0.10)$
Medium ... |
Mitigating problem when cell count $<5$ or almost zero
a. 2x2 table with cell count zero
b. When event rate is small in logistic regression: such that when seen further by an independent categorical variable it leads cell counts less than 5 or almost zero.
Are these options?
One is to take this variable out of the ... |
As the question states, I am looking to run a lmer model with two main effects and one moderator, with some random effects of participants or schools potentially added in. The idea is something like this:
lmer(y ~ (x1 + x2)*(z) + (1|random), data=data)
The idea is that z moderates x1 and x2 individually. As far as I kn... |
I would like to generate random data for a distribution which takes the form of hurdle-like model. Let's denote a random variable X with probability mass function
\begin{align}
Pr(X=0)&=\alpha\\
Pr(X=1)&=\beta\\
Pr(X=x)&=(1-\alpha-\beta)f(x;\theta)\quad x\geq2,
\end{align}
where
$\sum_{x=2}^{\infty}{f(x;\theta)}=1, 0<\... |
I am trying to apply regression to a problem where I have a time series that I want to predict - say y.
Y is seasonal and let's say has 3 seasons summer, winter and other.
I have 3 predictors X1, X2 and X3.
Y has a linear relationship with X1 during Summers but not during the other seasons. Similarly it is linearly rel... |
Correlation between two variables can be linear or non-linear. Accordingly different methods are used to find correlation coefficients.
My query is if the correlation can be linear or non- linear, why in most place/articles the definition of the correlation assume that the association is linear?
|
I learned that expected Hessian of negative log likelihood is the same as Fisher information matrix, which is known to be positive semi-definite
$$
\begin{aligned}
F(\theta)
&= E_{x \sim p_\theta}[-\nabla_\theta^2 \log p_\theta( x)] \\
&= E_{x \sim p_\theta}[\nabla_\theta\log p_\theta( x)(\nabla_\theta\log p_\theta( x... |
I am trying to model sales of 2020 on calls of 2020 where the values of calls are (0,1,1.5,2,2.5,3,3.5......,19,19.5,20). My lookout is to establish some sort of relationship between the two variables. The scatter plot shows no linearity between the variables and even after scaling the two variables, the R-sq is 0.003.... |
I have this question, but to be honest i am stuck
1.Considering a set of 60 users, an a maximum number of objects that a user can own equal to 4000, which approach would you choose to calculate the centroid in terms of owned objects ,and their distance from the centroid to identify the outliers?
The outlier can be defi... |
I have a glm model that includes (dependent variable ~ continues + factor).
I try to use the predict function to extract the response of the continuous variable.
glm(TO~ STAB + Age)
newdata2 <- with(ST, data.frame(STAB=rep(seq(from=min(ST$STAB),
to=max(ST$STAB), length.out = 100))))
newdata3 <- cbind(newdata2, p... |
I've been working with some penalty-based models. Most specifically, LASSO. But I've also been reading surrounding literature on ridge and elastic net.
Conceptually, I understand the nature of a penalty term and the implications. However, I wanted to know if someone could explain why they're also called 'norms,' and th... |
I'm trying to understand why the quadratic equation can approximate the log likelihood ratio.
Is this approximated using Taylor's series or normal distribution equation or anything else?
|
I have two groups of patients who were part of an intervention many years ago, and some covariates about their characteristics e.g., age, BMI, and years since the intervention. I have conducted a logistic regression in order to see the association of the intervention (yes/no) with a clinical outcome (yes/no), controlli... |
I would like to know whether $B \perp\kern-5pt\perp C | A $ in the following two graphical models and would like to know if my reasoning is correct:
For the left graphical model, which is a Belief Network, here's how I deduce it:
$P(B,C|A) \propto \sum_{D,E} P(B)P(A|B)P(C|A)P(D|B,C)P(E|D) = \underbrace{P(B)P(A|B)}_{f(... |
EDIT: If I am not mistaken, the problem outlined below can also be expressed simpler in the following way:
Distribute a variable run (ranging from 1 to 5 with each value appearing exactly 5 times) randomly over all possible combinations of the two variables var1 (1 to 5) and var2 (a to e) in a way that the following co... |
I would like to know whether $C \perp\kern-5pt\perp D | A $ in the following two graphical models and would like to know if my reasoning is correct:
For the left model (Belief Network), here's my work:
$$
\begin{align}
P(C,D|A) &\propto \sum_{B,E} P(B)P(A|B)P(C|A)P(D|B,C)P(E|D)\\
&=\sum_B P(B)P(A|B)P(C|A)P(D|B,C).... |
I am reading up on the delta method from its Wikipedia page. Under the heading Univariate delta method the statement of the method is as follows:
If
$$\sqrt{n}[X_n - \theta]\xrightarrow{\text{D}} \mathcal{N}(0,\sigma^2)$$ where $X_n$ is a sequence of random variables where $\theta$ and $\sigma$ are finite valued consta... |
QUESTION: Can you recommend a nonparametric version of a multiway ANOVA that is also robust in the absence of homogeneity of variances? So, this is what I am looking for:
(1) Nonparametric ANOVA (no normality assumption).
(2) Multiway, AKA $k$-way (several factors, crossed design, second-order interactions can be studi... |
I would like to know whether $B \perp\kern-5pt\perp C | D,A $ and $D \perp\kern-5pt\perp A | B,C $ in the following two graphical models and would like to know if my reasoning is correct:
For the left graphical model (Belief Network):
Checking $B \perp\kern-5pt\perp C | D,A $: We have that
$$
\begin{align}
P(B,C|D,A... |
Task definition
I've been tasked to build a recommender system and I have to admit I'm a beginner in this field. Entities in my system are buyers and unique products that could be bought. You could imagine the product as an original of the painting - only one user could buy it and thus only one "rating/feedback" could ... |
Background
After fitting a logistic regression model, I am trying to produce a series contrasts between levels of a categorical variable, x1, across the values of an interacting continuous variable, x2, fitted with a restricted cubic spline.
Using the contrast() function in the rms package in R I did:
con <- contrast(m... |
I am computing the t-statistic for different values of cumulative abnormal returns $CAR_{T}$ during the event period, for (T=-5,....,0,...,5) .
The formula I use is the following:
$t_{T}=\frac{CAR_{T}}{sqrt(var[CAR_{T}])*sqrt(\frac{L-2}{L-4})}$
which is normally distributed with mean 0 and variance 1. Also, L is the l... |
The below scenario was taken from this video on the America's Got Talent show
4 judges, each judge picks two double sided cards. One card comes from a yellow pile and the other from a blue pile. Each card contains song names on both sides. The judges display the cards on chosen side. How many total combinations of song... |
I would like to know whether $E \perp\kern-5pt\perp A $ in the following Markov Network and would like to know if my reasoning is correct:
So, since this is a Pairwise Markov Network, it factorizes into potentials. We have that $P(A,B,C,D,E) = \phi (A,B) \phi (A,C) \phi(B,D)\phi (C,D)\phi(D,E)\frac{1}{Z}$
where $Z$ is... |
I'm building a risk model for predicting risk of event within a specific time horizon for some patients. I use ROC-AUC score to evaluate the model. My dataset is highly imbalanced (15 events within 570 patients in the most imbalanced group) and because it consists of real patients there is high variability when resampl... |
When I performed logistic regression and generated a confidence interval of the odds ratio with R using confint, it gave a different confidence interval than the one generated in SPSS. However, when I use confint.default in R instead, the confidence intervals were the same as those generated in SPSS. Can someone explai... |
I have dataset with size 4630 and I used KPSS test to check if it is stationary or not. I get on this output, Is that mean the value of p_value is not correct? or how can test large values with kpss test?
InterpolationWarning: The test statistic is outside of the range of p-values available in the
look-up table. The ac... |
This question is different than my previous question in that I'm asking sort of a "meta" question.
Here's two graphical models (a Belief Network and a Markov Network):
I would like to answer the following question:
Do they encode the same set of independence assumptions? If yes, explain why.
If not, list all the inde... |
I would like to model the distribution of the duration of (short-term) sick-leave: if some one calls in sick, how long can you expect the sickness to last? Short-term would typically mean between 1 and 14 days.
Distributions that came to mind are the binomial distribution or the Poisson distribution. The binomial distr... |
This movie rating is from a scale from 0 to 5 with no in between values.
Can I say that it is discrete variable and calculate things like movie rating average?
|
The expectation of a binomial distribution is given by E(X) = np, where n is the number of trials and p is the probability of each trial. When using a normal distribution to approximate the binomial distribution, the mean of the normal distribution also becomes (or is approximated to) np. But then comes the following, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.