instruction
stringlengths
9
38.7k
I am currently working on estimating a cure survival model where I want to incorporate a Cox proportional hazards (PH) model for the latency part of the model (i.e. the part for the observations that actually experience the event). However, I am unsure about the appropriate approach to test the PH assumption in this sp...
In professor Leon Garcia's textbook "Probability, Statistics and Random Processes for Electrical Engineering" there is an example (example 7.20 on page 383) of almost sure convergence of a random sequence. An urn contains 2 black balls and 2 white balls.At time n a ball is selected at random from the urn, and the colo...
I am having trouble figuring out if my ANOVA model is correct. I am analyzing a split-split plot greenhouse study with shade as the main factor (n = 3 treatments), site as the sub-plot factor (n = 3 treatments), and litter as the sub-sub-plot factor (n = 2 treatments). This was replicated five times for a total of 90 p...
I have a model which estimates the average sqft price based on whether the estate needs renovation or not and whether it is downtown, suburbs or in the transition zone between those two ares. All variables are binary: $price = 402.45 − 23.10 ∗ renovation + 56.10 ∗ downtown − 10.01 ∗ transition + 15.90 ∗ renovation × do...
I'm a grad student trying to calculate the survival probability at a particular time point (in this case at 12 months). In order to deal with differential loss to follow-up (LTFU), I'm assigning weights to the LTFU participants who I was able to trace their vital status and assigning a weight of zero and dropping the L...
As stated in the foundational Biometrika paper of Green (1995) 'Reversible Jump Monte Carlo Calculation and model discrimination' I am researching the inversion of the data in Geophysics and MCMC is suitable for what I am doing. Furthermore, the model I try to use can have a different number of parameters, which is als...
Assume that I am using Anderson–Darling test to evaluate whether a given sample of data is drawn from a normal distribution with some mean and standard deviation. If you accept the null hypothesis in a the Anderson-Darling test with a p-value of 1.000, it means that you have failed to find evidence to reject the assump...
There are some research claims that one statistical test is more powerful than another. For example, a highly cited study states: Results show that the Shapiro-Wilk test is the most powerful normality test, followed by the Anderson-Darling test, Lilliefors test, and Kolmogorov-Smirnov test. The general idea of the ar...
like many of us here, I turn to kernel density estimation when I need a nonparametric estimate of a numerical feature's distribution, and in an attempt to assume as little as possible, I usually use cross-validation to tune the kernel's bandwidth. Recently, however, I've been wondering whether I should tune bandwidths ...
What other deductions are possible? In a class of n students, a test was administered and only scored on whole numbers from 0-10 if every possible score was scored at least once, the average score was seven. What can you deduce? Deduction 0: the average of the first 11 is five. 1.There are at least 11 students 55+x=7...
This is the first time I've come across this type of problem. I really appreciate any comments or suggestions. In a Bayesian model implemented through Stan, with populations as the units of analysis (e.g., hospitals or institutions) , I have estimated a continuous parameter denoted as $\mu$. In this context: $\mu_i \si...
0 I am using the csdid command in stata for panel dataset with multiple treatment periods. When the command is running some of the iterations fail, but I still get an output. I looked in the helpfile for csdid and it states "Each succesful iteration is represented by a ".", whereas an "x" indicates for some ATT(G,T), t...
I have created a binary Logistic Regression model to predict if patients in a particular state, will die based on 10 or so predictors (demographics, income, physiological values, etc.) My dependent variable (death) is binary and I converted my predicted probabilities from continuous to binary by assigning cutt-off valu...
I have a function that I want to see if its calculations are biased (I think, but an not certain, in the sense of an unbiased estimator). So, I have (can generate) a set of numbers (drawn from a normal distribution with mean of 0 and standard deviation of 1) and I have two computations that calculate the same mathemati...
Psychology: the Core Concepts says Psychology differs from the pseudosciences in that it employs the scientific method to test its ideas empirically. The scientific method relies on testable theories and falsifiable hypotheses. Do testability and falsifiability have statistical definitions? If not, wha...
I have some questions about the use of CV in machine learning, I created a post some days ago and I have been given a link to a previous post (very interesting). I also read this post (https://www.r-bloggers.com/2020/12/the-cross-validation-train-predict-misunderstanding/) about the misconception of cross validation an...
I have applied 3 different models (Logit, RF and XGB) to my dataset with the aim of investigating their individual predictive performance. I have found the feature importance of the logistic regression model using the coefficients, and of the non-parametric models using the square root of the respective feature_importa...
I have conducted a generalized linear mixed model (GLMM). For the output, see below. Normally (when reporting results from an ANOVA), I write something like this: $F(1, 116) = 6.09$, $p = .015$, $η2 = .04$. But which statistical parameters (e.g. $\beta$, ...) do I use when reporting the results below (according to APA...
Say I want to sample from a Gaussian mixture $$\pi=\sum_{i=1}^3w_i\mathcal N(x_i,\sigma_i^2I_2)\tag1$$ where he support of the 3 distributions are "effectively separated"; e.g. $w_1=.1$, $x_1=(-22, -22)$, $\sigma_1=3$ $w_2=.3$, $x_2=(-1,-1)$, $\sigma_2=.2$, $w_3=.6$, $x_3=(15,15)$, $\sigma_3=1$ on the domain $[a,b]^2...
I am interested in learning the math behind support vector machines. So far, I understand that SVMs attempt to find hyperplanes that maximize the margin distance between support vectors associated with the classes that you are trying to classify. I also understand that using a kernel allows one to project the data poin...
Consider a natural exponential family: \begin{equation} f(x|\theta) = h(x) e^{ x \theta -A(\theta) } \end{equation} We assume that we are supported on $\mathbb{R}$ (i.e., $h(x)>0$ for $x \in \mathbb{R}$). My question: Are there some interesting (i.e., used) examples when $A(\theta)$ is a polynomial? For example, if $A(...
Let $z$ ∈ R^L be an unknown vector of values, and $y$ ∈ R^D be some noisy measurement of z. We assume these variables are related by the following joint distribution $p(z) \sim N(z|\mu_{z}, \Sigma_{z}) $ $p(y|z) \sim N(y|Wz + b, \Sigma_{y})$ where W is a matric of size D x L. This is an example of a linear Gaussian sy...
Let's say that I have an independent variable x1 which I'd like to explore its association with Y (a binary outcome variable). Furthermore I'd like to explore how x1 associated with Y when x2 interacting with them, x1 associated with Y when x3, .... when x10 is interacting with them. I build the following model in R: m...
I run a regression with a continuous variable $x_2$ and a binary grouping variable $x_1$. We suppose that the effect of $x_2$ is quadratic on the dependent variable $y$ and our question is whether the effect of $x_2$ on $y$ depends on $x_1$. The formula is $y\sim x_{1} + x_{2} + x_{2}^{2} + x_{1} : x_{2} + x_{1} : x_...
I'm comparing three LASSO-regression models for classifying two patient types. Each model has increasingly complex variables, which are less likely to be available. Consequently, the last model has more missing data compared to the first model. As I understand it, LASSO regression requires non-missing data. Do I need t...
I have 6 algorithms, and each algorithm I use on N problem instances (say N is around 200). I divided the algos into two groups, 3 into group A and 3 into group B. They are divided into two groups based on a characteristic of the algos. So that we can actually say that I have 3 variants of algo A, and 3 variants of alg...
I am using GMM for my research work. Previously, I have used ivreg command in stata in which we manually specify the instrumental variable for the endogeneous variable. I was just curious and wondering how stata allots instrument variable for exogeneous variables while conducting gmm?
I'm following this course on deep learning. In lecture 10.2 (page 23 in the handout for the lecture) causal convolutions are introduced as a method for image generation. A bit later it is said, that these convolutions need to be supplied with positional encoding to improve the quality of the generated pictures since "a...
I'm modelling some count data using negative binomial regression with glm.nb in R. I've noticed that my point estimates are quite consistently not at the midpoint of the 95% CIs and wondering if this is normal because of the distribution or if it's a sign I'm doing something horribly wrong. Have never worked with negat...
I am trying to fit a logistic regression model in order to analyze if the fuel type has an influence on how powerplants respond to droughts (e.g. are Nuclear Powerplants more likely to shut down (generation = 0) when experiencing water scarcity. I created a panel dataset with around 130 Plants and 230 Time Periods whic...
Are there papers/a literature on measuring perplexity in using a Large Language Model such as ChatGPT/Flan over a limited domain? I want to prompt an LLM to do movie recommendations/next job prediction and such, and these models are often compared using loglikelihood/perplexity. There is a lot of work doing recommendat...
My linear regression is: School's average test score ~ log(%FSM) %FSM = the percentage of pupils at the school who are eligible for free school meals (an indicator of low socio-economic status). The coefficient for log(%FSM) is -10. Do I interpret this as: a 1% increase in the %FSM pupils is associated with a decrease ...
I wondered if anyone could recommend internal cluster validation resources in R capable of estimating $k^*$ prior to using k-modes? Therefore, I wondered if anyone knew of existing internal validation libraries in R capable of working with Hamming distances? And failing these standard internal validation approaches, I'...
Consider a time series of time t=1...T as $$\left(y_{1},y_{2},...,y_{T}\right)$$ Here, do each of the $y_{t}$'s correspond to different realizations of a the same random variable Y? Or are each of the $y_{t}$'s thought of as random variables themselves ?
I'm reviewing the foundations of linear regression using Wooldridge's Econometric Analysis of Cross Section and Panel Data and Cameron and Trivedi's Microeconometrics : Methods and Applications. The treatment with respect to identification of the classical linear model $y = X\beta + \varepsilon$ varies slightly: Woold...
Using train_test_split is a common practice while building a Machine Learning model. Nevertheless, partitioning your dataset to get train and test samples is an specially delicate issue. If you trust on pure randomness, the output might be representative of the correlation(s) that you are trying to look for. Or might n...
In the method of least square I have the following $\hat{B_1}=\frac{\sum (Y_i-\bar{Y})X_i} {\sum (X_i-\bar{X})X_i} \\ ~~~~= \frac{\sum (Y_i-\bar{Y})(X_i-\bar{X})} {\sum (X_i-\bar{X})^2} \\ ~~~~= \frac{S_{XY}}{S_{XX}}$ So my question is about the derivation of the second equality. Could you please explain how you arriv...
I am currently creating a naive model, where the outcome is a continuous biological variable, and the time to measurement is a continuous time variable, defined as the time since the individual received a diagnosis of Type 2 Diabetes. The model is very simple: full_gmm <- gridsearch(rep = 100, maxiter = 10, minit = bas...
(For background, see The Skip-Gram Model.1 This question does not exactly use their notation, but you should be able to follow along.) The original skip-gram log-likelihood of a single word, $w$, given a single word in its context, $c$, is— $$ \begin{align*} \mathcal{L} &= \log \frac{ \exp(\mathbf{u}_c^T \mathbf{v}_w) ...
For integer $n\geq 1$, I have a "goodness" function $f_n(F)$ that takes as input a given joint CDF $F$ of $n$ variables, and spits out a number in $[0,1]$ on how "good" $F$ is. The larger the better. You can assume the $n$ variables have support on $[0,1]$. I would like to maximize $f_n(F)$ subject to $F$ being a joint...
For my medical dissertation I am studying a group of 36 patients. The patients received a drug repeatedly over several months. Serum levels of two cytokines were measured in the patients both before treatment initiation (=baseline levels) and also during the further course of treatment at different, non-standardized ti...
I have a random sampling of $Z_1,...Z_n$ from a normal distribution $N(\mu,\sigma^{2})$. I am considering them within a joint likelihood function. I know that the MLE ($\hat\sigma^{2}$) of $\sigma^{2}$ is $\frac{1}{n}\Sigma_{i=1}^{n} (x_{i}-\bar{x})^{2}$. I want to find the variance of $\hat\sigma^{2}$. Here is my reas...
I have a large number of categories (on the order of 1,000), measured by month, and I would to identify a few dozen of the categories which have the 'most notable' (I realize this is a ambiguous term) increases/decreases in the most recent month relative to past history. I don't need to make any predictions, rather jus...
Original Problem I'm looking at problem-set in cs229 about EM algorithim. As my understanding $\ell_{\text{semi-sup}}(\theta)$ is $$ \ell_{\text{semi-sup}}(\theta) = \sum^m_{i=1} \log \sum_{z^{(i)}} p(x^{(i)}, z^{(i)}; \theta) + \alpha \sum^{\tilde{m}}_{i=1} \log p(\tilde{x}^{(i)}, \tilde{z}^{(i)}; \theta) $$ Where...
Based on independent samples of data $X_i \sim$ Expon$(\lambda_1)$, $i = 1, \cdots, n,$ and $Y_j \sim$ Expon$(\lambda_2)$, $j = 1, \cdots, n$ (both samples of the sample size $n$), find the Wald test for $H_0: \lambda_1 = \lambda_2$ versus $H_1: \lambda_1 \neq \lambda_2$. $\textbf{My work}:$ Let $\theta = \lambda_1 - \...
I have a group of time series $X_1, X_2, ... X_n$. I want to measure how much they have "dispersed" over time. i.e. are they moving "more together" in 2023, comparing to 2022. $n$ is about 50. Time series are measured in the same points in time (in fact, daily, so no more than 365 data points a year). If there are just...
I have normal data and have applied Chauvenet's Criterion to all my data points to determine if there were any outliers that must be removed. I have 2 groups of subjects, male and female, and when I input all of these values (from both male and female groups), I get one data point from the female group that is an outli...
I want to do a survival analysis using a discrete time multilevel model in Stata, because the data I have is subject to heaping at certain ages (which explains the discrete time) and because the data I have is hierarchal (children are nested in households, the variable hh_number). Specifically, I want to look at whethe...
prop.pass = proportion of students who passed the exam num = number of students who sat the exam urban = if school is in urban area (1 = urban, 0 = rural) %dis = % pupils at school defined as "disadvantaged" (by parental income). Students either are or aren't disadvantaged. Is the following regression suitable to deter...
I am running a second-order latent growth curve with 7 time points. The model has a four indicator latent variables at the measurement level so I ran a longitudinal invariance test. The model holds for partial scalar invariance, so I assume I can move on to a latent growth model. So here is my question. When I am codin...
I am interested to find the causal effects of a state level policy on some outcome of interest. The policy affects some states each year but not other states. The states that are affected can vary across years. I am trying to figure out if this is a case of continuous or multi-valued treatment studied in recent DiD lit...
I compared two unequal sized samples, N1 = 108297 and N2 = 72922 using a Mann-Whitney U test. The U is shown to be large such as 7.37 e+8. And p value is < 0.001. I am just wondering that such large U value is ok. Or is there something wrong there? I am using R software.
I am testing various linear mixed models (in R using lmer())and am concerned about the lack of levels in one of my parameters, and how it influences the results. Design I have a continuous variable being tested against categorical Species. There are generally 10's to many more Specimens per Species. Each Specimen has a...
Problem Prove below equation , fisher information come from negative of second derivative of likelihood. $$\begin{align*} \mathcal{I}(\theta) = \mathbb{E}_{x\sim p(y;\theta)}\left[-\nabla^2_{\theta'} \log p(y;\theta')|_{\theta'=\theta}\right] \end{align*}$$ My current thought $$ \nabla_{\theta'} \log p(y;\theta') = \fr...
I am modelling differences between the risk of getting chronic kidney disease (CKD) between two groups, group A and B. I have very long follow-up time, approx. 30 years. The trouble is that CKD diagnosis rates have changed dramatically over these years, from being very rarely diagnosed to being quite commonly diagnosed...
I'm working on time series predictions for predicting the frequency of 911 calls in a town, based on previous data. But it would seem to me that this time series data isn't autocorrelated. The number of calls at time $t$, $y_t$, doesn't depend on the previous time points $y_{t-1}, ..., y_{t-k}$, it seems to depend only...
I have measures of weight for three countries for 3 time points. I want to find whether there is a difference in change of weight over time, based on gender accounting for groups (country). I also have a bit different age ranges for countries, so I was thinking to use an age variable only, which would account for diffe...
Background I am fitting nonlinear regressions with a single response and two predictors. I know the relationship between the response and each of the predictors, but I do not know how they interact. I am trying to build understand their interaction to build process-based models that incorporate it. In the meantime, I w...
Problem - I want to test whether the difference in a metric (say AUC) between two models is significant. I have one vector of binary class predictions from a custom function and one from sklearn.ensemble.GradientBoostingClassifier. What I tried - So far, the closest thing I could find is the 2-sample Kolmogorov-Smirnov...
I've conducted meta-regression analyses using the 'metafor' package in R. I am trying to interpret the outputs if you could please help? Output 1 (categorical with 3 levels): Test of moderator is significant, but the individual variables are not significant. Can I say that there was no significant association? Or shoul...
Problem I have a classification model, and I would like to know if the distribution of its predictions stay stable over time (e.g. the False Negative Rate). The model The model is a binary classifier that was trained by someone else, so I will not go into details with real-world numbers here, but instead make an equiva...
I found this counterintuitive result and want to check with you folks if I did not make any mistakes. Imagine a simple uniform distribution, of all values between 1 to 100. I would expect that increasing the frequency of 100s would decrease its skewness (sensu Fisher formula) from 0 to something negative. Also, I would...
There are numerous techniques for benchmarking models, e.g. cross-validation and resampling. However, while these can easily be compared in a relative way between implemented models or against a desired accuracy level, is there a way to analyse model performance against a more 'absolute' benchmark for a given dataset? ...
I guess I have a rather simple question but I couldn't find the answer in previous posts. I have a paired dataset in which the same objects are ranked under two different conditions, here A and B: > data rankA rankB obj1 3 4 obj2 2 2 obj3 5 1 obj4 6 5 obj5 1 3 obj6 4 6 I want...
In the inference when we want to model a linear regression using the least squares estimating method, we need to subtract each predictor variable by its mean in the formulas of the estimators we have. For example, if we have two predictors, then the formulas of the model's estimators are: So, I am trying to understand...
I've been asked to add in some general queue theory insight into some simulation work i've done. Basically, just to include a few lines here and there about what the basic theory would suggest would happen with the queuing system i'm modelling when variables change (specifically the variation in arrival and service rat...
Say I have a neural network that classifies images by training to minimise cross-entropy loss with one-hot encoded training labels. It is often seen that such neural networks are 'overconfident', with the softmax of the final layer giving a lot of mass to one class even if it is wrong. However the ultimate concern is u...
I have 10,000 data for training of LSTM model. 10,000 dataset is extracted from database for the years before 2020. 60% of data is used for training, 20% for validation and 20% for test. Test data is never used in training and validation. Then test results is 100% Then the model is tested again with new similar data fo...
I performed a treatment-control experiment, with $r$ repeats per group. Each repeat $i$ consists of a set of $n_i$ observations. Each observation $j$ consist of a rank $x_{ij}$ and a class indicator $c_{ij}$, either class $a$ or $b$. I am interested to know whether the rank distribution of observations of class $a$ dif...
I was reading Andriy Burkov's the hundred page machine learning book (section 2.5, check here: http://themlbook.com/wiki/doku.php) I am a little bit confused by the way he computes the prior for the next iteration, which is highlighted in the screenshot below. In my understanding bayesian update should be incremental a...
I have longitudinal data with measures of an exposure, outcome, variables that may be mediators or effect modifiers, and confounders at 3 time points. I would like to account for time-invariant and time-varying confounding while testing for mediation and moderation of the exposure-outcome relationship. I have two quest...
I have a dataset that contains only the timestamps of occurring events, i.e. I have for ~10^5 events the millisecond-precise time when the respective event happened (i.e. the data is unary, containing only '1's). I would like to perform spectral analysis (i.e. Fourier or Lomb-Scargle) on this data to find periodicities...
I am analysing diagnostic accuracy. I have a dataset with a ground truth and 3 predictors. Ground truth = binary (0/1) Predictor 1-2 = binary (0/1) Predictor 3 = continuous (0-100) I have 50,000 observations, and each observation can maximum have ground truth = 1 once. I have made ROC-curves with corresponding AUC-va...
I'm working with a list of errors in some process that can be expressed as small percentages. Since they're errors we hope they're small overall and expect them to be approximately normally distributed. It's common practice in my field to sort this list and plot them like this (dummy data): We can make some qualitativ...
I'm not too versed in statistics, but I am currently dealing with a problem that pertains to probability. If any assumptions are off on my part, please correct me. I have a 2D polynomial function of degree $n$, $z = p_n(x,y)$, if I randomly sample uniformly values of $x$ and $y$ in their domains $x\in [a,b]$ and $y\in ...
I have 8 columns of data for cumulative percentages and I performed one way anova. I know 4 sets of the data are statistically different because it is someone else's research data. When I added my own 4 sets of data, the result showed p value of 0.4. It didn't sound right so I tested only the 4 original data and it gav...
My question is, if you take a random variable $X$ with an arbitrary distribution, which has a known and well defined mean & variance, then why does the following interval contain $\approx 95\% $ of the distribution? $$ \left[\mu - 1.959 \times \sqrt{\sigma^2}, \quad \mu + 1.959 \times \sqrt{\sigma^2}\right] $$ Like I ...
I have an endogenous variable X with instrumental variable Z and want to predict outcome variable Y. For this I have longitudinal data with user_id. Currently my model is: ivreg(Y ~ X|Z, data, x=T) `` what I would have with longitudinal study would be ```r lmer(Y ~ X + Z + (1|user_id), data) How can I include (1|user_...
If I have the following regression model: Where stock price is continuous dependent variable and earnings is a sole continuous independent variable. Earnings extremity is a categorical variable (three categories: small extremity, moderate extremity and large extremity), earning extremity1 = 1 if moderate extremity and ...
Use GPower for power analysis for cubic estimator in orthogonal polynomial regression? I would like to determine the sample size I need in order to find a significant cubic estimator in an orthogonal polynomial regression (which I computed with R). I was wondering whether I could do this with Gpower? - I can compute th...
If $X$ is a P by N size matrix, $X_{ij} \sim N(0,\sigma_i^2)$ if I standardize this X matrix with sample mean and sample variance (assuming I don't have access to the population mean and variance) I have a matrix Y of P by N size with $Y_{ij}=\frac{X_{ij}-\bar X_i}{\bar\sigma_i}$ and $Y_{ij}$ is follows t-distribution ...
I have conducted a basic mediation analysis using mediation::mediate. My treatment variable (X) is a binary variable with two groups. My mediator and outcome variables are continuous. I also have a random effect to account for repeated measures. fm2 <- lme4::lmer(mediator ~ treatment + (1|subjectID), data = df) fm2 <- ...
I have a study like this: firstly, select several counties within the U.S., and then select bunches of stores within each country. Based on the stores that selected within each country, I need to figure out how many stores have product A and B. For example, there are 50 stores in county X, 30 out of the 50 stores have ...
I need to draw a stratified random sample from a dataset that is split across three databases. Will the following approach create a random sample? The data need to come from between two dates and are stratified by a yes/no flag. The data is split according to its date: before some date it will be in DB-1 while on or a...
I am looking for advice on computing effect sizes for Level 2 predictors in HLM models. I found this documentation: https://ssicentral.com/wp-content/uploads/2020/07/FAQ_Effect_sizes.pdf, but am unsure how to apply it to my analysis. I conducted a 2-level random intercept and slope model with longitudinal data (2 measu...
I am running regressions analysing drought impacts on electricity generation based on fueltype of the generator. I transform the outcome variable (daily_generation) using an inverse hyperbolic sine transformation to account for meaningful zero values. The distribution of daily_quantity and ihs(daily_quantity) can be se...
I am using the {GLMMadaptive} package to fit a mixed effect random slope model. And I need to extract the standard error of variance components from the output of GLMMadaptive::mixed_model(). And from the package documentation, it seems that I can use the vcov() method to extract the variance of the random components....
I have about 125 rules for a fuzzy inference system and would like to plot/evaluate all the antecedents and consequents to ensure the rules are not in conflict. For example, I have the following rule: streamdistance["low"] & streammorder["low"] & slope["low"], vulnerability["low"] rule strmdist strmord slope vul ...
Is there a way to do Coordinate descent but depending on the variable change the method applied to find the coefficient? For example, apply a LASSO constraint to a predefined 3 variables and Ridge to the other 5? Or is this just elasticnet with a ratio parameter from 1 (meaning LASSO) to 0 (meaning Ridge) depending on ...
I am forecasting sales of products and want to ensure that I am using benchmark models properly. Suppose I have selected a baseline model - naive seasonal. Suppose my performance metric is WMAPE. Suppose I have trained an XGBoost model on 10 products and find that, when using cross-validation on my training set: The X...
Assume that we have one deep neural network with an input for images. That deep neural network can classify images. On the other side, we have multiple Support Vector Machines that classify parts of an image. If the image pale, does the image have two round circles etc. All these properties are fit into another SVM tha...
Given the discussion on this answer what appropriate assumptions and contingencies would allow tSNE to have an informative interpretation? It's hard to come away from that answer feeling like I can ever trust results from tSNE to ever show me if higher dimension data has meaningful separation. Are there other methods t...
I'm attempting to calculate the variance of this problem in a way that I can apply to future, similar problems.
I have a database with 186 observations and 1782 variables that you can access using the following R code: # Specify the URL of the CSV file url <- "https://raw.githubusercontent.com/D-PLACE/dplace-data/master/datasets/SCCS/data.csv" # Read the CSV file from the URL data <- read_csv(url) # Remove columns that are not...
from a problem set I have the following exercise: Let $X_1, \ldots, X_n$ be iid with $X_1 \sim N(\theta, 1)$, where $\theta \geq 0$. The ML estimator of $\theta$ is $\hat{\theta}_n = \max (\bar{X}_n, 0) $. Let $\theta_n=\theta+h / \sqrt{n}$. (a) Show that if $\theta \neq 0$, then $\sqrt{n}\left(\hat{\theta}_n-\theta_n...
Given an input X, my goal is to predict a list of probabilities for n factors, where the factors could be attributes like feasibility, comfort, ease etc. using a neural network. I have soft targets for each of these classes that I have computed for each of these targets. The factors are not necessarily related to each ...
Which clustering algorithms can be used in complex survey designs? Can the kmeans algorithm be used? I searched for literature using complex survey design data like NHANES, but they do not provide details of the specific algorithm.
I have a population of 1000000 data points without labels, and I would like to take the smallest possible sample from that population for manual labeling to estimate with 95 % certainty that the population contains e.g. 2 % unhealthy individuals. Is there a cool statistical method to do this? It seems like a classical ...
I'm running a 3-level multilevel model in R with binary outcomes and survival analysis with over 2 million data points. The lme4 package takes 12 hours to run one model or just crashes. The simplest model is: library(lme4) library(lmerTest) model0 <- glmer(death ~ 1 + (1|id_household), data=df, family="binomial) I tri...
My aim is to calculate the 99th percentile of the log-normally distributed data on the left-hand side. There are various approaches described to do this, e.g. ranking data and then selecting the value that is on 99%th percentile of the data. I was however thinking of using the normal curve theory to accomplish this. As...