instruction
stringlengths
9
38.7k
We can take the variance series and apply ARIMA model on it to have forecasting of volatility. "ARIMA modelling is not the best in this circumstance because it models the mean rather than the variance. Therefore ARCH modelling is preferable" What does this mean?
It is written in online lecture notes that series need to be stationary, and usually the RETURNS series are stationary. But my lecture notes say that the series needs to have heteroscedasticity in order to apply GARCH on it. So how can it be stationary as well as heteroscedastic? I am so confused!
It's been a while since I dealt with statistics, I guess I need to brush upon my knowledge about it but as I was reading an article for my class I had a hard time understanding the author's main point intuitively. Below is an excerpt from the article's abstract. The part where I had problem with is the meaning of a fir...
Probability of winning a game of soccer, given 1 of the 10 players is Messi, is = 0.8. Probability of winning the same game, given 1 of the 10 players is Ronaldo is = 0.6. What is the probability of winning if both Ronaldo and Messi are in the team? So, using notations - Given, P(Win | Messi playing) = 0.8 and P(Win |...
We keep on getting questions here about selecting ARIMA model orders based on ACF/PACF plots. This is the older methodology proposed by Box and Jenkins. More modern tools like the auto.arima() function in the forecast package for R or ARIMA() in the fable package instead use a grid search over different orders and sele...
Can someone help me understand in very basic terms what the quantile plot to the right shows? I have read the description in the DHARMA vignette but am unable to get my head around it. Does the cluster of points around 0 suggest zero-inflation?
Good morning, I have two groups of participants, and the same variable, measured in three different moments (categorical data- non-parametric test, between groups). I would like to know which test should I use, to know the significant difference in this variable. Thank you
I have a data set with a number of observations. Based on the results of some preliminary analysis, I have calculated a score for each observation that denotes how "important" each observation is. I want to then train a classifier but I want the classifier to "focus" more on the observations which are more "important",...
I am currently working on predicting the customer revenue in next 3,6 or 9 months using the below two methods a) Buy Till you die probabilistic models b) Tweedie regression and other regression techniques Currently, I have data from 2017-01-01 to 2022-05-30 of 5900 customers. However, out of this 5900 customers, only 1...
My question is simple, but I could not find any references for this particular case. When we have a random vector, we usually use $\boldsymbol{X}$ to denote the random vector and $\boldsymbol{x}$ to denote an observation of this random vector. Now, when we use matrices, the usual notation for a matrix is a non-bold upp...
I am trying to predict customers as a function of spend, company, product type and market demand. The purpose of this modelling is for understanding the causal impact of IVs and for accurate predictions. I initially tried to fit a negative binomial regression. When I used the Dharma package to test the goodness of fit,...
I've got a problem with some count data of mine. I am using a cohen's D/ Hedges G to compare the effect size between two different treatment groups in my experiment, and then repeating that process for a different strain of fly with the same treatment, and comparing effect sizes for the two different groups to see if e...
In the book Generalized Linear Models with Examples in R - Dunn and Smyth, in Chapter 6.8, it is recommended to use the Pearson estimator of the dispersion - "This makes the Pearson estimator the most robust estimator, in the sense it relies on fewest assumptions. For this reason the glm() function in R uses the Pearso...
I am trying to compute PCR manually in R where I try to compute the principal components for the train data then compute the coefficients from these data and use it to predict the test data. The problem I'm facing is that the size of the intercept will have the same size as the training data so I am confused as to how ...
I have been tasked with creating a machine learning model that will be used to identify what makes a customer successful such that we can look for non-existing customers that have similar characteristics to target. What makes a site “successful” will be the revenue generated from them purchasing our product. I am plann...
I have a dependency matrix as follows: Y X1 X2 X3 X4 X5 Y 154.52 154.52 363.28 86.04 98.42 105.21 X1 154.52 154.52 363.28 86.04 98.42 105.21 X2 363.28 363.28 598.73 276.12 287.94 291.42 X3 86.04 86.04 276.12 131.01 102.61 111.25 X4 98.42 98.42 287.94 102.61 164.29 109.33 X5 105.21 105...
I am trying to fit a multilevel longitudinal model and I am not sure how to conceptualize the structure and how to specify it with lme4 notation. My outcome of interest is the child's internalized symptoms scores, measured 12 times across childhood, by different informants at each wave of data collection. Not every inf...
I've seen many many many different questions on how to extract Leverage and Cook's distance for Lmers. I'm able to do that with different packages and functions by now, but how should I interpret them ? I've seen many different answers to that ... A more general question should be: What's the best method to identify ou...
kruskal.test(IRAmax.P ~ group, data = my_data) Kruskal-Wallis rank sum test data: IRAmax.P by group Kruskal-Wallis chi-squared = 20.745, df = 3, p-value = 0.0001189 +------------------------+ | group | Obs | Rank Sum | |-------+-----+----------| | 1 | 3 | 148.00 | | 2 | 36 | 1133.00 | | ...
I would like to regress $Y_t$ on $X_t$. I have concluded that the series are each $I(1)$ and not cointegrated. I am curious as to if I can still use an ARDL model to capture any possible long-term effects. Concretely, is there any reason that the model $$ \Delta Y_t = \alpha_0 + \alpha_1 \Delta Y_{t-1} + \beta_0 \Delta...
I have a dataset that has a categorical factor and numerical response variables as proportions. A simplified deput() included at the end of the body. But, here is what the data looks like: > head(df) ID treatment day alive prop 1 1 A 4 1 1 2 2 A 4 1 1 3 3 A 4 1 1 ...
My dataset contains data like the total amount of deaths in different countries. Then I have as columns indicating smaller parts of the total amount specifying the cause of the death. I have another column with a continuous variable indicating the wealth of the nation. For example: Nation Total By_car_incident Suic...
Here is my setup: I have B=100 pairs of samples (a_i1, a_i2) i=1..B Unfortunately, unlike in classical paired samples, for both groups k=1..2: (a_ik) i=1..B are correlated samples, supposedly from N(mu_k, sigma_k) I would like to know how I could rigorously test for differences between mu_1 and mu_2. In particular, I...
I am using the StandardScaler of Scikit-learn to scale my data. When plotting the data and comparing scaled with unscaled I get different results in how the plots look like. I expect that the plot of the unscaled data looks like that one of the scaled one but instead they look really different. Why is that the case? I ...
I need some help with fitting an ARMA-GARCH model. I'm analyzing a daily time series. I don't understand how the order of the GARCH impacts ACF or PACF plots. I mean: what is the difference I should notice in the ACF plot when I'm using GARCH(1,1)+ARMA(1,1) instead of GARCH(2,1)+ARMA(1,1)? What 'part' of the ACF plot s...
This is a very general question, but I couldn't find anything helpful via Google, or better, I didn't know how to formulate my question so that the right results turn up. Is there a way or an algorithm I can follow or a set of questions I can answer to find the best model / method for a given problem? Like e.g.: What ...
Say I have a random variable X, X~Uni(0,1). And for the parameters 0 < a < b < 1: Z = {a < x < 1} , Y = {0 < x < b} What does it mean for those two variables to be independent? I know that independence occures only when P(A and B) = P(A) * P(B), can this statement be shown here? If I for example want to calculate P(Y|Z...
Before now, I have typically used Kish's effective sample size estimator to estimate the precision in survey data with sample weights. I understand bootstrapping is another approach for estimating effective sample size, and I would like to compare the performance of the two in my data, especially for rare-events data. ...
I am doing a study project in data science. I have a number of experimental curves like the one shown below. I assume the curve can be described with an equation like this: So I need to find constants qi (initial value), b and Di. My first question: is there a library in Python or R (preferably Python) to find the co...
I've encountered the above problem and struggle to find any info about online. I'm messing around with a large dataset that I unfortunately cannot share. It has ~600 features of which not all are informative and there is some collinearity. There is upward of 150k samples with imbalanced, right-censored survival data wh...
Is there a name in the literature for the following experimental design? Suppose we have $i=1,...,n$ individuals in our sample. Denote their baseline covariates, binary treatment assignment indicator, and response as $(X_i,W_i,Y_i)$. Overall, we are interested in the Average Treatment Effect (ATE) and possibly also con...
Outcome #1 Outcome #2 Source #1 a b Source #2 c d Let p1 denote proportion of outcome #1 for source #1, p2 denote proportion of outcome #1 for source #2. I'm trying to calculate P(odds(p1)>odds(p2)) with the Fisher's exact test. Is this equivalent with doing a one-side Fisher's exact test with: H0 - odds...
Consider a stationary non-linear AR(1) model $$x_t = |\theta x_{t-1}|+w_t,$$ where $w_t$ is i.i.d. standard normal. Given a sample $\{x_0, \cdots, x_n\}$, I want to find an estimate of $\theta$ and using CLT to derive its confidence interval. Now I think there are two methods to derive the estimator. We can use moment...
I have a dataset about corn farmers in a certain region with informations like farm size, mean cost per planted hectare, number of employees, etc. Furthermore I also have from another source an estimated value for total corn area in this region. Suppose that total estimated value is 300,000 acres and I have a sample of...
I have two questions about the mice package. The first, is the mincor in the quickpred argument. When on the cran it says it is the absolute minimum correlation compared. Does this mean that if I set mincor to zero even very weak correlations will be accepted? If I understand correctly, for a good result I should put ...
autoML is a very convenient model for beginner to explore on Machine Learning and Deep Learning. The process itself rapidly growing and many ML algorithm can be found in autoML, but hardly to be analyses and interpret, the algorithm itself automates the data exploration, feature engineering and assess the best model. I...
I am running an ancova, dv= "usc", between var=group, covariate = gender. I am not sure if i should use * or + in my formula. also, if i wanted to add another covariate (say education), how would i do it. my goal is to show that usc is different between groups when controlling for gender as well (and also add education...
I've run a multilevel logistic regression in R, and I want to calculate the Odds Ratios for the predictors in the model. R automatically gives the unstandardized regression coefficients for a multilevel log regression, do I need to first standardize the predictors before calculating Odds ratio? In simple words: is Odds...
I was wondering if someone could clearly explain the extent of transfer learning, fine-tuning, and domain adaptation. From my understanding, both fine-tuning and domain adaptation are subcategories of transfer learning. I am not very clear about the difference between domain adaptation and fine-tuning.
According to machine learning mastery. We should use sklearn.feature_selection.chi2 or sklearn.feature_selection.mutual_info_classif for X nominal and y nominal. However, both chi2 and mutual_info_classif do not accept X nominal. It wants a X numeric. I am confused whether to encoded these X nominal with OrdinalEncoder...
Consider the loss function $L(A_1, ω_1, ..., A_d, ω_d)=\displaystyle\sum_{j=1} ^{m}(Y_j-\displaystyle\sum_{k=1} ^{d}A_k\sin(ω_kt_j))^2$ used to fit a time series to a sum of simple oscillations with frequencies $ω_j$ and amplitudes $A_j$. $L$ has a local minimizer with distinct frequencies. How can I find the number of...
I am trying to scale the data prior to clustering analysis, and got a question. The goal of scaling at this point is to unify(eliminate) the unit of all input variables so that make influence of each variable to results same. Thus, I guess I have to apply same scaling measure to all variables, and I am considering betw...
I would like to understand something that is bothering me. Suppose you have a dataset and a probabilistic model that depends on few parameters $\alpha, \beta $ etc, and suppose that you find an estimate of these parameters through an MCMC sampler. Such sampler will find the values of the parameters with the highest pr...
I want to use an Adaptive Lasso instead of a standard Lasso because of the Oracle properties of the former. However, I cannot seem to find an option to implement an Adaptive Lasso for a logistic regression in Python. For example, the package asgl lets one implement penalties such as an Adaptive Lasso, however, it only ...
I have a pooled cross-section dataset. Suppose that, for every year from 2010 to 2020, I observe the individuals that apply for a bank loan. Some individuals apply more than one time, i.e. more than one year (e.g. the first time to buy a house, the second time to buy a PC). So, sometimes, the same individual appears in...
I conducted an epxeriment with: 32 subjects 1 condition (Difficulty) with 4 levels (A, B, C, D) And I collected accuracy rates for each trial (1 = correct, 0 = wrong). I would like to analyze these data, but I'm aware that a classical ANOVA is not suitable, for example following this paper. Therefore, I tried to use ...
I am currently try to analyse differences in the number of individuals of certain insect species (factor: 2 levels - HA, AP) that reached a particular life-stage from the egg stage (e.g. 1st instar) at a range of different temperatures (factor: 5 levels - 20, 23, 26, 29, 32 degrees Celsius). I have data on the numbers ...
I am trying to use DAGs to think more carefully about my regression models. I have a question about the "backdoor criterion", as usually seen in the DAG below (we are interested in the effect of $X$ on $Y$). One way to deal with confounding in this case is to include $Z$ in the regression, i.e.~control for it. But if $...
consider the following R code rm(list = ls()) set.seed(1234) n = 1000 f = (n-1)/n data = local({ x1 = rnorm(n) x2 = x1 + rnorm(n) x3 = x2 - rnorm(n) x4 = x3 + rnorm(n) x5 = rnorm(n) x6 = x5 + x1 + rnorm(n) cbind(x1, x2, x3, x4, x5, x6) }) Y = data[,1:2] X = data[,3:6] m1 = lm(Y ~ X - 1) a1 = m1$coefficie...
I am conducting a study with the following design: Independent variable 1 (IV1): categorical variable with four levels Independent variable 2 (IV2): continuous variable - mean scores on 9 questions, each of which is measured on a range from 1 to 5 Dependent variable (DV): variable range 1 to 7 Firstly, my DV seems to...
I am trying to make a simulation of bacterium splits is exponentially distributed in R. I am assuming that initially, bacterias have an exponential distribution. Let's say: N_{0} = 1 N_{1} = 2^r with r ~ exp(\lambda) N_{2} = N_{1} * 2^r ... N_{t} = N_{t-1} *...* N_{1} * 2^r So, what I would like to do is a simulation...
I'm looking for a measure of how clustered (or converse empty) data is over a range (e.g. [0,1] in this case). The first obvious metric to use would be entropy (or rather an estimator for continuous distributions), however this weights the density of points too much. The second obvious route would be to look at how 'em...
I was looking for the difference between spline regression and piecewise regression. Can someone please explain it to me? Also, if someone can provide me good reference on these 2 topics, with implementation in either R or Python, that would be very helpful.
I think my most incisive retort thus far as to how Ranked Choice Voting is a bad idea, is: Why is the second vote of the loser so much more important than that of the winners’? If I hypothetically win as a third party candidate by first past the post rules, I would want to have my secondary-supporters’ winning votes fo...
At $t = 1$, I have $y_1 = 4$ with the corresponding standard deviation $0.08$, and at $t = 3$, I have $y_2 = 9$ with the standard deviation $0.09$. I want to obtain the value of $y$ at $t = 8$. We assume linear extrapolation works: one obtains first the slope of the line and then construct it and read off the $y$ value...
(positions, velocities, accelerations) = ($q$, $\dot{q}$, $\ddot{q}$) are generalized coordinates of a Lagrangian system I'm trying to learn the Lagrangian L($q$, $\dot{q}$) by comparing analytical accelerations and predicted accelerations. These are found by manipulating Euler-Lagrange equations into $\ddot{q}$=f(L)=$...
I've used a previously published land-type category dataset (with five categories) as the base for investigating how a subset of two of the land-type categories vary with different variables, including climatological rainfall and elevation. The original land-type category dataset was verified against ground based obser...
So there are a few questions that have asked this before here and here, but I seem to be missing a step. $$ \begin{aligned} p(f_*|x_*,X,y) &= \int p(f_*,w|x_*,X,y)~dw \quad \text{(marginalise $w$)}\\ &= \int p(f_*|x_*,X,y,w)p(w|x_*,X,y)~dw \quad \text{(chain rule)}\\ &= \int p(f_*|x_*,w)p(w|X,y)~dw \quad \text{($f_* \m...
I've been working with a dataset where there are judgments of brightness from 1-100 (1= less bright) for 5 different brightness categories. patient Brightness level Judgment 1 1 10 1 4 80 1 5 99 1 2 30 1 3 67 2 2 35 2 5 98 2 1 17 2 4 76 2 3 67 What I observe so far is that some subjects us...
Let's say we have a classifier, which we trained on some balanced data, and during the inference our data is imbalanced. Is there a way to leverage the information about the distribution of the imbalanced data during the prediction? To be more precise we have the following components: $P(C|X,B)$ - model; $P(C|B)=\frac{...
Can I use RMSE,r2 or other metric to compare models of different datasets and variables? And if I have the same dataset but different variables?
I want to acknowledge that this is a trivial edge case. As far as I know, the only case where this will occour is when fitting an n degree polynomial(with a constant term) to constant data. For example: x = [1,2,3], y = [1,1,1] when using least squares to fit a line to this data, it would trivially be the horizontal ...
For a university class I'm working on a imbalanced dataset that has ratio of 43:1 Class_0 to Class_1. Class_1 refer to companies that have declared bankruptcy based on feature columns of the dataset. On the other hand Class_0 refer to companies that haven't. My goals is to create the best possible classification model ...
Regarding to another question I'd like to ask the same way but for a quite more specific case. What are the general assumptions for a logistic multilevel regression? What are the reasons behind these assumptions? How to test these assumptions for my model/data? What to do in detail if these assumptions are violated? ...
Imagine you have a loaded die with a known number of sides, e.g 6. All the sides have a known given probability, and all sides but one have a known outcome; the last side has an unbounded outcome. E.g. 1, 2, 3, 4, 5 and 6+ (6 or more). Also, we can assume that the outcome of the last side is 6 most of the times and the...
If I train a model (e.g. a neural net) via maximizing the likelihood function on a given training set, then do I need to adjust for sampling bias? Let me give you an example for a classification task (where the cross entropy loss would be used to maximize the likelihood). I want to classify people into group $y \in\{ A...
I have two different t statistics which I want to use to compute corresponding p values. I don't understand why the second p value is what it is, when I compute it manually with pt(). First: t = -1.30922 Get p-value (two-sided): 2 * pt(-1.30922, df = 208) Result: p = 0.1919042 (correct) Check output of t.test() call: t...
I have match data across multiple years. I've collected the data in the form Date Total Points Scored Now here are some issues: (i) since this is match data, it does not cover every day- only the dates when matches were held. Moreover, multiple matches could be held on the same day. (ii) Moreover, each match consists ...
Just wondered if someone could provide some clarity on whether it is suitable to use partitioning around medoids (PAM) on a dataset that has not been transformed into a dissimilarity matrix? For example, suppose I wanted to use PAM for integer-based data. Would PAM be suitable in this context, or would it need transfor...
I have a situation where the principle component of my data is almost equal to the mean of the data. Does this make PCA redundant? Does PCA not work in this setting?
I'm performing a linear mixed effects analysis to find out how locMap (categorical) and frequency (continuous) influence voltage (continuous): lmer.voltage <- lmer(voltage ~ locMap + frequency + (1 | heart), data = df) Fixed effects: Estimate Std. Error df t value Pr(>|t|) (Interce...
I am running a series of multiple linear regression models as well as logistic regression models. I have calculated the semipartial correlations (sr) as a measure of effect size for the linear regression models and the odds ratio (OR) as a measure of effect size for the logistic regression models. My first question is ...
I'm working on exercise 7.2 from Elements of Statistical Learning, and I'm confused about one particular part of the problem. Let $Y \in \{0, 1\}$ and $\textrm{Pr}(Y = 1| X = x_0) = f(x_0)$. Let $\hat{G}(x) = I(\hat{f}(x) > 1/2)$ and ${G}(x) = I({f}(x) > 1/2)$ (the Bayes classifier). The error at a point $x_0$ with a 0...
So, I understand that for two vectors of numbers X and Y the mean of X/Y is different from the mean of X divided by the mean of Y. But I'm not sure when it is appropriate to use each. Specifically, I need to calculate the average consumption per days active for a set of individuals, and I don't know which approach to u...
I have a super simple chi-square in R question, but I'm struggling to wrap my head around it. The question was to take a random 20 people from the dataset, count males and females and then use chi-square test to accept/reject the null hypothesis that half of the population in the entire large dataset is men. So this i...
Apologies if this is a really simple problem, but I couldn't find/couldn't find the right words to look for the answer. I have daily air temperature data linked to % greenspace (not normaly distributed) and the nearest offical weather station temperature. It looks like this: ID time avg_temperature met_temper...
Random variable can be written as: R = A + B where R - random variable A - true value B - error (also Random Variable) Suppose now that B as a Random Variable has a mean of 0. So then random variable R has mean as A (true value) and standard deviation as standard deviation of B . So now, we have our random variab...
Let $X$ be a non-negative real-valued random variable. Can one find conditions for when the moments of $\sqrt{X}$ are less or equal to the moments of $X$? A specific example would be the chi-square and chi distributions. Assume the pdf of $X$ is a continuous function $f_X(x)$. Then the pdf of $\sqrt{X}$ is $ 2x f_{X}(x...
As I understand it the p-value for some hypothesis H and some test-statistic T is defined as the probability of observing a test-statistic T' which is at least as extreme as T, conditional on H being true. First question: should "at least as extreme" always be interpreted as "the absolute value of T' is at least as lar...
The definition of covariance says that it is: $cov(X,Y)=E [(X- \overline{X})(Y- \overline{Y})]$ However, it seems that we can also calculate it without subtracting the mean of the second variable: $cov(X,Y)=E [(X- \overline{X})(Y)]$ Is this correct? My argument for discrete variables results from comparing respective s...
Question: There are $n$ flower buds in a garden, each of which opens (independently) with a probability $p$ and each of the blooms survive (independently) with a probability $r$. What's the distribution of the number of buds that survive as a flower? Attempt: Let $X$ be the number of buds that open and $Y$ be the num...
Normally, we have one main IV and other covariates and show relationship with DV. Based on the main IV we conceptualize the research question and hypothesise. Say, Income (IV), Mental Health (DV) plus other variables as Education, Race, Sex. My question is I can have my Hypo I as: higher income is associated with bette...
Motivating Question I had a discussion with somebody recently, who said that a 10 participant sample with a t-value of 2.1 is more impressive than the same t-value for a 100 participant sample. The argument made was essentially this: because the formula for Cohen's d includes $n$, by nature it increases the effect size...
Consider this simple simulated dataset (all groups are normally distributed with sd=1) made up by 4 level 1 groups (lv1) and 2 level 2 groups. The mean of the 4 distribution is 5, 15, 5 and 15 respectively. Here is the lmer output: Linear mixed model fit by maximum likelihood ['lmerMod'] Formula: y ~ 1 + (1 | lv2/lv1...
I am wondering how to interpret the coefficients returned in a multilevel (repeated measures nested within person; random intercepts-only) negative binomial regression. Output is pasted below conducted in R and utilizing the glmmTMB package. Some background on this dataset: I am predicting the number of comments made o...
I have an Origin-Destination matrix expressing (weekly) flows of people between every couple of nodes (cities). The number of people traveling from city $i$ to city $j$ in a specific week is $OD_{ij}$. My goal is to define a distance metric, induced by these flows of people, that allows me to cluster the cities into gr...
I want to know if a certain protein can be a marker of a particular disease and I'm searching for a dose response. I've created a toy example with three ordered groups: control, sick and very sick. Although I purposely create a protein which doesn't follow a dose reponse, with clearly no overlap between groups, the ord...
Apologies if a similar question has been asked before. I have a dataset in which I measured water repellency as a function of water content in soil. I am interested in modeling this relation, as well as the interaction with the addition of a pollutant (in this case copper). Soil samples were incubated for two months at...
According to this website: https://datayze.com/labor-probability-calculator One can model the probability distribution function of spontaneous labour given two pieces of information. a) the due date of the pregnant women b) the current date I have a set of information that provides the due date of labour, and actual da...
Two continuous variables, $Z$ and $X$, are measured at 60 time points during a week for a given person. At the end of the week, the persons value of a variable $Y$ is measured. This is repeated during six consecutive weeks. For each weeks data the regression coefficient $\beta_1$ is estimated in linear model $$Z = \bet...
Suppose I found on the Web (e.g. Github) a neural network model which perform object recognition. The repository provides weights for this model and it provides also a train folder with tools/script to train the model. Why should I train the model if it yet works with those weights?
Can we generate samples by the Metropolis-Hastings algorithm with target density $p(x)$ and proposal kernel density $q(x,y)$ such that the samples satisfy a certain constraint? Take the simple example where the sample space is $[0,1)^2$. Can we generate samples such that the sample points have a given minimal distance?...
My statistics class makes a big deal out of the following fact: for any random sample $X_1, \ldots, X_n$ with continuous, invertible cdf $F(x;\theta)$, $$-2\sum_i\ln F(X_i;\theta) \sim \chi^2(2n).$$ That surely would have been very useful in the days when most researchers didn't have the computational capacity to find ...
I struggle to understand what is a learning algorithm. For example, lets say that $y$ is a function of $x$ but we don't know $f(x)$. A learning algorithm is an approach to estimate $f$. That is, given some training data $\mathcal{D}$, the algorithm returns an estimate of $f$, $\hat{f} = \mathcal{A}(\mathcal{D})$. In or...
In this paper, the author try to fit the Gumbel distribution based on the r largest value of each year using the maximal likelihood estimators: the likelihood function for r largest values $X_{n1},\dots, X_{nr}$ of each year $n=1,\dots, N$. Since there is a increasing trend of the data (not iid), so we cannot use the l...
I try to get mean square error of the maximum likelihood estimators in R (using Monte Carlo). I can write the calculation for the MLE that is repeated once, but I need to repeat the Monte Carlo calculation many times.
I have this bootstrap: library(ggplot2) n <- 30 set.seed(1) orig_mean <- 1 orig_sd <- 2 X <- rnorm(n, mean = orig_mean, sd = orig_sd) set.seed(NULL) # Bootstrapping m_reps <- 20000 boot_means <- c() boot_vars <- c() for (i in 1:m_reps) { current_sample <- sample(X, n, replace = T) boot_means <- append(boot_means,...
I am studying wildlife use of overpasses across three seasons and I believe a Poisson regression for rates with repeated measures is the correct analysis to use, but I am not sure how to include repeated measures in the R code, and I want to make sure this analysis correctly addresses my research question! Study design...
How can a person rely on Central Limit Theorem if he/she does not want to standardize coefficients in order to stick to the original interpretation? If I cannot rely on CLT then my inference results are unreliable. So do I have to choose between keeping the original interpretation and the reliability of the inference, ...
My parents' house number is 1702. My wife's mother's house in a different state is 1704. If they happened to live on the same street they would be next door neighbors. What are the chances of that?