instruction stringlengths 9 38.7k |
|---|
I'm evaluating a series of binary classifiers and I care about how one performs better than the other for the same task, albeit under different settings. In my use case, I do not particularly care about the True Negative rate. I have been using binary/positive $F_{1}$-score to "focus" on the positive class in my evalua... |
I would like to perform a cluster analysis on a mixed data set containing continuous, categorical and binary data.
As I have 93 features in total, I thought it might help to use an AutoEncoder to
compress these 93 features in a latent space of e.g. 8 features. On top of the benefit of dimensionality reduction, this wou... |
I've been trying to wrap my head around measurement invariance testing with ordinal data in R version 4.2.2 using lavaan 0.6-13. It all seemed rather straight-forward in theory, but I believe I am becoming more confused with each day I spend with this code. I am working with a 20-item depression scale (response options... |
I have 5 diagnostic tests (test A, B, C and D) for a certain disease, tested in 2 different populations.
For comparing test parameters (sensitivity, specificity) of test A and B in the same population I would use a McNemar test, but I do not know how to compare the same test between two different populations. Could be ... |
I would like to generate samples from a half normal distribution.
numpy's random number generator allows you to sample from many distributions. Here's an example for the normal distribution. However, it does not appear to support half-normal. I could take the absolute value of the samples, but this seems inelegant.
imp... |
I am trying to implement spectral clustering in python. I'm using these excellent notes as a guide. As the notes suggest, I'm using a toy model where I generate random numbers that come from k Gaussians (i.e. k clusters). For my example I set k=4, and there are 50 points each from each cluster. I thus expect the cluste... |
Can someone help me compute this expression:
$$E[\log(X Y + (1-X)(1-Y))]$$
where $X\sim\operatorname{Beta}(a_1,b_1)$ and $Y\sim\operatorname{Beta}(a_2,b_2)$, and where $X$ and $Y$ are independent.
In the end, I want this expression to be written as a function of the parameters $a_1,b_1,a_2,b_2$.
|
I have a question regarding the PPV of a test in the context of the famous conclusion of Bayes test in tests for rare diseases:
The gist is that even highly sensitive and specific tests will make a huge number of false positives, leading to an un-intuitively small positive predictive value/posterior probability of othe... |
let's say that I have a spatial random field $z(\textbf{x})$ with $\textbf{x}$ the spatial coordinate. I can define the semi-variogram as:
$\gamma(h)=\frac{1}{2}E[(z(\textbf{x+h})-z(\textbf{x}))^2]$
This is shown in figure 1:
It is characterized by the so called nugget, sill and range.
The semi-varigramm is linked to ... |
I fit a gamma hurdle model to invertebrate biomass data and am having trouble predicting from the model. I've been using these posts extensively to try to set it up:
Gamma hurdle model for continuous response?
Specify a Zero-inflated (Hurdle) Gamma Model in JAGS/BUGS
https://seananderson.ca/2014/05/18/gamma-hurdle/
but... |
When dealing with non-binary discrete-choice outcomes, one common way of modeling such problems as a function of some covariates is through a multinomial logit/logistic model, in which there is one set of coefficients per class/choice, each producing a linear score for it, and the probability of a given observation bel... |
I'm working on a project classifying patients as having (1) or not having (0) a particular condition. Someone I work with has suggested fitting a decision tree on this data, and using the leaf node membership as input to a logistic regression model. In other words, which leaf node a sample falls into is used to create ... |
I've seen some similar (ex ex2) questions, but hopefully this is not a duplicate. As it is mentioned in one of them, I'm using eemmeans to do pairwise comparisons after my linear mixed effects model. Question: WHAT is the most appropriate effect size estimate for these comparisons? eta ? partial eta?*
My model + my po... |
I would like to preface by saying I am relatively new in the world of machine learning, however I have a decent background in statistics.
I have a large database of patients who underwent a certain procedure. This database contains patient information, as well as the outcome of the procedure (success or failure). There... |
The sum of the mean and standard deviation of a non-normal distribution can exceed the value of the largest sample. For a good explanation of why, see Can mean plus one standard deviation exceed maximum value?.
My related "going-the-other-way" question is, if a set of 15,000 samples, all ages between 9 and 20 for a ce... |
Is it possible to have no causal relationship between two variable?
Example: X does not granger cause Y and Y does not granger cause X. Are these results okay or there are might be an error in the regression?
|
I am looking for advice on analysis of a greenhouse experiment.
I had 3 levels of stress (drought) treatments, and seeds were from 4 enviromental "Sources". I grew 5 plants per "Line", approx 10 Lines were from each Source.
I measured initial and final diam and heights of all plants, then dried them and got weights of... |
I'm trying to understand this boxplot, where I'm rejecting null hypothesis, but it amazes me how can it reject it since it looks so similar, i.e. equal for the variable.
Does it mean if their medians are the same the hypothesis will also say it is the same?
|
I have two equations:
fit1= svyglm(Y1 ~ X1 + X2 + X3, design= design.mnps, data= data)
fit2= svyglm(Y2 ~ X1 + X2 + X3, design= design.mnps, data= data)
Y1 and Y2 (both continuous variables) are highly correlated. Questions:
Should I use the Seemingly Unrelated Regression model or treat them independently, or use a... |
I am working on a clustering project on a dataset that has some numerical variables, and one categorical variable with very high cardinality (~200 values). I was thinking if it is possible to create an embedding for that feature exclusively, after one-hot encoding (ohe) it. I was initially thinking of running an autoen... |
Consider a constrained least squares problem of minimizing $(y-X\beta)^T(y-X\beta)$ subject to a constraint or penalty on the number of non-zero coefficients $\beta_i$. This seems related to LASSO or Ridge regression but is different from either of these. It seems also related to AIC/BIC type criteria but again is not ... |
I've been doing some reading on the topic of credible vs confidence intervals but unfortunately it feels like the more I read the more I'm confused. There seems to be a general sense or consensus that confidence intervals are unintuitive. In particular, a $(1-\alpha)$ confidence interval you've calculated based on your... |
I'm having a hard time understanding the situation where the variance for the random effect decreased as more predictors were included.
For example, the model below has only two predictors, and its random effect SD is 1.205.
However, when three predictors were added, as shown below, the random effect SD dropped by 0.9... |
I am trying to clean up some old code. My workflow had been some data-wrangling -> regressions -> plots.
Figured it would be easier to split the data into three files for each step. The problem is that when I split the data post-wrangling, something odd happens and I no longer get the same regression results.
Not sure ... |
In linear regression, we postulate a model for estimating $E(Y|X)= \beta_0 + \beta_1 x$
We also propose $Y= \beta_0 + \beta_1 x + \mu$ where μ is an error team with expectation equal to zero. We also assume $X$ are fixed, i.e. not random.
If we replace the first equation into the second, it will result:
$$Y=E(Y|X) + \m... |
I have two predictors and five dependent variables. I'm trying to figure out what the critical alpha cutoff for Mahalanobis distance is for a model with 5 DVs to check for assumption of multivariate outliers before my MANOVA. Can't seem to find the answer anywhere, could anyone help?
|
Consider the following question:-
A tetrahedral die is manufactured with numbers 1, 2, 3 and 4 on its faces. The
manufacturer claims that the die is fair. All dice are tested by rolling 30 times and recording the number of times a ‘four’ is scored. Using a 5% significance level, find the critical region for a two-taile... |
I have to set up an LMM with just one independent variable and there is both monthly and yearly variation. I aim to get fixed effects coefficients (slope and intercept) for each month and year given as a random effect.
Can anyone give suggestions on how to code this? The below code just gives one intercept and a differ... |
Suppose I flip a coin 10 times and get 7 heads - based on a Binomial Distribution, I can create a Likelihood Function and estimate the probability of getting a head is 0.7.
Now, suppose someone tells me that they have very strong evidence to believe that the probability of getting a head is 0.9. Suppose I decide to use... |
I'm studying various statistical tests related to AB testing for businesses - Fisher's exact test, student's t-test, etc.
As I was doing so, I remembered the various convenient online AB testing calculators that let people punch in a few data points and output a p-value and "winner" version. For example -
https://www... |
Im looking for some clarification. When I look up the Z value of 0.83 on a table, I arrive at a P value =(1-0.7967) = 0.2033. However, when using a P value calculator such as the one on omnicalculator.com, I get an answer of 0.202328. I'm assuming this second answer is more correct, but is there anyway to arrive at thi... |
Suppose I have a confusion matrix, or alternatively any one or more of accuracy, sensitivity, specificity, recall, F1 score or friends for a binary classification problem.
How can I calculate the Brier or log score of my classifications from this information?
|
I can see the R package rugarch allows the estimation of GARCH models with exogenous variables in the specification of the variance model:
\begin{aligned}
\epsilon_t &= \sqrt{h_t}\eta_t, \\
h_t &= \alpha_0 + \alpha_1 \epsilon_{t-1}^2 + \alpha_2 h_{t-1} + \alpha_3x_{t-1}, \\
\eta_t &\sim N(0,1) \ \textrm{iid}\ \forall \... |
Assume we have 4% of population having Covid-19, let say P(covid) = 0.04.
And we have these information;
Probability of cough symptom found in Covid patients is 75%, P(cough|covid) = 0.75
6.25% of non-Covid population have cough symptom, P(cough|¬covid) = 0.0625
I want to find the probability of detecting positive Co... |
I have weekly data per single SKU and for more than 500 point of sales. Data embeds base price, quanity sold, holidays, temperature, market activities (cut-price, display, leaflets) and so on.
I want to run a regression model (OLS) to capture the effect of changes of base price on sellout controlling for all the other ... |
Often a preprocessing technique to do is to normalize our data in a range (0,1) before we tow our model (example neural network) on them.
I understand why in a practical way (for example if we have the height of something in kilometers and its weight in like picograms).
However, if we are dealing with, for example, ima... |
In the section on Ridge Regression (source: Elements of Statistical Learning by Hastie, Tibshirani, Friedman) :
When there are many correlated variables in a linear regression model, their coefficients can become poorly determined and exhibit high variance. A wildly large positive coefficient on one variable can be ca... |
I run marketing experiments on a website.
As far as I know, it's a well-known rule that we should estimate required sample size to detect a certain uplift in the treatment before running the experiment. But here's a problem that I encountered.
I estimated the required sample size based on the base conversion rate of th... |
I have a random variable $Y$ which is related to another random variable $S$ by the relation $Y=gS+t$, where $g$ and $t$ are constants.
Let $X$ be another random variable. Then it is claimed that $\rho_{YX}=g\frac{\sigma_S}{\sigma_Y}\rho_{SX}$.
Can anyone please help me understand how this expression is true, or refer ... |
I have three variables (let's call them $A$, class (both binary) and age (numerical)), and I want to test if there is a difference in the presence of A between the two classes, with age as a potential confounder.
I have been modelling this using a logistic regression, with logit link using a model like
$$A \sim \mathr... |
I have collected time-series data from a few hundred people. For each person, I have two measurements that I am interested in correlating.
Specifically, I want to identify the time point at which those two measurements are most strongly correlated.
I think what I want is a time-lagged cross correlation (although I am o... |
I've been trying to get my head around the controversy that surrounds Fisher's exact test.
I often use the test in the something like the following way:
A survey asks respondents two questions: "Are you blonde?" and "Do you like skateboarding"?
After a month of collecting responses, we have 16 responses and can make t... |
I used random forest to predict whether a player will be selected for taking part in the Olympic Games, and 0 represented for not selected and 1 for yes. I got the prediction result, for example,Amy is 0 ,Bobby is 1 and Cindy is 1; Q1:how to judge whether Bobby has higher probability of being selected or c is more lik... |
The central limit theorem says that $$
\frac{\bar{X}-\mu}{\frac{\sigma}{\sqrt{n}}} \stackrel{\mathcal{D}}{\rightarrow} N(0,1)
$$
What is the distribution of $\bar{X}$? I've seen it given as $\sum X \sim N\left((n)\left(\mu_x\right),(\sqrt{n})\left(\sigma_x\right)\right)$, but don't know how to prove this.
|
Apologies for the basic question, but I've been reading about cross-validation methods/metrics and I would like to confirm if my understanding is correct:
Some can only be used for regression models (e.g., Root Mean Squared Error, Mean Absolute Error, R2 Error, etc.);
Some can only be used for classification models (e... |
Beginner's question probably. I would like to know why, to measure country fixed effects, I need to subtract one from the factor variable that I would like to consider as a fixed effect.
For example, I want to consider country and year fixed effects, so my regression model is:
lm(Premium ~ Brand + factor(Country) - 1 +... |
How can I evaluate a survival model made for interval-censored data? I'm building my models in icenReg, which only allows you to check for whether the proporitional hazards assumption is satisfied. What I'm really interested in is the predictive performance.
Harell's C index and Somers' Dxy were my first choices, but I... |
Suppose $X_1, X_2, \ldots \sim U(0,1)$ and $X \sim \operatorname{Exp}(1)$, and $X_1,X_2, \dots , X$ are independent. Does it follow that $n \cdot \min _{1 \leq j \leq n} X_j \stackrel{P}{\rightarrow} X$, for $n \rightarrow \infty$?
|
Let's say I have a dataset $\boldsymbol{\mathcal{X}}$ of $N$ samples wherein each sample $\boldsymbol{x}^{(i)}\in \mathcal{X}$, $i \in {1 \ldots N}$, is described by a set of $D$ features, such that $\boldsymbol{x}^{(i)} \in \mathbb{R}^D$, and each component $d$ of $\boldsymbol{x}^{(i)}$, $d \in {1 \ldots D}$, correspo... |
In the problem, the data X follows a normal distribution, or $f(x|\mu,\sigma^2) = \frac{1}{\sqrt{2\pi\sigma^2}}\exp(-\frac{1}{2}(\frac{x-\mu}{\sigma})^2)$. Let's say I know the value of $\sigma^2$ and want to find the posterior distribution of $\mu$, and I choose a prior distribution of $p(\mu, \sigma^2) = \frac{1}{\si... |
Recently I ran a logistic regression model using the census data here. The model attempts to assess the relationship between female labor force participation and other variables. Here is the code I used to create the model:
library(tidyverse)
library(stargazer)
library(ggplot2)
library(ggpubr)
library(dplyr)
library(ha... |
Does probability calibration decrease model prediction variance?
Example:
Let's say we have a classifier that is a mail spam detector. It outputs a score between 0-1 to quantify how likely a given email is to be a spam. Our local grocery store is innovative enough to have a newsletter. These emails are problematic sinc... |
I did not find material on this topic. Information on linear mixed model (lmm) or generalized linear mixed model (glmm) is easy to find, but it is not not the case for multivariate (multi-response) generalized linear mixed model (MGLMM).
Can you recommend a good reference for multivariate (multi-response) generalized l... |
A decision boundary like in the picture.
|
I have a large datasets of data which I try to model with GAM. My model performance is otherwise good, but the errors are not normally distributed. Do you have any idea, how this problem could be solved? I have added the histogram of my data (skewness is 0.4 and thus, no transformation is needed), model results and the... |
After completing a difference-in-differences matched cohort analysis to estimate the pre/post treatment effect of a home health nursing intervention compared to a control group, my employers are interested in dissecting the matched data.
In particular, do we achieve different treatment effects looking at subsets of the... |
I have the following F1 score function that I use for the model when I train it as part of metrics and as well during prediction:
#This is to calculate F1
def f1(y_true, y_pred):
def recall(y_true, y_pred):
"""Recall metric.
Only computes a batch-wise average of recall.
Computes the recall... |
I have a group, people, and have converted their heights into z-scores.
I separated the groups into male and female and wanted to test whether there is a statistically significant difference between the groups. Is a t-test suitable for this purpose?
The means and SDs of the groups are not identical because the z-score ... |
How do you define "symmetric" here? In a paired test scenario, if one treatment consistently produces better outcome than the other treatment, I'd imagine the differences to be clustered on the "positive" sign, without many "negatives". Wouldn't that mean the distribution of the differences is NOT symmetric (unequal am... |
Consider a gambler going into a casino with K dollars to play games with the standard conditions (independent trials, Bernoulli process with success probability p). In case of a loss they lose 1 dollar. In case of a win, they win a token. After having R tokens, they earn an extra dollar. What is the probability that th... |
I have the following equation $y(x) = \int_a^b g(u) f(u - x) du$, where I observe values of $y(x)$, and I know the functional form of the density $f(u-x)$. Also, $x, a$ and $b$ are known. $[a,b]$ is a compact subset, and all functions are smooth and well-behaved. $g(\cdot)$, however, is unknown, and I would like to est... |
I am moving from StackOverflow looking for statistical aspects of the code.
My work is based on an lifestyle intervention made up 3 groups (1, 2 and 3) with measurements at 2 points separated by 12 months (pre- and post-intervention). The sample size is around 50 participants/group, and the response variables are genes... |
Validated community,
I have a large dataset of three classes and 22 variables from which I would like to create a decision rule/decision tree-based classification in Weka 3.8.6. The dataset is a retrospective medical study containing numerical data (such as height) and categorical data (patient tests positive/negative)... |
I have data across 8 different time-points that is both left, right, and interval censored (also randomly censored) that I am trying to use to conduct a survival analysis. The left-censoring should not be a problem because I can adjust respondents and set T1 as each respondents' first response (meaning that there will ... |
Let's say you have some dataset of observations which are either 0 or 1, and you want to estimate the mean and standard deviation / CI. This is straightforward to do. If the number of observations is N and the fraction of successes is f, then
mean = $f$
$\sigma = (f(1-f)/N)^{1/2}$
95% CI: $[f - 2\sigma, f + 2\sigma]$
a... |
I wonder, if tree based ml models (e.g. xgb or random forests) are actually susceptible to zero inflated dependent variables (DVs) in the case of regression (in a sense the DV is at least bi-modal)? IMHO one could just use them as is. Some people train the trees on data where the DVs > 0 and use a model that predicts w... |
As I understand it, the Frisch-Waugh-Lovell theorem implies that if you regress y on x1 and x2, the coefficient on x2 will be the same as if you regress the residuals from regressing y on x1 on x2.
But if you run the below code, they're different. Why is this?
import random
import numpy as np
import pandas as pd
impor... |
I wanted to understand whether it would be feasible to use propensity score matching/weighting/stratification on my data. I'm investigating a region of the world where a number of countries joined an international organisation, and I'm using multilevel interrupted time series analysis to understand what effect a countr... |
I am conducting a discrete choice model (specifically, conditional logit). I would like to compare the strength of coefficients (log-odds) between four variables x1, x2, x3, and x4. I have heard repeatedly that such comparisons should not be made for discrete choice models. However, any search I find online says that t... |
I have a log-likelihood equation that involves multivariate normal. Let's say, $le = \sum_{i=1}^n logf(y_i)$ and
$f(y)=(2\pi)^{-\dfrac{n}{2}}|\sigma^2I_n|^{-\dfrac{1}{2}}exp[-\dfrac{1}{2}(y-x(t))^T|\sigma^2I_n|^{-1}(y-x(t))]$ and x(t) is a very complicated function of c(let's say x(t)=g(c)) which involve exponentials, ... |
I have a dataset where the outcome variable is the result of a blood test that ranges from 10 to 40.
A person is healthy if the result is between 20 and 30. Under 20 and over 30 are equally bad results, one is not worse than the other.
I want to run a regression (if is the best choice) to check the variables that affec... |
This question is in two parts:
I have a series of large vectors (where each vector comprises of values 0 and 1) that I have then concatenated into one large matrix.
What I first want to know is how 'unique' (or the opposite, how 'distinct') each vector/row is compared to all other vectors.
What I also want to do is l... |
Frequentist statistics is based on the idea that probability should be viewed objectively, that an event's probability is the limit of its relative frequency in many trials, and that probabilities can be found by a repeatable objective process.
Given this, does frequentist statistics still make sense if an experiment c... |
A draft of Bailey's Design of Comparative Experiments may be found here; I am referring to Chapter 2, figure 2.1.
Consider $t$ treatments. We have $N$ plots labeled $1, \dots, N$. We apply treatment $1$ to plots $1, \dots, r_1$; $2$ to plots $r_1 + 1, \dots, r_1 + r_2$, and so forth.
Let $\Omega = \{1, \dots, N\}$ be t... |
Let $X_1 \sim \text{exp} \left( {\lambda}_1 \right)$ & $X_2 \sim \text{exp} \left( {\lambda}_2 \right)$, and they are independent.
Now consider the random variable $Y = \min \left[X_1, X_2 \right]$.
I need to estimate the $\mathbb{P} \left[Y = X_1 \right]$.
I can calculate the random variable $Y \sim \text{exp} \left( ... |
I am using generalized additive models in R with an correlated structure on the residuals, however I am unable to extract the actual coefficients of the AR(p) structure even though they are provide in the output. Here is an example of an output and I am interested in being able to extract the Phi value of 0.6100947.
>G... |
Let $x_i$ be a sample of survival time from right-truncated data with right-truncation time $Y_R$. I would like to find the likelihood contribution from the sample.
I thought I have to find the probability $P(\textrm{The data was not truncated and } X=x_i)$ or $P(X<Y_R,X=x_i)$ where $X$ is survival time.
However, my te... |
For example, for the smoker group, a cox regression shows that the hazard rate of alcohol use on survival is 1.41. In the non-smoker group, another cox regression shows that the hazard ratio of alcohol use on survival is 1.43. How do I know if 1.41 is significantly different from 1.43? In other words, does the smoking ... |
I ran an experiment in a greenhouse investigating whether or not different plant species tend to grow taller when inoculated with symbiotic fungi. There were 8 trays which each had 18 pots; each of 4 species had one tray with the fungi and one without. The experiment took place over 8 weeks, and for 6 of those weeks I ... |
I use R studio. I am trying to model an endangered fish by geographic province and count. Data is collected at the same exact sites, every year. All fish species are counted. For the species I am looking at, I summed the total number at each site and plotted it. Some sites exist where the fish should not occur (true ze... |
Let $x_0 \sim N(\mu_0,\Sigma_0)$, where $\mu_0 \in \mathbb R^n$ and $\Sigma_0 \in \mathbb R^{n \times n}$. Then, for $k = 0,\dots,N-1$, let $$x_{k+1} = Ax_k$$ for $A \in \mathbb R^{n \times n}$. Next, define $$E_{x_0,x_1,\dots,x_{N}}[x_0] = \int_{\mathbb R^n} \int_{\mathbb R^n} \cdots \int_{\mathbb R^n} x_0 p(x_0,x_1,\... |
I am hoping that I can get some advice on the best, or most appropriate, way to analyze a specific type of data.
I have collected data on brain volumes across two different species of mice, A and B. I want to compare subregions within the brain and know that one species is just bigger than the other so have larger brai... |
I have the following loss function L where $S_{t}$ represents the price at time t and follows a Geometric Brownian motion. $S_0$ and $r$ are constants.
$$
L = \frac{\sqrt{r}\frac{S_{t}}{S_{o}}-1}{\frac{S_{t}}{S_{o}}+1}
$$
I am now trying to find $E[L]$ (the expected value of L). I know it's possible to solve this probl... |
I'm facing a dilemma in a pre/post cohort matching analysis for a healthcare intervention:
Matching on the pre-treatment outcome $Y_0$ (a continuous variable) will likely lead to regression to the mean bias in the treatment effect estimate on $Y_1$.
However, $Y_0$ is a strong confounder that's causally associated with... |
I'm looking to compare two sets of time series data via T-test (let's call them X and Y) to see if there's a statistically significant difference in means. I understand (I think) the need to test for auto-correlation to ensure there's no correlation between residuals of the regression. What I'm not understanding is wha... |
Suppose I have the number weekly of hospital visits in a certain ZIP code (10 years of data) - this ZIP code has a small population in general and as a result, not that many people visit the hospital within this ZIP code. If I were to fit a basic time series model (e.g. ARIMA) to this data, I might run into some diffi... |
I heard a claim today that a correlation of (say) 0.5 between variables X and Y means "if we look at a value of X that is one standard deviation above its mean, we would expect the corresponding value of Y to be 0.5 standard deviations above its mean". It wasn't immediate to me whether this is true or false.
On further... |
For reference, the dataset I'm using is the Kaggle Housing prices dataset.
The train data is (1460 x 80). I split it into a train and test dataset, with 1168 rows in the train set and 292 rows in the test dataset. So I would say it is sufficiently large for our purposes.
Most of the variables here are unordered categor... |
I am conducting a meta-analysis on the alteration of fine roots in forest soil as a consequence of soil compaction after logging operations. I have already the database which is made up of studies which compared fine roots in the compacted soil (treatment) with not compacted one (control). I would like to use Hedges' g... |
I am conducting an endurance test experiment on spare parts. I put these part under stress for long hours to see when they start failing. I have a total amount of 42 spare parts.
1 part failed at run-time between 1000 and 1500 hours
4 parts failed part failed between 1500 and 2000 hours
2 parts failed between 2000 and... |
I'm trying to get a deeper understanding of how OLS works. One thing that I thought I understood is the difference between standard errors and residuals.
Here are two definitions
Standard errors: The average distance that the observed values fall from the regression line.
Residuals: The difference between the actual v... |
We have $X \sim \text{bernoulli} \left(p \right), p \geq0.50$. Goal is to to estimate the MLE of $p$
With unconstraint case, I can calculate the MLE is the sample mean.
For constraint case, there is some discussion in Estimator when a coin is either fair or has two heads - however I cant fully understand this.
In parti... |
I am trying to find the least square estimator for the parameter $p$ in $Bin(n,p)$ but is it even possible? Isn't it the same as finding it using MLE?
|
Assume that I am planning a clinical trial comparing two groups using a binary outcome. I will do the $\chi^2$ test after 3 equal enrollment intervals: interim test #1 after $m_1$ enrollments in group 1 and $m_2$ enrollments in group 2; interim test #2 after $2m_1$ and $2m_2$ enrollments; and the final test after $3m_... |
I'm doing an analysis to see if having children is associated with treatment outcome.
The children variable is categorical and takes values 0-7.
When I dichotomise it into 'children' and 'no children', there is no effect.
But if I keep all the levels, there is a significant association with having 3 children.
I'm not... |
When adding control variables to my regression, the F-statistic decreases. Furthermore, when I add an interaction term, the F-statistic is reduced further. How do I interpret these regression results?
|
I'm performing an NMDS analysis on a Jaccard distance matrix of 347 variables across 341 subjects. I'm using mMDS from the Vegan package in R, everything seems to run fine, I get convergence and a decent stress value.
When I plot the results I can see a clearly separated cluster of subjects, I have tried colouring and ... |
I have to make a decision about a possible MSc research project. It involves an analysis of secondary data. The project would involve two-level logistic regression. The data would be coming from questionnaires and census surveys.
I have already looked at the variables of interest. I would like to include about 15 poten... |
I'm wondering how variation between subjects is accounted for in data, specifically when one or a few subjects show a significant effect in the opposite direction to other subjects.
For example, if subjects are tested on 2 days and some subjects perform better on day 1 but others perform better on day 2.
How is this un... |
I was going over the old paper on insurance and healthcare utilization by the elderly by Hurd & McGarry (1997): http://www.econ.ucla.edu/mcgarry/papers_pdfs/JHE_hurd.pdf for a HealthEcon class.
Their baseline specification splits wealth and income into quartiles and then interacts them to predict Medicare uptake (Table... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.