instruction
stringlengths
9
38.7k
I wanted to check how fast an average colleague of mine is able to complete a puzzle, so I ran some experiments. The problem is they weren't done in exactly 50 minutes, I always got bored and moved on to the next person. Hence my data is right-censored at 50. Let's say it looks like this: Aaron: 34 Betty: X Cecil: X Da...
So I'm trying to write a (super) simple RL based game, where the agent is on the ground and has to evade obstacles falling from the sky. Based on what I've read about RL, I thought it would be a good idea to encode a pattern in the way the obstacles fall, so the agent can truly "learn" that pattern and make optimal mo...
In answer to a different question about data assumptions of factor analysis rolando2 writes: There is another condition that is sometimes treated as an "assumption": that the zero-order (vanilla) correlations among input variables not be swamped by large partial correlations. What this means in a nutshell is that rela...
I am trying to fit a cubeoid to data approximately containing one (or many) 2D sigmoids using MCMC. Assuming trying to fit one model cuboid, it has 5 parameters: position, size and height. $$\theta = \{x,y,dx,dy,h\}$$ My likelihood function is assumed to be inversely proportional to the absolute height difference betw...
I am running a study for my final year of a psychology degree. I've been having a hard time getting anything useful out of my supervisor, so I thought I'd turn to you very lovely and smart people. My project is as follows: I have two groups that receive a different kind of a meditation intervention. There is no contro...
Let $X$ and $Y$ be two independent, normal random variables with known and equal variances, let $\{X_1,\ldots,X_m\}$ and $\{Y_1,\ldots,Y_n\}$ be random samples of size m and n respectively. We are testing $H_0:\mu_X=\mu_Y=\mu$, $H_1:\mu_X\neq\mu_Y$. The Likelihood Ratio ($\frac{H_0}{H_A}$) is $$\Lambda=\dfrac{\Bigg(\df...
I was collecting data on formation of intracellular foci in cells. I counted percent of cells with foci at three different timepoints (1, 2 and 3) for three genotypes (A, B, and C) and two disease states (healthy and diseased) for a total of five biological replicates. My expectation is that foci increase over time. Th...
I am trying out some methods for finding the optimal bandwith for a kernel density estimation in R. Now I stumbled across a post on R-bloggers If I compute the Silvermann's rule of thumb bandwith for my data I get the following 1.06*sd(kurseu)*length(kurseu)^(-1/5) [1] 2.171556 Now if I use the cross validation metho...
Since the estimated parameter is constant then it's expected value will also be constant which would mean by proving E(b1) = B1 we are proving that b1 = B1 because E(b1) = b1.
I am working in a manufacturing plant to identify the drivers causing some defects in the tyre. Based on randomForest, now I have 4-5 important variables which have been the real drivers for causing defects. The next question to solve here is, how to detrmine the range of operation for these important tags. i.e. at whi...
I was going through the following discussions Is this a linear or non linear model, and why? How to identify models as linear or non-linear? In the above discussions, users have submitted some equations and want to know if they represent a linear or a non-linear model along with the reason. By looking at these examples...
I am testing the Hoteling Tsquare test on a toy example using scikit learn. I am following the description in this this link. Is the size of the obtained Tsquare values correct? Shouldn't it be a simple vector of size 13? import numpy as np from sklearn.decomposition import PCA from sklearn import preprocessing hald_t...
I preprocessed my data by calculating z-scores of each feature, and trained a Nu-SVR model for a regression. While preprocessing, I expanded some features' scale up to 10~30 fold by mistake, and soon realized that this mis-preprocessed training data outperforms properly preprocess training data. I could get best result...
I'm developing a spam detection classifier (the exact classification algorithm has not been chosen , I'll mostly go with CNN or NN). I'm fetching 20,000 tweets using Tweet4J and I'm a bit confused with the data collection. How many +ve tweets (spam) should I have vs -ve (non-spam)? I'm thinking to have 50% positive and...
I am performing the Wilcoxon test to 3 variables. The box plot of each variable is the next one. Performing the Wilcoxon test I get the next results: testing if there is any difference between A1 and A2 Wilcoxon rank sum test with continuity correction data: scale(A1[, 2]) and scale(A2[, 2]) W = 1.1252e+10, p-...
I am doing an analysis on data from Tanzania, where one part of the analysis is looking into determinants of passing the primary school exam. This information is subtracted from two datasets for two years. Firstly, in the newest year those who have taken the exam and were in primary school the year before are found. Th...
I have 8 independant variables and 2 dependant variables.Iam using multiple linear regression.I just finished the regression topic so iam a starter in this.Can anyone say how to approach this one??
A question related to this one: How to sum two variables that are on different scales? If I have two variables (rainfall and temperature) which has different means and different standard deviations... How do I need to transform two variables so that when I sum the two result is not "driven" by more volatile one. The re...
I was fitting GMM clusters with diagonal covariance on my data using EM with $n$ (=5e6) points, each having $m$ (=160) dimensions. I wanted to get around $k$ (=400) clusters. But this is taking a lot of time. My question are: What is the per iteration complexity of GMM EM given $n$, $m$ and $k$? Which parameters migh...
Most of the neural net algorithms I'm aware of require multilevel, ANOVA-type categorical features to be preprocessed into a set of dummy (0,1) variables. So, if one has a single categorical feature such as the teams in the NFL (Bears, Packers, Cowboys, etc.) then each level (team) would be transformed into separate 0,...
I'm working on a 2-class classification problem with very unbalanced class size (95% vs. 5%). The overall data size is 500k+ and I did a 70%-30% train test split. So far I have tried the following models (all sklearn): Logistic regression: train AUC ~0.5, test AUC ~0.5 Gradient boosting: train AUC ~0.74, test AUC ~0.6...
I have count data (seconds of behaviour, n=145) with one explanatory categorical variable (Treatment) and 2 interaction terms (Sex and Time). I began by running a GLM with Poisson distribution: model <- glm(Vigilance ~ Treatment * Sex * Time, family = "poisson", data = fallow) The output gave significant results for ...
say I have two time series that move together but both seem to be characterised by a deterministic trend. I have two questions: How can I test whether the trend is deterministic or stochastic? How would I determine the long-run relationship between the two series in the event they both have deterministic trend? I kno...
I am trying to conduct a linear mixed regression analysis using R. The data comes form an experiment, in which several plates were treated with different sets of parameters (4 independent variable on 2 levels) and the thickness of the plate was measured (dependent variable). We assume, that within one plate, the error ...
I am looking for the best way to depict a concave, quadratic association. I'm using logistic regression to measure the association between affect and military advancement (yes/no). The primary predictor centered on the mean squared was significant, and it is graphically clear that Y increases as X increases only to a p...
I haven't found an answer to this online: Is there any package / easy to implement way to estimate a probit with heckman correction in R? The corresponding function in STATA would be heckprob
I have a binary outcome variable {0,1} and a predictor variable {0,1}. My thoughts are that it doesn't make sense to do logistic unless I include other variables and calculate the odds ratio. With one binary predictor, wouldn't calculation of probability suffice vs odds ratio?
I've written a pretty straightforward script to auto-generate a 2018 NCAA Men's Basketball Tournament bracket based on FiveThirtyEight's power rankings (here and here). For each head-to-head matchup, I calculate the probability for each team to win (eg, UCMB has a 2% chance to beat Virginia in the opening round) and th...
I'm working on R with machine learning. I was wondering if to test a machine learning model like SVM,ANN.. where Day_of_week, hour, min will be introduced in the template creation. If there is any difference passing these variables to categorical or get_dummies? I know the get_dummies function creates multiple columns ...
I would like to compute the mean $M$ of subsystem entropies $H(x)$ for a physical system $X$ with $2n$ particles and subsystems $x$ with $n$ particles: $M(X)=\sum_{x\subset X}H(x)\,.$ The number of subsystems $x\subset X$ grows quickly as $n$ increases, so I would like to approximate the population mean $M$ by a sampl...
I have been trying to model this beta distributed data for a bit now with no success. It doesn't seem to be zero-one inflated visually, but I do have some ones in my data. Here is the description of my data (based on this answer by Alexander): >summary(y) Min. 1st Qu. Median Mean 3rd Qu. Max. 0.0300 0....
I have a distribution of empirical data (plotted in yellow) that I am comparing to simulated data (plotted in blue). I am interested in whether my empirical data (yellow) "clusters" around the midpoint of the plot 0 more than the simulated data (blue). I have done a Kolmogorov-Smirnov test and the results suggest th...
I'm a machine learning newbie. I was going through various initializers that come with TFLearn, and it says that the "weights are picked up randomly from some probability distribution function" What I interpreted: If let's say we are using normal distribution function centered at some value 'x' and has std.deviation =...
I'm currently working on a common object classification and I use a CNN to do that. Each instance has 3 images with differents views (front, back, side) and I would like to use this to improve my network, so I want to build a multiple input network. I'm wondering if I should : Build 1 network with 3 different pipeline...
In the boosting algorithm,AdaBoost ,those observations which were misclassified by the classifier in the (m-1)th step have their weights increased in the mth step, and those which were correctly classified have their weights decreased. My question is, that isn't it possible that the new classifier now classifies the lo...
I am trying to find the CDF of the multivariate hypergeometric distribution, but was unable to come across any sources. Could someone point me in the right direction?
I have a data set that contains the amount sold of a product at each month of 2017, for each store that carries it. Some of the stores only opened in July, so for those I only have 6 months of data. The data set looks like this Store Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 1 23 25 19 28...
I am trying to do the restriction test for GARCH model (ugarch from 'rugarch' package) using the following hypothesis: H0: alpha1 + beta1 = 1 H1: alpha1 + beta1 ≠ 1 So I am trying to follow the advice from Testing the sum of GARCH(1,1) parameters 1.Specify the restricted model using ugarchspec with option varianc...
As I understand it, the parameter $\alpha \in [0, 1]$ that controls strength of spatial association in a CAR model gets set to 1 in an Intrinsic CAR model. Does this mean that an ICAR model cannot/should not have a parameter scaling it? In particular, and following this writeup, I've implemented an ICAR spatial prior i...
For a given normal distribution, figuring out what percentage of scores fall between two bounds is straight forward. Calculate the z score and look it up on a z table. Or one can also evaluate the integral: $\int\frac{1}{\sigma \sqrt{2\pi}}e^{\frac{-(\mu-x)^2}{2\sigma^2}}dx$ from the given bounds, where sigma is the st...
I am doing a linear regression on the relationship between my outcome and several predictor variables. I am looking to find the more significant variables to include in the regression. I already ran a LASSO and elastic net regression. Which one is best to use and why? Also, should I use the lambda.min or lambda.se ?
In the JASA (1968, vol. 63, no. 324, pp. 1522-1525) article "How Deviant Can You Be?" Paul Samuelson notes two versions of Chebyshev's inequality: $$P \left( \lvert {X-\mu} \rvert \geq k \sigma \right) \leq \frac{1}{k^2}$$ and $$P \left( \lvert {X-\mu} \rvert \gt k \sigma \right) \lt \frac{1}{k^2}$$ In a footnote, h...
Let's say I have stock price data. If I were to do linear regression, I would find transformations of the data that help performance. Should I perform comparable steps when training a neural network or is it redundant? I have generally have gone with my intuition that it will either improve performance or speed up trai...
One of the developers of lobste.rs recently posted some interesting data showing the distribution of votes and comments for stories on the site. In particular, the posted results give a histogram of the number of stories with a given number of comments/votes rounded to the nearest 10. For example, two stories with a vo...
Say we have $$ X \sim \text{Bernoulli}(p). $$ I am interested in finding a 95% confidence and credibility interval. For the credibility, I am assuming a uniform prior, giving me a posterior distribution $$ f(p | x) = \text{Beta}(x + 1, 2-x). $$ Therefore we simply take the region of minimal measure such that the ar...
Sorry, I asked a question similar to this yesterday but I realized I may have been wrong in my assumptions so I deleted that question and posted this new one now (I'm fairly new to stats so I'm picking things up while I do them for my work). I have a data set as given below, and I would like to know how to use a t-test...
I cross-validated a model using the classification accuracy using leave-one-out-cross-validation (proportion of correctly classified cases). Below is a matrix of accuracies typical to what I see. The rows and columns represent different combinations of two hyper-parameters that are cross-validated. For lower rows and m...
I have a big dataset with the following information: Person | TheoreticalPar | ActualPar | Score ----------------------------------------- Person1 | 1 | 1.2 | 100 Person1 | 2 | 1.6 | 90 Person1 | 3 | 1.7 | 105 Person2 | ... ... There are 3 observations ...
I am building a model for time series data that contains ~3 distinct patterns: stable at a 35 deg C, small oscillations around 35C, and large oscillations not centered around 35 deg C. Here is a photo: A first modelling attempt involved creating classes based off daily st.dev, and constructing random forest based CA...
We would like to use probability weighting to account for non-response in a survey of risk factors for a disease. The fraction of those we approached who refused the survey is very high. Because of data sharing agreements, we have their administrative data, and we've observed that these data can predict non-response qu...
I have a set of $n$ objects for an experiment and I want to randomise them into a control group and treatment group with fixed sizes. I would like to use block randomisation to balance covariates, in order to get better results at the inferential stage. (That is as clearly as I can pose the problem at this stage - I ...
I am trying to prove the statement: If $X\sim\mathcal{N}(0,\sigma_1^2)$ and $Y\sim\mathcal{N}(0,\sigma_2^2)$ are independent random variables, then $\frac{XY}{\sqrt{X^2+Y^2}}$ is also a Normal random variable. For the special case $\sigma_1=\sigma_2=\sigma$ (say), we have the well-known result that $\frac{XY}{\sqrt{X...
I'm analyzing a questionnaire in which people were asked about their shopping habits. Respondents were first presented with a set of three qualities a store might have and asked ($Q1_i$, $i=1,2,3$) to rate how important those are when deciding where to shop. For example one factor would be "attractive customer loyalty ...
I am interested in conditions that an autoregressive model AR(p) is strictly stationary. It turns out that these lecture notes https://www.bauer.uh.edu/rsusmel/phd/ec2-3.pdf (see bottom of page 13) claim that an AR(p) process is strictly stationary if and only if it is causal. Seems reasonable I think. I need a referen...
When we're testing simple null hypothesis, there is an equivalence between confidence sets and statistical sets. However, when we're dealing with unilateral hypothesis, we do not have that equivalence. Why is that? This questions comes from reading page 543 of DeGroot and Schervish. I don't understand their reasoning....
I'm having doubts about some aspects of hypothesis testing, and I would appreciated if someone could please clarify / point me to some relevant literature or posts. The ones I could find so far didn't help. An election took place yesterday in country X. 10 million people voted. The votes are being counted today, and th...
Doing a straightforward mediation analysis, a => b => c (indirect effect) and a => c (direct effect). If I do this in mediation::mediate(), I get Estimate 95% CI Lower 95% CI Upper p-value ACME 0.02020 -0.00349 0.04934 0.10 ADE -0.10003 -0.17762 -0.01430 0.02...
It seems to me that despite the huge variety and development of ML methods (I'm specifically interested in regression methods), OLS is still considered, and often cited, as a benchmark - which makes sense at least because of its easy interpretation. Despite this, I failed to find regression methods that can be thought ...
This is a follow-up to my earlier question. Let me summarise what the original question dealt with. I asked whether I could compute Kendall's W for a case where the same question was asked for different entities. It asked the judges to assess how democratic certain organisations were. I was told that Kendall's W could ...
Can someone explain what minibatch discrimination is, in simple terms? Here is the link to the original paper. (Minibatch discrimination: Sec 3.2, page 3)
Is there any way to get a prediction confidence interval from a model fit with gam package? Working with mgcv is not an option for me as it doesn't provide as good fit as gam does on my data. The documentation on predict.gam says: Currently predict.Gam does not produce standard errors for predictions at newdata. It al...
Say we have $X|\theta \sim \mathrm{beta} (\theta , 1)$ and $\theta \sim \exp(1)$ How would one go about to find the marginal density of X? I find that the joint distribution of $(X, \theta)$ is $f(x , \theta) = \theta x^{\theta - 1} e^{- \theta}$. From here $\int_0^{\infty}f(x , \theta) d\theta$ does not seem like the ...
In this video on Deep Gaussian Processes, Neil Lawrence (at 37:30) mentions that thinking of the layers of a neural network in terms of basis functions from Gaussian processes can be viewed as a motivation/explanation for Ioffe/Szegedy's batch normalization. Can someone explain this comment to me? I'm not understanding...
For an ergodic Markov chain, it doesn't necessarily have to be $Detailed\ Balanced $ when it converges to stationary distribution, which means that: $\pi(\theta)\ P(\theta^{\prime}|\theta) \neq \pi(\theta^{\prime})\ P(\theta|\theta^{\prime})$ ; In the MH algorithm, however, by multiplying the acceptance rate $\alpha$ f...
I need to fit a KNN model to my dataset, which consists mostly of ordinal variables. One such variable is Education, with levels 0, 1, 2 and 3, ordered low to high. (I'm using R with the knn() function from the class package, whose documentation doesn't mention this specific case.) Is it sensible to fit a KNN model to ...
I ran an Exploratory Factor Analysis in SPSS recently with ML as the extraction method, and got the following table in my output: I was not used to seeing goodness-of-fit tests in the context of EFA (as opposed to CFA), and wondered what the point of it was. The SPSS documentation seems to suggest that it's a way of d...
If I roll 1 6 sided die, the chances of getting one number, say 6, is 1/6 or 16.6%. If I roll 2 dice simultaneously, then the probability of rolling that number twice is 1/36 or 2.7% (1/6 x 1/6). What if I have this situation: I roll a die, and if I get a 6, then I'll roll again. What are the chances of me getting a 6 ...
Given two limits $ L(x)$ and $U(x)$ that satisfy the follow condition: $P_{\theta}(L(x) \le \theta) = 1 - \alpha_1$, $P_{\theta}(U(x)\ge \theta) = 1 - \alpha_2 $. Knowing that $ L(x) \le U(x)$ for all $ x_{i} $, proof that $P_{\theta}(L(x) \le \theta \le U(x)) = 1 - \alpha_1 - \alpha_2. $
I want to perform an analysis on timeseries data which is measured per second. To give some context, it is a data of temperature of air at the exit of air heater. Fluctuations in data are either due to switching on and off around setpoint or partial switching of (1 of 2 coils) heater. Sustained low temperatures observe...
Hi I am trying to build a multiple regression model as a part of regression course for beginners. After selecting variables, I conducted a diagnosis, and I got a residual plot attached. I have learned that the plot is supposed to be randomly scattered and no fan shaped. However, I cannot understand how to interpret thi...
My stats background is not very strong so I was hoping I'd be able to get some help. In my MSc thesis I am using R to test for significant differences in means between populations. My data is not normally distributed (based on QQplots, Shapiro-Wilk's and histograms), therefore I cannot use parametric tests. So I am usi...
I have data that looks like this: selected_genes <- c("A","X","Y") pooled_genes <- c("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z") The question I want to answer is that if we pick 3 genes from pooled_genes how likely that selecte...
I am trying to build a multiple regression model as a part of a beginner's course. I came up a model after selection and conducted diagnosis. The picture below is the residual plot (x = fitted y = residuals). I cannot understand what this means and how to interpret it.
What is the effect of sample size on variance? If $n$ in two groups is different, does that automatically mean variance is not equal?
What is the derivative of the ReLU activation function defined as: $$ \mathrm{ReLU}(x) = \mathrm{max}(0, x)$$ What about the special case where there is a discontinuity in the function at $x=0$?
My book says that the function to minimize is: $S = e'e = (y - W\beta)'(y - W\beta) = y'y -y' W\beta -\beta' W'y + \beta ' W' W \beta$ and since they're all scalars: $S =y'y -2\beta' W'y + \beta ' W' W\beta$ Then why, in the First order condition, it becomes the following? $-2W'y + \underline{2} W'W\beta = 0$ ...
I'm doing a random forest regression for predicting the value of a variable. The inputs to achieve this value can be different, e.g. think about different recipes with different ingredients for making bread (different kind of breads). The ingredients can be totally different, e.g. wheat flour vs cornmeal, fresh yeast v...
I'm trying to evaluate the model results that I got from linear regression. For some models, I get a high r$^2$ (good) [89] but also a high mse (poor) [1000]. and in other cases for some models I get the reverse, a low r$^2$ score(poor) and a low mse (good). I'm confused as to which metric to rely on.
I have some data that are proportions that I am trying to fit a glm to. As the data are proportions someone suggested that the quasibinomial is the correct family of glm to go for. I am now trying to do the model selection. However, as R does not give AIC scores for quasi models I'm at a bit of a loss as to what to do....
This is a part of my lecture note. To test whether $\beta_2 \le 0$ at the 5% level of significance: Hypothesis: $H_0 : \beta_2 =0$ and $H_1 : \beta_2 >0$ I don't understand $H_0: \beta_2 =0$ instead of $\beta_2 \le 0$. My lecturer said it is because the worst case of $\beta_2$ is when it is equal to 0, but I don't ...
I am developing an unsupervised 1-dimensional clustering algorithm to detect regions of a protein in which genetic variants found in a population tend to concentrate. The analyzed data structure is a NxM binary matrix, where N is the number of individuals in the population and M is the number of amino-acids forming the...
I want to see if Wikipedia articles for topics featured in popular documentaries get a boost in page views on the day the documentary is aired. I then want to see if time on screen is a predictor of this boost. I have to account for baseline popularity but I'm not sure how. For instance, the Wikipedia article for glob...
This is probably a silly question, but is probability theory the study of functions that integrate/sum to one? EDIT. I forgot non-negativity. So is probability theory the study of non-negative functions that integrate/sum to one? Update https://youtu.be/FJd_1H3rZGg?t=2382 this definition of probability helps me unders...
So, I am trying to create a Neural Network which will effectively separate 2 Gaussian curves with somewhat different means and standard deviations. My basic aim is, for some given input vector the Neural Network will select 2 points from the 2 Gaussian curves (selection based on the input vector) and compare them, and ...
I have count data on the number of individuals showing 5 different ventral colourations in a free-ranging populations of lizards across 12 years. As the data was collected in the same population, the relative frequencies are not independent. Each year we recorded a different total number of lizards (about 50). We want ...
I am trying to build an image classification using transfer learning of VGG16 model. I acquired very small data set of 200 images for each class and used 10 images as validation(I know the data set is small but the requirement was for controlled environment). The model accuracy on unseen data is not great but the issue...
I am currently doing statistical software that supports POS software. They asked me to predict how this month's sale will be based on the same month but of previous years (5 years ago). Example: Predict the sales trend for the month of March of this year. I currently have sales from March of the years 2013 to 2017, and...
I ran a correlation test on some data I have containing job satisfaction ratings (0-10) and annual salary numbers, and this was the result: > cor.test(relevantSurveyResults$Salary, relevantSurveyResults$JobSatisfaction) Pearson's product-moment correlation data: relevantSurveyResults$Salary and relevantSurveyRes...
The bunching estimator is an estimator developed by Saez (2010) for kinks and Kleven and Waseem (2013) for notches in order to estimate the elasticity of taxable income. I understand the estimator for the case of homogeneous elasticities, which is also discussed here and here. I do not understand the case for heterogen...
Say I have a dataset with $n$ observations of two independent variables, X and Y. From the observations of the X variable I estimate a parameter $\hat{\alpha}$ and corresponding variance $\hat{\sigma}_{alpha}^2$, and likewise from variable Y I estimate $\hat{\beta}$ and corresponding variance $\hat{\sigma}_{beta}^2$. N...
Throughout the Snorkel tutorial here https://github.com/HazyResearch/snorkel and in the team's related white paper there's references to "gold labels", but the term evades definition. What are 'gold labels' in the semi-supervised classification context? Thank you.
This question is mainly theoretical, but based on problems I have experienced when previously designing research. I want to know whether there is an approved statistical method to compare the effect sizes of two between-groups differences, involving one categorical independent variable and two different continuous depe...
Similar questions to this Common name for distributions that are bounded on one side I am looking for common name or an exhaustive list of which distributions are bounded on both sides [0,1]. This is because my data is similar to this (cannot be less than 0 and greater than 100). I need to fit a distribution to this ...
I performed text clustering using k-mean method. mydat=read.csv("C:/kr_csv.csv", sep=";",dec=",") tw.corpus <- Corpus(VectorSource(mydat$name)) tw.corpus <- tm_map(tw.corpus, removePunctuation) tw.corpus <- tm_map(tw.corpus, removeNumbers) tw.corpus = tm_map(tw.corpus, content_transformer(tolower)) tw.corpus...
Suppose random variables $X_1$, $X_2$, and $X_3$ are independent and normally distributed, and $P(X_1\ge X_2)=p_{12}$ and $P(X_1\ge X_3)=p_{13}$. So what is $P(X_1\ge X_2 \cap X_1\ge X_3)$? Using multiplication rule for conditional probability, I have $P(X_1\ge X_2 \cap X_1\ge X_3)=P(X_1\ge X_3)P(X_1\ge X_2 | X_1\ge X...
I am trying to wrap my head around this problem. A die is rolled 100 times. What is the probability of no face being appearing more than 20 times? My first thought was using the Binomial distribution P(x) = 1 - 6 cmf(100, 1/6, 20) but this is obviously wrong since we count some cases more than once. My second idea is ...
I'd like to fit a Poisson-Tweedie model with random effects. I'm wondering if it is possible to do it with the mcglm package. I'm following the work of Bonat et al (2017): "Extended Poisson-Tweedie: properties and regression models for count data". In particular, I`m working with a count response variable measured in t...
I have the following hypothesis $\mu$=20 $\mu$>20 I am required to generate 1000 samples with sample size(n)=5 from the following 3 populations. N(21, 4) N(22, 4) N(23, 4) then I calculated the z value for each of these samples using the following formula Z=(sampmean-20)/(2/sqrt(5)) and counted the number o...
I am told this is true (and obvious). I intuitively, it makes sense, but I cannot think of a formal argument for it.
My assignment requires working on micro fit, when conducting an ADF test without trend nor constant I got a positive t-ratio, how do i compare it to the t-stat? Does it have to be less or greater than the negative t-stat value?