instruction
stringlengths
9
38.7k
I have a count $N_i$ of rare evevents for each season, where $i$ identifies the season. The counts' rates are not high enough to justify a normal distribution aproximation of the poissonian. I want to test the null hypothesis of uniform rate trhoughout the year, but I do not have an independent reference value for the ...
I have a dataset of time series. The analogy for each series is a medical history (2-3 years) of a patient visiting a clinic. It consists of dates and symptoms per visit: There are few thousands of patients. Patients have 3-4 visits, and 6-7 unique symptoms (out of ~200 symptoms in data). I want to find a subset (or a...
I am running a regression to test how different attributes affect house prices. These attributes have been separated into three categories that are: structural factors (number of room, size, square feet, type of home), external factors (garden, balcony, lot size), and locational factors (these are dummies for where the...
I have a group (group2) that contains zero data, and I want to know whether it is considered normal or not normally distributed. I used the SPSS software, and it showed this result. I also tried R, and it showed this message: Error in Shapiro.test(group2) : all 'x' values are identical If I want to compare the followi...
I don't understand why I get poor prediction results with ARIMA Model Here is my program and my results: for the dataset I am using a file (which represents CPU traces of one VM)that contains 288 values each value represents the CPU utilization every 5 min during 24h (I got it from the PlanetLab datset of cloudsim) g...
I have a sample data variable shown below score 10, 11, 12, 90, 95, 97, 38, 37, 35 Instead of applying/binning data based on quantiles etc, I would like to bin based on pattern present in the data. That's when I came to know about the jenks natural breaks here However, this approach requires us to define the n_cluster...
Let $X$ be a random variable with finite expectation $E(X)$, and let's denote $X_{90}$ the 90% quantile of its distribution, meaning: $$P(X<X_{90})=0.9$$ Now, let Y be another random variable and let $E(X|Y)$ be the conditional expectation of $X$ given $Y$. By definition, this conditional expectation is also a random ...
Consider the standard example for variables that are pairwise independent but joint dependent. $$ (x,y,z)= \begin{cases} (0,0,0) & \text{probability 1/4} \\ (1,1,0) & \text{probability 1/4} \\ (1,0,1) & \text{probability 1/4} \\ (0,1,1) & \text{probability 1/4} \\ \end{cases} $$ I'm trying to represent $X, Y, Z$ in a ...
Usually, we calculate the sample size needed for a clinical trial based on a former clinical trial which shows there is a significant effect. What if there is no such a trial? What if there is no information? How do we decide the sample size? Any idea?
This is a problem question I'm trying to make sure I understand from a past paper (with no solutions). The R output is below. > nnet1 ¡- nnet(y ˜ x1 + x2, data = data, size = 2, decay = 0) >summary(nnet1) a 2-2-1 network with 9 weights options were - entropy fitting b->h1 i1->h1 i2->h1 -7.05 74.10 99.43 b->h2 i1...
Basic question but: what happens to the region on which a pdf is non-zero when a bivariate is integrated to get a marginal? The example I'm working on (course problem booklet for a mathematics BSc second-year module in statistics, unpublished) is $$ f_{X,Y}(x,y) = \begin{cases}\frac{1}{4}y^2e^{-x}&&\text{for }0<|y|<x<\...
When we have a multivariate regression function, which assumption has to hold so that the OLS assumptions are not violated: a) each variable must follow a normal distribution b) all variables together must follow a normal distribution c) only the dependent variable must follow a normal distribution d) the residuals of ...
I'm running a DiD analysis on whether the introduction of a spinoff NFT (non-fungible token) collection affects the prices of the parent NFT collection. First thing that I did is to visually test whether the paraller trend assumption holds or not. Here's the plot (CryptoPunks (control group), BAYC (treatment group). A...
To use OLS for inference, is it necessary in all cases that the premise of homoscedasticity is met? I need to check the influence of some features (eg age, income...) on a variable y (whether or not I bought a property) in a real case. I thought about using linear regression interpreting the coefficients and I know tha...
Context: I have two independent samples that I want to compare for equality through an AB test. The metric being evaluated is binary: user clicks or not (proportions). Question: I keep reading that z test are not to be used based on the assumptions that it makes and that t tests are recommended instead. I haven't seen...
I have data from a study where subjects (considered as "generations" in a Telephone-like game) sang short melodies from one to the next, starting from a randomly-generated melody (seed) given to the subject who acted as the first generation. The dependent variable was the average number of unique pitches (specifically,...
If I am wanting to fit a multilevel model across two time points and the first time point is Primary (uk education system, age 7-11 - keystage 2) but the second time point is secondary education (uk - keystage3, age 11-14). How can the school level clustering be implemented if the individuals clustered in time point 1 ...
I am fitting a Cox proportional hazards model with the interaction effect dummy:ln(time). How would you interpret the result? Is it a simple exp(x)-1)*100 to receive the percentage increase in y? Edit: I indeed made the mistake @EdM mentioned. This interaction is now set up according to Therneau et al. (2022, pp. 21). ...
Based on the accepted answer from this post: How to use a fitted model parameters for forecasting other time series, it is possible to use a fitted ARIMA model for forecasting another time series. What are some good reasons reasons for doing that? Can for example someone create a model and then given a new time series ...
Some packages such as Mathlab, Minitab and SigmaXL caluclate adjustment for skewness and kurtosis. For example at: https://octave.org/doc/v4.0.1/Descriptive-Statistics.html it is suggested that skewness() called with flag = 1 should perform adjustment. The adjusted skewness coefficient is obtained by replacing the sam...
Wikipedia has this image showing different correlations: It says: The correlation reflects the noisiness and direction of a linear relationship (top row), but not the slope of that relationship (middle) … the figure in the center has a slope of 0 but in that case the correlation coefficient is undefined because the v...
I am learning about performing stepwise model selection by AIC and I have 2 questions here: 1.Regarding to stepwise AIC, what is contribution (effectiveness) of the number of parameters in the model to optimize the model fit? 2.For forward stepwise AIC approach, what would be an advantage and disadvantage of fixing pre...
I'm not sure if I've understood correctly the whole point of reinforcement learning. In my point of view, the whole goal of RL is learning a policy that maps states to actions. Let us suppose that I have a dataset with states associated to the desirable action for that state. And let us suppose that my dataset is big a...
I was wondering if the following scenario had a word for it (eg. Survival analysis...). Suppose we have a company that has pro users (pay $10/ month) and free users. I want to calculate the worth of the free users to the company. Despite not spending any money with the company, they make the product more popular and th...
Is there a known analytic solution for finding the minimum variance unbiased estimator of a disk of an unknown location given that a sample of $n$ points was drawn uniformly and randomly from the disk of known radius $r$; and, if so, what is it? Intuitively, I would expect it to be the midrange of the longest segment o...
I'm conducting a clinical trial with a treatment group and a placebo group and calculated the sample size based on a previous study. However, I would like to add two more new placebo groups with different characteristics, where there is no raw data to calculate the sample size and related values. My question is how to ...
For a one-sided test: $$H_0: \mu_1 \leq \mu_2 \ H_1: \mu_1 >\mu2$$ $$\alpha=0.025,\beta=0.1$$ How to calculate the sample size needed? Is this information enough to calculate the sample size?
Typically, I have always come across the term "cluster" within statistics as reference to "clustering" - that is, for example the "K Means Clustering" algorithm. Recently, I have started coming across the term "cluster" in regression and longitudinal settings, such as "clustered profiles", "clustered survival data" and...
Assume we got two models, either regression or RF or whatever. I'm trying to observe the relative importance of each feature by using ranks. That is, if we look at a regression model, we have a t-test (or z-test) for the hypothesis $\beta_j=0$ from which we can obtain p-values, then we can order the features according ...
i'm still new in machine learning. currently i'm creating an anomaly detection for flight data. it is a multivariate time series data that include timestamp, latitude, longitude, velocity and altitude of the aircraft. i'm splitting the data into train and test with 80% ratio. i used the keras LSTM autoencoder to do a a...
I have a time series ARIMA model and I want to validate the accuracy my prediction. But I dont understand the difference of using cross validation vs model accuracy measures such as MAPE, MAE, MSE and RMSE which can easily generated using R. If they have different purposes, should I be using both? Could someone help cl...
I know of different methods that exist to remove seasonality and trend in the data to make it stationary. However, that exists only for regular time series; that is, a series that follows a fixed frequency. For example, a series that has a daily recording of temperature. But what about methods for irregular time series...
I have a simple 1D set of datapoints with a trend, I want to estimate at which point $X_t$ (i.e., at which point in the future) the model will hit a certain threshold $Y_t$: I can fit a trendline to estimate the intersection point. But how can I get a probability distribution? I tried to calculate confidence bands and...
Let X ∼ Exp(λ) and Y ∼ Exp(μ) be two independent exponential random variables, where λ, μ > 0. Find the probability density function of X + Y if λ ̸= μ. I have successfully find ans if λ = μ, but stuck when finding pdf of X+Y if λ ̸= μ
I am learning R-CNN with this slides. On slide 63 one warped image region is specified by 224x224 pixel. Is this just a random value or from where is the value coming from? I cannot see any correlation. Slide
When running and gam model and this warning message pops up, what does this mean and what is advised? A simple increase in knots (even by 1) seems to remove this warning message. "Warning message: In estimate.theta(theta, family, y, mu, scale = scale1, wt = weights, : step failure in theta estimation"
If $Y∼N(μ,σ^2)$ is normally distributed, then $X=\exp(Y)$ is lognormally distributed. The parameters for a univariate distribution, $\mu$ and $\sigma$ of this lognormal distribution are given by $$\mu{_1} = \ln\left(\frac{E[X_1]^2}{\sqrt{Var[X_1]+E[X_1]^2}}\right)$$ and $$\sigma{_1}^2 = \ln\left(1+\frac{Var[X_1]}{E[X...
I did a prop.test for my data and I got this warning message : Warning messages: 1: In prop.test(x = c(..4, ..12), n = c(..6, ..14), correct = TRUE) : Chi-squared approximation may be incorrect I did a multiple tests at the same time. The analysis for the first one is : 2-sample test for equality of proportio...
You have been asked to assess the effectiveness of a new teaching tool. A sample of 25 students from your classes have been tested before and after the provision of the tool, so each student has two measurements associated with them. You are testing: (a) Has the teaching tool changed student performance? (b) Is there m...
What can be a statistical test to find out if a population has the mean equal to its own variance? I.e. Mean(X)=Var(X)? I am interested in it because Poisson regression makes the assumption that the mean of the predicted variable is the same as the variance of the predicted variable, i.e. lambda = E(Y) = Var(Y) where l...
I am trying to evaluate several methods to compress some 2D data points. The algorithm itself is not relevant, but from the output, I can compute the MSE and the number of points (which can be used to calculate the compression ratio). Is there any metric that combines compression quality (MSE) with the resulting number...
I have loaded the data set Animals2 from the package library (robustbase) and I have ploted three estimated regression lines (least-squares line, the LMS line, and the line of Siegel). I wanted to know which of the estimated regression lines is most suitable for this data sets.
I am working on the data set that consists of Patients' id (after stroke), Time (they can walk after going through the program), the Program they follow and the Visit number when the Time was measured. Patient Program Time(walking) Visit(Check) 1 P1 12 Day 10 2 P3 23 ...
I am trying to segment our customers based on their purchase data. And I came to know about the RFM technique (Recency, Frequency and Monetary) through these posts here, here etc. Recency - How recently they made a purchase Frequency - How many times they made a purchase Monetary - How much revenue did company got from...
I am currently working with variance-stabilizer method and readed something about it from my textbook. I want to understand it better so I would like to consider a case where I for instance have a simple linear regression, let's say I have a model with response $y$, intercept and explanatory variable $x$, that is, $$y_...
Assume we have a sequence $\mathsf{X}_1,\mathsf{X}_2,\mathsf{X}_3,...$ of iid random variables. Then the Fisher-Tippet-Gnedenko theorem shows that $$ \mathbb{P}\left(\frac{\max\{\mathsf{X}_1,\mathsf{X}_2,\dotsc,\mathsf{X}_n \}-b_n}{a_n}\leq x\right) \xrightarrow[n\to \infty]{d}G(x), $$ at least if $\mathsf{X}$ is in t...
I am currently working on a group project with COVID data. The response variable is a binary outcome (positive/negative) from swab test; and let's only consider age groups (0-18, 18-60, 60+) for simplicity here. The goal here is to obtain some incidence rates and relative risks among the age groups by, for example, poi...
I am reading an introductory econometrics book and I am having trouble understanding how they "directly applied the law of large numbers". Basically, they consider the case of simple linear regression model, trying to show how it behaves asymptotically. they begin just with the formula of the slope parameter estimator ...
I built an igraph graph from a data frame containing the (symbolic) edge list and weight. This is the data frame: >dput(y) structure(list(from = c("Canada", "Canada", "Canada", "Canada", "Canada", "China", "Hong Kong", "Japan", "Canada", "Japan", "China", "Hong Kong", "Canada", "Hong Kong", "Canada", "China", "Canada...
I am stuck on how to analyse my data. I have one dependent variable and a number of indepen dent variables which are divided into further sub-categories. Some of the options for the value of an independent variable have other sub-levels than others. Concretely, my variables are organised as follows: var name levels...
I know that this question seems somewhat contrived, but I'm essentially trying to weigh the tradeoffs of completely pooling regression estimators when I have data from two "environments" vs. estimating regression estimators separately for each environment. Specifically, assume that we have observations \begin{equation*...
I am trying to conduct a cox proportional hazard, after I checked the assumptions, it turns out that interaction exists. So, I have to put an interaction into the model. But the time varying covariate is polytomous variable with four categories. The treatment is time varying covariate with four categories. And I get th...
I've been having difficulty understanding the code for qrule_math in the survey package. This document here says this about it: However, this is not what the code seems to do. Given two vectors of values (x) and weights (w) and a quantile (p) of 0.5 to find the median value: x <- structure(c(577450.791535772, 919590.3...
Imagine we have 2 teams play 10 matches against each other with team A winning 6 of them I.e. 60%. In this setting do confidence intervals for the probability of winning make sense? On one hand I would argue that we are estimating the data generation process in which the confidence intervals capture the uncertainty of ...
If I have repeated observations and want to summarize the means at each time point, the OLS will give me the true, raw means, while the GLS will give me means dependent on the selected covariance structure. Why not just use the OLS with sandwich SEs reflecting the within-subject dependency, having the estimates of mean...
The Behrens-Fisher problem concerns comparing two means from independent (maybe multivariate) samples in a way robust to heteroskedasticity in the populations being compared. It seems that if one adopts an asymptotic approach, the problem is easy; so long as the statistician has two consistent estimators for the two po...
I am analyzing a dataset with generalised additive models(GAM) in Stata. I want to obtain 95% confidence interval(95%CI) for my result. I have read the documentation in Stata ("Help gam") and discussed this problem with classmates, but know nothing. How can I extract 95%CI? Thanks for any tips or discussions! Good day!...
In tree based models and neural networks, we can optimised the models by tuning the hyper parameters(such as: learning rate, number of neutrons.. etc). Is there a hyper parameters to tune in Bayesian networks? Thank you, Shosho
I'm currently training a model for spam detection on a training set with 4757 observations with 3000 variables counting word frequencies. It is taking forever and I have a deadline coming up so I wanted to just run the code by you guys to ensure I'm not waiting for nothing. Any advice would be much appreciated.
I would like to obtain a new mean $\mu$ of a skew normal distribution with a normal prior of the form $N(\delta,\tau)$ on $\mu$, and a given standard deviation $\sigma$ and shape parameter $\alpha$. For this end, I am trying to implement a Gibbs sampler described in Kim 2005: Bayesian estimation for skew normal distrib...
I have a time series dataset, it is a data frame with 2000 rows and 1000 columns. Each rows is for one specific id and has a unique pattern. I want to clustering this data into multiple classes. Let to put a sample of my dataset and a work that I've done so far. Here is my data frame: import pandas as pd df = pd.Data...
I have data from a group of patients and for each patient I have two time series A and B (continuous quantity) sampled on a weekly basis. My hypothesis is that quantity B has a 1-week lagged effect on quantity A, causing A to drop with increasing B and I want to estimate this causal effect using the difference-in-diffe...
I plotted a scatterplot between humidity and temperature (air) in centigrade. I got the following graph; It is evident that the points fall in discrete columns. This might be because of the rounding of the humidity estimates to one decimal point. To break up these columns, I think some random noise (jitter) could be a...
Wondering if Fieller's theorem is used for the 'ratio' value in the compare argument in statsmodels.stats.proportion.confint_proportions_2indep method from the statsmodel module. If not, what is it? I'm trying to display the confidence interval of the % difference between p1-p2 Also, how can I interpret the numbers. I ...
I'm doing a linear regression in the hopes of developing a predictive model for fatal drug overdoses at the county level. My data looks like this (note, pc=per-capita), there are 504 total observations: County Year hispanic_perc Fentanyl.Crime.Lab.Cases.pc OpioidHospitalizations.pc totalSBRArrests.pc ADAMS 20...
My objective is to compare the returns of several portfolios. In short, I have multiple independent variables (4) that benchmark returns of different market portfolios (Carhart 4-factor), where the dependent variables are the returns of the portfolio tested. The constant (alpha) defines the (out/under)performance of th...
Just so we're all on the same page, this is the classic neural network set up as I understand it: $$z_j=\sigma(\alpha_0j+\alpha_j^T x)$$ $$t=\beta_0+\Sigma^k_{j=1}\beta_j z_j)=\beta_0+\beta^Tx $$ $$ y=f(x)=g(t) $$ (I may have missed a few bits off like the hat on the y and some bold to show the vectors, but you get th...
Background Suppose there exists a normal variable $X \sim \mathcal{N}(\mu, \sigma)$ where $\mu, \sigma$ are known. Also suppose that you only observe rounded instances $Y = \operatorname{round}(X, d)$ to some fixed number of decimals $d$ to the right of the decimal point. Knowing $d$ allows us to infer that $x_i \in I_...
So I have a maths problem that I'm struggling to understand... The original language isn't English, but I have done my best to translate the necessary background information into English. Assume that we have observed the following values: 0.50, -0.15, 2.82, 0.68, 0.19, 1.23, -1.65, 2.38, -0.49, 1.59, 0.66, -0.12, 1.20,...
I have heard a lot of different opinions on this matter, which led to some confusion on my side. I have ordinal data that was captured in a survey with a 5-point Likert scale (Strongly disagree, disagree, neutral, agree, strongly agree). I now have 3 sets of ordinal items and each set can be combined into a new single ...
In general, a latent space is a structure of reduced dimensionality than that of the input space where points on this space share resemblance the closer they are to each other. This article also refers to the layers of a convolutional neural network as a latent space (see the diagram). Some CNNs essentially squash an i...
I have $n$ observations in $\mathbb{R}^2$ (where $n$ is large and even), representing points in physical space. What I am trying to do is to produce a set of $\frac{n}{2}$ pairs, such that the distances between paired points are minimised. My first thought was that this seems to be a clustering problem. I first conside...
I have data where I am examining the moderating effect of a group-level variable (performance) on the relationship between two individual-level variables, X (2 experimental conditions) and Y (attitude change score calculated from a within-person repeated measure); i.e., my research question is: Does group performance m...
Many tree based models come with a built in feature importance method usually based on impurity decrease (ex. sklearn RandomForest). Would it be possible to calculate feature importances on a test set (out-of-sample data), in other words the per-feature contribution to impurity decrease with respect to an external data...
I am conducting a small study where one class is taught similar (but not the same) concepts over two separate lessons. The first lesson, the teacher will deliver the lesson to the class. The second lesson, the students will watch instructional videos without teacher intervention. A post test is conducted after each les...
I was watching this video (https://www.youtube.com/watch?v=Wy-WmY6x4tg) and the presenter mentions (@ 8:10) that in a Multi-State Model, the user is required to specify number of "States" within the model and which "Transitions" between these States are "Valid": Based on this diagram, I can understand that for the Mul...
For example, say we have a population of about 200,000 datapoints which can be sorted into about 10 clusters. However, performing the clustering process on the entire population is not feasible. Thus we need to take a sample size and perform clustering on that. In this sample, once we perform the necessary clustering (...
I need to calculate the odds ratio for mechanical ventilation and death in relation to different early COVID-19 symptoms for two COVID variants - delta and omicron. How should I do it? I want to showcase that delta held higher risk of mechanical ventilation and death than omicron. So far, I have calculated it from such...
I was wondering what is the distribution of the daily change rates of the S&P 500. It doesn't seem to be distributed normally (using qq plot for example).
I am trying to set up a multinomial logistic regression for which one of the 5 NBA players on the court at a given time end up taking a shot. OFF_P1 OFF_P2 OFF_P3 OFF_P4 OFF_P5 PLAYER_SHOT 0 6.482081 8.199627 7.034929 8.004813 5.830139 5 1 6.482081 8.199627 7.03492...
I recently caught Andrew Ng's 2021 talk on MLOps (MLOps: From Model-centric to Data-centric AI). At 26:40, he talks about calculating the effectiveness of cleaning your data (training examples) vs. collecting new examples. Apparently this is possible to calculate using Shannon Information. As an example, Ng notes that ...
Suppose I run an OLS regression as follows: Y = γ1 + γ2*X + γ3*(D*X) where D is a dummy variable. I excluded one dummy variable, so the effect is in γ2 and γ3 must be interpreted as the difference in effects between the included and the excluded dummy variable. Let's suppose the regression results are as follows: Y = ...
Research problem: Comparison of means (T-test, ANOVA) between 90 countries. Analytical problem: I have a large data set of over 120 000 observations. Each observation was measures by 8 variables: 2 nominal and 6 continous. Nominal variables are complete. Continious variables have missing data. I wanted to use single me...
I am running Ordinal Logistic Regression on a data with Ordered Dependent Variables (1 to 5). In my multiple linear regression analysis, I have standardise my dataset with scale() before running lm command. Should I do so for Ordinal Logistic Regression or it is not relevant?
When do Lasso and OLS give the same solution when applied independently from each other? But more importantly for me: If you first run Lasso and say X* are the features that Lasso has not shrunk to zero (so the features that Lasso has kept in the model with a non-zero coefficient in front of it). And then run OLS with ...
Say I'm in a classic linear regression situation: $Y = \beta_0X_0 + \beta_1X_1 + \dots + \beta_NX_N + \epsilon$ And that I know that my explanatory variables $X$ only explain some part of my regressand $Y$, what sort of metrics could I use to estimate the proportion of this unexplained part? I know about the fraction o...
I would like to perform a joint subclassification of some data on the propensity and prognostic scores as described in this paper "On the joint use of propensity and prognostic scores in estimation of the average treatment effect on the treated: a simulation study": 3.4.3 Subclassification on a propensity and prognost...
I am trying to implement my own encoder/decoder architecture in Pytorch. Specifically I am trying to use ResNet-18, both for encoding and decoding part. While by following the paper I believe I managed to implement the encoder bit I struggle to understand how the decoder would be implemented. The understanding I have i...
I'm using Facebook Prophet as a forecasting model and I want to use weather data (temp for example) as additional regressor (exogenous data or external variable). Additional regressors are integrated in a linear way into Prophet and need future values at forecast time. My question is: If I know that I can have pretty g...
I am trying to analyse a data set which has numbers of behaviours performed under 2 different predictor variables. The numbers of behaviours were standardised to rates per minute, since the observation sample periods varied in duration. I originally analysed the data using a linear mixed effects model (lmer), but since...
There was a recent "hot take" tweet by Andrej Karpathy (without any comment or clarification from the author): real-world data distribution is ~N(0,1) good dataset is ~U(-2,2) It provoked many reactions, but it also made me wonder under what conditions can we get an unbiased estimate given a biased sample? Let's make...
When applying the u-test we can have the null hypotheses $a<b$, $a=b$, and $a>b$ which leads to the alternative hypotheses $a\geq b$, $a\neq b$, and $a \leq b$, respectively (at least using scipy's mannwhitneyu function). If I want to conclude that $a<b$, I was thinking it was possible to run the test with both null hy...
I came across the following in explaining the log-linear regression model. Given the model $\log(Y_i) = β_0 + β_1X_i + u_i$ The expected value of $\log(Y)$ given $X$ is $β_0 + β_1X$. So far, so good. But then it says: 'When $X$ is $X+ΔX$, the expected value is given by $\log(Y+ΔY)$'. I don't see why this is necessari...
When one applies interim sample size reestimation based on nuisance parameter estimates (observe fraction of initial sample size, estimate nuisance parameter(s) based on the obtained data, reestimate sample size based on interim estimates of nuisance parameter(s), and observe remainder of patients (if necessary), do fi...
I have a Difference in Differences (DiD) model with a special kind of measurement error. The true $2\times2$ DiD model is given by: $$ y_{it} = \beta_0 T_i + \beta_1 P_t + \delta P_t \times T_i + x^*_{it} + \varepsilon_{it} $$ where $i = 1, 2, \dots , n$ is the index for individuals in my sample and $t = 1, 2, \dots, T...
I am relatively new to statistics and struggle with the normality assumption (where and how it needs to be assessed). I understand that parametric tests need the data to be normally distributed. The literature seems to be conflicting information on what variables need to be checked. Could someone suggest a normality-te...
I am performing chi-square goodness-of-fit test on a predicted and observed count data. Some observed counts are very low or zero. I have a two part question, - Does r's chisq.test function exclude columns from g-o-f test based on observed count? - If it does not, what criteria should I use to exclude low count columns...
I would like to show that $\frac{1-\exp(-\lambda\tau)}{\lambda}$ is a decreasing function of $\lambda$ where $\lambda,\tau>0$. Motivation: Suppose we have iid continuous survival time random variables $T_i\sim\mathsf{exp}(\lambda)$. The restricted mean survival time (RMST), defined as the mean survival time of all subj...
I'm currently working on a speech emotion recognition task, and I was curious to know whether my dataset is imbalanced or not. The value counts for each class are roughly uniform except for one class whose number of occurrences is about a third of the mode. But when I get the duration for each sound file and compute th...
I'm trying to derive a test for testing if p regression lines have a common point of intersection. Let the p regression lines intersect at a point $(x_0,y_0)$. We are to test: $H_0: a_1+b_1*x_0 = a_2+b_2*x_0=...=a_p+b_p*x_0$ against $H_1:$not $H_0$. Cond. SS due to error= Min (under $H_0)$ wrt $a_i, b_i \forall i \su...