instruction
stringlengths
9
38.7k
I want to compare two proportions, for example: succN <- 2 d <- data.frame(pledge = c("yes", "no"), s = c(succN, succN),n = c(100, 100)) I am using 'brms' and I've done it in two ways, without logistic transformation: m1 <- bf( s | trials(n) ~ 0 + pledge, family = binomial(link = "identity")) get_prio...
I have a stratified Cox model with a covariate which violates proportional hazard assumptions: data(veteran) toy <- coxph(Surv(time, status) ~ trt + prior + karno, data=veteran) So I perform a step function: toy1 <- survSplit(Surv(time, status) ~ ., data=veteran,cut=c(90, 180),episode="t_group", id='id') toy <- coxph(...
Illusion of control* appears in gambling and events involving randomness. For example, choosing a lottery ticket which has an additional information that participant has a control of choosing, such as photos of some actors of their preference appearing on the ticket, even though underlying ticket numbers are random pro...
I am working on a binary classification problem with 75:25 class portion for 1000 records. Objective is to find out whethet the supplier met the target or not. Currently my recall for minority class stands at 40%. Meaning, it identifies 22 out of 55 actual negatives correctly. Now, my business wants go live with this p...
I have the probabilities of variables that we assume initially are independently and identically distributed random variables. I know that in actuality they are not from my knowledge of the problem, but I was wondering what I can do to prove this statistically. My initial thoughts are to take a large number of samples ...
I have a dataset containing independent variables as three different 3-D coordinates. For reference, the data is structured like this Independent 1: (1,2,3) , (4,5,6)... Independent 2: (7,8,9), (10,11,12)... Independent 3: (13,14,15), (16,17,18)... Dependent: 0.5, 0.6... Does anyone have any suggestions for ML/Regressi...
I have a large quantity of game data that I am trying to perform prediction with. The goal is to identify whether certain card groupings have advantages when played against opposing hands. As part of my approach (because there are large combinations of selected cards), it is useful to perform segmentation into common...
I have been studying Bayesian Optimization lately and made the following notes about this topic: Unlike deterministic functions, real world functions are constructed using physical measurements Measurements can always have error (e.g. human error, design and experiment error, random error, measurement error) - if yo...
Suppose we have a big data set where even if I break it into 10 smaller pieces the number of data points in each piece still far outnumbers the number of variables. Now if I run regression using two methods: run OLS on the entire dataset break data set into 10 random subsets, run a separate OLS on each. Then take the ...
If I only know the medians and IQRs from samples (along with the number of samples of each population) drawn from two distributions, how to test the medians of the two distributions are different or not? t-test is based on mean and sd. But I don't find a test based on median and IQR. Is there such a statistical test?
I expect to get a Poisson distribution over my histogram but as I can see from the graph, I get a straight line. Would really appreciate insight.
Why are the values for sums of squares the same for A, B and F across all models despite having different model structure? Why are the residual sum of squares zero? I recognize that res was simulated to depend on A, B and their interaction term A*B and the F is a correlated variable with A, But I cannot make sense of s...
I am interested in FDA (data perceived as functions), as someone from a pure mathematics background and I think it can help provide solutions to some major challenges in data analysis (also data science), compared to the ordinary perspective in which data is perceived, as vectors. However, I have not found so much lite...
I have a question about comparing negative binomial models by AIC versus QAIC. My dependent variable is a count, and I have one random term (I am using generalised linear mixed models fitted with the glmmTMB function in R). I initially used a poisson distribution but the models were overdispersed so I switched to a neg...
I have a vector; and I can normalize it by dividing with either: Max of the values of the vector L1 norm of the vector L2 norm of the vector The math behind each of the above approaches is nicely given in the following cross validated post for your reference ( Scikit-learn Normalization mode (L1 vs L2 & Max) ) Howeve...
I want to conduct a multivariate regression. I decided to standardize other variables such as exposure score. Do I need to standardize age? It sounds weird if I say increasing 1 SD age is associated with increasing 0.36 SD of the outcomes. So do I need to standardize age? For gender, maybe there is no need to standardi...
MAPE metric has problems when the actual value to be predicted is very small. In the extreme when the actual value is 0 then MAPE will be infinity (if the prediction is not exactly 0). What about this solution as illustrated with an example: Suppose that the actual values are [10, 0, 20] and the corresponding predictio...
I am trying to isolate the matrix D from the following equation: $$ D = ADA' - R+I $$ Within this equation D is the covariance matrix. There can be assumed that A and R matrices are 3x3 matrices with diagonal zero. D is a 3x3 matrix with diagonal non-zero and I is the 3x3 identity matrix. Furthermore, matrices D,R and ...
I am doing a regression on the influence on interest rates on marketing spending. I tried many different approaches to get my regression working. I have panel data and time series. I got a data set of information about one year for companies (data example below). Because I could not get the regression working I thought...
According to my understanding regarding discrete and continuous random variables is that discrete random variables are variables that can take finite values that have resulted from a finite number of outcomes or if the values are infinite but still countable ( whole numbers) then the variable is also classified as a di...
For linear models, when the dependent variable y causes the variance of the independent variable x, we know that the reverse causality problem presents, leading to a biased model. In the case of neural networks, as high-level features/representations are learned from labels (thus the dependent variable), can I say that...
For remote sensing purposes, I'm trying to combine data from two different satellites. To do so, one of the two has a much higher weight than the other, but this is area specific. My goal is to use a regression model which will predict the optimal weight distribution for a specific area, depending on a number of featur...
Problem Setting: I have an interesting question related with longitudinal study and multivariate regression. I found that in lots of biomedical studies, multiple discrete and continuous endpoints are very common. For example, continuous fetal weight $(Y_{1i})$ and binary fetal death $(Y_{2i})$ are observed in toxicolog...
My goal is to calculate various information criteria for generalised linear models (e.g., the AIC). To do this, we need to calculate the effective degrees of freedom of the trained model. In an unregularised model, this is typically taken to be the number of parameters in the model but it is not clear to me how to deal...
Let's say I have a equation like as below (linear regression) Y = intercept + x1+x2+x3...xn intercept = 30 positive coeff sum = 40 negative coeff sum = -10 So, the final outcome becomes like as below 30 + 40 - 10 = 60 My question is why does intercept have to be +30? It could have been -30 as well? Whether logistic or ...
I am trying to understand how I can best compare a classifier that I have trained and tuned against a "dumb" classifier, particularly in the context of binary classification with imbalanced classes. Here's a summary of my experiment: suppose I have a dataset that I have split in training/validation/test sets. My classi...
As I am studying the capital structure of firms, the total of proportions owned by different ownership types (free float, institutional ownership ... etc.) will be 100% of the company shares. In my study each of those ownership types is an independent variable. Hence, when running regressions, one of these variables wi...
There is a relationship between ROCAUC and the Wilcoxon Mann-Whitney U test of the probability predictions of the two groups. If our $y$ variable has more than two classes, can we extend this to a Kruskal-Wallis test? Can we go further and do something with a continuous $y$ and the test statistic of a general proportio...
In Burnham & Anderson: Model Selection and Multimodel Inference (https://link.springer.com/book/10.1007/b97636), the author states that the likelihood function used in the Akaike information criterion can be replaced with this: In case the error variance is constant and normally distributed: \begin{equation*} AIC = n*...
I did a quick Dickey-Fuller test, to test whether my time series is stationary, and the result gives a P value of 9.6*10^-15, or in other words stationary. How is this possible, my data clearly doesn't seem sttionary. The mean seems to be constant(to an extent), no seasonality issue but it's the variance?
I have a dataframe with 100k rows and 20 binary variables, one of which is my target. I would like to apply a Correspondence Analysis (CA) on it, but I have a few doubts: should the target column be included into the CA? CA is a way to analyze a large contingency table. The command table is used to get the continge...
Hello! I have two normally distributed random variables $M \sim N(\mu_1,\sigma_1^2)$ and $V \sim N(\mu_2,\sigma_2^2)$ having physical meaning as $M$ - mass and $V$ - volume. I need to figure out the corresponding p.d.f of variable $D$ - density (physical) given by formula $D=\frac{M}{V}$ (basic physical density formula...
I am trying to understand how Top2Vec works. I have some questions about the code that I could not find an answer for in the paper. A summary of what the algorithm does is that it: embeds words and vectors in the same semantic space and normalizes them. This usually has more than 300 dimensions. projects them into 5-d...
Everything I've read about degrees of freedom says more is better - it is an indication of a model's flexibility. I'm now running a power analysis in R and I've noticed that lower degrees of freedom give higher power. Example 1 (DF = N - 1): library(pwr) pwr.chisq.test(w = 0.7, N = 30, df = 29, sig.level = 0.05) ...
I'm working with a large dataset of accounting data along with business characterization data across 20 years. I would like to use PCA to reduce the variables' dimension (currently I have about 60 variables and 133k individuals) in order to eventually highlight interesting links between the variables and between busine...
Let $p'\beta$ be an estimable LPF. Suppose that $l'y$ is the candidate which must satisfy the unbiasedness condition and the minimum-variance condition. Formulate this as an optimization problem with Lagrange multipliers, and show that the optimum $l'y$ is $p'(X'X)^{-}X'y$ This is from Jammalamadaka & Sengupta. I'm qui...
To simplify, consider unbiased random walks with absorbing barriers at 0 and 100. A random walk starting at X has an expected probability to hit the barrier 100 of exactly X%. However, it seems that if you take a finished random walk, and sample a point during the walk, with value Y, then the "probability" that is hits...
I would like to test differences in mean values of a Climate_variable between 4 different climatic Scenarios that are projected for many (3000) surveyed Sites for which I know the coordinates (Lon and Lat). My database is structured as follows: Climate_variable Scenario Site Lon Lat 0.85 A S1 19.37 41.85 1.13...
Let's say we have a dataset of pictures displaying straight vertical lines with different translations or nothing (just an example), and we apply a CNN to that. We choose that the CNN should learn N filters. By construction of our problem, we know that the CNN would just need a single filter to succeed at the predictio...
During my research, I have repeatedly come across the terms probability measure and probability density function (pdf). I am familiar with the concept of a pdf, but I am not entirely sure how probability measures relate to pdfs, or where exactly the differences lie in theoretical terms. I have since combed StackExchang...
I remember reading that for a certain kind of splines, all basis functions have to be included when using feature selection methods such as stepwise regression or shrinkage. The argument for that was that without including all basis functions the splines could not be constructed, hence, selecting only parts of the bas...
I have a question based upon a section of this paper: "Model selection for dynamical systems via sparse regression and information criteria", which can be found here: https://arxiv.org/abs/1701.01773 It states the following: My question is: How can the sum over each time series residual be called average error (no divi...
Given $(\varepsilon_t)\sim WN(0,\sigma^2)$ a white noise. By definition $$E(\varepsilon_t)=0,\,\, E(\varepsilon_t^2)=\sigma^2 \quad \forall t$$ and $$E(\varepsilon_t \varepsilon_s) = 0, \quad s\neq t$$ I want to show that this equivalent to $$E(\varepsilon_t |\varepsilon_s)=0$$ The intuition of one direction is ok. If ...
I have been searching for a simple example of how expectation-maximization (EM) computes missing data. All the examples I have found are based on multivariate normal models. I have seen that EM can be applied to any probability distribution, but I cannot find a good tutorial using R on how to apply EM to say count data...
I am doing an experiment on the effect of different soaking time on radicle length. I have five treatments: 6 hr, 12 hr, 18 hr, 24 hr and 30 hr. Each treatment has 5 replicates/repetitions. And each trial/replicate has about 5 seeds in them. Time of soaking-independent variable; length of radicle-dependent variable. Co...
For my master's thesis I want to study the relationship between structural transformation (IV) and subjective well-being (DV). However, income level (GDP) is correlated to both variables. Higher levels of GDP are associated with higher levels of structural transformation and are therefore correlated, with no strict cau...
I've computed an ANOVA with one between-subjects factor (2 groups each including 26 participants) and 2 within-subjects factors (item type with 3 levels and emotion with 2 levels) in ezANOVA. Therefore, my data is ordered in a long-format in which all conditions for each participant are listed underneath each other: ID...
The definition of an estimator "rule that tells how to calculate an estimate " as given here is not clear to me. If I make measurements of some quantity, say age in a group of N people, my outcomes will be $x_1, \dots, x_N$ where $x_i$ represents the age of $i$-th person. One can now talk about the mean as the quantity...
I am just starting to learn about Bayesian statistics, so forgive me if this is a basic question. For Bayesian counterparts of classical frequentist methods (such as linear regression, ANOVA, t-tests, mixed effects models, ...) is it ever possible to reliably choose priors or other model parameters to replicate the res...
Linear regression using the method of least squares estimates the conditional mean of the response variable across values of the predictor variables. Quantile regression estimates a conditional quantile of the response variable across values of the predictor variables. The least squares method minimises the sum of squa...
I have 4500 values in my dependent variable and 75% of values are zeros (no negative ones) The distribution looks like this. In multiple sources I read that Yeo-Johnson transformation can be a solution here. I want to transform only y variable. When I am doing a basic transformation with y = df[['y']] X = df.drop(colu...
I am given an OLS regression model with inflation rate as the outcome, and a set of variables and their coefficients, along with their SE. The variables include money supply, unemployment rate, GDP growth rate, and an indicator variable called party where 1= a county run by a Republican and zero otherwise. I am then as...
I’ve been using tSNE in attempts of finding and visualising some relationships in my data. I came to a following problem. If my data is say 1000 points, and I want to know about some relations between 10 particular points (I want to know how close are they to each other and other points of my data), tSNE won’t give muc...
I try to run a Mediation analyses. Unfortunately PROCESS by Hayes doesn't allow dichotomous variables. How can I solve the Problem? How can I calculate for direct and indirect effects? My variables are: x: Softness (categorial: soft, middle, hard) y:sample size, metric Mediator: study design (dichotomous: experiment vs...
I have 14 sample network graphs and I want to empirically analyze a bunch of their metrics (e.g density, clustering coefficient, and 8 others) to draw conclusions on how dense and clustered one can expect these graphs to get. The resulting metrics in general appear to be skewed. Given that, am I still in the right to u...
I have the following data set: structure(list(ID = c(38623L, 38806L, 39593L, 39820L, 39951L, 40286L, 43762L, 52577L, 54153L, 57445L, 58503L, 59344L, 59361L, 60575L, 61656L, 62210L, 62285L, 62937L, 64081L, 64328L, 65302L, 65478L, 65480L, 65487L, 65572L, 65935L, 65974L, 65991L, 65995L, 66013L, 66154L, 66237L, 66245L,...
Suppose I start with a data matrix $X \in \mathbb{R}^{N \times D}$, where each row $x_i$ is $D$-dimensional sample. I would like to cluster this data through a Gaussian Mixture Model (GMM). If I pre-process the data using PCA, then I can attain a new data matrix $X' \in \mathbb{R}^{N\times D}$, where each variable (co...
Description of data I have to analyze some data where the response variable is the counts of number of insects observed feeding on a bait at many time points. The treatments are three different types of bait and there are several replicates per treatment. However it was not possible to count the number of insects exact...
I know the sample size calculations for a Randomised Controlled Clinical Trial for inferiority, superiority and non-inferiority setups. But, say I have a Cross-over Randomised trial design with one patient receiving two drugs. In that case will the size calculation differ in formula or will it be calculated by the same...
To find how $X$ impacts $Y$, I estimate $$Y_i=\alpha+\beta X_i+\epsilon_i.$$ Suppose that I can decompose $X$ into a product of three components: $$X_i=P_iQ_iR_i.$$ Q: How can I estimate which of the individual components drives the relationship between $X$ and $Y$? If $X_i=P_i+Q_i+R_i$, I could just include $P$, $Q$ a...
I have a weighted sample from a population. These are probability weights (as samples are taken with unequal probability). What's the variance in the estimated total? All samples are exchangeable (independent apart from the "without replacement" bit -- I'm not stratifying groups or anything like that).
I am trying to run an interval regression using the survival r package (as described here https://stats.oarc.ucla.edu/r/dae/interval-regression/), but I am running into difficulties when trying to pool results across multiply imputed datasets. Specifically, although estimates are returned, I get the following warning: ...
What is the difference b/w the GARCH models. I understand that these measure volatility spillover effects but i dont understand these properly. Could it be possible to measure volatility/traffic of Reddit comments/posts relative to cryptocurrency volumes (or cryptocurrency returns(i.e. volatility), which would be calcu...
Let's say I have three vectors (or random variables) $A, B,$ and $C.$ I can of course calculate the correlation between any of them (and have these numbers). However what I'm interested in is if there's a bound on the product of the correlations, $r_{A,C}$ $\cdot$ $r_{B,C}$, given $r_{A,B}$. For example, let's say the ...
As I understand, most statistical and machine learning models are like "paper airplanes" in some sense: you can spend as much time as you want creating the model, but once you "launch" the model - you can not make any improvements, repairs or corrections to the model until it "lands". For instance, if you train a Rando...
Statisticians often use parametric families of models, for example normal distributions with unknown mean and variance. However, nothing in real life is perfectly normally distributed (or distributed according to any other simple parametric family), yet in practice it seems these models work well enough to let us make ...
Whenever I hear about any hyperparameter search approach for training neural networks, the models are always trained from scratch. I'm wondering if there is any validity in starting from a converged training instead of random weights as an initialization point for all hyperparameters. While obviously the results will b...
I am a newbie to statistics and R. Need someone's help to understand how to get a 95% confidence interval and p-value from the above data to test the null hypothesis that there is no difference in FUS prevalence according to a DFS status. Above I used, epi.2by2 cross-sectional method. install.packages("epiR");libr...
I have a large dataset of patient data by hour. For example, given the shape as (hours, features), patient 1 data shape could be (30, 76) and patient 2 data shape could be (5, 76). I want to do incremental learning of the dataset because all the data does not fit inside the memory. Before feeding the data to a classifi...
I have a series like this: list_1 = [5,3,6,7,8,9,0,5,5,2,4,66,7] list_2 = [6,39,6,4,7] I would like to know Is all list_2 or subsequence list 2 the same cluster with all list_1 or subsequence list_1. Note: I saw a post Classification on variable-length time series and I try to use DTW but it does not give good result...
Having trouble with this problem. Doesn't seem too difficult but can't find the easiest way to set up equations to solve it. We are given beta distribution toxicity level and starting dose. PROBLEM We run a CRM with the model Pr(DLT at dose d) = βd and take the prior on β to be Beta(a = 2, b = 5). The target toxicity l...
I'm running some regression models, but I'm finding that my pattern of results change depending on the reference groups. My predictors are Condition(A vs. B), Status (low vs. high), and Age (continuous, mean-centered). In R, my first model is: score ~ condition x status x age Results when reference groups are conditio...
I am trying to build my own convex loss function (an adaption of Huber function, composite function with MSE and a smooth MAE term) and a professor told me because convexity only impacts the final step of the Adam algorithm, then convexity of my function makes almost no difference and is irrelevant. Is this true? I fee...
I have some data with three independent categorical variables (one has a sense of order, the others do not) and one dependent categorical variable. Is there an analogue to Fisher's exact test where I can simultaneously evaluate whether the independent variables affect the dependent one? Specific details for anyone who ...
Let's say you have a parameter vector $(p,q)$ consisting of two proportions, and you want to find a confidence region for the estimator $(\hat{p},\hat{q})$. Define \begin{equation} H(x,y,p,q)=\frac{n}{1-\rho_{p,q}^2} \Big[\Big( \frac{x-p}{\sigma_p}\Big)^2 -2\rho_{p,q}\Big(\frac{x-p}{\sigma_p}\Big)\Big(\frac{y-q}{\sigm...
I have gotten a dataframe with corresponding stats (TN TP FN FP MCC F1) on different thresholds (~10,000 thresholds). I'm wondering if there is any statistical methods that help determine the best thresholds based on these stats. t TN FN TP FP F1 MCC 4270 0.010383...
After searching around on the internet, it seems that the following assumption seems to be commonly used in VAEs: For a continuous domain (MNIST), assume $p(x|z) = N(x; f(z), \sigma^2)$. Where $f(z)$ is the output of the decoder for a specific pixel value. In practice, we set the variance to some handpicked value. Not...
I have patient mental and physical health scores and looking for differences pre and post injury. The injuries are categorical by anatomic site and severity. I was told to run a GEE with Walds test and everything came back significant, which doesn't make sense to me. Why should an ankle injury be as significant as a sp...
I want to study the feature importance of a model with a continuous not normally distributed variable as response and a set of categorical and ordinal independent variables, with unequal variances in most of the groups: gender (M/F): categorical, unequal variances (levene test p-val<0.001) country (Ctr1/Ctr2): : cate...
I found out that we have different solutions like below to explain the ML predictions a) LIME b) SHAP Despite using all these approaches, I see that all of them work for certain data points and not work for certain data points. for example, let's assume we have a dataset with 6 re ords. LIME works/explanation makes sen...
This a folow-up of this question Independence in Poisson regression when used for rates estimation I have a set of thousands of observations. Each relates to an individual, and for eachI have the date of entry in the study, the date of exit, the date of death, an indicator for smoking or not, the birth date, the gender...
I am running a hierarchical Bayesian model using brms on reaction times (RTs) of a GoNogo task. The predictors are categorical and include the 3 stimuli/condition that participants observed and the 2 sequences of trials. I used an ex-Gaussian distribution for RTs. here is the model: informed1_RTs.bmodel = brm(RTs ~ c...
My professor proposed the below relationship as a property of the variance (he called $E[(X - c)^2]$ mean squared error): $$ E[(X - c)^2] = Var(X) + (E[X] - c)^2 $$ and he said that, when $c = E[X]$, the mean squared error is minimized. I'm wondering which is the name of this property/relationship.
I have to make a prediction on a time series whereby there are 10 years of data. My first option is to predict the values aggregated to the annual level using SARIMAX (excluding the seasonality component, but want to include some exogenous variables that are likely to explain the variations in Y). However that would le...
I am training a CNN classifier on a balanced dataset (around 35k examples for each label) with 13 classes. The model seems to achieve high F1 scores from the first batches; The F1 score for each class is ~0.99. Yet, the CrossEntropyLoss remains at high levels, around 1.7. I will add below a sample output: Train: [ 0/...
I have a dataset where the values of the dependent variable are small, i.e. range is 1.7 to 2.2. I fitted a model and made predictions on y_test, the predictions are good because the MAE is 0.3. All the predictions are almost close to y_test. When I'm calculating r2_score, the r2 value is -16, as the data points are sm...
I have a training set of dimensions 126 x 5 (126 rows and 5 columns). I applied PCA on it and decided to keep the first 2 PCs. So I now have a matrix (say FeatureVector) of dimensions (126 x 2) onto which I want to project my training set scaled and normalized (say DataAdjust). The source(page 16) I've found say to do ...
I heard that you can not combine continuous and categorical predictors in a linear mixed model. Is that true? Also, I was told to use continuous variables as random effects. Does that make sense? As far as I know, random effects are always categorical. Thanks for your help!
I want to use linear regression with very large design matrix for discovery of governing equations to i.e. physical systems. The design matrix would include potential terms that can be part of the equation. This procedure is called SINDy and usually selects a parsimonious set of active parameters through penalized regr...
I have a dataset with 141 observations and 8 corresponding variables and I mean to apply a GLM to this dataset. However, a lot of observations lack either one or multiple variable values. So if I want to apply the dredge function on the full model, there only remain about 20 observations with complete data. I do not kn...
I have Wald's test results from comparing sensitivity and specificity of LDA and QDA. Results are almost the same. I generate data, train and classify it and then obtain the Wald statistic. I need to do it N times. After that, its (Wald's test) distribution has to follow N(0, 1) according to an article I got info from....
My question might be rather basic, theoretical. I am running spatial and spatial-temporal bayesian models in INLA. I have areal data and a continuous response variable with spatial and temporal dependencies. I've got error messages during model runs, sometimes they point to optimisation that failed or to bad initial p...
I have a large dataset consisting of snow (1) vs no snow (0) in pixels over a whole year, N = 501,126. I want to compare the two groups and predict why snow melts at a given time. So I decided to use cv.glmnet in R. The data is very imbalanced 500,000, 0's (no snow) to a 500 1's (snow) with 9 independent variables. I s...
Is there a way to perform a Two-way Welch Anova? I have not found an implementation of it. My dependent variable is continuous and normal, and my independent variables are all categorical and ordinal with unequal sample size and some of them presenting unequal variances (checked with levines test). I am not interested ...
Should two continuous variables be correlated to include their interaction? I.e. does y = x1 + x2 + x1x2 make sense if correlation between x1 and x2 is weak at -0.1, and their coefficients in the regression have opposite signs (x1 β1 close to +1 and x2 β2 close to -1)? And if the estimated coefficient on x1x2 is then +...
Let's say that x is a random variable which follows a conditional probability density function $f(x|N)$, where $N$ is an integer parameter. If the functional form of $f(x|N=1)$ is known, then one can calculate the convolution of this $f(x|N=1)$ with itself like the following: $\int_{0}^{a}f(y|N=1)f(a-y|N=n-1)dy$. Is th...
I want to make stock price predictions for the next 5 days. For example, to predict the closing price on the t+1, I will use the closing price, the lowest price, and the highest price on the t, (t-1) to (t-10). This is allowed right and does not include data leakage? What I'm confused about is how to make predictions o...
I'm doing a non-metric multidimensional scaling analysis. The analysis results in two convergent solutions and the output all look good, but when I made a stress plot to check the data I am getting an r-squared of 1 which I've never seen before and can't find any guidance in the literature of what this means. The stres...
I have a dataset of text-based documents that I want to cluster. For a sample of this dataset (~10%) I have manually annotated labels (i.e., the ground truth). I would like to cluster this dataset to "automate" the annotation of the remainder of dataset. I see two options for this: Cluster the entire dataset. Select t...
In a lecture that I am attending, the lecturer refers to type I error probability $\alpha$ as "the size of the test" and $1-\beta$ as "power of the test". I have an intuition for the name power - it's like the power of rejecting correctly, but "size" is not making any sense to me. Could anyone explain why it is called ...