instruction
stringlengths
9
38.7k
Suppose, I want to compute the pairwise correlation in Stata, then I do the following: sysuse auto pwcorr Now, I want to compute the variance for each variables (numeric) and then obtain variance ratios of all possible combinations. For example, I have : sum Variable | Obs Mean Std. Dev. ...
I am about to write my bachelor thesis about non-parametric density estimation, especially kernel density estimators and their application in classification. As I am quite new to looking for academic literature, I am having a hard time finding the most important and modern papers, or other resources, and would be glad ...
I was reading this tutorial on ggplot2 and was struck by a bit where it said that durations are typically best displayed along a logarithmic scale Is this an established principle? The author states the claim as if it were, but I've never seen them plotted like this (at least not in phonetics), and to me, a linear s...
In table 3.3 (page 63) of the elements of statistical learning book, the intercept terms for Ridge regression, lasso , pcr and PLS differ. However, according to the theory in the book, these models should all have the same $\hat{\beta_0} = \bar{y}$. How are the intercepts estimated in the table ? Note that: all these...
I have seen the review of a multiple regression analysis using time series with a quarterly frequency. The original modeler advanced that the model's residuals were not autocorrelated by disclosing a Durbin Watson score that was reasonably close to 2.0. But, the model reviewer using an autocorrelation analysis more o...
Let's say you run a regression with over 200 observations. Would this reasonably large sample mitigate the impact of residuals heteroskedasticity as an offshoot of the Central Limit Theorem, or something similar. As a result, the statistical significance of the regression coefficients would not be in question.
I want to find out whether there was any significant difference in mineral concentration between chemical analysis and values declared on packaging. After carrying out Shapiro-Wilk tests to assess the normality of the data obtained in the lab, results indicted that data was both parametric and non-parametric. I have ca...
Let's say I have two regression models (I) $y_t=\beta_1+\beta_2 x_2+u_t$ (II) $y_t=\beta_1+\beta_2 x_2+\beta_3 x_3 + u_t$ How the omission of relevant variable (not irrelevant variable) affects adjusted $R^2$? That's when I compare Adj-$R^2$ for two models, what can I say? Which one less? I see this while studying ...
Concerning testing the hypotheses about the mean $\mu$ of a single population I know of things like the One-Sample $t$ test where there is a null hypothesis: $H_0: \mu = \mu_0$, and a test statistic $t = \frac{\bar{x} - \mu_0}{s/\sqrt{n}}$ is used to decide on rejecting or accepting the null hypothesis. I encountered t...
I am a computer science guy, not a mathematician so kindly excuse me if there is any ridiculous error in my problem description. I have two clusters $C_1$ and $C_2$ in a feature space spanned by $k$ features scaled between $0$ and $1$. That means each feature ranges between $0$ and $1$ after min-max normalization of t...
What's going on here? data.2 subj phon f.amp 1 1 V 100 2 2 V 60 3 3 V 124 4 4 V 42 5 5 V 210 6 6 V 104 7 7 V 150 8 1 ʔ 92 9 2 ʔ 33 10 3 ʔ 92 11 4 ʔ 32 12 5 ...
I'm struggling with two exercises for which I do possess answers, but I have no idea why they would be like that. I haven't done any statistics in a long time (restarting studies). Question 1 Two buddies agreed to come to a meeting between 1 pm and 2 pm. Each one will come at random time and will be waiting for 20 minu...
R doesn't return the correlation coefficient's variance (or standard error) when coding summary(linmod), linmod being a linear model with one stochastic variable. Wouldn't it be reasonable to first check this variance when reflecting on how reliable linmod is in terms of correlation, even before dealing with, say, the ...
I am studying my lecture notes where I saw this: $Y_t=Y_{t-1} +u_t$ $Y_t=0.5* Y_{t-1} +u_t$ $y_t=0.8* u_{t-1}+u_t$ The first two models are AR(1) and the third one is an MA(1) model. In the first model where $\beta$ is 1, the difference between today's value and yesterday's value is error. Well, which model should ...
The figure below (Figure 1 from p. 646 of this paper) compares observed values against expected values under the Poisson distribution. It then runs a chi-squared test to see if the observed values differ from the expected values under Poisson distribution. Using R, how is it possible to generate expected values unde...
The difference between confidence and prediction intervals has been explained in plain English on Cross Validated: Difference between confidence intervals and prediction intervals However, when should I use which measure? Are there situations where both measures should be used? I am looking for concrete examples illus...
I have some Poisson data {${y_1,...,y_n}$} and a Gamma prior, and I wish to construct a predictive posterior distribution. As I understand, if my Gamma hyperparameters are $\alpha$ (the prior number of occurrences) and $\beta$ (the prior number of observations), the predictive posterior is: ${y\space|\space y_1...y_n,...
In the book, it is written that the relative frequency or the frequency ratio gradually tends to become more or less constant as N becomes larger and larger. It is also mentioned that this is an empirical fact. My question is: why should the frequency ratio tend to a constant in the long run ? I mean, there isn't any c...
This is a basic question, but when I was asked about it I only could give a weak answer. That's why I am asking it here. If we want to calculate the confidence level for the mean there is the formula: $(\bar{x}-t_{n-1}s_{\bar{x}},\bar{x}+t_{n-1}s_{\bar{x}})$ I know that the t distribution comes in, when the variance is...
I'm trying to see why this is the case. I have taken the LHS and added $X\hat{\beta}$ and subtracted $X\hat{\beta}$. From this I can get both terms on the right but I end up with a cross product term $2(y-X\hat{\beta})^T(X\hat{\beta} - X\beta)$ that I can't prove equals to zero. I think there is some trick I'm missin...
Let $a_{1},a_{2},a_{3}$ be independent with a normal(0,1) distribution. Define $X_{1},X_{2},X_{3}$ by $X_{1}=a_{1}$, $X_{2}=\theta X_{1}+a_{2}$ and $X_{3}=\theta X_{2}+a_{3}$ Find the MLE for $\theta$ . My attempt: I get that $X_{1}$ has distribution $N(0,1)$, $X_{2}$ is $N(0,\theta^2+1)$ and $X_{3}$ is $N(0,\theta^4+...
I've got a binary characteristic and a population $S$ with size $n$ and $P[X] = p$ such that $p$ may be small and $n$ is extremely large. Within this population are subpopulations of various sizes $S_0, S_1, \dots, S_k \subset S$. I'd like to be able to select each subpopulation in which $p_i < p$ with some concept of...
I'm having a little trouble with the proof that the expected value of $x_i$ is $ \bar{X} $. What I have is $E[x_i]=\sum_{j=1}^{N}X_j Pr(x_i=X_j) $ Then, $Pr(x_i=X_j) = 1/N $ This is the bit I can't understand, how does that probability evaluate to that value. I know the denominator is how many ways you can choose n ou...
-I have ~6mo of data that contains daily weight/caloric intake & #carbs/fats/proteins. I'm trying to figure out a way to make sense of the data. It's not a perfect experiment so there are other factors I should have considered and taken into account some sort of maintenance metabolic conditions (calories/macros to stay...
I know that $E[x_i] = \sum X_iP_i= \bar{X}$ But I can't quite figure out the probability in the middle step. I can't find any material online to help clarify this. Any suggestions ?
I would like to know more about interaction in LMM using lmer. Can you recommend me any books, articles, websites?
I'm a complete rookie when it comes to logistic regression and I seem not to be quite aware of the concept of deviance residuals. Could anyone help me interpret this plot? As far as I know these residual values should fall along the intercept. All covariates are statistically significant.
I have a dependent variable w with independent variable x representing time, which is clustered by variable site. In addition, I have indicator variables for 3 time period: i1, i2, i3, which correspond to three distinct time periods along the timeline (separated by t1 and t2). Since I want an overall fit, which evalu...
What is the difference between Primal, Dual and Kernel Ridge Regression? People are using all three, and because of the different notation that everyone uses at different sources is difficult for me to follow. So can someone tell me in simple words what is the difference between these three? In addition what could be ...
Does a checksum ensure absolute data integrity? That is, if a piece of data several gigabytes long changes a single bit, the odds are dependable that the checksum will be different, particularly with strong hash functions like SHA256? Phrased differently, I'm asking whether a checksum offers assurance of reasonable int...
Suppose I am fitting a linear model, and I have two continuous predictors x1 and x2. I think that they might interact, so I add the (linear) interaction term to my model (i.e., the pointwise product x1 * x2). Now, as a rule of thumb, it seems to me that as soon as I do this, I should probably also include quadratic ter...
I am reading Judea Pearl's "Causality" (second edition 2009) and in section 1.1.5 Conditional Independence and Graphoids, he states: The following is a (partial) list of properties satisfied by the conditional independence relation (X_||_Y | Z). Symmetry: (X_||_ Y | Z) ==> (Y_||_X | Z). Decomposition: (X_||_ YW |...
I want to compare the effect of a drug (immunomodulator) on antibody levels in a group of patients $(n=18)$. Blood samples were taken pre- and post-treatment in each patient and the means of antibody levels compared for each study subject. At this point I guess that the best and simplest option is a paired t-test. Howe...
I did a simple mediation analysis using PROCESS (attached). The result is all significant however the path "b" or M -> Y is negative. I've read somewhere, Zhao et al., that this is called "competitive mediation?", BUT i do not know how to explain or interpret the result. Can anybody explain this? Thank you.
I'm using R to fit a neural network to data generated by the formula $y = x^2 + \frac{\epsilon}{2}$ where $x \sim \mathcal{U}(0, 2)$ and $\epsilon \sim N(0, 1)$ (very simple, right?). The following plot shows the plot of function $x^2$ and the generated data: Now, I take the average error for $10$ runs for a Neural Ne...
I am performing a repeated measures ANCOVA with Mood Scores as the dependent variable, Image Condition as the independent variable, BMI as the covariate and Time as the random effect. And I would like to find out if BMI moderates the changes in pre and post mood scores in all three image conditions. Hence, I would be l...
I have a question regarding Multidimensional Scaling. I used the dataset eurodist from the package datasets to generate a 2 dimensional configuration of the distances between European cities. I expected a nearly exact representation of the location for the cities (although the points could be mirrored) because we have ...
Suppose I have fitted a Poisson GLM to model rates as follows: > fit.1=glm(response~X1+X2+ offset(log(population)),family=poisson,data=...) I can get the estimated rates by using two new values for X1 and X2 and population=1 as follows: >new.data=data.frame(X1=new.X1,X2=new.X2,population=1) >estimated.rates=predic...
I have been implementing the (kernelized) Pegasos algorithm, but am running into problems in terms of scalability. I will use notations as in the original manuscript. Here's a typical time measurement: percent m t1 t2 0.05% 32 701 961 0.1% 64 676 1890 0.2% 128 64...
This is the question I am trying to answer : I’m working on a thesis project and have a variable that is normally distributed and related to happiness. I am considering to split my sample into depressed and non-depressed and run the correlation and the rest of the analyses that way. I think it will help clarify the dif...
I want to construct a $3^{5-2}$ design with $I=ABC$ and $I=CDE$ as generators. The complete defining relation for this design is: $I=ABC=CDE=ABC^{2}DE=ABD^{2}E^{2}$. This is a resolution III design with $x_4=2x_1+2x_2+x_3$ and $x_5=x_1+x_2+2x_4\:({\rm mod}\:3)$. Question I wonder how to get $x_4=2x_1+2x_2+x_3$ and $x5=...
In many cities, neighborhood Crime Watch groups are formed in an attempt to reduce the amount of criminal activity. Suppose one neighborhood that has experienced an average of 10 crimes per year organizes a Crime Watch group. During the first year following the creation of the group, 3 crimes are committed in the neigh...
How do I calculate the correlation using ordinal data based on a 5-point Likert scale associating perioperative education to patient satisfaction scores? A numerical value (1: strongly agree – 5: strongly disagree) will represent the participant's perception of satisfaction as a patient as related to perioperative e...
I am having some issues understanding how unsupervised Random Forest works according to Breiman. I only have unlabeled data, so the thought arose to use unsupervised Random Forest and use the resulting dissimilarity matrix as input for a cluster algorithm. One "constraint" is that I have to use Weka. Can someone expla...
Using an independent samples t test, I am comparing the performance of 2 groups on an activity, based on the percentage of items correct (the percentage of total items correct, as well as percentage of items correct for four sub-domains of the activity). The n of one group is 23, and the n of the other is 34. Due to a...
I'm not an economist and I am little confused. I want to build a hedonic model and regression for analyzing price evolution of some product (e.g. computers) on the market and hedonic price/quality indices. The analysis shoud be based on two points: before entry of a new player on the market (period of two years) and ...
I have some funnel data from a website I manage. After some time I did some improvement on a multi-step purchase process. I wonder if it's possible to formulate a test that with statistical significance can assess if the improvements in the process have actually been effective. In other words I would like to test if t...
In my data, I have two treatment conditions with repeated measures for each subject. I would like to run a mixed logistic regression separately for each of my two conditions where my binary outcome DV (dependent variable) is regressed on my IV (independent variable) and also have a random slope and intercept fitted for...
It is obviously fallacious to assume that failure to reject the null implies that the null is true. But in a case where the null is not rejected and the corresponding confidence interval (CI) is narrow and centered around 0, does this not provide evidence for the null? I am of two minds: Yes, in practice this would pr...
I was trying to understand the derivation of SVM decision boundary. Suppose my decision boundary is y-x-1=0. Now in the book it was written that (y-x-1) = +/-(1), are the equation of the maximum margins. But my question is why are we choosing a distance of 1 from the decision boundary ? How do we even know that we wou...
I have an example of call center data for 2013. There are 261 days of data (excluding weekends). For 2013, I have included a holiday dummy variable (holiday) for the days where there were no stats. For 2014, I have also included a future holiday dummy variable (holidayf). My objective is to assess how accurate this cod...
I've got four dependent correlations (i.e., from the same sample) that involve predictor variables $(A,B,C,D)$ and an outcome variable $(E)$. $N=172$. $$\begin{array}{c|cccc}{\rm Statistic}&AE&BE&CE&DE\\\hline r&-.480&.276&.395&.327\\p&< .01&< .01&< .05&< .01\end{array}$$ I am trying to run three chi-square tests on th...
I have a large data set composed of several "independent" data frames like this one Tiempo UT1 UT2 UT3 UT4 UT5 UT6 UT7 UT8 UT9 3082 616.2 0 4 0 1 1 0 0 0 0 3083 616.4 0 1 0 0 1 0 0 0 0 3084 616.6 0 0 0 0 1 0 0 0 0 3085 616.8 0 1 0 1 2 0 0 0 ...
I need the U values of Mann-Whitney test, but the wilcox.test in R outputs only W values. I do not think they are identical, so here is my question - how to convert W to U?
I'm trying to do A/B testing the Bayesian way, as in Probabilistic Programming for Hackers and Bayesian A/B tests. Both articles assume that the decision maker decides which of the variants is better based solely on the probability of some criterion, e.g. $P(p_A > p_B) = 0.97 $, therefore, $A$ is better. This probabili...
I have about 30000 particles distributed (not randomly) in space; I have their vector positions and velocities. I'm trying to characterize if and how the (underlying) velocity (magnitude) distribution these particles are assumed to sample changes on different scales. The underlying velocity distribution is of unknown f...
Suppose we have some data, $\{y_i, x_{1i}, \dots, x_{ki}\}_{i=1}^n$ and we want to build a linear model of the form $y_i = \beta_0 + \beta_{1'i}x_{1'i} + \dots + \beta_{k'i}x_{k'i} + \epsilon_i$, where the primed indexes are a subset of $\{1,\dots, k\}$. There are $2^k$ possible models to choose from. Now if we randoml...
I am finding it hard to understand Gaussian Processes. Can someone please explain it here in an accessible way? I do understand what Gaussian distribution is but couldn't understand Gaussian Processes. Or if you could provide some great resources to quickly learn about it.
I am calculating a simple integral $\int^1_{-2} \exp{x^2}(x+1)dx $ with Monte Carlo method using a linear density function $p_\xi (x) = \frac{4}{9} + \frac{2}{9} x $. Let say I have a a sample which is distributed on the interval [0,1]. In order it to be distributed on interval [-2,1] I integrated it, following the alg...
I have a dataset with 2 measures that were tested over 30 time points. I have a two groups of people who have both measures at all 30 time points. How do I compare the groups using SPSS?
I have an ARMA model which has these terms Constant + AR23 + MA1 + MA3 + MA24. The residual of this model has heteroskedasticity (from ArchTest) and I am trying to model these using a GARCH. While modelling the residuals through GARCH, I do want to retain the AR23 + MA1 + MA3 + MA24 terms, although they can have differ...
I'm not sure how to find part a, what formula can be used to find this mgf?
I have done part(a); now I need to do part(b): I want to simulate the distribution of the median $M$ using R. I don't know how to work it out. And for part(c), do I need to use R as well? This is what I have done medians <- vector(length=100) for (i in 1:100) { x <- rnorm(n=15,mean=0,sd=1) medians[i] <- med...
Please, I have a doubt in my study for doctoral thesis… Title: “Development of a thermal cycling protocol for dental materials”. Objective: to create a protocol for thermal aging, from measurements that were found in people mouth. Doubt: What analyses could I use for this variation temperature data? Experimental unit:...
I am considering to do a multiple regression in which some of the predictive variables are PCA (principal components) axes whereas others are NMDS (nonmetric muliple dimension scaling) axes. I would like to know if this is incorrect and why. I'm considering this because I have two groups of many variables that I want t...
I keep running into these nice pictures: But I have no idea what they are called!
I understand that Bartlett's Test is concerned with determining if your samples are from populations with equal variances. If the samples are from populations with equal variances, then we fail to reject the null hypothesis of the test, and therefore a principal component analysis is inappropriate. I'm not sure where ...
Two questions: I have a really hard time with the intuition for why the second part of this statement is true: If two statistics have non-overlapping confidence intervals, they are necessarily significantly different, but if they have overlapping confidence intervals, it is not necessarily true that they are not...
I recently reread some statistics books and noted something weird: They all discuss the assumptions of linear regression and mention the need for a normal distributed dependent variable. In the next step, there is always a discussion of variables which are non-normal and potential "cures" like sqrt, log, inverse etc. ...
In continuation to this question $p(h|D) = \frac{p(D|h)p(h)}{p(D)}$ $p(h) = $prior probability of hypothesis $h$ $p(D)$ = prior probability of training data $D$ $p(h|D)$ = probability of $h$ given $D$ $p(D|h)$ = probability of $D$ given $h$ I am inputting to a machine a training data $D$ in form of a table with $n$ tr...
I have a question regarding machine learning and specifically kernel functions. Suppose we have a Kernel function, say $K(x)$, and also another distinct one, say $K'(x)$. I want to know is $K(K'(x))$ a kernel function as well? That is, if one feeds the output of a kernel function to another kernel, what does it mean? d...
I am looking for programs and procedure for the Bradley-Blackwood test, which is normally used to assess test-retest reproducibility.
Lets say we are interested in some unknown variable x. We poll a x at different intervals and get a set of values that x has been. However we know that if we poll x enough times we will eventually get repetition since x is random. What can be gained from knowing the upper bound of x. A brief example: Lets say I want to...
I have read a little about record linkage, but it seems to me that a requirement is that all fields in both sources can be compared. For example, with sources A and B, an assumption is that we can create a 'comparator' measure on all their fields. So for example both A and B may include First and Last name, location, e...
I have a dataset with 90 different sets of GO terms (e.g. one set would be ("GO:0014075", "GO:0060742", "GO:2001238", "GO:0071478"). I want to plot the overlap between all of these groups. I don't know what, if any, type of plots are used for showing overlap between many groups. For a smaller set of groups I could use ...
I'm doing my master thesis on FDI effect on Chinese wage inequality. I am new to quantitative econometrics so I have no idea if my wage equation is correct. $$W_{it} = β X_{it} + λ_t + η_i + ε_{it}$$ Where the wage paid by firm $i$ in year $t$ is denoted as $W_{it}$. $X_{it}$ contains a set of control variables (includ...
When fitting multiple variables to one outcome via the lm() function in R, summary(lm) gives me the p-values for individual regressors but not for the full model in an easily extractable (as in, just accessing fields) kind of way. According to this question, it is possible to extract the p-value via summary(lm)$fstatis...
I am desperately looking a way to obtain the p-values for the fixed effects on my glmer model. Any idea ?? I found a lot of things for lmer model but nothing worked with the glmer ... thank all !
This paper (open access) Babies born at the threshold of viability: changes in survival and workload over 20 years (table 2) presents data for survival of extremely premature babies over the last 20 years in 4-year time periods. They state that the survival of 23-week gestation babies has not improved over this time (...
I have two large data sets, in fact, one of them is even much larger than the other. Visually, there doesn't seem to be that much difference between them: The actual data underlying the box plot isn't normally distributed and doesn't normalise well to transformations. They are roughly the same distribution (i.e. the ...
This question is concerned with the paper Differential Geometry of Curved Exponential Families-Curvatures and Information Loss by Amari. The text goes as follows. Let $S^n=\{p_{\theta}\}$ be an $n$-dimensional manifold of probability distributions with a coordinate system $\theta=(\theta_1,\dots,\theta_n)$, where $p_{...
I'm currently working with the method proposed by Koenker (2004) and Lamarche(2010) on fixed effects for quantile regression, for this I'm using the RQPD code in R. I would like to get the predicted values for each firm after running the RQPD code. The problem is that, after the running the code is only possible to ret...
I'm currently testing a (binary) logistic regression model, which seems to have at least some issues with multicollinearity. Now I don't really trust the data anymore and would like to also test it on heteroscedasticity. I found some information on Breusch-Pagan Test on the internet, but I could not find an answer to t...
I have a bunch of data in the following format: Count|| Fruit |Fruit Col.|| Veget. |Veg.Col.|| Spice --------------------------------------------------------- 123 || Apple | Red || Carrot | Orange || Cumin 20 || Apple | Red || Carrot | Green || Pepper ... 20K more combinations... 1 || Oran...
I have two variables, both categorical, one with skewed responses. How do you deal with skewed data in the chi-squared test? Are there any other relevant tests? I want to perform the test in SPSS.
Let $X_{1},..,X_{n}$ be independent, each with a exp($\lambda$) distribution. Let $Z=min(X_{1},..X_n)$. Show that $n\lambda Z$ has an exp$(1)$ distribution. I calculate that $P(Z>z)=e^{-n\lambda z}$. Hence the density function of $n\lambda Z$ is $f(z)=(n\lambda)^2e^{-n\lambda z}$. But an $exp(1)$ distribution would ha...
I'm aware that the t-test needs 'normally distributed data'. But take the variable y. When it is plotted without being split by group, it isn't normally distributed: set.seed(1) y <- c(rnorm(1000, 1), rnorm(1000, 5)) group <- c(rep("A", 1000), rep("B", 1000)) df <- data.frame(y=y, group=group) library(ggplot2) ggplot(...
I'd like to conduct a multivariate cluster analysis on data from the American Community Survey's PUMS microsample (individual level records). I've only performed cluster analysis before when there are no errors (or imagined to be no errors) in the data. Has anyone tried to combine Thomas Lumley's excellent survey anal...
Coming from a social science and epidemiology background, my coworkers were trained on least squares regression, logistic regression, and survival analysis. They like to see 95% confidence intervals and p-values with the parameter coefficents, and are distrustful of more current predictive tools such as neural network...
I am using R and MCMCpack to do a Bayesian analysis of some data that I have. I have generated posterior distributions (postDist) on the means of some parameters (y1,y2,y3) using MCMCregress (postDist <- MCMCRegress( x ~ y + z ,...)). Now, I would like to take those posterior distributions on the means and generate ...
At the moment I'm studying bootstrap and I want to do some examples to get a feeling for it. Suppose I generate the following data: set.seed(10) data <- rnorm(1000,1,3) number <- min(data[data <= 0.9]) number so number.min will contain the minimum number of the data in the interval $(-\infty,0.9]$ which is equal to $-...
Should Python's statsmodels.api.GLM(train_y, train_X, family=sm.families.Binomial()).fit().predict(test_X) always produce the same results as R's predict(glm(y ~ ., data=train_X, family=binomial), newdata=test) where train_y is a pandas DataFrame containing the y column in the corresponding R data.frame, train; and w...
I am currently working on a programme to compute the mutual information between a variable and a set of variables. Since I am working with discrete data, I am computing $\sum_{a\in A,b\in B,c\in C}P(A=a,B=b,C=c)\times\log_{2}\left({P(C=c)P(A=a,B=b,C=c)\over P(A=a,C=c)\times P(B=b,C=c)}\right)$ where I look up in my Dat...
Consider the $(X_{i1}, X_{i2}), i=1, \ldots,n $, where $X_{i1}, X_{i2}$ follow bivariate normal distribution with correlation $\rho$. Define the sample means as $\bar X_j= \dfrac{1}{n}\sum_{i=1}^n X_{ij}, j=1,2$, and the sample correlation as $\hat \rho = \dfrac{\sum_i (X_{i1}-\bar X_1)(X_{i2}-\bar X_2)}{\sqrt{\sum_i (...
Show that $Y_1$, the first order statistic is a consistent estimator of the parameter $\alpha $ of a uniform distribution with $\beta = \alpha+1$ Here $f_{Y(1)}(y_1)= \begin{cases} n*[1-(y_{(1)}-\alpha)]^{n-1}, & {\alpha <Y_{(1)}< \beta} \\ 0, & \text{otherwise} \\ \end{cases}$ By definition If $P[|Y_{(1)}-\alpha|<...
I have a sample composed by 200.000 projects. Each project is defined according to its size ($S$) and the presence of active users ($U$). The values for $S$ are greater than zero; on the other hand, $U$ is a binary variable (1 if the project has active users, 0 otherwise). I would like to check if $S$ and $U$ are rela...
I'd like to compute the moments and quantiles of a random variable which is the output of a sensor. I don't intend to store all the values this sensor outputs (let's say it outputs one value each 15 minutes), but rather keep batches of these values (for example a two weeks' batch) that I'll discard from time to time. I...
im new to binary logistic regression. I don't know whether the test is giving me real results based on my data set. My dependent variable will be the presence of STEC in fecal samples (Presence= Yes, Absence = No) . I have 9 independent variables: Season: Winter = 0, summer = 1 Geographic location: Urban = 0, rural = ...
I have a dataframe consisting time series of measurements taken every hour for 366 days or a year. Below is shown a sample of hourly measurements for the first two weeks. I want to cluster days with similar profile of hourly measurements. By using R, how can I group days with similar profiles? Thanks. Day1 Day2 ...
If I have a random variable $X$ which has mean $\mu$ and variance $\sigma^2$, what is the approximate expression of $\log(X)$ and $\sqrt{X}$? Do I assume normal approximation or use Taylor expansion?