instruction
stringlengths
9
38.7k
I am trying to produce the Mean Absolute Scaled Error (MASE) for a custom time series model to compare its performance in forecasting several indicators with different units. I wanted to check my work by also calculating the MASE of the simple naive (one-step ahead) estimator or mean estimator both manually and with t...
Let's say that two Census takers interview a number of couples and ask for the number of children they have. I want to compare the two resulting samples to find out if they could have come from the same population (let's say, the same country) or if they are more likely to have been drawn from two different populations...
I'm working on a meta-analysis with multiple effect sizes reported in most studies. My effect sizes are SMD between two groups (health/ disease) and the reason there is multiple effect sizes per study is either due to measuring different proteins in one area, same protein in multiple areas or multiple proteins in multi...
I'm just wondering what is the difference between empirical = TRUE or FALSE when simulating normally distributed multivariate. Is it that when empirical = TRUE every simulated data will indicate the identical preset covariance matrix?
I am confused with Lagrange duality theorem. Let us consider the problem $$ \hat{\beta} = \underset{\beta \in \mathbb{R}^{n}}{\arg \min} \left[\sum_{i=1}^{n}(y_{i} - \beta_{i})^{2} + \lambda \sum_{i=1}^{k} |\beta_{i}|\right]. $$ Is it always true that for any given $\lambda > 0$ there exist some $s(y,\lambda_{j})$ suc...
I have a dataset containing 20 columns and 200 rows. This is an unlabeled dataset and I applied PCA to this dataset for dimensionality reduction. After successfully using PCA, I received a dataset with 2 columns(PC1 & PC2) and 200 rows. Then I executed the k-means algorithm on the output dataset(200x2). In the end, I g...
I am currently running multilevel analyses in R to analyze data for a daily diary study where observations are nested within people. I am interested in identifying how much of the total variance in my variables of interest is at the between-person and within-person level. I am trying to determine this with the ICC(1) i...
XGBoost is said to be based on "gradient tree boosting" in the original paper. Reading the paper and the introduction on the official website, it seems to me that the algorithm does not use gradient descent. As far as I can tell, the second-order (Taylor expansion) approximation of the loss of the whole ensemble is use...
Participants are assigned to 1 of 2 conditions. Each participant is presented with 10 candidates and asked to select 3 candidates from this pool. Across conditions, the 10 candidates always consist of 7 right-handed and 3 left-handed candidates. Of the 3 candidates selected by each participant, I want to know how many ...
I have 5 hyperparameters for tuning and the number of combinations of all possible values is 9,360. This means if I want to find the optimal parameter setting using Grid Search, I need to do 9,360 experiments. When I use Bayesian Optimization for this task, I need to specify how many experiments to run. Therefore, I wo...
For context, I need some metrics that can compare a standard Poisson regression (with population offset) to a random forest regressor with Poisson criterion. The test predictions for both methods are output in terms of rates (i.e., counts per population) which is, for all intents and purposes, what I am actually intere...
I am trying to calculate a difference-in-difference estimate. I have a binary outcome variable, and have estimated risk differences for my intervention and control groups. If we take an example where: The intervention group has a risk difference of 0.03724 (i.e. 3.7% increase in the risk of the outcome) with a standar...
I'm conducting regression analysis and I'm wondering if I should handle multicollinearity before or after my chosen feature selection method. The data I am using produces VIF values greater than 10 for 3 of the explanatory variables, so should I handle for multicollinearity by removing the inflation variables first so ...
I have the classic multiple regression model $Z=β_0+β_1X+β_2Y+β_3XY$ that produces output with a significant interaction term. There's a lot of advice out there (and the formal principle of marginality) that says I shouldn't interpret the main (marginal) effects with a significant interaction term. However, in my case ...
The textbook I have says that, in factor analysis, loadings can be used to reproduce the correlation coefficients between original variables, as it is depicted in the image. For instance, the book says, among 6 variables, the correlation coefficient between v1 and v6 can be expressed as below (the $\gamma$16 part), wh...
I am confused about stratifying on a variable in Cox models. I think $e^{\beta_1}$ still represents the hazard ratio for somebody with $x=2$ vs $x=1$, but I don't quite understand how it's still a proportional hazards model. What if two people being compared are in a different stratum? Then how is $e^{\beta_1}$ valid? ...
I seem to have a multivariate time-series causal problem. I am trying to forecast revenue based on variables that may have affected this revenue. I have a dataset containing marketing spend and marketing data through time for various campaigns and social media sites, for example, on the first week of April, the company...
We do statistics on data which we assume to be outcome of random trials. The question however, is -- are we assuming that the outcome can be represented as a random variable? The outcome of an experiment is representable as a random variable if that function is measurable. If the mapping from the event space, to the se...
We have a dataset of about 200 patients that have been diagnosed with a lung disease. At the time of diagnosis, their lung capacity was characterized by various parameters, all of them measured on a continuous scale. After 1 1/2 years of treatment, the lung capacity was characterized again by the same parameters. We ar...
Using the margins() function from the margins R package, I fitted a negative binomial model (mod1). library(MASS) library(margins) mod1 <- glm.nb(y ~ x1 + x2, data = dat, link = 'log') ## Marginal effects summary(mod1) Call: glm.nb(formula = y ~ x1 + x2, data = dat, link = "log", init.theta = 0.1745591775) Deviance R...
Assume both X and Y are univariate for this. So in Judea Pearl's SCM, you have endogenous variables and exogenous noise. A regular causal Bayesian Network like X->Y where X and Y|X is normal can be represented as both a PGM and an SCM as follows: PGM representation: $X \sim ~ N(\mu_X,\sigma_X)$ $Y \sim ~ N(\beta_0 + \b...
Most algorithms use their own loss function for optimization. But these loss functions are always different from metrics used for actual evaluation. For example, for building binary classification models, log loss is normally used as the loss function, but accuracy or F1 score is used for evaluation. loss functions and...
I have a sample from a country's population. I am trying to figure out what is the test statistic for a certain question. The data contains 1400 people.. with ages, consumes alcohol or not, and wages. The question is: among people who are 40 years old or more, does drinking increase the wage? The hypotheses are: H0: Am...
I am currently working with medical data. I have created patient subsets if they fit certain characteristics, e.g. male & heigh >= 5 ft, female & height <= 6ft, etc...I am then comparing the independence of two categorical variables each with two levels: the response after treatment ('positive' or 'negative') and a cer...
I have survey data where the dependent (y) variable was collected as a percent value between 0% and 100% at 10% intervals. In other words, respondent could choose one of 0%, 10%, 20%, ..., 90%, 100%. Typically, when working with ordered data such as Likert scale, the proper direction would be to use ordered regression ...
I'm interested in the asymptotic variance of relative risk (without sample size). I know that in an application, the variance is $$ \frac{1-p_1}{n_1p_1} + \frac{1-p_0}{n_0p_0} $$ When removing $n$ from this formula, of course the results is values >1. I can't find any info on this. Thanks in advance.
I have student ratings of 123 schools across the US. They represent 100% of this type of school across the US. The ratings are on the scale Poor, Fair, Good, and Superb, and I have the number and percentage of students giving each rating at each school. Since this is ordinal data, I am not comfortable calculating a mea...
Does training any model from scratch require more or less updates compared to fine-tuning a pre-trained model? For cancer disease classification, I have built a network from scratch, with batch size 20, number of epochs 15, and learning rate 0.001. I have also tried a pre-trained model with fine-tuning. In this case, t...
I am kinda confused with the above data. I have categorical predictors with so many unique groups, for example Treatment code variable has 15000+ unique codes, and Drug code variable has 800 unique code. Moreover, patient 1 was diagnosed with heart failure in two consecutive years 2019, and 2020, but she diagnosed wit...
Suppose I have the following hyperparameters for tuning: learning_rate: [0.00001, 0.1] epochs: [200,300,400,....,1000] batch_size: [16,32,64,128] If I want to run experiments using 4 parallel jobs, can I just divide one parameter space into 4 subspaces to achieve parallelism? For example, 1st job: learning_rate: [0....
Please teach me if I am wrong. The appropriate order should be: SMOTE Feature selection (e.g., by using a wrapper method) Model selection (e.g., by selecting the model with highest AUC) Then evaluate the performance of that model on the test set. Thank you. Thank you so much @DikranMarsupial for the useful comments. ...
While studying statistics, I came across the concept of “independent and identically distributed random variables” or IID. I’m confused as to what that applies to in practice, mainly, does it apply to the sampled data or the sampling process? Let’s say I’m continually running a survey (via simple random sampling) askin...
If you were provided with a sample data set as follows: Date Open High Low Close Adj Close Signal 202106-01 627.80 633.80 620.55 620.55 623.90 85.11 2021-06-02 620.13 623.36 599.14 620.13 605.12 76.59 2021-06-03 601.80 604.55 571.22 571.22 572.84 68.73 2021-06-04 579.71 600.61 577.20 600.61 599.05 78.47 ...
Are there any advantages of using survival analysis models like Cox’s proportional hazard model with uncensored data over simple linear regression or other classic ML models? I have data with recurrent events and I try to predict the time of the next event. Data contains about 2000 different subjects and about 60 event...
I need to calculate the uncertainty level of the intersection point of two lines given that we know the confidence intervals (CI) for both lines. Is the intersection of lines CIs would be a corresponding lower and upper intervals of the intersection point? And what is the probability of that CI? I.e., here is the r exa...
I want to implement logistic regression with time varying covariates, as the following form of logistic regression: Which function in R can I use? My data set looks like this: ID TSTART TSTOP EVENT x1 x2 x3 x4 x5 1 0 1 0 1.28 0.02 0.87 1.22 0.06 1 1 2 0 1.05 -0.06 ...
The probability mass function of the negative multinomial distribution is: \begin{align*} \mathbb{P}(\boldsymbol{\rm{X}}=\boldsymbol{\rm{x}}|\mathbf{p})=\frac{\Gamma\left(x_0+\sum_{i=1}^{m}x_{i}\right)}{\Gamma\left(x_0\right)}p_0^{x_0} \prod_{i=1}^{m}\frac{p_{i}^{x_i}}{x_i!}, \end{align*} where $\mathbf{p} \equiv (p_1,...
Why is it that logistic regression is considered a linear classifier, but a neural network with a sigmoid activation function and sigmoid output layer is considered non-linear? I am aware that logistic regression is considered linear because its inputs are a linear combination of the original inputs, but couldn't the s...
Does it exist a general formula for finding the variance for an AR(p) process? I know there is one for AR(1). Thanks,
my supervisor asked me to do reciprocal for my gamma distribution models. He said it's the default and I am not quite sure what he means. Does it mean if I don't specify a "link=" that it will automatically use reciprocals for my gamma distribution? Any and all help will be greatly appreciated.
Back in High School I remember the TI-84 calculator allowing the user to enter a few data points and then select from a list of options to find an equation that best fit the data points. One of these options was called Logistic and it found the variables "a","b", and "c" for the equation of the form $$ y = \frac{1}{c+...
Kline (2016) writes on p. 135: There are two kinds of path models. Recursive models are the most straightforward and have two basic features: their disturbances are uncorrelated, and all causal effects are strictly unidirectional. [...] Nonrecursive models have causal (feedback) loops or may have correlated disturbanc...
Can it be that given a negative test result the probability of the disease is only 0.02% ? I would like to know the probability of having the disease given a negative test (screening) result. I'm unsure if the contingency table and my calculations are correct. prevalence of 0.1% in population; 1 in 1000 people get the...
When playing with an [example for a mutual information matrix][1] I realized I actually do get results even for a pair of variables where there is not a single observation where both variables are populated. Minimal viable code is: library(infotheo) num1 <- c(1,2,3,1,2,3,1,2,3) num2 <- c(10,20,30,10,20,30,10,20,30) nu...
I was using Python xgboost to train some models (with binary logistic) on some data (50k in total) and I used the histogram tree method for the training (tree_method="hist"). By accidence I shuffled the events in the data and compared the resulting bdt. It turned out that the models built are slightly different dependi...
Background I'm building a convolutional neural network (CNN) to predict the response factor (continuous variable) of organic molecules. As input, I use 86x86 onehot-encoded matrices that represent the compounds in my dataset. Since I do not have a huge dataset, I use 80/20 training/validation split, without a separate ...
I have performed multiple comparisons using Mann-Whitney U tests, and want to correct the p-values to know which results are worth reporting. The structure of the data is as follows : 2 experiments, in which X different indicators were measured over time (Y time steps) in Z individuals. The goal is to know if individua...
I have a sparse matrix of representing 12 cancer types. It's a very sparse with about 99% of elements are zeros. I have a t-SNE looks like: What can I interpret from this t-SNE?
I have read probably too many things and maybe confused myself along the way :) Anyway, let's say I had a data set that I have performed PCA analysis on. Let's say a spectral dataset 100 observations x 3000 variables. After PCA, I have maybe 3-4 components, and now a 100 x 4 matrix of scores (I guess there is the spect...
Consider this model: # direct effects Y ~ c1*X1+c2*X2 # mediator M ~ a1*X1+a2*X2 Y ~ b*M # indirect effect (a*b) ab1 := (a1*b) ab2 := (a2*b) # total effect direct := c1 + c2 indirect := ab1 + ab2 ...
I'm trying to run a robust mixed ANOVA with a between groups factor (2 levels) and a within groups factor (3 levels). I'd ideally like to be able to set and run planned contrasts, have a full set of relevant summary statistics (presumably I'd report summary stats for the trimmed means rather than the original means..),...
Start with a $n \times p$ data matrix $X$. To simplify the notation, suppose it's already centered and standardized. Use SVD to get the rank-$k$ principal component approximation $X \approx (U_k)(S_kV_k^T) = U_k L_k^T$ with scores $U_k$ and $p \times k$ loadings matrix $L_k$. Varimax inserts a $k \times k$ rotation ...
In his book "Explanation in Causal Inference Methods for Mediation and Interaction", Tyler VanderWeele gives the following formula for bias (also Cinelli & Hazlet). Let $\beta'$ be the biased coefficient of our exposure of interest in a simple situation where our exposure $X$, has a confounder $U$. \begin{equation} \be...
Suppose that $X_1, X_2, \dots, X_n$ is an iid sample from a categorial distribution with $k\in\mathbb N$ events. That is, the probability that $X$ is equal to some $x\in\{1,2,\dots,k\}$ is given by $$f_p(x) = \prod_{i=j}^kp_j^{\mathsf 1(x=j)},$$ where $\mathsf 1(\cdot)$ denotes the indicator function and $$p = \begin{b...
I am currently working with a set of code called GPMSA that was published by LANL. The code serves to create a Gaussian process model of some simulator and perform regression with experimental data. I am working to understand everything but there is something that is confusing me. PCA is performed on the outputs of the...
Currently, I am trying to replicate a paper to extend the research on the paper they create a transition matrix similar to this one: my question is : how can I feed this information into my KNN or SVM algorithms? As far as I understand they only receive columns with continuous or discrete data, I was suggested to flat...
I am working on my thesis and I have a few questions about which method I should use for the analysis of my data. My research is about inequality in Europe, and in general households in Europe that have access to broadband internet connections and what its effects are on their educational attainment. The IV here would ...
I have a data set $\mathcal D \subset \mathcal X$ where each observation is itself a mini dataset, each with the same number of columns but differing numbers of rows, so $\mathcal D = \{X_1, \dots, X_n\}$ with $X_i \in \mathbb R^{n_i \times p}$. I want to be able to sample from a distribution over these matrices so I'v...
It comes to my attention that there is a discrepancy between lmerTest and Proc Mixed for the numerator degrees of freedom (df) for type II and III ANOVA. This only occurs for mixed model without fixed intercept. The following is the dataset: input9 <-structure(list(block = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2...
I have this exercise on my textbook and I can't understand how I have to do it. I tried to compute the posterior but I don't understand if it's what the exercise requires. Thanks This is what I did which i don'tknow if it's correct: $$\int_{R^n}\frac{exp(-\frac{1}{2}(x-S\theta)^T\frac{1}{\sigma^2}I_N(x-S\theta))}{\sqr...
Hi I've a regression Machine Learning problem of the following form: Input: $\{(o_i,v_i)| o_i \in R^d, v_i \in R , i \in \{1,2,3,...M\} \}$ Output: $s \in R$ I can use a neural model (probably deep sets ) however $o_i \in R^d$ is a feature vector that is a concatenation of multiple categorical and continuous variables...
I cannot show the R code, since it is about a confidential research project. I hope someone can still help me make sense of this. I conducted ordinal logistic regression with a few ordinal, discrete, and binary predictor variables and an ordinal response variable. I checked for collinearity and removed any variables wi...
I am trying to compare whether there is a significant difference in frequency of C1 and C2 between three samples. Every datapoint in each sample is labeled as C1, C2, C3, or C4. The contingency table is like this: C1 C2 C3 C4 Sample 1 count count count count Sample 2 count count count count Sample 3 count ...
I am working on a forecasting model for the stock price using nonlinear autoregressive network with exogenous inputs (NARX) with MATLAB software. I have achieved good performance and good results in the neural network model. For denoising, the variables (time series data) I have used SMA (simple moving average) for bot...
Let the random set $\{(Y_{t},X_t)\}_{t=1}^n$ follow the model: $$Y_t=m(X_t)+\epsilon_t,\quad t\in\{1,\cdots,n\}\quad (1)$$ where $\epsilon_t$ is a random error term and $m(\cdot)$ is an unknown smooth (conditional) regression function. I have been reading papers on the convergence of nonparametric kernel estimators $\h...
I have a scale variable, collected in 2 separated times, t1 (pre-test) and t2 (post-test). My question is, must I use a repeated measures Anova, or can I use a basic Anova with only one factor: the difference between two values (t2-t1) ?
Forgive me if I am missing important information this is my first time posting here. I am trying to build a mixed model to see effects of a management treatment (gridtype) on body condition of certain species of birds (JAWE & KAEL for this example). I am using the same code to build the model for two different species ...
I'm running a set of multilevel models in R and want to see if adding in a predictor improves the fit of the model compared to the null/unconditional model with no predictors. When I try to run an anova command to compare the two models, I run into the following error: Error in anova.merMod(nullOID, model1) : models w...
I have some data on a cyclists distance traveled and hours it took. MILES HOURS MPH DAYS_AGO WEIGHT 0 2 5 0.4 10 0.3175 1 5 10 0.5 4 0.3375 2 14 20 0.7 2 0.3450 I am trying to get an average of MPH for the cyclist. The WEIGHT column in this table i...
I am trying to look at how the effect of a large scale event (Event) impacts my response variable (AnimalActivity) across two regions (Region; A impacted by the event and B not impacted), while taking into account human activity (HumanUse) and season (Season). I used the function GLMMTMB to create a generalized linear ...
I have read so many books, forums, and sites that I have completely confused myself. Originally, my design was a simple 4x2 factorial with two categorical predictors, but it has gotten more complex with adding another categorical predictor, two continuous covariates, and an additional continuous dependent variable. Do...
A non profit I am associated with asked me for help with setting employee salaries. I found a form 990 database which had data on things like revenue, number of employees, key employee salary and other employee salary. I have just done simple descriptive analyses and found mean, median, STD, their percentile in revenue...
We have iid observations $\{X_i\}_{i=1}^n$ from CDF $\theta G + (1- \theta)H$ where $\theta \in (0,1)$ is unknown. Find a $\sqrt{n}$ consistent estimator for $\theta$ using the observations. Note that here, $G,H$ are known distribution functions. I tried using mle, but it need not exist. Also, we do not know anything a...
I ran a linear mixed-effect model with 'participants" and "PV" (phrasal words) as random effect, and the context as the main effect. I found that the model could not converge after I changed the coding of the participants from 1, 0_12 (as characters) to 100,101, 102 (as factors). Q1. May I know for building the linear ...
I am working on a project which involves fitting a Cox proportional hazard model to a time to event situation in SAS. We have the variables: y - event or censor (0/1) timeto - time to event y x - categorical variable that takes the value (1,2,3,4) which represents group 1,2,3,4 The SAS code I am using is: proc phreg ...
$\textrm{min} \ (\ \sum \limits_{i=1}^m (y_i - \boldsymbol x_i^T \boldsymbol \theta)^2 + \lambda \sum \limits_{j=1}^n \theta_j^2 \ )$ By searching around the internet I could figure out that the solution to the above Lagrange formulation (Ridge regression) lies at the intersection between the contours of the two summan...
I was working on an exercise that asked to describe the graph of the likelihood and log likelihood functions for a large sample size. Specifically it is a graph of boys = 6000 and girls = 4000. Prior to this in the text there were graphs drawn for the cases of (boys = 30 , girls 20) and (boys = 600, girls = 400). The p...
MT-DNN and SentenceBERT concatenate sentences with their difference for sentence similarity task (i.e. $[u; v; u-v]$). However, I can not find any sources, backgrounds or experiment results for concatenation of the sentences and their difference. Isn't just using $u$ and $v$ enough? Does anyone have a source or backgro...
I have $N$ real valued targets ordered by one single real valued feature. I would like to build a simple probabilistic model that states that all the targets corresponding to the features that are smaller than $f_{split}$ are coming from one normal distribution given by mean $\mu_1$ and dispersion $\sigma_1$ and all th...
Below are my questions of R-Squared for real valued label under non linear regression learner. It may be a large problem, if there is no easy answer, could you give me some references? Firstly for the real valued label, except for R-squared, is there any good value to evaluate the performance of fitting? I know that sm...
I understand the formal differences between a ROC curve and a PR curve, but I am trying to build more intuition. For common applications such as Search and disease prediction, PR curves are more useful (I think) What are some important / common problems where ROC curves are more useful than PR curves?
I have a dataset with two populations (unpaired). First one with 36 observations, second one 74. The first passes the Shapiro normality test with p-value = 0.1521, the second fails it with p-value = 0.01551. I would like to perform a test t.test(first, second), how can I do? If I transform with a BoxCox the second popu...
I have problem choosing a better measurement model between two (i.e., A and B). Both models have acceptable fit indices. For example, the RMSEA of A is .056; the RMSEA of B is .067. By RMSEA, A seems to be more better fitted. The cutoff value set in my thesis was .08. The AIC and BIC value of model A is 146.88; 266.61....
I am doing a classification job using mlr3. There are several covariates besides independent variables (features) in my dataset. I wonder how to select a feature subset and keep all the covariates. For example, here is a simple dataset where V1-V3 are independent variables, PC1 and PC2 are covariates. How to select var...
I'm trying to make a prediction of the number of annual flu hospitalizations. In order to do so I'm trying to subtract the predicted number of hospitalizations when there is no flu from the predicted number of hospitalizations when flu is present. I'm using a negative binomial regression model that includes the number ...
Let's assume we have 2 binary classifiers (A and B) and some labeled dataset, and we want to compare A and B. Let's assume we use the ROC AUC as the metric (although it could be the accuracy or something else, it should not matter). What is the best way to compare A and B? split the data into a training set and test s...
How do I calculate the probability of winning with any result? Data: A match can last a maximum of 30 rounds The team that scores 16 rounds first wins a match The match may end with a score of 15-15 Team A has 60% probability to score a round Team A has 40% probability to score a round
For a given dataset, a common way to compare 2 classifiers is to compare their average validation accuracies using cross-validation. Is it valid to replace the accuracy with other classification metrics that I care more about? For example, say I care about the sensitivity (recall) at a given specificity level (say 0.99...
I am comparing two (2-D) distributions using mean squared error. I take the difference between distributions, square them, average them and multiply them by the area of a pixel/bin. These distributions represent the receptive field of a neuron, so are mostly zeros surrounding a 2-D Gaussian. The problem I have is that ...
I am performing Engle-Granger cointegration test on my data as below import pandas as pd from statsmodels.tsa.stattools import coint from statsmodels.tsa.stattools import adfuller dat = pd.DataFrame.from_dict({'var1': {0: -0.10825745622277619, 1: 1.7548111666278878, 2: -0.33625004689444876, 3: 0.9618620307084542, 4: 1...
How can I deal with sample distribution table when Z is greater or equal to 5? For example:(-2.04 <z<-5.96) Sample distribution table value for -2.04 will be 0.2018 then what will be the sample distribution table value for -5.96?
Let's say I have carried out two experiments where something was changed in one compared to the other. I measure a feature in each experiment and therefore have the two time series for this feature, let's call them x_i and y_i. They are both assumed to be non-stationary (think of some logistic growth with added noise)....
I have come across this conditional expansion a few times, and I can't seem to make sense of it. $$p(z|y) = \int{p(z|f)p(f|y)df}$$ I would go about it like this: \begin{align} \require{cancel} p(z|y) & = \frac{p(z,y)}{p(y)} \\ & = \frac{\int{p(z,f,y)df}}{p(y)} \\ & = \frac{\int{\cancel{p(y)}p(f|y)p(z|f,y)df}}{\cancel{p...
Just when I thought I was starting to understand Bessel's correction, I noticed that it is not valid when the sample size equals the population size and so likely not valid for sample sizes close to the population size. I know that Bessel's correction is for small samples, but my question is: What can we do if we sampl...
Using the R programming language, I created the following dataset to simulate a medical study in which patients were : Given a Treatment or a Placebo Had their weights recorded over a period of time Recorded if some "Event" had occurred or not as of the last time they were measured id = 1:100 weight_time_1 = abs(...
say $X,Y$ are two random variables. I see courses saying $X+Y$ and $X-Y$, each has a variance of $\sigma_x^2 + \sigma_y^2.$ But, on the other hand, I also see courses talking about for $X$ and $Y,$ their pooled variance is $(\sigma_x^2 + \sigma_y^2)/2,$ assuming 1) their having the same population variance; 2) same sam...
I have data with more than 25 variables. Some of them are normally distributed and others are not. Instead of checking each variables for normal distribution and presenting Mean (SD) for variables having normal distribution and Median (IQR) for variables that deviates from normal distribution, is it fine to present Med...
I am very new to data science and machine learning. I need some advice on how to recognize long/short-term patterns/trends in a big data set (demand data), make predictions for future and make optimal decisions for future. I don't know where to start and I would appreciate any kind of help.
After reading this and this , I tried it on mine by fitting the 2-input model i.e. text and numerical. The result remains similar even several attempts on tuning the hyperparameters e.g. embedding dimension, epoch, activation. What is causing this behaviour? How can it be improved? The data is imbalanced with yes=65% a...
I want to estimate daily stock prices and natural gas data with using GARCH in EViews. There are some missing days (like holidays etc.). When I extract them from the data set, ARCH is not working. Would you please kindly assist me to solve the problem?