instruction
stringlengths
9
38.7k
I've been reading a number of articles and blog posts about issues relating to hypothesis testing. While these sources seem to put forth legit problems with hypothesis testing and it's interpretations, I'm not seeing anything in terms of alternatives to it (beyond bayesian hypothesis testing). What are some alternative...
This webpage says: Inferential Statistics - Deductive Approach Descriptive Statistics - Inductive Approach But I doubt it. If I understand correctly, Inferential Statistics is "given some data, find the probability model that generates the data", so it is a specific-to-general logic process, and therefore it is i...
It appears that the binomial distribution is very similar in form to the beta distribution and that I can re-parametrize constants on either pdf to make them look the same. So, why do we need the beta distribution? Is it for a specific purpose? Thanks!
I want to obtain a correlation between the accuracy of two linguistic features by language learners. The learners wrote a number of essays, and the number of correct and incorrect use of the article and the plural marker was tallied in each essay. The data for a learner look like the following, though the number of ess...
I would like to understand complexity of time series clustering. Clustering is similarity based, so as a basic step we evaluate distance between to points in a multidimensional space. In time series, each point is expanded in time - a function of time. Instead of finding distance between two points we are finding dista...
This is a homework problem out of Agresti's Analysis of Categorical Data (1.34b) For counts $\{n_j\}$ the power divergence statistic for testing goodness of fit is $$ \dfrac{2}{\lambda(\lambda+1)}\sum_{i=1}^m n_i[(n_i/\hat{\mu}_i)^\lambda-1] \quad \text{for }-\infty < \lambda < \infty$$ As $\lambda$ approaches 0, show ...
An exercise asks me to show that if $X_1,X_2,\ldots,X_n$ is a random sample from a Poisson distribution with parameter $\theta$, the conditional distribution of $X_1,X_2,\ldots, X_{n-1}$, given $Y=\sum_{i=1}^n X_i$, is multinomial. Normally, this would have been an easy one but unfortunately the joint distribution here...
I am working on a project and have to find a way to break my data into percentiles. The variables that I already have are gender, age in months and BMI. If I am able to calculate the percentile that each child falls into, I will then be able to label them as underweight, normal weight, overweight and obese. I would be ...
I am wondering how one should properly analyse longitudinal data from simple experiments (not observational studies). Imagine an experiment where subjects are first measured at baseline, randomised to different treatments and then followed for a number of time periods. We are interested in differences (typically in mea...
I have heard of unbiased estimate and MLE of variance, and some about those of kurtosis. Are there general results about unbiased estimates of k-th order central moments? MLE of k-th order central moments? unbiased estimates of k-th order standardized moments? MLE of k-th order standardized moments? Thanks!
Some colleagues asked me to perform a residual analysis on both linear models and generalized estimating equation (GEE) models. I know it is a faux-pas in some circles to remove outliers, but in our field it is common as a sensitivity analysis. In R, there are some great tools as diagnostics for linear models in the in...
I created a $k$-means with 3 clusters. Some of the variables had a big scale, so I used a $z$-score to standardize them. The others (mostly dummies), I left as is. Now, when I create the table of all variable centers for each cluster, obviously the ones I standardized are still expressed in the $z$-score format. The ot...
I've seen Change detection algorithm - likelihood ratio but I am afraid my question is more basic. I have a sequence $(x_j)_{j=1..N}$ of random observations. I know, these observations are not all from the same random variable, but the random variable changes at several times. I.e. there is a $m$ with $1 < m < N$ and ...
A common measure of effect size used in the social sciences is to look at the standardized difference in means between two conditions (Cohen's d). That is, take the difference in means between two independent samples, and divide that number by their pooled standard deviation. Here's my question. I wonder if you can cal...
I need a little help with a problem I am working on. So here's the situation, a seller can produce a apple for $1.00$ and I need to find the optimal price of selling the apple and expected profit per buyer if the distribution of the value of the apple is EXP(1). So I just need some confirmation on what I am doing. What...
Suppose that the vector $\tilde{a} = (a_1,a_2,...,a_J)$ has a multivariate normal distribution and let $$A = \Sigma_{j=1}^J a_j\,.$$ Then what is the distribution of $a_j/A$ or $\tilde{a}/A$ called? I do know that Dirichlet distribution can be used to deal with a vector of which the sum of the elements is one...
There are two kinds of estimates of variance from an iid sample $X1, \dots, X_n$ $1/n * \sum_i (X_i - \bar{X})^2$, which is MLE $1/(n-1) * \sum_i (X_i - \bar{X})^2$, which is unbiased. The unbiased estimate has a bigger variance than the MLE, for a given $n$. So I wonder when to prefer which of the two? Thanks!
Bayesian model averaging uses approximate Bayes factors. Some researchers use AIC to weight models. Is there justification for using, say, the Brier score, median absolute deviation, or other such scores computed from out of sample predictions to construct weights for model averaging instead of the various information ...
In Wikipedia, the method of moments uses only ordinary moments: One starts with deriving equations that related the population moments (i.e., the expected values of powers of the random variable under consideration) to the parameters of interest What if the method of moments uses other types of moments, such as c...
Say you have a set of data of lengths, widths, and heights of a rectangular box. Why do we have to use error propagation to calculate the std. dev. of the box's volume? Why couldn't we calculate the volume associated with each l/w/h datum, and take the std. dev. of that?
Regarding estimators of variance from a iid sample of size $n$, Karl Ove Hufthammer says Estimates of variance from an iid sample: if they do have a normal distribution, dividing by n+1 (sic!) will give the lowest mean square error. Why does it give the lowest mean square error? What does he mean by "(sic!)"? Tha...
Reading this webpage, I wonder: Are confirmatory analysis / statistics and inferential analysis / statistics the same concept? Are exploratory analysis / statistics and descriptive analysis / statistics the same concept?
Matrix equations of some sort or matrix decompositions often lie in foundation of many algorithms not only in data analysis but in many other fields. The wealth of already written libraries makes it tempting to formulate frequent itemsets mining problems in terms of said matrix equations and/or decompositions, yet afte...
If we have the events: A is the number of rainfalls/month in a given period of time (rate of which is equal in each month) B is the number of hailstorms/month in a given period of time (rate of which increases in winters) Can we statistically prove the probability of event A increases whenever the probability of ev...
I have generated a L1 penalized Cox model using the penalized package in R. I used the optL1() function to generate the Breslow object (see below): fit <- optL1(surv.obj, penalized = ..., etc) In the reference manual, it says the fit$predictions are the cross-validated predictions for the left out samples. Does this...
Let's suppose I have a time series data that I would like to regress $y$ on $x$ and $Time$. See below for the dataset. y x time 12 100 1 14 101 2 16 102 3 18 103 4 20 201 1 22 202 2 24 203 3 26 204 4 Approach 1: One approach is to do a multiple linear regression or neural networks or SVM directly on the d...
Suppose we have a DIY market and for all wrenches we are selling, we collect a various number of more or less important attributes (size, weight, price, hardness of material, etc., all of them quantitative). Also we know how many items we sold last year, so we can get the revenue. I'd like to model the revenue in a lin...
I have a few questions with regards to a solution to the problem below: How is it possible to have $max_{1\leq{i}\leq{n}}x_i-1<\theta<min_{1\leq{i}\leq{n}}x_i$? How can a value of $\theta$ be both greater than a larger value and less than a smaller value? Isn't that contradictory? How is it that $max_{1\leq{i}\leq{n}...
My aim is to detect a malware by testing it with the extracted features. I have extracted the binary features of 150 malware and 150 benign files by using the hex editor tool for unpacking the files and net beans for generating a dataset into an Excel sheet. Now I have features of malware and benign datasets in separat...
The definition of a sufficient statistic is: Let $X_1,...,X_n$ be a random sample from a distribution indexed by a parameter $\theta$. Let $T$ be a statistic. Suppose that, for every $\theta$ and every possible value $t$ of $T$, the conditional joint distribution of $X_1,...,X_n$ given that $T=t$ depends only on $t$ bu...
I have a bivariate set of data points which I want to fit to a self-defined distribution (i.e. not standard normal or chi-square or like that, a different, let's say "new" density function). I would wish to fit it via method of maximum likelihood, but my density function has 2 infinite sums in it so strictly speaking ...
I would like to check my understanding of the Chow Forecast test.The test is used to perform a test on the following models: $y_1=\beta X+\epsilon_1$ and $y_2=\beta X+ \nu + \epsilon_2$, with $H_0:\nu=0$ and $H_1: \nu\neq 0$. Now I wonder whether that means that the following holds true: \begin{align*} F&=\frac{(e_R'e...
The kurtosis is to measure the peakedness and flatness of a distribution. The density function of the distribution, if it exists, can be viewed as a curve, and has geometric features (such as curvature, convexity, ...) related to its shape. So I wonder whether the kurtosis of a distribution is related to some geometri...
I used nftool in Matlab 2012 and trained a network. I gave the training inputs as x=[250:1] and targets as t=[250:1]. I used 10 hidden layers. I trained the network and got the results and exported the data to workspace. I finally got net as the variable in the workspace. I want to realize this network in hardware. So,...
I'm studying regression analysis but I'm struggling with really understanding how degrees of freedom are calculated. For example, if we have the simple scenario where $Y_i=\beta_0+\beta_1 X_i + \epsilon_i$ (and all the standard assumptions hold) then I read $\frac{1}{\sigma^2} \sum_{i=1}^n (\hat{Y}_i - \bar{Y})^2 \sim...
I have a problem with logistic regression. I had found out (here) that one of the assumptions of logistic regression model should be min. of for example 50 observations per predictor. But if I had created dummy variables in Stata using "i." operator, does every dummy category count as new predictor? example: i.marit...
I have a two data-sets of a set of subjects with values for their baseline and followup visit. I would like to do a repeated measure test to see whether there is a significant difference between the two sets (baseline & followup). I know I can do a simple paired t-test. But I need to adjust my values for covariates lik...
I recently read a paper made a logistic regression and used a table like this to summarise the model: data.frame(predictors = c("drat", "mpg"), "chi squared statistic" = c("x", "x"), "p-value" = c("x", "x")) predictors chi.squared.statistic p.value 1 drat x x 2 mpg ...
Actually I thought Gaussian Process is a kind of Bayesian method, since I read many tutorials in which GP is presented in Bayesian context, for example, in this tutorial, just pay attention to page 10. Suppose the GP prior is $$\pmatrix{h\\ h^*} \sim N\left(0,\pmatrix{K(X,X)&K(X,X^*)\\ K(X^*,X)&K(X^*,X^*)}\right)$$, $(...
I have a Audio time-series, to which I'm trying to detect the most significant parts of the signal, i.e. the voiced parts and forget the unvoiced parts. $$ T = [0, 0, 1, 1, .....n] $$ I then compute the Spectral result of the time series, which, gives me a dimensional frequency representation of the input signal. Fro...
Let $D_n$ be the demand for an item at a store on day $n$. Suppose that $D_n$ is a sequence of independent and identically distributed (i.i.d.) random variables with probability mass function: $p_k = P(D_n = k)$ Suppose the store follows the following inventory management policy. If inventory at the end of the $n$th da...
I have 10 millions of filenames and I need to determine whether filename corresponds to some movie or video game. For this I initially thought to compare filenames using Levenshtein distance with imdb list ftp://ftp.funet.fi/pub/mirrors/ftp.imdb.com/pub/ but it turns out that direct compassion requires $O(nm)$ where n...
When describing the condition number of a correlation matrix I have seen is described as the ratio of the singular values (from singluar value decomposition). I have also seen it described as the ratio of the eigenvalues (from PCA analysis). Can both be correct (under say different norms)? If so which one would be con...
Given the 7 different samples with mean and variance for each group. What can I use to tell if these samples from the same population with 0.05 and 0.01 significance level? Sample Mean Variance A 50 5 B 47 4 C 52 5 D 51 6 E 49 5 F 52 4 G ...
I have spent two days grappling with this question, and the range of ambiguous answers online has driven me to ask. I am working with R. I have a dataset where my dependent variable is an ordered categorical variable with 5 levels ("dislike very much" to "like very much"). I intend to use the ordinal package for the ac...
I've read "AB Testing other factors besides conversion rate", but I don't know if it's relevant with my question, even if it seems similar. Here is my problem. Let's assume I am creating a new tools designed to help user do their task. I A/B test this tools, where some user get the tools, and other doesn't. I want to k...
I have been trying to implement mutual information in a java program that tries to identify terms that occur often together in documents. Basically, the program does the following: There is a text collection of just over 4.000.000 summaries from Wikipedia. This is searched through based on a query, resulting in a colle...
I found an online resource which lists the plim formula for a simple regression under the classic errors-in-variables assumption as: $$ \text{plim }\beta_1=\frac{{\rm Cov}(y, x_1)}{{\rm Var}(x_1)} $$ Why is this the case? Where does this formula come from?
I understand how to calculate the probability that a value falls above or below a certain Z score. How about calculating the probability that a value is equal to a particular Z? In my homework I see that probability that P(X=m) (the mean) is 0 since 50 percent of the data lies above and below the point. Can I use the ...
Say you are counting sharks and whales in the Atlantic and Indian occeans and want to check if eg sharks prefer the Atlantic and whales the Indian occean, as described in the example here. But instead of just total counts (eg sharks observed in the atlantic), you keep counts for individual days. For example: +--------...
Related to this question, if I have 1500 or so jackpot results from a 6/49 lottery (numbers drawn, number of winners and prize per jackpot winner), how can I demonstrate that some numbers are less likely to be chosen by players than others? I don't have direct access to the distribution of numbers actually picked, of c...
I am working on a regression assignment using SPSS. I have raw, centered, and z scores for the data. I already regressed the DV and IV and see the unstandardized and standardized coefficients under the coefficients output box. My standardized regression equation is: Y’=1727.528X+-6290.967 and unstandardized regres...
My class notes list the following steps for calculating a plim under classic errors in variables: $$ {\rm plim}\ \beta_1 = \frac{{\rm cov}(\beta_0 + \beta_1 x_1 + \epsilon - \beta_1 e, x_1)}{{\rm var}(x_1)}=\frac{\beta_1 {\rm var}(x_1) - \beta_1 {\rm cov}(x_1, e)}{{\rm var}(x_1)}... $$ How was the simplification in the...
In a diagram, I would like to indicate an item's principal component loadings by color. The idea is to map the item's loadings on three principal components (e.g., the first three) onto RGB values. The items in question can be represented by 20-dimensional unit vectors (in the specific case motivating this question, th...
I have a questionnaire item (N=6572) for which: 5064 (77.1%) subjects responded to the question, and 1508 (22.9%) subjects did not respond to the question. What statistical test should i use to test if the proportion of subjects who responded = proportion of subjects who did not respond? I am thinking one sample z tes...
I was trying myself in kaggle CIFAR competition, I trained lots of classifiers but get the same result/fail (don't know how to treat them), maybe someone could help me figure what i'm doing wrong. So in the beginning I converted images to vector (included all colours) and tried to train classifier on a sample of trai...
Question: Suppose we have an ordinary household scale such as might be used in a kitchen. When an object is placed on the scale, the reading is a combination of the true weight plus a random error. You have two coins of unknown values B1 and B2. To estimate the weights of the coins, you take four observations: Put...
Following are similar to but different from previous posts here and here Given two distributions which admit moments of all orders, if all the moments of two distributions are the same, then are they identical distributions a.e.? Given two distributions which admit moment generating functions, if they have the same mo...
I have seen five types of estimates of kurtosis and skewness: three from https://stats.stackexchange.com/a/84057/1005 one from page 9 of Analysis of Financial Time Series by Ruey S. Tsay one from http://www.itl.nist.gov/div898/handbook/eda/section3/eda35b.htm For an iid normal sample, do all those types of estimate...
The problem is: Suppose we fit a model Y = XA βA + ε. However, the true model is Y = XA βA + XB βB + ε. A is kA x 1 and B is kB x 1. Show that the OLS estimates of βA will still be equal if XTAXB = 0. My attempt at a solution: Under OLS, the estimate of β is (XTX)-1XTY. So I was thinking for the first model, we jus...
I am having a hard time understanding what a sufficient statistic actually helps us do. It says that Given $X_1, X_2, ..., X_n$ from some distribution, a statistic $T(X)$ is sufficient for a parameter $\theta$ if $P(X_1, X_2, ..., X_n|T(X), \theta) = P(X_1, X_2, ..., X_n|T(X))$. Meaning, if we know $T(X)$, then we cann...
For the likelihood associated with the mixture model 1/4*Normal(mu1,1)+3/4*Normal(mu2,1) I would like to have a figure as like as following one for a simulated sample of 500 observation from mu1=0 and mu2=2.5. My R code is: da=rbind(rnorm(10^2),2.5+rnorm(4*10^2)) like=function(mu1,mu2){ sum(log((.25*dnorm(da-mu1)+...
I have seen some classes in my University labeled as an "Inference class" and others as "Machine learning" classes, but I was not sure if appreciated the core difference between these two labelings? I normally think of machine learning as the study of systems/algorithms that are able tp extract information from data. ...
I'm trying to submit a chapter of my thesis to a journal. We used nested ANOVAs where we nested the group comparisons within year to account for potential bias due to different observers between the two years. There were stark contrasts between year although that is not of interest. My adviser says to leave all signifi...
I am interested in the effect of two different factors, $x_1$ and $x_2$, on a response $y$. However, although I'm interested in both, I'm more interested in the effect of $x_1$ on $y$ than I am in the effect of $x_2$ on $y$. (I am willing to assume that $x_1$ and $x_2$ have independent effects, that the effects are lin...
The following question comes up in robust statistics. There are two formula indicated below that I do NOT know how to derive. However, in order to make the context clear, let's start with the easiest case. One can explore the effect of a single outlier on an estimator $T_n(\mathbf y)$ by replacing say $y_n$ by $z$ and ...
For a graph like this what would be a smart way to go about making the error bars distinguishable without using colour coding?
I have binary data input to NN. The weights generated by NN are not normalized, i.e., the weights are not the same for every run of the algorithm. How to standardize these weights?
I have some time series data that shows autocorrelation and seasonality. I want to fit a distribution to it. To use maximum likelihood it needs to be uncorrelated. I first fit a GARCH and an ARIMA model then use \begin{align} \hat{y}_t=\frac{y_t-\mu_t}{\sigma_t} \end{align} as a filter to get rid of the correlation ($...
I have n rooms (which can be considered as states) and a sensor on my robot which gives me a probability array of what room it is in (this array is of size n and its sum is 1). At every timestamp (the timestamps are regularly spaced, say 5 seconds) the robot takes a measurement and stores it. Moreover, I know my robot ...
I have made this linear regression model: mtcars_lm <- lm(mpg ~ drat + hp, mtcars) Using the effects package, I can predict values of mpg for every value of hp between 70 and 150, plus get a confidence interval for each value of mpg: library(effects) as.data.frame(effect("hp", mtcars_lm, xlevels = list(hp=seq(70, 150,...
I asked this question: Compare the variances of several groups The Levene's method only test all groups. How can I identify the groups that have a different variances?
A company has 20 employees, 12 males, and 8 females. Suppose we need to form a committee of 5 employees. How many ways are there to form this committee if we need 3 males and 2 females? I believe this is a permutation problem and calculate it as one. 12 * 11 * 10 * 8 * 7 = 73,920 How many ways are there to form this c...
I would like to test whether 3 dependent variables (measured with the same participants) differ in variance. My plan is to fit one model in which the 3 variables have the same variance, and one model in which they are allowed to have a different variance, and to then compare these models using a deviance test. Now, the...
I have a set of Inspection Time data that consists of two variables: SOA (stimulus onset asynchrony) and Accuracy. This data refers to how accurately you can perform on a simple stimuli discrimination task at a given duration of exposure. The accuracy data is binary (0,1) and the SOA data is in increments of .01 (10 ...
I am new to R and the ARIMA model and I am attemping to forecast 1440 values into the future using a base of roughly 5000 numbers. It is data extracted roughly every minute from a machine log(performance values). The intend to forecast 1 day into the future, which explains the 1440 values(as they are minutes). Here is ...
I am considering a model that includes a covariance matrix which is a function of model's parameters: $$ \mathbf \Sigma = \Sigma(\mathbf \theta), $$ where $\mathbf \theta$ is $p$-dimensional, $\mathbf \Sigma$ is $d \times d$ and $d \geq p$. I know that for every $\mathbf \theta$, $\mathbf \Sigma(\mathbf \theta)$ is con...
I've been trying to find a way to perform model averaging for negative binomial GLMM using the MuMin R package, but it seems not to work for negative binomial GLMMs. Can you suggest any alternatives? Thanks in advance!
My control is a sample without any drug treatment. My samples are treated with drugs. They were both randomly taken from a normal distribution. The hypothesis is $\text{H}_0: \mu = \mu_0$ and $\text{H}_\text{a}: \mu \neq \mu_0$ The calculation would be $t = (X-\mu_0)/(S/\sqrt n)$ and then confirm whether or not the con...
Using function geeglm from package geepack (Generalized Estimating Equation), I have modeled counts as being dependent on two nominal (factor) variables, one continuous variable with 3rd-order interactions and one grouping variable. This is the model: m1<-geeglm(formula = dependent.var ~ cat.var1 * cat.var2 * contin...
I am analyzing the results of a reaction time experiment in R. I ran a repeated measures ANOVA (1 within-subject factor with 2 levels and 1 between-subject factor with 2 levels). I ran a similar linear mixed model and I wanted to summarize the lmer results in the form of ANOVA table using lmerTest::anova. Don't get m...
I have a question regarding methodology in Machine Learning. Assume we have a classification problem, the size of training set is 100 every instance in training set is represented by 200 features. In order to eliminate meaningless features we evaluate Information Gain / Mutual Information of every feature and eliminate...
There are three boxes of gold coins. In the first box, 1 out of 3 coins are cursed, in the second 2 out of 3 are cursed, and in the third 1 out of 4 are cursed. Furthermore, the first box is ornate, and so has 3/5 chance of being picked, while the other two boxes have a 1/5 chance. The experiment consists of selecting ...
The bivariate normal distribution with mean $\mu$ and covariance matrix $\Sigma$ can be re-written in polar coordinates with radius $r$ and angle $\theta$. My question is: What is the sampling distribution of $\hat{r}$, that is, of the distance from a point $x$ to the estimated center $\bar{x}$ given the sample covaria...
This might sound like a trivial question, but I just can't get my head around it! I am trying to evaluate the performance of different risk models (linear factor models), by computing the bias statistic. It is simply a function of estimated variance of the asset you are testing for and its forward return. Let's consid...
Let's say I have a metric space $(\mathcal{X}, d)$. Is there any kernel function that I can use with SVM? If we change the RBF kernel a little bit, we have $k(x,y) = e^{-d(x,y)^2}$. Is this a valid kernel? Additionally, what if $d$ is semi-metric?
Are there many features in Eviews that R misses? I have heard that especially when dealing with time series R is less extensive than Eviews. Is this true? Which of the two packages contains most statistical tools (or are they comparable?)?
I have a problem that I can't seem to solve: The prior: $\beta_h \sim \mathcal{N}(\bar{\beta},D)$. Somehow the posterior is $\beta_h \sim \mathcal{N}(M, \Omega)$, where $M=(D^{-1}+X'X)^{-1}(D^{-1}\bar{\beta}+X'p)$ and $\Omega=(D^{-1}+X'X')^{-1}$, where $X$ is a data matrix and $p$ is a data vector. How can I prove $M$ ...
I am using the bandplot function from gplots. install.packages("gplots") library("gplots") x <- abs(rnorm(500)) y <- rnorm(500, mean=2*x, sd=2+2*x) bandplot(x,y) Is there any way to get the values plotted by bandplot? the manual says Invisibly returns a list containing the x,y points plotted for each line. but I c...
I am a little new to neural network. I have two questions: 1. Can we use neural network in the small $n$ large $p$ situation? 2. Any regularization methods designed for parameter elimination? (Shrink some $\omega$ to 0). For example to add $L_1$ regularizer as Lasso? I know some methods for avoiding over-fitting, (weig...
I have a data set of 500 companies which have been clustered into groups based on their answers to survey questions. I'm trying to gauge whether the profitability between groups is statistically different, and if so what the correct test is to use. Profitability is indicated as a binary variable (1,0). Sample n = 500...
I have been struggling with this for weeks now. All EP examples that I have found on the net seem to deal with univariate priors and I am really at a loss as to how to make it work with a multivariate prior. The scenario is as follows: I am trying to estimate a bunch of parameters where the prior over these parameters ...
I am trying to creat a multiple regression model with a forward stepwise procedure. Predictors are air temperature, soil temperature, PAR and snow depth. I also want to see if there are some interaction effect between snow depth and other factors that can also be included in the model. Should I include the interaction ...
I am having trouble modeling a regression with seemingly non-independent, nested observations. I am examining the effect of relatedness on proportion of offspring in cases of multiple males contributing to a brood of eggs. I have estimates of the genetic relatedness between each male and the female it mated with, as we...
I have been given an algorithm to generate a random variable $Y$, as follows: $X=-\ln(Z)$ If $X>2$ then $Y=X-2$, otherwise reject. I'm then asked to find the pdf and cdf of $Y$. Can anyone tell me how to read this? I know in theory what both are but I'm finding it difficult to infer them from problems like this.
I have data from a split-plot (or repeated measure) experiment with three factors: A is random, B is fixed and nested within A, and C is fixed and nested within B. I can test for the effect of B, C and their interaction with the following code: aov(x~B*C+Error(A/B/C)) I'd like to replicate this model using either lmer...
Let's say we have four moments $(\mu_1, \mu_2, \mu_3, \mu_4)$ of a probabilty distribution of a random variable $X$ and the goal is to get the probability $\rm{P}(X \leq t)$ for a certain value of $t$. How is possible to use the moments to approximate such probabilty? Is there a way to use the moments in a Taylor expan...
When we do multiple regressions and say we are looking at the average change in the $y$ variable for a change in an $x$ variable, holding all other variables constant, what values are we holding the other variables constant at? Their mean? Zero? Any value? I'm inclined to think it's at any value; just looking for clari...
I have a couple of questions about contrasts but would also appreciate any suggestions for relevant literature. I am carrying out a GLM (binomial). There are 3 Factors (A,B,C) - A has 3 levels, B & C have 2. As main effects all factors are significant, and for factor A I can test the significance between the levels wi...
I am working on an age estimation method using 4 types of biological measurements as age predictors. I am using RStudio. So far, I have good results when I use linear regression (lm(age~predictor)), but I am encountering heteroskedasticity, and therefore cannot build prediction intervals for my models. I have tried t...