instruction
stringlengths
9
38.7k
My problem is very simple: Say I am running a hotel, and I want to make an educated guess on whether a guest is a business or leisure traveler. The guest does not tell me if they are business or leisure until check-out, but I want to make my guess at check-in time. All I know at check-in time is the time itself. I h...
Let's say I have a poisson with mean 9.29 (lambda). The probability of random variable being less than equal to 1 and 2 are "0.0009502101" and "0.004935002" respectively (i.e. P[X<=1] = 0.0009502101 & P[X<=2] = 0.004935002) . The value of qpois at these quantiles are 1 and 2, as they should be. However, when I try to c...
I would like to know the general closed form of the expected maximum of i.i.d Gumbel variables. I found this onlie: Expectation of the Maximum of iid Gumbel Variables In the linked page, it shows the log-sum form for $E[\max_{i}(v_i+\epsilon_i)]$ when each $\epsilon_i$ are i.i.d and follows $G(\mu,1)$ where the scale p...
Considering a mixture of two normally distributed random variables $Y_1$ and $Y_2$ and considering the linear combination of the two: $$ \begin{gathered} Y_{1} \sim N\left(\mu_{1}, \sigma_{1}^{2}\right) \quad(M 1), \quad Y_{2} \sim N\left(\mu_{2}, \sigma_{2}^{2}\right) \quad(M 2) \\ Y=\Delta Y_{1}+(1-\Delta) Y_{2} \end...
Many statistical procedures rely on analyses of a likelihood function. Frequently, some (or all) of the parameters in that function are "location" and "scale" parameters. (See Finding location and scale parameters from PDF for definitions and examples.) How does this knowledge help simplify the analysis? In particul...
I have a data set of 30 individuals, with each individual categorised against 3 parameters. For two of the parameters A and B, an individual can either be in the parameter or out of it. A = 0 or A = 1 B = 0 or B = 1 For the Third parameter (C), and individual can have a value of 0 (not in the parameter), or 1, 2 and 3....
A standard linear and unconstrained optimization problem has the following form: $\max_{x} f(x)$, For example $f(x) = cos(x)+sin(2x)$, with $-1 \leq x \leq 8$. The gradient $=0$ will allow finding all the minima and maxima. But the gradient will not find the unique (and suboptimal) one, the one nearest to $x=4$. A sear...
While I understand that it is possible to have a small effect size with statistical significance and a large effect size without statistical significance, is it ever possible to find this across two participants within the same study (on the same outcome measure)? I am looking at a single-subject design study where th...
Currently, I am working on customer segmentation using their purchase data. I plan to use clustering techniques. So, my data has below info for each customer (9 features and 1 id field) Now I am following three approaches Approach 1 Cluster using all 9 features Approach 2 Cluster using 6 important features that were s...
We are trying to measure if there is a difference on the level of interests of participants before and after I let them play a game. The survey is in the form of Likert Scale where 1 - Not at all Interested, 2 - Not Very Interested, 3- Neutral, 4 - Somewhat Interested, 5 - Very Interested. There are 50 participants of ...
Is the mean of a negative binomial distribution for rate can be calculated as the arithmetic mean of the observed rate? I know it is true for count data, but not sure if it is the same for rate (count/time interval) with lambda=(count/time interval)*time interval. To illustrate my question, assuming an experiment obser...
Suppose there is a multinomial distribution $X \sim Mul(p_1, ..., p_k)$ and I have $n$ samples, where $n_i$ samples gives the first category, .... Then, the sample mean are $\hat p_1 = \frac {n_1}n, \dots, \hat p_k = \frac {n_k}n$. I would like to have a statistical test on the following hypothesises: $$ H_0: p_1=\dots...
I'm still trying to understand the attention mechanism. It is not clear to me what query, key, and value mean yet, for example. However, my main issue is regarding how to apply attention in my use cases. Most of the examples that I found using attention were for dealing with sequential data, like tokens in sentences. F...
How do I get t-day covariance matrix from daily return data? I have an idea of how to calculate t-day variance from daily return data. From 14.6, 14.7 in Options, Futures and Other Derivatives by John Hull, I know that assuming stock price follows Ito's process, t-day log return follows a normal distribution and its ex...
Recently, I was thinking about the following question - suppose we have some continuous variables and some categorical variables and we want to fit a regression model to this data: How will this change the overall estimation and optimization process? The way I see it, optimizing the Maximum Likelihood Equation for this...
(Let’s assume a multinomial distribution with a size of just one, so a categorical distribution: either dog, cat, or alligator.) I have done multinomial two-sample tests a few times lately, and I’ve gotten comfortable treating it as a likelihood ratio test of nested multinomial logistic regression models that have an i...
This is a question I have always struggled to understand: For a discrete random variable, you can have a "Probability Mass Function" (PMF) : For several discrete random variables, you can model their joint probabilities using a "Joint Probability Mass Function". For a continuous random variable, you can have a "Proba...
In Survival Analysis, I was reading about the parametric "Accelerated" Failure Time (AFT) model : https://en.wikipedia.org/wiki/Accelerated_failure_time_model Reading a few sources, no where does it seem to mention why exactly this model is called "Accelerated". Does anyone know why this model is called "Accelerated" a...
I have an assignment of ETA prediction that I'd like to seek some advice from you. I need to train a model from a dataset to predict ETA of parcels as dependent variable, which is discrete (in days). There are some features such as distance, parcel type, etc. And one requirement of this question is that customers are n...
I am trying to prove this kernel is valid, $$ K(x) = \frac{1}{2}I(-1 < x < 1) $$ So far I can integrate to 1, but how do I prove $$k(x) = k(-x)$$ Also, how do we satisfy that k(x) is $\ge$ 0 for all x?
I have successfully trained the model on a dataset, but I have some questions because the documentation here is very difficult to read: Does the splitter use a single scalar among the inputs, or select multiple features at the same time for the split in a single node? I plotted the trees using sklearn.tree.plot_tree a...
I am new in machine learning and I found that lots of article only train the LSTM model by only one stock and do the forecast. As a result, I am trying to group multiple Index and then predict an overall market trend to see what would happen. Therefore, I would like to know whether the below approach is correct. Sample...
Hoeffding's Lemma proof uses Taylor expansion with this statement: From Taylor's theorem, for some $ 0\leq \theta \leq 1$ $ L(h) = L(0) + h L'(0) + \frac{1}{2} h^2 L''(h\theta) \leq \frac{1}{8}h^2 $ Why does it use $0$ in the first two terms and $h\theta$ in the last? But as I know they must be same in the Taylor.
From what I know, both of them are sequential learners and only the 1st tree in the sequence gets built on the data and all the following trees that get built are to correct the mistakes of previous tree, hence improving the performance or decreasing the bias. subsample parameters in xgboost and lightgbm dictates the p...
According to Wikipedia, Ensemble of models tends to yield better results when there is a significant diversity among the models. Many ensemble methods, therefore, seek to promote diversity among the models they combine. Using a variety of strong learning algorithms has been shown to be more effective than using techniq...
I have a Matrix with almost 1000 samples (rows) and for each of this I have gene expression data for more than 16000 genes. I was trying to perform lasso with the glmnet algorithm but I always get the "cannot allocate vector of size ...Mb" error when I use the function model.matrix to prepare the data. I already tried ...
I want to conduct PCA on gambling behaviors and one of these behaviors is their participation. I would be asking them how likely they are to participate in different gambling activities, on a scale of 1 to 10. Can I use these questions as my variable for PCA?
Take the following logistic regression: $$\log(o) = \beta_0 + \beta_1 x + \epsilon$$ We know that increasing $x$ by 1 increases the log-odds of the event by $\beta_1$, and multiply the odds of the event by $e^{\beta_1}$. But what is the impact of an increase of 1 in $x$ on the probability of the event?
Question is in the title. I have clustered the word embeddings of text phrases, and now want to try and check whether the resulting clusters are coherent enough. I have tried methods that are standardly used for cluster validation such as SSE, silhouette scores and Dunn index but none have proven effective in this case...
I know I cannot use time-invariant variables in fixed effects panel models. Is it possible however to use a variable which is time-invariant only for some of the units in a dataset? For example, can I use variable X here? unit time Z A 1 10 A 2 10 A 3 10 B 1 4 B 2 6 B 3 7 C 1 5...
I know that the expected value can be computed as : $\mathbb{E}(X) = \int_{-\infty}^{\infty}xf(x)dx$ What if we do not do the integral over the whole range but only up to some value? Would there be any meaning? For instance, what if we have ? $\int_{0}^{a}xf(x)dx$ where $f(x)$ is a pdf specifed over $[0,b]$ and $b > a$...
I am fitting a t-distribution on some data I have using the fit.st function from the QRM package. The function returns 2 set of parameters (par.ses and par.ests), both containing values for nu, mu, and sigma. The values for the 2 sets of parameters are quite different and I don't get which one to use. I looked into the...
The waiting time of a customer in a customer service telephone line in company number 1 has the exponential distribution with an expected value of 2.2 minutes. The waiting time of company 2 has the uniform distribution between 1.5 minutes and 3 minutes. The waiting time in company 3 has the normal distribution with an ...
I am tasked with deciding whether a new product should be developed. I have data of customer transactions of previous products and wish to build a model which determines whether customers will have a higher propensity to buy this new product. My approaches in mind: Look at the average daily sales for each product, the...
A quite general question. When I jointly model time to event data and longitudinal process with Joint models, looking at math behind it, it seems to me that the times to event outcomes and times of repeated measurements of longitudinal process have to be "as close as possible" as Survival at time t depends on the whole...
Is it possible to use regular k-fold cross validation where the folds contain entire time series in time series classification? I'm asking because most sources discussing cross validation with time series say a specific rolling window approach should be used. I'm doing a time series classification project where I have ...
When implementing the REINFORCE algorithm, it requires the derivative of the log probability. As highlighted in the image below (from David Silver's 7th lecture). In many implementations I've seen people sample the action, find the probability and then take the log. My question is how to interpret this operator ∇ in i...
Given that $$\begin{align} \mathsf f(a\mid b, c) & = \frac{\mathsf f(a,b,c)}{\mathsf f(b, c)} \\[1ex] & =\frac{\mathsf f(c\mid a,b)\,\mathsf f(a, b)}{\mathsf f(b, c)} \\[1ex] & =\frac{\mathsf f(c\mid a,b)\,\mathsf f(a\mid b)\,\mathsf f(b)}{\mathsf f(b, c)} \\[1ex] & =\frac{\mathsf f(c\mid a,b)\,\mathsf f(a\mid b)}{\mat...
I have a sample of size n=14, with 1 dependent and 6 independent variables (iv). r=0.85 with the first iv, others are 0.4 or less. Will multiple regression work? If not, why not? All I have is a correlation matrix that doesn't show p values. There is a substantial variation in the data for one iv (national GDP). My con...
I'm working on distributions for a physics problem and I am quite stumped on how to proceed properly. The problem is as follows: I start at the point $(0,0)$ and go a distance $\eta$ in x direction $(\eta, 0)$, from there I go in a random direction $\phi$ (uniformly distributed) a distance $x$ that is gaussian distribu...
What is the product of two independent student t distributions? In which case does this product product result in another t distribution?
Given a pair of RVs $z,\theta$ governed by a joint distribution $p(z,\theta)$. Conditional expectation of $z$ given $\theta$ defines a deterministic function (called as regression functions) $f(\theta)$ given as $$ f(\theta) = E[z|\theta]=\int zp(z|\theta)dz $$ We have to find the root $\theta^*$ at which $f(\theta^*)=...
I'm trying to understand what are the assumptions/hypothesis underlying the k-means clustering algorythm; specifically, I'm looking for a research/academic paper listing such hypothesis and explaining the ratio behind them. Browsing on the internet, I found the following ones: spherical clusters: all within cluster da...
I have been reading about the RKHS and the kernel trick in Machine Learning mainly from https://ngilshie.github.io/jekyll/update/2018/02/01/RKHS.html (1) and https://arxiv.org/pdf/2106.08443.pdf (2). But in (1), it is stated that because the quadratic kernel is positive semi-definite so by Moore-Aronszajn, it is a repr...
I have run the following OLS model in R: ols1 <- lm(log(Y) ~ log(X), data = mydataset) Then, I calculated robust standard errors: cov1 <- vcovHC(ols1, type = "HC1") robust_se <- sqrt(diag(cov1)) Now, I would like to test the following hypothesis: glht_mod <- multcomp::glht(model = ols2D, linfct = c("log(X)...
I performed a binomial logit glm in R and I got the following results, which I am not sure how to interpret. I used the following code: model <- glm(DV~x*y + x*z + CV + CV + CV + CV + CV + CV + CV, data = data, family = binomial(link = logit)) Variables Model 1 Model 2 Model 3 x 0.150...
Data set in R: structure(list(Cohort = c("case1", "case2", "control"), `G0:G0` = c(4, 183, 341), `G0:G1` = c(0, 0, 5), `G0:G2` = c(3, 1, 0), `G1:G1_hom` = c(7, 1, 51), `G1:G1_het` = c(4, 0, 211), `G1:G2` = c(6, 0, 0), `G2:G2` = c(3, 0, 0)), row.names = c(NA, -3L), class = "data.frame") I would like to know if there...
In a machine learning context, I am working on a binary classification problem. There is a source of truth $T$ for labels, and a labeling process $A$ which is not perfect and makes errors compared to $T$, according to a confusion matrix $C_{TA}$. There is then a second labeling process $B$, and a second confusion matri...
I have a new UX feature, which I need to test out on users on a social media platform. When a user creates a post, he/she can add hashtags to gain community traction. As owners of the platform, we want to incentivize users to adopt hashtags, with a binary variable used_hashtags = {0,1}. We will sample 10% of the global...
I was reading this paper over here (https://journals.sagepub.com/doi/pdf/10.1177/1536867X1201200407). In the first paragraph on the second page, the authors write the following line: "Furthermore, despite the Cox model (Cox 1972) being the most commonly used method of survival analysis, it is not possible to simulate f...
I want to find the average days to pay for a client based on last year's many invoices. Nearly all of them are paid. Most formulas for this activity rely on outstanding amounts for the client. In this scenario, is there any reason I wouldn't just figure out the difference between bill and paid dates rather than using s...
Let us consider the following estimator: $$ \hat{\beta}^{F} = \underset{\beta \in \mathbb{R}^{n}}{\arg \min} (y_{i} - \beta_{i})^{2} + \lambda_{1} \sum_{i=1}^{n-1}|\beta_{i} - \beta_{i+1}|, $$ which is called fused estimator, cf. PROPERTIES AND REFINEMENTS OF THE FUSED LASSO Next, if I understand correctly, fusion aft...
I have an imbalanced data (n = 600, about 97% majority and 3% minority) with 20 features and a binary outcome. The data has been split into a training set and a test set (80%/20%). I used H2o autoML to train a multilayer perceptron on the training set and make predictions on the test set. To try to improve the predicti...
suppose we have two independent gaussian distributions $X$ and $Y$ . let $Z = X+Y$ which will be a gaussian too. the goal is to compute : $ \int_{L} P(X+Y=c) dXdY$ Where L is the line : $X+Y=c$. $P(X+Y=c)$ is the probability that a point is on the line L. My professor told me that this integral is equal to $G_z(c)$. Wh...
Let $Y$ be the dependent variable, $X$ be the independent variable of interest, and $G_i$ be the group indicator with $i\in\{1,2,3,4,5\}$. Both $X$ and $Y$ are continuous. To study the association between $X$ and $Y$, one approach would be to run separate regressions for each group, i.e., $$Y=\beta_0+\beta_{1i}X+\epsil...
As the title of the question suggests, I'm interested in training a BERT-like model (and then use it to make some experiments on text-similarity). Question: Could you share some references on the process of training a BERT model from scratch? Observations: A good reference to understand what do I mean by 'training fro...
I'm planning on conducting a visual perception study in which 10 participants are each presented with 40 stimuli images; each stimulus has two target areas and the question is what target area is perceived to be brighter. The participants will indicate their choices on a 5 point Likert-scale ranging from "the left targ...
I'm trying to understand making predictions from a Gaussian Process with noise free observations. For reference I'm using GPML by Rasmussen and Williams. Setup: Given that $f \sim \mathcal{GP}(\mathbf{0},k(\mathbf{x},\mathbf{x}'))$, training set $X$ and test set $X_*$ consisting of $N$ and $N_*$ elements each. Let $$ \...
I have a dataset with pre-defined labels. I trained two machine learning classifier methods A and B to predict the labels and calculated the accuracy for each. I varied the dataset a bit and thus got multiple experiments with multiple accuracy results. I calculated the mean and the variance for the accuracy values of t...
I have a question about what explaining unique variance means in regression models and outputs. I often read in research papers that "We found that outcomes E and F could not simply be explained by individual differences C and D. Each predictor, predictors A and B was uniquely related to one measure of outcomes E and F...
There are two non-independent samples $a_1, a_2, ... ,a_n$ and $b_1, b_2, ..., b_n$. In Python I can calculate with np.cov($\{a_1, ..., a_n\},\{b_1, ..., b_n\}$ ) сovariance between these samples. But how can I get $cov (a_1, b_1)$? Both samples are generated from some known distribution. This question is probably not ...
I have been reading some posts about the proof of the invariance of MLE because I did not fully understood the proof given in Statistical inference by Casella Berger in the page 320. My doubt is the following... if we want to estimate a parameter should not that parameter be in model? The Maximum Likelihood Estimators ...
I have a survival analysis (cox-ph and cox-ph cause specific) that uses a lot of observations (excess of 2million), with many fewer events (around 200,000 in one configuration and 10k in another). I read online that the c-index is (a) the most popular goodness of fit test of survival analyses, and (b) is optimistic wit...
I usually use cross validation only for the tuning part and once I have my hyperparameters, I fit the final model using the actual model with these hyperparameters like this: lr = LogisticRegression(hyperparm1 = val1, hyperparam2 = val2) model = lr.fit(train) pred_train = model.perdict(train) pred_test = model.predict...
I have a data set which follows lognormal distribution (parameters $μ$, $σ$ known - estimated by maximum likelihood estimation). I have to generate random numbers within range $[a:b]$ from this known distribution (a and b are predetermined and hence known as well). I am confused how should this be done. I am thinking ...
I want to simulate a left-skewed distribution in R similar to this one: I can do it with rbeta hist(print(rbeta(n = 1000, shape1 = 1, shape2 = 17))) But then the x-values are between 0 and want, but I want them to be between 0 and 500 to resemble the actual data (which looks like the image I've posted). Any suggestio...
I'm trying to figure out, if the F test in ANOVA is the Wald's test or LRT? I learned, that the LRT compare nested models and "assess" the reduction in residual variance. This would justify the name "analysis of variance" actually. Then I learned, that Wald's test approaches the LRT and effectively does the same - comp...
Background I'm fitting a Cox model to assess the relationship between treatment (binary) and time-to-event (event is also binary) while also controlling for 3 or 4 covariates. Because I want to account for the fact that individuals can have multiple events, I've added a frailty term to the model at the level of an indi...
I’m reading a presentation by Preacher, who gives the following level-1 and level-2 equations Level 1 $y_{ij} = \beta_{0j} + \beta_{1j}x_{1ij} + \epsilon_{ij}$ Level 2 $\beta_{0j} = \gamma_{00} + \gamma_{01}w_{1j} + u_{0j}$ $\beta_{1j} = \gamma_{10} + \gamma_{11}w_{1j} + u_{1j}$ Preacher notes: Even though it is not ...
I have a basic question on what method should be applied to obtain test statistics distribution. I have two treatments $A$ and $B$. I want to test on mean $H_0: \overline{t}_A=\overline{t}_B$ as hypothesis where $t_i$ is treatment effect of $i=A$ or $B$ with $t_i$ continuous variable. I have recruited 100 patients. I d...
I'm not sure if I'm approaching this correctly. I tried speaking to a statistician at my University but they use SAS which I haven't used. I'm currently working in R Studio. I have 4 groups of different mosquitos (Colony) which are treated (1) or untreated (0 (Treatment). I believe I should be matching the treatment wi...
I am trying to express mean and standard distribution in terms of RSS so that I have a formula for likelihood in terms of RSS.
If an independent variable correlates with the residuals in quantile regression, does it produce biased coefficient estimates? In ordinary least squares regression, if the independent variable is correlated with the residuals, it may suggest that there is a missing confounding variable. Does it suggest the same in qua...
Suppose $X$ and $Y$ are random variables whose expected values are $\mu_X$ and $\mu_Y$, and variances are $\sigma_{X}^{2}$ and $\sigma_{Y}^{2}$, respectively. Also, we suppose $F_x$ and $F_Y$ are the distribution function of $X$ and $Y$. Say that the inquality $$ F_{X}(\mu_X+t) - F_{X}(\mu_X-t) \geq F_{Y}(\mu_Y+t) - F...
I am working on segmenting my customers with clustering. My dataset size is 7315 rows and 30 features. So, as a beginner to clustering, I passed all my 29 features (excluding id column) to the cluster. So, I did the below two approach to find best K Approach 1 - Ran a for loop and computed the silhouette score to iden...
Recently, I thought of the question: Suppose some researchers are doing a medical study - in this study, patients have their weight measured once each year and are assigned a "health score" ranging from 1 to 5 (1 = worst, 5 = best). Some "static" standard information is also recorded about every patient that enters th...
I have a dataset of customers and their purchase data. Meaning, for each customer id, I have variables indicating number of unique products they bought, Number of online orders they placed, How many different product categories did they buy from etc. Basically, I have customer id and count data of multiple other column...
I've been pondering the concept of subjectivity to evaluate likelihood and predictability of extremely rare events. I'd like to demonstrate my question over trivial hypothetical examples below. I did some research but couldn't find specific answers in the area of probability and statistics. I am hoping to have answers ...
I am writing the preregistration for a study and I wanted to check whether my analysis plan can be improved. Data description I attached a picture of some random example data to give you a sense of my data. There will be 80 participants who have different amounts of Grip Events. Every participant has 5 grip events duri...
I have almost finished studying 'Causal Inference in Statistics: A Primer', but I still feel that I need to learn more. I considered 'Causality' (Pearl, 2009), but there seem to be several good learning resources about DAG (ex. Review Paper & etc). What should I study after finishing 'Causal Inference in Statistics: A ...
The dataset ISLR2::Default contains one observation per individual. The variable Default is "Yes" if the individual defaulted on his debt, and "No" otherwise. The variable Student is "Yes" if the person is a student, and "No" otherwise. The variable balance is the amount of the outstanding debt. The variable income is...
I'm trying to perform a factor analysis on some survey data (bit new to the subject) using R's built-in factanal function, but I'm failing to interpret its output. My approach was to first perform a PCA to estimate the number of significant axes of variation in the data and then to take this as the number of factors in...
I have a binary variable indicating the presence or absence of a disease as well as variables for time and other covariates. SOME (not all) people are observed (tested) several times. Suppose I want to estimate the prevalence of disease for a given year. I believe that if there was just one observation per person I cou...
I have a data set from a survey with yes/no answers, coded as 1 and 0. Thus, both the dependent and independent variables will be binominal. Can I run a binominal logistic regression when both DV and IV are measures yes/no?
In neural networks that start with input layer, run through hidden layers, and ultimately reach the output layer, we start back-propagation from weights closer to output layer and go backward towards the input layer. Now, in case of VAE, I was confused as to whether back-propagation start from the decoder all the way t...
Suppose there are two columns of the probabilities of a certain outcome and then a column at the end indicating whether the outcome took place or not. Looking like this: prob_1 prob_2 Outcome 0.49 0.54 1 0.49 0.53 0 0.48 0.48 1 0.37 0.39 0 0.54...
I am modelling time to failure of some units. All units are made my the same manufacturer and there are no recorded covariates to distinguish between the units. This means that the central, $95\%$ say, remaining useful life (RUL) prediction intervals for unit $i$ and unit $j$ are the same if unit $i$ and unit $j$ are t...
I just started with Machine Learning and the statistics behind it, thus I am trying to understand as much derivation as possible when I see some formulae or resulting variables. Today I stumbled upon Ridge Regression and I am stuck how Bishop derives the following result. I will also try to incorporate my current level...
I'm coding a paper (on turbulent statistics) where it says find the time series correlation of complex data. It does that by taking the product of the vector and its complex conjugate (a velocity signal with the mean subtracted out called $\mathbf{u}$), then ensemble averaging spatially (weieghted by $r$ radially becau...
I have recently come across some papers in my field. They had a large (X,Y) data set, it was binned into 4 bins. Least square method was used to find slope (m) and y intercept (b). In the table that contains the slope and y intercept they include what they call "1 standard deviation error" for each of the m and b. My q...
I am confused about time-varying covariates in Cox models. I believe this refers to the fact that in the normal situation, you can calculate a hazard ratio for $X$, assuming $X$ for an individual is not going to change over time. But with time varying covariates you can also take into account that $X$ may change over t...
could anyone explain the differences between the Variance, Covariance and Autocovariance, please? The general topic is time series analysis - ARIMA models + vector models (VAR)
Let's say I have an "unfair die" with hundreds of possible results, and each result may have a different probability. However, I am interested only in two of these results and I want to test if they have the same probability or not. Real data: After (at least) 500 rolls, the result A appeared 10 times and the result B ...
I am currently doing a study about the preference of humpback whales singing during night in the subarctic waters. I have two variables in my data Existenceofsong (positive or negative detection; song and no song) and for the correspondent time each daylight regime (light, twilight or dark). My sample size is 4382 and ...
I am working through the exercises of Martin Sternstein's Statistics (Barron's College Review Series) ... struggling with Exercise 4 in Chapter 14. Given are the weight lifting strengths of 9 people before/after 8 weeks of weight lifting exercises: Before: 3,3.5,4,6,7,8,8.5,12.5,15. After: 7,17,19,12,19,22,28,20,28. As...
I am currently doing a study about the preference of humpback whales singing during night in the subarctic waters. I have two variables in my data Existenceofsong (positive or negative detection; song and no song) and for the correspondent time each daylight regime (light, twilight or dark). I can send my data if you w...
I am testing the preference of humpback whales singing at dark and twilight regimes vs. light. For each 10 minute audio file is assigned the light regime and if there was song or nosong occurence. My null hypothesis it would be something like: there is no preference to sing in one light regime Here is my data : https:/...
I have an equation Yit = XitB The question asks to consider a transformation of data y and X whereby forward differences are calculated so Yit becomes Yit - 1/(T-t)Σ s=1 yi(t+s) so basically it's self minus the mean of future observations. And the same for Xit. Image below Derive matrix A so that pre-multiplication of...
There is a comment in an online resource that I need help understanding: In a Bernoulli process, given that there are M successes among N trials, the number X of successes among the first n trials has a Hypergeometric(N; M; n) distribution. source: https://mathcs.clarku.edu/~djoyce/ma217/distributions2.pdf Problem: ...
I am using: the cluster::pam function in R for clustering distance matrix computed using Gower distance in cluster::daisy in R The issue I am having is that I run pam 2 times, with a different distance matrix in each run, but I get the same cluster assignment in both runs!! Run 1: Distance matrix based on 13 attribu...