instruction
stringlengths
9
38.7k
The unpaired $t$-test is commonly used to reject the null hypothesis that two sample means are equal. However, suppose one wants to prove that the sample means are no different than some given maximal difference, i.e. we want to reject the hypothesis $|\mu_1-\mu_2|>y\%$. Moreover, suppose we have an a priori estimate o...
In have been working on a project along with other colleagues in which the dataset has almost 100 variables. The earlier approach was to use LASSO for subset selection and then use VIF to remove the "remaining multicollinear variables". A threshold of 5 (for VIF) was being used for the same. It seems like their endeavo...
After regularisation with Lasso and Ridge, I currently have a model under each, taking MSE values as shown below, MSE, Ridge = 0.1923102 MSE, Lasso = 0.1292252 Both models have the same number of regressors, thus in terms of parsimony, they are on equal standing. However plotting their observed against predicted valu...
Given two multivariate Gaussians $G_1(\mathbf{x}), G_2(\mathbf{x})$ (not PDFs!) with the same center at the coordinate origin and different covariance matrix $\mathbf{F}_1, \mathbf{F}_2$, where $\mathbf{x}=[x_1, \dots, x_M]^T$ present input vector: $$ G_1(\mathbf{x}) = e^{-\mathbf{x}^T \mathbf{F}_1 \mathbf{x}},\quad G_...
I have data that I think can be best analysed using a survival analysis. I have bumblebee colonies that need to grow to a certain threshold size for them to become sellable to greenhouse growers. I subjected them to different treatments and want to investigate whether treatment affects the time until they reach this th...
Suppose that rainfall duration has an exponential distribution. From regular measurements is known that 20% of rainfall ends within one hour. Calculate the mean value of rainfall duration. I guess this is about finding λ but I don't know how. Thank you!
My goal is to identify images (2D matrix) which are approximately uniform (all same brightness). Since I don't know of any "natural" tests for uniformity like Shapiro-Wilks for normality, I have tried Earth Mover's Distance and Kolmogorov-Smirnov tests. In each case, I calculate the mean brightness of a given image, th...
I'm doing time series forecasting using AutoARIMA model from the darts library. However, the prediction output is a straight line. I don't know how I should fix this, any suggestion & help please!
When estimating an ordered logistic regression in R using library(MASS)::polr how can I check for heteroskedasticity and fit it if it's exist? I'm self-studying the ordered logistic regression model, so I didn't covered in any classes. only for linear regressionmodels, such as BP test, chow test. As far I can find thes...
Assuming a random variable $X$ with an infinite image space (i.e. the natural numbers $\mathbf{N}$) and the probability mass function (PMF) being the uniform distribution with PMF $P(X=n) = \frac{1}{n}$. How do I compute the entropy of that infinite uniform distribution? Does it converge or diverge? I attempted the fol...
I have a (large i.e. >1M rows) very unbalanced (1% event label, binary classification) dataset with data from various institutions. At the moment, I train an XGBoost model on this data and get good performance on average (in production) across all institutions. The decision threshold is calculated on the test dataset t...
I have the following problem. I have a model, model A. It classifies a persons ability to buy a product. It's a Logistic Regression model. I want to add a new feature, but if I add it to model A that feature only have one unique value for every instances. Not much to train on. The feature is an exogenous feature, cap...
I have seen, from several sources (including this), that a violation of the parallel trends assumption in difference-in-differences results in a biased estimate of the critical difference-in-differences coefficient in the DiD regression. We don’t know the magnitude or direction of the violated parallel trend. It could ...
I'm wondering if there is any problem in using the predicted values (based on OOB observations) of a randomForest object as a predictor in the prediction of another variable. Something like this using R: rf_interim <- randomForest(z ~ x1 + x2 + x3) z_pred <- rf_interim$predicted rf <- randomForest(y ~ x1 + x2 + x3 + z_...
Good Day, I have a dataset of an IMU (int_os = Angle of Upper Leg) whilst cycling with (almost) the same RPMs, the IMU has a drift (a continuously increasing deviation away from the true position). Unfortunately, I couldn't find a package/example on how to correct the drift of a dataset in R. The end result should be ...
When we compute t-stat for a specific estimate in the multiple regression, we usually use: $$ t = \frac{ \hat\beta_k - \beta_k}{ se(\hat\beta_k)}.$$ where $se(\hat\beta_k)$ is from variance-covariance matrix: $\sqrt{s^2(X'X)^{-1}_{kk}}$ and $s^2$ can be obtained by $\frac{SSE}{n-k-1}$. But can we instead use $$t = \fr...
Given the regression model $Y = \beta_1 X_1 + \beta_2 X_2 + \epsilon$ I would like to constrain $\beta_2$ to be proportional to $\beta_1$, that is $\beta_2 = \theta\cdot\beta_1$. $Y = \beta_1 X_1 + \theta\cdot\beta_1 X_2 + \epsilon$ where $\beta_i$ are vectors and $X_i$ are matrices. How can I get an estimate of $\bet...
I have two binomial random variables: $$ X_1 \sim \text{Binom}(n_1,p_1), \\[6pt] X_2 \sim \text{Binom}(n_2,p_2). $$ I know that the individual skewnesses are: $$ \mathbb{Skew}(X_1) = \frac{1 - 2p_1}{\sqrt{n_1 p_1 (1-p_1)}}, \\[6pt] \mathbb{Skew}(X_2) = \frac{1 - 2p_2}{\sqrt{n_2 p_2 (1-p_2)}}. \\[6pt] $$ What is the ske...
let's say that I have a table as follows SSE1 SSE2 SSE3 SSE4 SSE5 frequncy 125 200 259 300 200 and I want to see if there is a significant difference between these frequency numbers. What test to use ? I am thinking chisquared test. Thanks
my question can appear trivial for most of you, but i cannot find a definitive answer. I have a tabular regression problem, with a large amount of features and the target variable. I am interested in knowing the most relevant features for the target. I am evaluating the revelance of the features by model's importance (...
Let's say that I know the following: $P(A|B)$ is the probability that a storm is coming given it's cloudy. $P(A|C)$ is the probability that a storm is coming given that the dogs bark. $P(B)$ and $P(C)$ are independent. How do I compute the following?: $P(A|B,C)$, the probability of a storm coming given that it's clo...
I'm training a classifer on an unbalanced dataset. The test dataset's positive proportion is 0.02%. For that reason, the validation data set labels proportions are the same. Because the validation set size is much smaller than the test dataset, it contains less than ten positive labels. The test set includes 25 positiv...
I have ran an ARCH model and found the sum of the ARCH coefficients. I have been told that I can test if the model is stationary if the sum of the coefficients are less than one, however I am not sure how to test this statistically. I have thought about this, and wondered if it is recommended to use a Dickey-Fuller tes...
for a project I have to analyze two survival analysis treatment groups using R. I want to calculate the power and type I error rate of a test with Monte Carlo simulation to set up a phase 3 medical study, but I am struggling with the exact calculations and hypotheses. Firstly, I fit models on my data which includes the...
What do you think about using a permutation test each time the sample size is too small to meet the the assumptions of normality and homogeneity of variance etc ? Why do we use a non parametric wilcoxon test most of the time? If there is any, could you please give me the pros of using a permutation test instead of a wi...
I have a question regarding Wards method of hierarchical clustering. I used Gower Distance to create a dissimilarity matrix from an event log. I want to agglomerate it with Ward's method. Lets suppose i have the following dissimilarity matrix as a starting point: I now want to use Wards Method to find clusters. At the...
The answer to the post Including Interaction Terms in Random Forest shows how a random forest can learn a multiplicative interactive term without it being specified as a feature. On the other hand, I read in ESL that tree-based models cannot learn linear combinations of features that are not pre-specified. Can someone ...
I feel a bit stupid, but I seem unable to find a way to calculate a paired sample t-test having the group means and standard deviations (not the individual data) of one group before and after an intervention: mean_pre: 11.7, SD_pre: 2.4 mean_post: 16.7, SD_post:3.1
I am having trouble understanding when PDFs of transformed variables need to be modified (i.e., take derivative) for proper plotting. I've looked at Intuitive explanation for density of transformed variable? and several other resources. Here, I will give 3 examples of different x-axes, and I hope someone can help me un...
I understand that an underlying assumption for parametric statistical inference (t-test, ANOVA, etc.) is that there needs to be a simple random sample from a population. However, I'm not sure how using a systematic random sample might be different than a simple random sample, and how this impacts inference. For example...
I want to investigate if the conversion rate(proportions) for system A is significantly different from the conversion rate of system B. $\mathcal{H}_0 = $ there is no significant difference of proportions and $\mathcal{H}_A = $ there is a significant difference between the proportions. If the $p-$value $< \alpha$ then ...
I am having trouble understanding the output of a GLM I am trying to run with R package lme4. Here is an example of what I would like to achieve with some mock data: Suppose that I have 3 geographical regions (north, south and east) in which I have planted some tomato plants, apple trees and orange trees. At each locat...
Say we are given a data-distribution $D$ over $\mathcal{X} \times \mathcal{Y}$, where $\mathcal{X}$ is our input/feature space and $\mathcal{Y}$ the set of (discrete) labels. Hence, $D$ is a joint-distribution over datapoints $x \in \mathcal{X}$ and their associated labels $y \in \mathcal{Y}$. We denote the associated ...
A multivariate t-distribution random variable $X \sim St(\mu_X, C_X, \nu_X) \in \mathbb{R}^n$ can be constructed as follows: \begin{equation} X = \sqrt{\frac{u}{\nu_X}} Y + \mu_X \end{equation} where $u \sim \chi^2_{\nu_X}$ and $Y \sim \mathcal{N}(0, C_X) \in \mathbb{R}^n$ Can we construct a map $T$ that transforms $Y...
I have two categorical variables: Risk (3 levels) and Results (2 levels). I am trying to test whether there is a significant difference in proportions of failure rates between categories. From the data it is pretty obvious there will not be a difference but how can I prove it "statistically"? Would I be using a Chi Squ...
Suppose I have some random variables $$X_i \sim Dist(\theta_i)$$ for $i = 1, ..., n$ where $Dist$ is some known probability distribution family and $\theta_i$ are some parameters which may vary depending on $i$. But I know that they only vary relatively little, which is a property I want to exploit in the following pro...
Suppose I want to test the hypothesis that the lengths of head size for first borns and seconds borns are $x = (182, 182)$ by using the Hotelling-T test. So given our data: "headsize" <- matrix(c(191, 195, 181, 183, 176, 208, 189, 197, 188, 192, 179, 183, 174, 190, 188, 163, 195, 186, 181, 175, 192, 174, 176, 197,...
I have timeseries data and want to identify if the change in coefficient at a particular point is significant. One method to test for structural change is the Chow test which assumes i.i.d. errors drawn from a normal distribution. However, the residual plot for my data shows the variance is non-constant and a normality...
I'm doing a simple linear regression project (only one feature), and I am checking the assumptions, however, I don't really understand the reasoning behind our homoscedasticity assumption. I've looked all over for a solution, but all of the answers are hard for me to understand. Could someone please explain to me why t...
Within a circle with radius R, a random variable with two types of information as below: Distance to the circle center. The distance should satisfy uniform distribution~U[a R], where 0<=a<R is a user-defined value. Angle information. It should satisfy von mises distribution. Question: Is there any existing distribut...
I'm new to linear regression. I created a simple linear regression model (only one feature). I am checking my assumptions, and I am having difficulty with the Independence assumption. I don't really understand what effect correlated observations has on the model and its results. Can someone explain in layman's terms. I...
Weibull distribution function is parameterized as $ F(x) = 1 - e^{(-(x/\sigma)^a)}$ and survival function is $S(x)= e^{(-(x/\sigma)^a)}$ where $a$ is shape parameter and $\sigma$ is the scale parameter. Mean Residual Function is given by: $mrl(x) = \frac{\int_{x}^{\infty} S(t) dt}{S(x)} = \frac{\int_{x}^{\infty} e^{(-(...
I'm trying to use wMAPE to calculate demand standard deviation for future forecasts, however, the wMAPE that we are using is derived from 13 buckets of actuals over a period of 52 buckets of time. If there are 13 weeks of actuals (can be continuous or intermittent) over a horizon of 52 weeks, we calculate the wMAPE bas...
Say I have data of 500+ species at different locations . I have my response Y and I want to find out how my continuous predictor humidity effects my Y. I ideally would control for the impact of species by using a linear mixed model LMM and using species as random effect. However 80% of my species have just 1 individual...
I am trying to figure out the process I should follow to obtain the expected value of $$ \text{CNoEst(B)} = \frac{1}{2}E(\log(1+B(|S|^2)), $$ where $S$ is a Gaussian random variable with zero mean and unit variance and B = 10 dB. The true value should be approximately equal o 1.15. However, I have no clue as to the app...
What happens to the accuracy of a decision tree when it is pruned? Can be higher than the accuracy of the fully-grown decision tree?
In the Lasso, and ElasticNet, we use, as penalty, the l1 norm without squaring. But in the ElasticNet and Ridge, we use the l2 norm squared. Why is that, is there a particular reason (computational, optimization dynamics, statistical?) Because from a purely constrained/penalized convex optimization perspective, looks l...
I'm trying to work with Lidar data to classify road. I'm wondering how to use pca (or something else?) to identify if region has connectivity > threshold then label the region to be road? Would Eigen Vectors be helpful in determining direction of road?
For instance say you are running a survey (to get a rating between 1-5 for your product) over demographic A and demographic B. Users in A tend to respond with lower ratings and users in B tend to respond with higher ratings. You are fairly confident that the product is doing similarly in both demographics and the highe...
I am trying to implement time series stationarity tests on my data. When I carry out ADF (Augmented Dickey-Fuller) and KPSS tests on my data the p values suggest time series stationarity. However, when I check for the trend in the data using the Mann-Kendall test, few of the variables exhibit trends significant at 95%...
The following paragraph taken from: A Graphical Display of Large Correlation Matrices I am trying to produce a plot with the provided equation above for the ellipse. For example, given I have random and normally distributed data points: data = np.array(np.random.normal(0, 1, 500)).reshape(100, 5) outliers = np.array(n...
Can someone explain to me the result of this test? I am not sure what the ect1, ect2, etc. mean. Output $beta -------------------------| ect1 | ect2 | ect3 | -------------------------|:------------...
recently i've come across this paper DOI: 10.1371/journal.pone.0061318 In short, authors tried to predict an unbound positive continuous target variable using multi layer perceptron. First, they transformed the target variable into range (0;1) using this formula: $$ y_{transformed} = \frac{1}{1 + y^{-0.1}} $$ and then ...
I have samples $\mathcal{Z} = \{Z_1,\ldots,Z_n\}$. These samples either come from the unknown distribution $\mathcal{D}_1$ or $\mathcal{D}_2$. (Note: I can't make any assumptions about these distributions). I wish to devise a non-parametric test for identifying and picking a maximal subset, $\mathcal{S} \subset \mathca...
I have designed an experiment with 20K treated units matched to 20K control units. Every treated unit is matched to a control unit that is as similar as possible on a number of metrics. The treated units are subjected to a treatment for 4 weeks, while the control units are untouched. I measure $Y_\text{post}$, the depe...
I've been working on a project recently to take the input values to a physics simulation that takes a long time to run, and to represent the simulation in a neural network predicting certain key output variables. There is a considerable amount of training data (270,000 data points for a 9-dimensional input). However as...
Generalized linear mixed models are more and more common in my field of dementia research. For example, it is common to examine how different factors associate with memory decline. However, I am a bit confused as to how one should incorporate time in these models. As an example, let's assume I want to know whether grip...
When I make a linear fit, it produces a reduced chi squared value. If it is larger than 1, this means underfitting, and if it is smaller than 1, then it is overfitting. If the value is approximately 1, then it is a good fit. But what is the meaning of `approximately 1'? What would be the interval that the reduced chi s...
I would like to study the effect of financial inclusion on food security for 23 countries for the periods 2011, 2014 and 2017. I want to use a model with correlated random effects (although I couldn't find a good justification apart from the fact that it brings together in the same regression the fixed effects model a...
Based on the Frisch-Waugh-Lovell theorem, the multivariate regression of $Y$ on $D$ with $X$ as covariate should give the same estimate as a bivariate regression of $Y$ on $\hat{r}$, where $\hat{r}$ is the residual of a regression of $X$ on $D$. $ Y_i = \alpha_1 + \delta D_i + \gamma_1 X_i +\varepsilon_{1i} \\ D_i ...
The acf and pacf of this data look like this. After first differencing, the acf and pacf look like this. Does this mean that arima cannot be used to model the data, or should I do further differences? How can I infer the values of p and q from this? Any help would be appreciated.
If this question is too basic, please forgive as I'm not an expert in stats. If the observed frequency distribution is the same as the theoretical distribution, variable A has the observed distribution, variable B has the theoretical distribution. Then, can we say A, B are highly correlated? Could you give me the examp...
Imagine I have a dataset that I want to use to predict a variable 'var': set.seed(0) dataset <- tibble(sex = sample(c('M', 'F'), 100, TRUE)) %>% mutate(var = ifelse(sex == 'M', 150 + rnorm(100, 0, 10), 120 + rnorm(100, 0, 10))) I want to then predict the total of 'var' from a larger dataset: ...
I am analysing population projection data from the United States census and I need to present population estimates by race/ethnicity for each year from 2020 to 2029. The US census separates Asian-Americans from Pacific Islander-Americans (which is good!) but, unfortunately, my analysis cannot be so granular because I n...
Non negative least square solves $$ y = \alpha^T x \\ s.t. \forall i,~ \alpha_i \geq 0 $$ However, I would like to apply the non negativity constraint only on some coefficient, say only the $\alpha_i,~ \forall i \in \mathcal{S}$. This is not possible using scipy's nnls function. However, I think I can solve the problem...
In a mixed effects model, is it possible to manually specify a standard deviation of 0 for the random effect for one group, and estimate the standard deviation of the random effect for another group? Imagine the comparison of two machines' output. Machine 1 is user-dependent, and Machine 2 isn't. So for Machine 1, we h...
I am building a bayesian A/B testing code in python to compare conversion rates between two samples which I will call $A$ and $B$. My aim is to produce a mean conversion rate, in percentage, for $A$ and a mean conversion rate, in percentage, for $B$ then report a gain of $A$ over $B$ with an error on the gain. The code...
Suppose $Z_1$ and $Z2$ ~$N(0,1)$ Let $X_1=2Z_1$ and $X_2=X_1+\frac{\sqrt{3}}{2}Z_2$ Let $Y_1=\sqrt{3}Z_1+Y_2$ and $Y_2=Z_2$ I understand I have to show the mean and variance for $X_1$ and $X_2$ should be the same as the mean and variance for $Y_1$ and $Y_2$ in order to show X and Y have the same distribution. The mean ...
I have the following binary variable Y to be predicted as a function of two factors, say X1 and X2. The whole file is available here. X1 is binary and X2, categorical. When compiled, we find these proportions of 1s: X2=0 X2=1 X2=2 X1 = 0 75/89 (84.3%) 62/77 (80.5%) 40/52 (76.9%) X1 = 1 84/92 (91.3%) 52/72 (7...
Say I have a multivariate Gaussian distribution and I want to measure the expected vector distance of points from the mean of this distribution. If I know the covariance matrix of my mvtgaussian, is there some closed form solution for this? I'm aware there is a previous questing asking something very similar, but ther...
I am running a logistic regression model to predict whether a particular business location would purchase from a company X. I have a few predictor variables related to the business location, characteristics and nature of their business and a few variables related to the nature of the company in question and its relatio...
Consider a random sample $X_i = (U_i,V_i)$ where $i=1,2,...,n$ from a bivariate normal population with mean $(\mu_1,\mu_2)$ and variances $(\sigma_1 ^2, \sigma_2 ^2)$ and correlation $\rho$. Let's consider random variables $C_1,...,C_n$ which take the values $\{0,1,2\}$ and are independent of $X_i$. We observe each $C_...
I'm reviewing the very basics of discrete-choice models (binary choice, multinomial, tobit, etc.), and I seem to have taken for granted that latent variable models are just one (very convenient and intuitive) way of formulating discrete choice models. The "General Binary Outcome Model" as given by Cameron and Trivedi (...
I ran a marginal means survival model that included some time-invariant and time-varying covariates (see this post for relevant information). I am trying to understand why the robust standard errors of time-varying covariates (for most cases) were smaller than the normal standard errors. See the output below: Call: cox...
BNB distribution is constructed using negative binomial and beta distributions, which are both exponential family, so my guess would be yes, there shoudl exist a conjugate prior in theory. But what is it? I could not find it in any resources and I am not confident enough to try to derive it myself. There is likely no e...
I understand that using 100% of the dataset and doing k-fold cross validation instead of train_test_split would eliminate that randomness the latter method have in splitting and thus potentially avoid overfitting. But I have seen that this is not the best practice when it comes to k-fold CV. What I have seen is that we...
How can we convert a vector of repeated measures of a variable into one value when the vector has varying length in different instances? For instance, let's assume V1 = {.95, .5, .95} but V2 = {.90}. How should these two vectors be treated to turn into two scalars? The first solution I found is taking average, but as y...
I'm looking for a way to combine noisy biased measurements to find confidence intervals. As an example, we have two people Tom & Mary that are each taking free throws on separate days, we have the following results from the two days: Day Player makes attempts Day 1: Sunny Mary 89 100 Day 1: Sunny Tom 171 200 ...
What are you favorite data sets for which you can develop multiple linear regression and multiple logistical regression models, and for exploring the art of multiple regression? I'm imagining data sets with a moderate number of observations, predictors, and responses, and predictors and responses that are continuous qu...
I'm having a bit of trouble understanding how the statements: $$ P(\lim_{n\rightarrow \infty}X_{n}=X) = 1 \equiv P(\{\omega \in \Omega: \lim_{n\rightarrow \infty}X_{n}(\omega) = X(\omega)\}) = 1 $$ Are not simply equivalent to: $$ \lim_{n\rightarrow \infty}X_{n}(\omega) = X(\omega) $$ Which is a statement about the lim...
I have two populations that I'd like to compare across certain metrics. However, most members of population A did not respond to our request for data, and those respondents that did are not representative of the whole. On the other hand, we have data for every member of population B. I have trained ML models to determi...
After fitting a Cox regression, we can compute the predicted survival curve S(t) e.g. in R: survfit(formula, newdata, ...) where formula is a coxph object. With the KM estimate, cumulative incidence is 1-S(t). Can we also do the same thing with the predicted S(t) from the Cox model to get the predicted cumulative incid...
Let's say I have a time series $R\in \mathbb{R}^{T\times M}$ where $T$ shows the dates and $M$ is the number of variables. I do an SVD on it and obtain $R=U\Sigma V^\top$, where $U\in \mathbb{R}^{T\times K}$, $\Sigma\in \mathbb{R}^{K\times K}$, $V\in \mathbb{R}^{M\times K}$ and $K=\min\,(T,M)$. Now if I want to obtain ...
I am currently working with Gaussian Process to make a surrogate model for temperature prediction. A question arose when I was thinking to make result plots in Celsius instead of Kelvin. I suspect if the scale of the target values actually has influences on the performance of the prediction, or numerical stability in c...
Imagine you have a dataframe of historical sensory data measurements, such as temperature and energy consumption, recorded every 15 minutes for 2 years. What would be the most appropriate way to deal with entire chunks of missing data? Imagine an entire week or two are missing, there are no points in between, and we wa...
Let $Y_i$ and $X_i$ be random variables. Under the linear regression specification, we have $Y_i = X_i \beta + \epsilon_i$, where $\mathbb{E}[\epsilon_i | X_i] = 0$. For this model, we may obtain the OLS estimate of $\beta$ by minimizing $$\sum_{i=1}^{N}(y_i - x_ib)^2.$$ On the other hand, under the quantile regression...
I have had a question since graduate school. For a given significance level alpha, the test with smallest confidence interval length expectation should be optimal, because it usually also means a higher power, with fixed Type I error. But textbooks hardly mentioned that. I also notice that $t$-statistics with degree of...
I observed a manufacturing process that yielded ~40,000 parts I sampled 200 of these parts (every 200th part) and measured their properties My ultimate goal is to show that sensor data, that describes each of the ~40,000 production cycles, can be used to predict the resulting part quality. If I fit a regressor to jus...
I'm lost with a very simple question of finding the average of random variables from two Poisson distributions. I know that if $X\backsim Pois(L1)$ and $Y\backsim Pois(L2)$, then $X+Y\backsim Pois(L1+L2)$. I have a queue open for nine hours daily with an average of four persons in it every given minute for seven hours ...
Suppose there's a dataset that has features like the weight and height of people. If we plot the dataset, we commonly use the Cartesian plane, the x-axis to represent weight and the y-axis to represent height; hence, points represent every piece of data. From the case above, can we represent radius as weight and angle ...
In predictive modelling, it is useful to perform resampling methods to assess performance e.g. validate() and calibrate() in the rms package in R. Is it useful / advisable to perform such methods when the primary purpose is estimating effects e.g. hazard ratios from a Cox model, odds ratios from logistic regression etc...
I am new to ML and trying to write a very simple model that can predict the future of a function given the past. That is to say, I define a simple cubic function (y = x^3 + x^2 + x) and apply it to a domain of 100 points from x = -10 to x = 10. I would like to use the first 80 points -- params = y[:80] -- to train some...
When i read some notes about RL i encounterd following equation and try to prove it: $$ V^{\pi^*}(s) = \max_{a \in A}Q^{\pi^*}(s, a),\forall s \in S $$ Here is my attemption: Firstly, i only need to prove "$\geq$" as "$\leq$" is obvious. Soppose that $\exists S_0 \subset S$ such that $\forall s_0 \in S_0,V^{\pi^*}(s_0)...
The question I am asking has its reference listed below: Can a probability distribution value exceeding 1 be OK? Would it be accurate to describe a PDF as a probability mass per unit length Introduction to Probability for Data Science "The total area underneath a probability density function is 1" - relative to what? ...
For teaching purposes I'm trying to generate some probability distributions that have varying amounts of skew but precisely controllable mean and variance. I'd like to plot these distributions and also sample from them. The skew-normal distribution and its R implementation almost fit the bill except that the skew, mean...
I have three land use classes (natural farming, chemical farming, and forest) and would like to compare the densities of different bird species between them. I would like to get the ATE (I think). I don't want to remove any samples as I have a small dataset, but I do want to ensure that the covariates (such as altitude...
Initially modelled as a normal distribution, I'm now trying to capture the probability that human judgments take on a scale of -100 to 100 (arbitrary discrete judgements) using some kind of discrete distribution that's bounded. The distribution has to be centred around a specified mean and SD, but I'm not sure what kin...
Consider a simple linear regression model $y=a+bx$ what does it mean to test if $x$ has a multiplicative effect on $y$, is this equivalent to test $H_0: b>0$ versus $H_1 : b\le 0$ ? If this is true then how can this be conducted?
Consistency is generally understood to be a pretty basic requirement for a decent estimator of a model parameter or other population quantity. If your estimator isn't consistent, then it won't converge in probability to the true value as the sample size increases, as an estimator ought to. What might be an equivalent n...
First off, apologies if this is basic but I'm still learning about PCA. I am somewhat confused as to what exactly PCA can provide that I can't find out through other means. For example: Dimensionality Reduction/Redundancy: couldn't one just look at the covariance matrix? If we wanted to retain our original feature set...