instruction
stringlengths
9
38.7k
I have a problem similar to the following: Suppose that for six days I ask my friend bob to make a prediction on the average temperature of the following day. Then I ask my friend Alice for the following six days the same. So I end up with a dataset like this: Day friend prediction error day 1 bob b1 e1 day 2...
I know there is already some information on the subject but I find different variantes, do not quite understand the differences and their effects and want to make sure I do not make a mistake. I have data a RCT with a measurement repetition and would like to analyze this correctly in R: Is the analysis in wideformat a ...
Context of problem: In some situations researchers face high-dimensional problems with $p > n$, where $p$ is the number of covariates to be considered in a regression model and $n$ is the sample size. These problems may arise when many interactions, polynomial terms or splines have to be considered. When the aim is inf...
I performed 8 ANOVAs on the same subjects with different dependent variables. We tested the significance of each term & interactions using F-tests (ANOVA). A reviewer asks us if we have applied corrections for multiple comparison.. But it's not usual practice to adjust p values of the main effects and interactions... I...
I am conducting log-likelihood-ratio tests to examine the goodness of fit of two competing logistic regression models. The test is the traditional log-likelihood-ratio test, in which I compare the ratio of the two log-likelihoods to identify the "best" model between two nested models. I have used 10% as a cutoff (pre-...
My dataset contains two variables: y - a binary indicator of an event. score - the log odds ratio obtained from a logistic regression. I need to cluster the the score variable to produce 20 clusters, each of which will have a specified average score and event rate. One crucial restriction is that the event rate and sco...
I need mean and standard deviation of change from baseline to follow-up for inclusion in a meta-analysis. Some papers present the findings as baseline mean, SD and follow-up mean, SD for both groups. How do I calculate this? I also have sample size information. Treatment_baseline Treatment_followup Treatment_change ...
I am wondering how to analyze differences between subspecies. I want to see if body mass differs between 3 subspecies of rodent and if sex and reproductive status are also different. We then want to see if body mass changes between season or is affected by group size. We decided to use a GLMM model (using the glmmTMB p...
I have read that mixed effects models are well equipped to handle missing (at random) response data if estimated using likelihood methods. However, I am yet to find a clear (not overly technical) explanation of how this is achieved. Models without random effects (e.g. general linear models) can be fit using maximum li...
Is it possible to get a situation where, in a multiple-testing scenario, for some individual tests, the Benjamini&Yukatieli (2001)-correction ends up being more stringent than Bonferroni? I.e. that for some tests, $$ p_{\text{Bonferroni}} < p_{BY} $$ I seem to have encountered this with data and while I have no concept...
I have been asked to perform the randomisation for a small RCT using simple randomisation. There are 100 individuals to randomise to one of two arms (control vs intervention). The researchers have not specified any stratifying variables, so the options are limited on being able to use something like minimization. The r...
I am trying to plot a loglog graph but use the non-log labels. So instead of showing in x axis 1 (log10(10), it shows 10. I found the following solution. But that's too much work in my opinion. Is there anything equivalent to the Matlab function "loglog"? plot(log10(x),log10(y),xaxt = "n") axis(1,at = c(log10(0.5), lo...
I have $N$ sensors, where $N$ is typically of order 10. An object comes in, and each sensor activates. Each sensor measures up to $M$ properties of a given object (the same set of possible measurements for all sensors) where $M$ is around 3. Some give back no measurements on a particular object, while others give all $...
I am having a clinical trial that is devised in such a way that the treatment is considered effective by physicians, if its "restricted mean survival time" is atleast 5 units more than placebo. So in such case, if we formulate a superiority trail hypothesis as in, H0:mu1=mu2 vs H1:mu1>mu2, and we get a statistically si...
I'm working on a Anomaly Detection problem with streaming data, where i use Robust Random Cut Forest (RRCF). I have 295.000+ rows to start with and there is more data coming in. The problem is when encoding categorical features. There are several columns with 100's of unique values, but there is also a column which cur...
I am working on causal discovery in time series. I know the difference between instantaneous and lagged causal effect based their graphical definition. Specifically, if we are studying causal relationship between two time series variables $\textbf{x}=\{x_t,x_{t+1},...\}$ and $\textbf{y}=\{y_t,y_{t+1},...\}$. We say $\t...
Suppose $x_1 ... x_n$ are the order statistics of an iid sample from a continuous distribution $F(x)$. Show that $P(X_k \le x) = P\{N(x) \ge k\}$ where $N(x)$, the number of sample values less than x, is binomial with parameters $n$ and probability $p = F(x)$. Given the statement looks (i believe it to be) like this: $...
I am currently working with Covid-19 key figures such as registered cases of infection and death. My data is a panel dataset across time and municipalities in Denmark, the set consists of several socioeconomic indicators and indices that represent the magnitude of government response to Covid-19. I want to model how th...
I am using Structural Equation Modeling (SEM) in R with the lavaan package. I would like to compare four groups of children regarding how strongly their processing speed (PS) and their working memory (WM) correlate with their reasoning skills (Gf). For this, I need to compare the latent factor covariances (PS ~~ Gf, WM...
An instrument used for measurements has a known measurement imprecision of $CV = 10 \%$. Thus, if the variable to be measured has a true value $x_{true}$, the range of possible measured values will be given by: $x_{measured} \sim \mathcal{N}(x_{true},\,(0.1\cdot x_{true})^2)$ Say we have two measurements, $x_{1_{measur...
I'm not sure if I'm asking this correctly, but I'll give it a shot: If I have two independent variables (A and B), both varying from 1 to 5, and have the same correlation with a dependent variable C, but A has a greater standard deviation than B. Would I expect A or B to have a larger coefficient if I do two regression...
Suppose that I have $30,000$ cases, and each case is assigned with a probability. Let's call these cases $a_1, a_2,.. a_{30000}$ and the assigned probabilities $P_1, P_2,.. P_{30000}$ ( the sum of these probabilities is equal to $1$). Among all these cases, I'm just interested in the probabilities of two cases ($A_5$ a...
I am working on a dataset based on different sites, where each site has several transects. However, the sampling effort is not the same for each site (8th or 6th order sampling strength), which poses a problem for my further statistical analysis. By doing some research, it seems that adopting a sampling approach across...
When using random sampling (bootstrap), I get 3500 estimates of R squared. Curious as to what causes the variation between these individual estimates as they've all been pulled from the same dataset. Just trying to expand my understanding, thanks!
I have a large data set where the number of unit is around 300,000 (given that the original data is in a panel setting, the number of observations is larger than 300,000). For the efficiency of running analysis (e.g. regressions), I want to reduce the sample size and play around with the sampled data set. While a rando...
From my understanding, using basis-spline feature expansion/transformation with fixed parameters (number and placement of knots, etc.), then feeding that into a linear/logistic regression is technically a GAM. If we call this a "baby GAM", then it seems like a "fully grown GAM" learns the smoothing functions and its pa...
I'm new to this community. I have problem in finding expected value and variance of R.V.s that are composed of other R.V.s following other distributions. Suppose $X \sim Pois(T^2)$ where $T \sim Exp(\lambda)$ $(\lambda>0)$. How can I calculate $E[X]$ and $\text{Var}(X)$? I assume it will be quite easy to find $\text{V...
Is there any method for choosing a combination of X and Y dimensions for a scatterplot, from a larger dataset that has been standardized to be centered at zero and have unit variance, that will maximize the spread of points ?
I am trying to understand the relationship between royalties received (independent variable) and health expenditures (dependent variable) for each municipality through a linear regression. My hypothesis is that the effect of the independent variable on the dependent is very low. The problem is that the data is not norm...
I've got an LSTM trained for time series forecasting and I've seen people online report their LSTMs accuracy in %s such as 85% accurate etc, how do I obtain a metric like this? so far I was just using MAE
I will explain by a hypothetical problem. Let's say I have pairs of [weight in morning, weight in night] from 10 people. Everyone weighs themselves multiple (random) times in morning (before noon) and night (after 6 pm). In order to group multiple weight recordings each day, [25,95] percentiles are used to extract two...
I have 4 distributions: A1, A2, B1, and B2. I would like to test whether there is a significant difference between median(A1)/median(A2) and median(B1)/median(B2). While I can calculate propagated errors for these ratios from the original four distributions, I'm not exactly sure how to run anything other than a t-test ...
Consider I have some optimization problem and an objective function $f(x, y, z)$. $f$ is defined using the sum of squared residuals, i.e. for some function $g$, we have $f(x, y, z) = \sum[g(x, y, z) - g_{experimental}]_i^2$ for all i experimental observations. From previous reading I understand that if we are able to e...
I have read and watched several tutorials about MICE. My confusion is about step 1: creating several copies of the original dataset and imputing different values in each copy. In some tutorials, I have seen random subsamples of the original datasets instead of multiple copies of the whole dataset. I am not sure if thes...
I am aware that Random Forests aren’t typically affected by collinearity issues, but I am trying to reduce how many variables I am utilising in my RF model. There are variables that are obviously correlated such as GPS coordinates (lat,long) and area variables such as city, state, region. I was thinking surely any usef...
There is the formula from wiki, $x_i^T$ is the i-th row of $X$ $$\color{blue}{S(b)=\sum^{n}_{i=1}(y_i-x_i^Tb)^2=(Y-Xb)^T(Y-Xb)}$$ To find the least squared error $\hat{b}$ we rewrite the formula as $$\hat{b}:=argmin_{b\in\mathbb{R}^p}\| Y-Xb\|^2$$ All of above formulation I could understand, but I encounter a tutorial ...
The text I'm reading mentions the following: Let us consider a scalar parameter case. The likelihood-based approximate 95% cI is $$\left\{\theta,2\log\frac{L(\hat{\theta})}{L(\theta)} \le3.84 \right\}$$ where the 3.84 is derived from the chi-square distribution. And the Wald interval is $$\hat{\theta} \pm 1.96se(\hat{...
I'm currently using the predict_rolling function in R from the tsDyn package in R. I'm having some difficulty understanding how to manipulate the function to do what I want when it comes to creating a rolling forecast for a time series I have. I'm not looking for anyone to troubleshoot my code but more to get a better ...
The difference between the value of a statistical estimate and its parameter's value is almost never exactly $0$. For example, $r - \rho$, for a unique sample $r$, is likely to be some non-zero magnitude with positive or negative sign. This would be true even in the (purely theoretical) case of unbiased and error-free ...
As the title says, is kernel regression a parametric or non-parametric method, and how can this be motivated/explained?
I am comparing student exam score and happiness. For example, a student with a 98 on an exam rated their happiness a '9' on a scale of 1-10, and 200 student did the same thing. I am trying to find the p-value to see if these are correlated or not. Should I be using p-value? If so, how can I find it? If I should be usin...
I'm running an ESEM in MPLUS and I'm wondering if there's a way to run independent regression models with each factors as predictors so rather than including all factors simultaneously in the model as below: 1ST VERSION 'ANALYSIS: ESTIMATOR=MLR; ROTATION=TARGET; Model: XS BY X1-X6 Y1-Y6~0 Z1-Z6~0(*1); YS BY Y1-Y6 X1-X6...
I've built a parametric survival model (survreg in R) to predict injury recovery duration using features such as age and treatments. I'm looking at trying model-based boosting using mboost with Weibull, loglog, or lognormal distribution (as described here). Can anyone recommend other alternatives? Has anyone tried neur...
The point estimates from the two approaches are the same, right? I plan to use exact Poisson regression for a study, since the events could be sparse after adjusting for a few covariates. Is there anything to be aware about exact Poisson regression? I have never implemented it before.
Google. "An observational study observes individuals and measures variables of interest but does not attempt to influence the responses" Question that made me have an argument with my professor and made me create this post: A quality control specialist compares the output from a machine with a new lubricant to the out ...
The Bayes classifier is always called the 'optimal' classifier. What does this actually mean? In particular does optimal mean the Bayes classifier will never make a mistake when predicting the label of some data. And if the Bayes classifier perfectly predicts all labels, does this mean it has perfectly estimated the pr...
I am working on friedman's supersmoother with python notebook: https://notebook.community/moreati/supersmoother/examples/Supersmoother. In this example, data is generated randomly: import numpy as np import matplotlib.pyplot as plt import seaborn; seaborn.set() from supersmoother import SuperSmoother, LinearSmoother d...
I have read an econometrics textbook on "converge in distribution" and found the following sentence. \begin{equation} Z_{N} \xrightarrow{d} Z\implies Z_{N} = {O_p}(1) \end{equation} That is, if a random variable $Z_n$ converges in distribution to $Z$, $Z_N$ is bounded in probability. The textbook states that this i...
I have a dataset with N=90,000 observations, where each observation is a respondent in a survey. Respondents vary across multiple countries (50) and years (8). Each respondent was only surveyed once, and respondents in each country were only surveyed in a given year. So, for example -- all respondents from Mexico (MEX)...
In section 4.1 of this paper, the authors talk about the PLR model: \begin{aligned} &Y=D \theta_{0}+g_{0}(X)+U, \quad E_{P}[U \mid X, D]=0 \\ &D=m_{0}(X)+V, \quad E_{P}[V \mid X]=0 \end{aligned} where the parameter of interest is the regression coefficient $\theta_0$. In equation (4.4), the authors provide the score f...
It seems that linearly independent is totally different from independent of random variable concept. Non-zero vectors Orthogonality must imply linearly independence. In Statistics, the relation of Orthogonality and independence depends on how one defines the inner product. It's meaningless to say one implies anothe...
I have the following data frame: dat <- structure(list(peptide_name = c("P2", "P2", "P2", "P2", "P2", "P2", "P4", "P4", "P4", "P4", "P4", "P4", "P1", "P1", "P1", "P1", "P1", "P1", "P3", "P3", "P3", "P3", "P3", "P3"), dose = c("0mM", "0.3mM", "1mM", "3mM", "10mM", "20mM", "0mM", "0.3mM", "1mM", "3mM", "10mM", "20mM"...
Looking at the logit price-response function taken from here. I take it that the output would be a probability, if C = 1?
Linear mixed-effects models are sensitive to scaling. Say that I have data on the performance of the students with multiple schools and classes nested in schools, i.e. in R lme4 formula notation something like performance ~ (1 + covariate | school) + (1 + covariate | school:class) So I assume random intercept and slop...
Currently doing a mediation analysis for the following research framework (A -> mediated by C-> E) With such a framework, there's an indirect effect of mediation and no direct effect. Can the mediation analysis still be done and are there any references to support this?
I have a series of averages. One of these however turns out to take too high a value due to a N. low equal to 1. Let me explain better by means of an example: I have to calculate the averages of the fishing days for each month for a sample n. of fishermen. Now in May it appears that only 1 fisherman went fishing. There...
As the title says, why can you not estimate Beta (coefficients) in logistic regression with least-squares? I read in a book that it is not possible and that we use maximum likelihood instead, but I have found no motivation for this anywhere.
For any non-negative integer $n$ and some finite $r$, we introduce the notation $n_k$ which indicates the number of $\{X_1, X_2, \cdots , X_n\}$ belonging to the $k$-th distribution type, for $k=1, 2, \cdots, r$. Here, it is assumed that $X_i$'s are independent, and that $E[X_i|S_n]$ converges to $E[X_i]$, for $i=1, 2,...
This is the situation: I have a binary outcome at two timepoints (T1 and T2); I'm using a random-effect logistic regression (I mean: just the random intercept, no random slopes) to estimate subject-specific effects. My question is: should I use cluster-robust standard errors? Since the time points are just two, her...
Suppose I create a synthetic dataset out of a real dataset using some epsilon. How can one verify that my synthetic dataset is atleast epsilon differential private?
I am applying a propensity score matching on R using the package Matchit. I read that to match the observations, you should take the covariates and balance them. However, only pre-treatment observations of such covariates must be selected for the matching, unless the covariates are not affected by the treatment. My pro...
I'm in charge of a scoring project and I'm getting average results with my binary classification model. A large number of reasons could explain this, but I think one of them is the heterogeneity of the population in my training dataset. I think that giving up on this global model for more specific sub-models could help...
Hazard rate, depending on the time scale, can be 0.1 or 100 or 1000. It's just a ratio. So why do people call it a "conditional probability"? Will I fail an exam, if I say that? So, is this that "for some time granularity" (time unit) the hazard rate will behave as a probability (bounded by 1), but for others - just as...
I did a simulation study for empirical power for normality tests Shapiro-Wilk test and Anderson-Darling test against alternative t(3) and Cauchy distribution with parameters 0 and 1, I know both are symmetric with long-tailed but I have this result (SW test is more powerful than AD test if the alternative is t(3)) and ...
I'd like to compare several distributions fitted to one dataset (of i.i.d. random variables) by AIC. Do there exist some specific rules of thumb for such a situation? It seems that most of such rules are either for regression models or some extra conditions are needed (e.g. models are nested and sample sizes are large,...
I have been following this methodology to implement a Bayesian A/B testing with Python on a new search engine feature that helps users to find products more accurately. To be more accurate, I split my users across three groups: control (A) disabled (B) enabled (C) Users are from different age range, gender, countries...
In short: if $Z$ is chi square with $n>1$ degrees of freedom and $f_Z$ its density function, and $X=f_Z(Z)$, what is the distribution of $X$ (in particular its mean and variance)? Explanation: I want to estimate a value $x$ and have candidate estimates $x_1,...,x_n$. For each candidate I can calculate a chi square scor...
I have a hierarchical mixed-effects model where observations i, from group S_2 (representing municipalities), are nested inside group S_1 (representing states), which in turn are nested inside N (representing countries). Here is the notation I used to describe this model: I based this notation on some references I fou...
I came across supplemental methods of a paper estimating the mean ($R$) and dispersion ($k$) of a negative binomial distribution that stated: Page 8: "Given estimates of the mean ($\hat{R}$) and proportion of zeros ($\hat{p_0}$) of a negative binomial distribution, the parameter $k$ can be estimated by solving the equ...
so, I am running a "Field" experiment, meaning, people in a real life situation are subject to certain treatment, and I am trying to measure the effect of said treatment. In this case its an online donation campaign, so donations. I have two mailing lists, approx 2000 people in each arm. as things are advancing I am ge...
I'm working on a time series forecasting model using VAR (Vector Autoregression). I have 6 features, out of which 2 features are not stationary. If I apply first-order differencing on those features, they are stationary. Should I apply differencing on entire dataset or should I apply on only those 2 features?
Sorry for this very basic question. I've trawled through previous pages and cannot quite find a case that corresponds to our situation. 320 individuals rated two types of films. The rating was provided on a 1-11 scale.There are many films of each type. In short the DV is a continuous variable. 20 individuals have a par...
I am trying to find a non-parametric two-way ANOVA test. My data can not be normalized I have tried everything. Many people say that Kruskal-Wallis is equivalent to a two-way ANOVA, except when I code it in R nothing works. kruskal.test(Variable 1 ~ Variable 2*Variable3, data=data) I have also tried "+" and ":" instea...
I would like to run a multiple linear regression between my protein of interest (continuous) and a separate protein (continuous). I would like to adjust for a covariate/confounder which has three levels (k=3), which is physician's diagnosis (control, mild cognitive impairment, Alzheimer's disease). From what I understa...
Say we have a random variable $$ X = A_0 A_1 + A_0 A_2 + A_1 A_2, $$ which consists of normally distributed independent random variables $A_0, A_1, A_2 \sim \mathcal{N}(0,1)$ with probability density function (PDF) $$ f_{A_i}(x) = \frac{1}{\sqrt{2 \pi}} e^{-\frac{x^2}{2}} . $$ How do I derive the PDF of $X$ ? So ...
Suppose a binormal population $\{X, Y\}$ with means $\mathbf{\mu} = \{\mu_1,\mu_2\} \ne \{0,0\}$ and covariance $\Sigma= \sigma^2\begin{bmatrix}1 & \rho\\ \rho &1 \end{bmatrix}$. Let $S^2$ be an estimator of $\sigma^2$ with $f$ degrees of freedom. It is known that the variates $\{X/S, Y/S\}$ follows a bivariate non-cen...
I'm having a hard time parsing the logic behind the formulas in the 1-way ANOVA. I'll first establish what I understand so far which will lead into my question. The objective of a 1-way ANOVA is to test the null hypothesis that the population means for all conditions are the same: $$H_0: \mu_1 = \mu_2 = ... = \mu_k$$ ...
I am doing a NLP project, I have about 500 lines of data and my goal is to have a binary classification model, if 1, then the input text is talking about a subject and if 0, the input text is not talking about this subject. Because of the small amount of data and the fact that I am new to NLP, I am using traditional ma...
Moran's I is a statistic used to measure spatial autocorrelation. For a set of $N$ spatial units where we get measurements $\mathbf{x} = (x_1, x_2, \cdots, x_N)^T$, and a weight matrix between the spatial units $W =[W_{i,j}]_{i,j=1}^{N}$, Moran's I is defined as \begin{align} I &= \frac{N}{w} \frac {\sum_i \sum_j W_{ij...
I've have read that cnn have neuron per pixel but also read that it is not true. so what is the actual answer? and what I know is cnn tries to adjust the weight matrix which is also a kernel matrix, i might have been wrong about this so don't judge me, then how can we have neuron per pixel? if we have neuron per pixel ...
I have seen multiple resources on the web says that CNN is or is not shift invariant. I do think that CNN is shift invariant as the convolution kernel will scan the image to detect the features that it matches, however this paper shows empirical result that this is not the case. This answer says that CNN is locally shi...
Say we have a confounder $U$ between $X$ and $Y$, i.e. graphically, $U\rightarrow X$ and $U \rightarrow Y$, $X$ and $Y$ are not directly connected. According to the d-seperation rule, I know conditioning on $U$ will break the correlation between $X$ and $Y$, i.e. $X\perp Y|U$. However, what I want to ask is that, if we...
Assume that $X_n\sim Beta(n,n)$. Use the Delta method to show that $$ 2\sqrt{2n}(X_n-\frac{1}{2})\to^d N(0,1) $$ Since $X_n=\frac{Y_n}{Y_n+Z_n}$ where $Y_n$ and $Z_n$ are indepedndent Gamma$(n,1)$ random variables [Why?]. Each of $Y_n$ and $Z_n$ can be written as a sum of exponenetial random variables. From multivariat...
Multiple Imputation (MI) for estimating desired a desired statistic but with missing data Following ^Shafer (page 4), and ^Austin et al. (section "Analyses in the M imputed data sets"), which give a primer on Rubin's book for MI. Let $Y$ be our data, and break it into $Y_{obs}$ (observed/existing), $Y_{mis}$ (missing ...
Let $X_1,\dots, X_n\sim$iid Poisson with mean $\lambda$, and consider estimating $$ g(\lambda)=P_{\lambda}(X_i=1)=\lambda e^{-\lambda} $$ One natural estimator might be the proportion of ones in the sample: $$ \hat{p}_n=\frac{1}{n}\#\{i\le n: X_i=1\}=\frac{1}{n}\sum_{i=1}^nI[X_i=1] $$ Another choice would be the maximu...
I wanted to learn about encoder-decoder LSTM and after some digging around I get that the first LSTM layer in an encoder-decoder-LSTM outputs its hidden state and then the next LSTM layer uses that hidden state as its initial hidden state, I get this bit but what I don't understand is that what's the difference between...
I have a planned study to conduct in few weeks. As it is my first time to deal with a 'count' dependent variable, I have been searching on this website what statistics tools I should use. I have two independent variables - both binary (0 or 1). The main dependent variable is a count variable that range from 0 to 3. To ...
I have collected some data and done some processing until the question I'm faced with is - "is the data matrix $X$ a symmetric matrix?". Note that elements of $X$ represents event counts. Eyeballing the matrix $X - X^{\text{T}}$ suggests this may be true, but unsurprisingly the largest residuals just correlate with th...
I read up quite a number of resources and I'm still unsure how/if I am applying the lmer correctly for my data. I'm looking for between-group differences in response rates (controlling for baseline values) for 4 incentive groups (there is a within-subjects factor and a between-subjects factor, and it is the group*round...
I am in the process of building a strong understanding of what I believe is the conceptual basis of linear regression. One thing that I am struggling with is what is the relationship between regression slope and aspects like variation of the variables, p-value and the overall utility of a given model. As I intuitively ...
I am trying to understand this picture from Statquest in the light of the Wikipedia statement that Likelihood describes the joint probability of the observed data as a function of the parameters of the chosen statistical model. Am I right thinking "joint probability" does not apply here since we only have 1 dimensio...
I am working on a dataset composed of different sites, where several replications were carried out on each site to measure abundance and biomass of observed species. Each site has its own level of protection. The idea would be to carry out a multivariate analysis to show the possible effect of protection levels on the ...
This is my first try in making a reproducible sample, so I hope it goes well and is comprehensive. Based on a (German) survey among young people of Generation Z, I ask: Does volunteering have a positive impact on the perception of young people's life satisfaction? When asked about possible confounders, I suggest that m...
I'm trying to understanding the standard deviation of the sampling distribution from the Central Limit Theorem. $\bar{X}\rightarrow (\mu ,\frac{\sigma^{2} }{n})$ I can understand from a mathematical point of view that when n increases, it will reduce the standard deviation of the sampling distribution, but I can't ex...
I have a dataset (10K points) that was sampled from distribution A (the pdf of distribution A is known). I want to select a subset of the data (1k points), so the selected points have distribution B (the pdf of B is also known). How would I do that?
I have a dataset of flight information such as carrier, data and hour of flight, I do not have weather on this dataset yet, but I am for an external source to add to it. The dataset contains info of a year, and about 6mi different flights. I want to predict the expected delay in minutes of a given flight. The delay col...
For a renewal process, we know that the inter-arrivals are independent but not exponentially distributed, as opposed to the Poisson process for which the inter-arrivals are exponential. We also know that the counting process $N_t$ that follows a Poisson process has stationary independent increments. I wonder if this pr...
I'm trying to use custom-defined contrasts. They are sort of a combination of traditional dummy coding and the last contrast produced by reversed Helmert coding. In short, I want to compare each of the levels A, B, C with Contr (similar to dummy coding where Contr would be the reference category. Then I want a contrast...
I have a large data set of houses; per house a single string describing the interior of the house, and a separate score from 1 to 10 describing how well the house is actually renovated. I would like to identify the key words in each description that best predict the renovation score of a house. Are there any NLP modell...
I'm trying to create a reputation score for sneakers using positive and negative sentiments of twitter on these sneakers (something like score = p+n). The problem is that the mean of positive != mean of negative sentiments so I don't know how to deal with it. thanks a lot