instruction
stringlengths
9
38.7k
I have been reading some old papers by Hinton on deep Boltzmann machine and deep belief networks, but I wonder what the current status is regarding these models: Are DBM and DBN totally outdated? I can understand they do not work as well as CNN and RNN in terms of NLP and computer vision tasks, but are they useful in ...
I have a question in regards to correlations that I am trying to uncover using R. I have two data sets that span over the years 2010-2016 and include all counties within a state. I am trying to correlate these data sets with each other by year (looking at inter-county correlations), and then by county (looking at year-...
This is probably a broad question, but I am interested to know if there are any studies that throw some light on this question: If I have to train regression models (in the least-squared sense), how do various modeling techniques (e.g., OLS, L1/L2 regularised least-squares, neural networks, etc.) compare with respect t...
When people talk about using an autoencoder for feature extraction before some network, in this case a deep network of LSTMs, are they referring to first training the autoencoder, and then passing the latent representation to the next network, or are they talking about passing the reconstruction? What are the pros and ...
For a dataset of 3-dimensional points like in the image below, what is the most efficient way to determine the dense regions? I want to sample points form the dataset, extracting more points from the dense regions. I will use the sampled points as anchors, around which I'll cluster the dataset.
We're looking at a random sample of the heights of 100 males at our school. These are our instructions:  Click on Distributions -> Continuous distributions -> Normal distribution -> Sample from normal distribution  Mean: 175  Standard deviation: 7  Number of samples (rows): 100  Number of observations (columns): 1...
For the sake of example, lets suppose we're building an age estimator, based on the picture of a person. Below we have two people in suits, but the first one is clearly younger than the second one. (source: tinytux.com) There are plenty of features that imply this, for example the face structure. However the most t...
I might be overthinking this. I generated the output in R and 5 of my 10 samples were successful, so that's 50%. Given that, if I am to estimate the probability of two or more people in a group of 30 sharing a birthday, what is my total sample? Should I be using combinations?
I have been tasked to see if there is a better audit tool than the Acceptable Quality Limit. I believe that this tool is mostly used for defects and I'm not sure if it is an accurate auditing tool for judging people and their cases. Would it be something as easy as confidence interval? I feel like there should be more ...
I understand the estimates of the lm output in R are the B1, B2, ..., Bn of the linear model, so are they the "slopes" of each variable? Because if that's the case, sometimes I get a negative estimate, but when I plot the independent variable against the dependent variable the slope of the regression is different. Some...
From my understanding, OOB error is computed as a weighted average of the errors from each individual learner. Each decision tree is trained on 2/3 of the data and the OOB error for each learner is computed as just the error on the remaining 1/3. But the overall OOB error for the random forest is the average of OOB err...
It seems that American Community Survey only gives "aggregate" data. I would like to know if they publish the random sampled individual data as well? For example, do they publish data on the ages or sex of a certain number of individuals across america? Thanks.
In the last course of the Deep Learning Specialization on Coursera from Andrew Ng, you can see that he uses the following sequence of layers on the output of an LSTM layer: Dropout -> BatchNorm -> Dropout. To be honest, I do not see any sense in this. I don't think dropout should be used before batch normalization, dep...
I think of the "tail" of a probability distribution as the behavior of its PDF $f(x)$ as $x\rightarrow +\infty$. For some PDFs with complicated expressions, it is sometimes easy to study their limiting behavior ($x\rightarrow +\infty$), or equivalently their tail, because it compares to that of standard distributions. ...
When we fit a model to a training dataset, our basic assumption is that the test dataset will also come from the same (or similar) distribution. How to check if the distribution of the training and test dataset is same (similar)? More specifically: Let $(\textbf{x}, y) \sim \mathcal{D}$ where $\textbf{x} \in \mathbb{R...
I'm learning logistic regression and got confused when I saw the equation of the textbook. I knew that for a continuous distribution, to calculate the probability, the pdf $f(x)$ is meaningless. Instead the cumulative density function $F(x)$ shall be used. Thus, since we're maximizing the probability, shouldn't we use ...
I have a set of 35 independent variables (features). I do not have response variable for my data set. I used density plots to identify multi-modal distribution in my independent variables. Hence, I used Gaussian mixture clustering technique to group the data. Upon clustering, I obtained 6 clusters. I designed hypothesi...
if the double arrows show that X and the error term are correlated, but that neither variable affects Y, is endogeneity a problem in this scenario? Why or why not?
Let's say I have a text classifier that I have trained on some training dataset. Now when I run this trained classifier on some test dataset, I identify the cases where it went wrong (assuming I have correct labels for test dataset as well). How can I re-train the classifier such that it learns from its mistakes? Appl...
Consider a covariance function of the form $$K_{i,j}=\alpha\times exp(-0.5 (x_i-x_j)^2/l^2)$$ This is a very common function used in Gaussian processes. How to show that this covariance is non-negative definite ?
Assume that we have independently and identically distributed random variables $\left(X_n\right)_{n \in N}$ with finite and non-zero variance. Consider the sequence $$ Z_n :=\frac {\sum_{i=1}^n (X_i- E(X_i))}{\sqrt {\operatorname{var}\left(\sum_{i=1}^n X_i\right)+5}}.$$ It seems kind of obvious to me that this series ...
I am doing semantic segmentation (multi-class classification of image pixels) using convolutional neural networks (CNN) in Keras. In particular, I am applying this to aerial images of crops (vegetation). In Keras, I successfully developed a workflow to segment/classify different crops for one specific dataset (let's ca...
Imagine I do a randomized experiment at the beginning of the school year. Incoming freshmen (a) participate in a diversity class or (b) do not. At the end of the year, I send them emails asking to fill out one 4-point Likert question on how they feel toward diversity on campus. Now, imagine that some given $k$ percent ...
Last year at NIPS 2017 Ali Rahimi and Ben Recht won the test of time award for their paper "Random Features for Large-Scale Kernel Machines" where they introduced random features, later codified as the random kitchen sinks algorithm. As part of publicising their paper, they showed that their model could be implemented...
Take the loss function: $$ \mathrm{loss} ~~=~~ \sum_{i=1}^N \left( -z_{}[y] + \log{\left( \sum_{c=1}^{10} \exp(z_{}[c]) \right)} \right)$$ where $z \in \mathbb{R}^{10}$ is the input to the softmax layer and $z{[c]}$ denotes the $c$-th entry of vector $z$. I'm trying to find $$\frac{\partial loss}{\partial W}\quad \frac...
I have a time series dataset as follows (just 1 part out of 1000 obs). The data includes only the time and the outcome (1 - success, 0 - failure). Time here is not the amount of time but the date (For example, test 1 is performed at 15:18:56 on 10/9/2012, not that it took 15 hours to complete). Tests are independent bu...
stats newbie here. I have a dataset that is collected weekly. In order to make sure the data set gathered this week conform to past observations, I'm using KL divergence to compute how similar the new data set is comparing to the previous one. Imagine doing this process every week, I would eventually have a series of K...
I'm creating a random forest model (classification) in caret: model <- train(formula, data = training.data, method = "rf") I can get the variable importance list which ranks all the variables from most important to least: varImp(model) I can use that to report the top 20 predictors, but...
With techniques such as batch normalization and Xavier normal initialization, is it still necessary to pretrain the neural network to get a better normalization for unsupervised task? In here, the pretraining procedure refers to training the model in an unsupervised way to force the neurons to have a good representatio...
I have an OR for 1.9 unit change in a height, with 95%CI 1.05(1.02 - 1.07). I want to convert this OR to beta and get the standard error. Is there an easy way to do that?
The 0.632 bootstrapping rule by Efron in `Estimating the error rate of a prediction rule: improvement on cross-validation'. According to Tibshirani's overview in The Elements of Statistical Learning, calculating the leave-one-out bootstrap estimator (the component weighted by 0.632) requires computing: $$ \hat{\text{Er...
200 Participants completed 3 tasks (easy, medium, difficult) and a cognitive ability test. All variables are continuous (for the task I have the time it took each participant to complete each task, and the cognitive test's score). To sum, I have 1 within variable (task difficulty) and 1 between variable (cognitive abil...
I am looking at two time-series, one is continuous and somewhat stationary, and the other one is very sparse with lots of 0's and a few 1's. Does the traditional Cross-correlation function still work in this case?
In scikit-learn, I don't see any classifier "unfit" or "unlearn" method similar to the untrain method of the classifiers in pyMVPA http://www.pymvpa.org/generated/mvpa2.clfs.svm.LinearCSVMC.html#mvpa2.clfs.svm.LinearCSVMC When I was using pyMVPA, it made sense to me to call the untrain method after I had done a cross ...
I'm using a probability proportional to size method to draw a sample of clustered units. The distribution of the size variable is positively skewed, giving the largest units an inclusion probability greater than 1 (which doesn't make sense as a probability). I'm using the UPtille function from the sampling package to ...
I fit a poisson model but there was overdispersion. I fit a negative binomial model with same dataset. Does the conclusion suppose to be the same, or it could be different? For example, if poisson concluded significant, does the negative binomial also concluded significant?
Given four classes, each with a different number of students: Class A: 41 students; Class B: 39 students; Class C: 38 students; Class D: 30 students; Each class took an exam and garnered the following average scores: Class A: 27.80; Class B: 18.87; Class C: 19.24; Class D: 21.00; If each class were ranked according to ...
I've a scaling problem. Let's say my target variable is a net revenue column and it has some range of (-34624455, 298878399). So the max-min value is 333502854. Now in the test set, I have a record and it's revenue value is 2185 which when normalized, converts to 0.1038. For this record, the predicted value when used a...
I have the following density function: $f_{(x,y)}(t,s) = \frac{1}{3\pi}$ for $1\le(t-2)^2+s^2\le4$ and else $f_{(x,y)}(t,s) =0$. I need to find $f_y(y) = \int{f(x)dx}$, but I having trouble to find the range of the integral, even though i draw it. I thought about changing the variables as this: $x=rcos(\phi)+2, y=rsin(...
Assume I collected the following results from an A/B/C/D/E test: Result 1 Result 2 Result 3 Control 21 7 32 VAR1 65 25 64 VAR2 107 50 94 VAR3 15 8 15 VAR4 189 6 2 The null hypothesis is that the results...
I have a PDF defined by: $$Pr(X=k)=p \left({n\choose k}a^k(1-a)^{n-k}\right)+(1-p) \left({n\choose k}b^k(1-b)^{n-k}\right)$$ I am not given any information about the parameters $n, p, a, b$. I am given a data-set $x=(x_1,\ldots,x_N)$, generated from this distribution with unknown parameters, and my aim is to find estim...
I got a problem where batch normalization before the first non-linear activation is a bad idea. Imagine that a neural network has to know the original value of some inputs to get a job done. Inclusion of batch normalization before the first activation will scale these input values according to other inputs of the sampl...
My question is regarding handling negative values prior to performing multiple linear regression. I have a data set that includes approximately 1000 observations (individuals). I have 30 dependent variables (biomarkers) that I would like to analyse using linear regression against a number of independent variables. Valu...
Book of Enders says: A parsimonious model fits the data well without incorporating any needless coefficients. I am confused with this tradeoff, coefficients versus degrees of freedom. Box and Jenkins argue that parsimonious models produce better forecasts than overparameterized models. How do we know that model is ove...
My question concerns the feasibility of this classification theoretically and realistically. I mean, if the best performance has been obtained by using only one feature, and adding features degrades the performance: 1- Is there any theoretical reason (related to Naive Bayes) that makes this solution incorrect? and 2...
A conditional random field $Z_C(x)$ is a random field whose realisations $z_C(x)$ always take the same values $z_C(x_a)$ at locations $x_a$. Realisations of $Z_C(x)$ can be produced as follows (Journel and Huijbregts, 1978): \begin{equation} Z_C(x) = Z_U(x) + Z_K(x) - Z_S(x) \end{equation} where $Z_U(x)$ is the uncond...
I am trying to fit a binary logistic regression model using only one predictor. After consulting a loess plot I decided to use restricted cubic spline to fit the curve (with default 4 knots). Using 'rms' package: lrm(y ~ rcs(x), data = data) however I encounter the following problem: singular information matrix in l...
Suppose $X$ is a random variable with mean $0$ and variance $\sigma_x^2$. How can I calculate mean and variance of $X^2$? I calculated the mean like this \begin{equation*} \operatorname{Var}(X) = \operatorname{E}(X^{2}) - \operatorname{E}^{2}(X) \rightarrow \operatorname{E}(X^{2}) = \sigma_{x}^2 \end{equation*} but a...
When modelling data each model makes a series of assumptions that need to be met in order for the results to be reliable. I was wondering if you know of a comprehensive checklist for each of the most common statistical model techniques. For example: Logistic regression assumptions: No/low multicollinearity Linearity o...
Let take two discrete temporal series $x_i$ and $y_i$ where $i$ indicate the time and suppose that they are in general random and not correlated, except in a specific interval of time, e.g. some minutes around midnight every days. I would like to find the subspace (time interval) in which the two series are correlated ...
How do you compute a $t$-statistic for the null hypothesis that the difference in means is zero for this information? Group N Mean Std. Error ================================================ Hospital 7,774 3.21 0.014 No hospital 90,049 3.93 0.003 This is perhaps the first calc...
I need to calculate the Standardized Infection Rate (SIR), that is the ratio between actual cases of infection and predicted cases based on a predictive model. According to CDC https://www.cdc.gov/nhsn/pdfs/ps-analysis-resources/nhsn-sir-guide.pdf the predicted number of cases has to be computed by summing up the per-o...
I already calculated my population mean and standard deviation I just need figuring out my X value. please help if you can
Is the following true? low bias = high variance high bias = low variance I understand high and low bias but then how is variance different? Or are the above synonyms?
I have an agreement study with the following basic construction: ~ 400 items are rated by (1) a computer algorithm, and (2) a human rater. The ratings are on a continuous scale. I would like to calculate an intraclass correlation coefficient for the purposes of parameter tuning in the algorithm (i.e. calculate bootstra...
I have recently faced a weird way of finding a significant variable. Let the model be $Cholesterol=Sex+FamilyHistory + Sex*FamilyHistory$ where the * denotes the interaction, sex and FamilyHistory are both two-level factors, and we assume that the study is nested inside cities. Further, assume that the fitted model is...
I want to test the association between 2 variables : - one is an ordered factor from quantiles of a numeric value ("Q1", "Q2", "Q3", "Q4") - the other is an unordered factor from groups of a character value ("group A", "group B", "group C"). If I make a usual chi square test, I get the association between those var...
I have a dataframe like that: word freq1 freq2 freq3 freq4 freq5 freq6 1 a 141 97 103 158 71 101 2 b 84 41 51 42 19 22 3 c 15 24 33 87 102 59 ...
I am hoping to use Levenshtein distance concept for fuzzy matching in SQL joins between two tables on t1.first_name||last_name = t2.first_name||last_name. Is anyone familiar with a "magical range" (or can suggest something from experience) in which a record should fall between to be deemed a likely match? ie. what shou...
I am supposed to create a frequency table to describe the data using 4 measures: Raw frequency Cumulative raw frequency Relative frequency Cumulative percentage I don't understand what these mean, if someone could please explain them I would be very grateful.
I am estimating heritabilities for some traits using a parent-offspring regression in R. For mid-parents this means that the regression coefficient of a linear model is equal to the heritablility. However this approach seems to be wrong for the trait "Germination rate". This trait is given in percentages of germinated ...
I am looking at doctor’s visits in a specific region over a 10 year period. My response variable is the number of visits. I have three predictors/effect modifiers: Year (2007-2016) Priority: two levels (urgent visit, non-urgent visit) Type (location of the doctor’s office): five levels (large city, medium-sized city...
Similar to how you would demonstrate a set of data is fit by a linear model, I would like to show that a list of data is fit by a constant model (i.e. $y \sim c$). But since the $R^2$ value compares against a constant baseline, I can't use this method. I realize this problem is pretty badly defined, but if you could po...
I want to estimate $$y_i=\beta_0+\beta_1 X_{i1}*X_{i2}+\beta_2 X_{i1}+\beta_3 X_{i2}....+\epsilon_i$$ where $X_{i1}*X_{i2}$: the instrument variable of what I want to estimate, continuous $X_{i1}$: exogenous, continuous $X_{i2}$: very likely to be endogenous, binary. My concern is, if $X_{i2}$ is endogenous, wouldn't t...
Given a likelihood to maximize $$ \log p(x | \theta) $$ Imagine that, in order to apply EM, we can augment the model with one or two latent variables. In that case, we can derive two lower bounds: $$ \log p(x | \theta) = \log\int_{z_1}p(x , z_1 | \theta) \geq \int_{z_1}\log\left\lbrace \frac{p(x, z_1 | \theta)}{p(z_1|...
Perhaps a basic question, if I have an un-normalised histogram, my understanding was that the integral is simply the total number of points. If I then fit a curve over the the histogram, then surely if I integrate this curve from $-\infty$ to $+\infty$ I should get a value that is very close to the total number of poin...
How may I calculate (or approximate with reasonable error) confidence intervals of expected value of non-normally distributed random variable $Y$ given its almost independent samples? I have $n = 100$ samples of a random variables $$Y_j = \sum_{i=1}^{m} X_{i, j}^2 ,$$ where $X_{i, j}$ are almost independent random valu...
Here is the setup of my problem. It is a sequential problem and there are two possible actions A and B. Now, when either action $A$ or $B$ is taken at the $j$th time point, we observe some outcome say $X_j$. We want to compare the two averages in batches $k = 1,2,\dots, M$ with each batch having $d_k$ time points. We ...
I am working on a meta-analysis that compares studies testing the retention of different materials after different follow-ups. (each study tests one material for a certain amount of time). I first took the approach of grouping different materials with similar follow up times, and calculating a summary proportion of al...
I have come across a picture of a density plot that I understand visually and conceptually but I am confused by the terminology. It is referred to as simply a "Density Plot". Have a look: Question: If a researcher refers to a graph as a density plot, what does he/she probably mean? Unfortunately I couldn't find the U...
Let $Y_i \sim N(\mu, \Sigma)$ iid where $Y_i \in \mathcal{R}^J$ and $\Sigma$ is NOT diagonal. Let $\bar{Y} = \begin{pmatrix} \frac{1}{N_1} \sum^{N_1}_{i=1} Y_{i1} \\ \frac{1}{N_2} \sum^{N_2}_{i=1} Y_{i2} \\ \vdots \\ \frac{1}{N_J} \sum^{N_J}_{i=1} Y_{iJ} \end{pmatrix}$ where $Y_{ij}$ is the $j^{th}$ ele...
What is the best recommended book on Bayesian Non parametric approaches ? Specifically something which also tackles regression problems such as Gaussian processes.
I was attempting to replicate in R an example my instructor used in class from SPSS. However, it looks like the lda$scaling value function from MASS reports "a matrix which transforms observations to discriminant functions, normalized so that within groups covariance matrix is spherical." Thus, my linear discriminants ...
I was asked to create a small snippet of excel from a survey data-set of everyone's documented ages. I got the data from the SDA, I filtered the data-set for just 2010. The SDA website generates a frequency distrubtion table of all that data for the respondents. Left being of course the age groups and right being the ...
Let's say the mean income in New Jersey (group 1) and Florida (group 2) is $80,000 and $55,000 respectively. Using a dataset of relevant predictor variables, I'd like to attempt to explain this gap (i.e. $25,000). My question is what method I'd use to do so. For example, would I take the difference of the means and est...
I am trying to simulate multivariate lognormal distribution values using means(mu), standard deviations(sigma), and correlations(rho) matrices. Does anyone have any source I can read about to simulate multivariate lognormal distribution?
I am confused about what is a "sample" and what is a "variable" in a k-means model. Let's take a gene expression dataset which includes measurements from 1000 genes for 100 patients. When we are clustering the patients to 10 groups based on their gene expression, it is usually presented that the patients are the "sampl...
I have found an equation for the entropy of a $p$-variate Cauchy distribution here [page 70]: $H(X,R) = \frac{1}{2}\log(\det(R))+f(p)\,,$ where $X=(X_1,X_2,\dots,X_p)$ is vector of random variables having a $p$-variate Cauchy distribution, and $R$ is the correlation matrix of $X$, and $f$ is some function. I have prob...
I am testing the accuracy of discrete variable prediction (>= 2 possible outcomes). I've seen things like using a confusion matrix or ROC curve for binary outcomes, but not much for > 2 outcome variables. What are good measures of accuracy for discrete variables other than classification accuracy?
Suppose for a random variable $ X\colon \Omega \to E $, I have an invertible mapping $ Z = f(X) $. Is the Shannon Entropy for each variable equivalent? $$ H(X) = H(Z) $$ If not, can anything relationship between the entropies be said in general (eg. proportionality, additive constant, etc.)?
I need to find the model over a period of length t. This is what I've done: Based on the Bayes' theorem, the relationship between the prior, the posterior, and the likelihood function is $p(\theta|x) = \frac{p(x|\theta)p(\theta)}{\int p(x|\theta^{`})p(\theta^{`})}$. Before computing the posterior $p(\lambda|x)$ with p...
Should they be close to the middle (origin) or close its surface?
I am newbie in data analytics world and I am trying to do linear regression on super-store sales database. The database contain fields like OrderID, OrderDate, ShipDate, ShipMode, CustomerID, CustomerName, Segment, Country, City, State, PostalCode, Region , ProductID, Category, Sub-Category, ProductName, Sales, Quan...
I'm simulating the data underlying a conditional logit model then doing my own MLE estimation using optim. However, even with an unreasonably large amount of data, the estimator seems to have awful precision. Is this expected, or I am making mistakes in my implementation? Conditional Logit Model: The conditional logit ...
The goal of the encoder LSTM is to produce a meaning vector that totally encompasses the content of the source sentence. The goal of the decoder LSTM is to use the meaning vector is to produce an accurate representation of the meaning vector. Therefore, couldn't the encoder and decoder LSTMs be used seperately once dis...
I read the following section from cs231n course notes: Sigmoid outputs are not zero-centered. This is undesirable since neurons in later layers of processing in a Neural Network (more on this soon) would be receiving data that is not zero-centered. This has implications on the dynamics during gradient descent, be...
I have a multiple linear regression model, with several independent variables - I am mainly interested in one of these, say X, the others are what I consider covariates (age, education etc.) The model yields a significant association between the outcome variable (say Y) and X, but in addition the covariates are also si...
Record linkage (RL) is the task of finding records in a data set that refer to the same entity across different data sources (e.g., data files, books, websites, and databases). Record linkage is necessary when joining data sets based on entities that may or may not share a common identifier (e.g., database key, URI, Na...
Intro: I'm building a freefall measurement device which uses multiple LEDs and analog photo senors to detect falling spheres and in turn compute the acceleration of gravity. Problem: The spheres will block variable amounts of light over each sensor as the bottom, middle, and top portions occlude it. I can measure this...
I know how to predict the winner of a football match in Python with a simple / multiple regression model, or Bayes. But I have the intuition that the last matches played are more relevant for the outcome than the older ones. How can I give more weight to the last matches than the older ones in my statistical model?
I may be asking dumb or non-sensical question, but what does the variance of an estimator for a regression parameter (e.g. $\beta_{0}, \beta_{1}$) mean? How does it even have variance? Isn't it a constant estimate of a presumed true but unknown constant value? I have seen a good mathematical derivation of it here fr...
I'm reading Thinking, Fast and Slow by Daniel Kahneman and I came across the following text Some years ago I had an unusual opportunity to examine the illusion of financial skill up close. I had been invited to speak to a group of investment advisers in a firm that provided financial advise and other services to very ...
I wonder whether there is an intuitive explanation why one part of the Borel Cantelli Lemma requires stochastic independence and the other one does not. I understand the proofs but I do not have an intuitive grasph why it should be like that.
If I understood correctly, then in the logistic regression we select the parameters of the sigmoid function so that it maximally approximates the input data. I can understand why logistic regression works fine when data distributed like in this photo. But why it still works fine with data like in this photo? How to app...
As it was suggested in the linked answer, $s_n = \sqrt{\frac{\sum_{i = 1}^n (x_i - \bar{x})^2}{n - 1}}$ is not an unbiased estimator of $\sigma$. I suspect neither $s_n^3 = \sqrt{\frac{\sum_{i = 1}^n (x_i - \bar{x})^2}{n - 1}}^3$ is an unbiased estimator of $\sigma^3$. Then, what is the formula for the unbiased estimat...
I am relatively new to R and stats and am getting a little confused about multicollinearity. I am planning on carrying out ordinal logistic regression, and the majority of my independent variables are binary. There are, however, a few categorical variables, most of which possess 4 levels. As far as I can understand, be...
I conducted a time series analysis (daily prediction) library(forecast) library(lubridate) ts <- read.csv("C:/Users/Admin/Desktop/ts.csv",sep=";", dec=",") msts <- msts(ts$Daily.admissions,seasonal.periods = c(7,365.25),start = decimal_date(as.Date("2012-04-01"))) tbats <- tbats(msts) sp <- predict(tbats,h=14) ...
I am trying to solve a problem involving calibration of environmental instrumentation. I have two instruments set up side-by-side, measuring essentially the same condition. There will be a certain degree of randomness in the difference between the two time series, but they will exhibit a very high correlation. The two ...
I'm working on a problem from a textbook (self-study) (Casella and Berger). The Problem Given these facts/assumptions... ⅓ of human twins are identical (one-egg) and ⅔ are fraternal (two-egg). identical twins are the same sex with sexes being equally likely. among fraternal twins, ¼ are female, ¼ are male, and ½ ar...
This is an extension of an earlier question asked here. I have a data-set coming from a distribution given by: $$Pr(X=k)=p \left({n\choose k}a^k(1-a)^{n-k}\right)+(1-p) \left({n\choose k}b^k(1-b)^{n-k}\right)$$ which is a mixture of two binomial distributions. My aim is to estimate the parameter values, namely: n, p, ...