instruction stringlengths 9 38.7k |
|---|
I have a daily stock returns series and a squared returns series for the S&P500.
The Ljung-Box Q-Statistic for the squared returns series says there is autocorrelation and therefore ARCH effects (p-value of the Q-statistic is zero at all lags, and there are significant spikes in the ACF and PACF). My understanding is ... |
For a university project, I would like to regress (X) % of a countries alternative energy production against (Y) environmental health outcomes. I plan to add controls next.
After producing a scatterplot, I have a pearson correlation .234 @ .05 significance- No clear trend can be seen by eye.
When running a bivariate r... |
The problem is about Deterministic frontier model, a special case of regression where all the residuals are bound to be positive (non-negative). I have a set of values $PQ$ (x) and quantities $Q$ (y) of the product. The main goal is to estimate efficiency frontier of the quantities with respect to values. The relations... |
Is it correct to write that a probability model is conditioned on a function?
For example if $X \sim \mathcal{N}(\mu,\sigma^2)$ then $p(x | \mu,\sigma^2) \propto \frac{1}{\sigma} \exp(-\frac{1}{2\sigma^2}(x-\mu)^2)$. if $\mu$ is generated from a function $f(\cdot)$ and a constant $c$, is it correct to write the probabi... |
I´m doing a regression using Dfference-in-Difference (DiD) and frequency weighting (FW) by population. When adding FW my number of observations decrease. Why?
|
I have constructed two groups based on observational data: control (C) and treatment (T). T was exposed to a feature that C was not exposed to. My total number of observations is very high (> 300K).
I want to measure the effect of being in T compared to being in C on a binary outcome O. First I simply calculate the mea... |
My data set consists of N noisy time series, each belonging to a point on a surface. The dynamics of each time series are correlated, with correlation decreasing with spatial distance.
I hope to model this data set using Gaussian processes, but need some help getting started.
I wish to estimate a stationary (in time a... |
I've read both the terms instance-based and example-based learning in some contexts, e. g. instance-based learning for label ranking and example-based for general text classification tasks.
Is there any difference in the meaning of those two terms or is it just interchangeable?
|
Having currently read some papers about proposed solutions to the problem of instance segmentation in images, (i.e. an algorithm that takes as input raw images, and outputs instance-wise segmentation maps for a predefined set of classes), I still don't understand how to evaluate and compare their performances.
If I un... |
I am using E-views and estimating GJR-GARCH (i.e. GARCH(1,1) with a Threshold Order of 1). The data in question is Daily returns for the ASX200 index. I am only using a constant in my my mean equation with no ARMA terms.
The formula E-views uses is as below.
GARCH = C(2) + C(3)*RESID(-1)^2 + C(4)RESID(-1)^2(RESID(-1)<0... |
Consider a simple linear model: I have obtained a prediction interval of $(37, 66)$ and a point prediction of $52$. (the problem behind is not a concern I reckon, for the sake of the question).
Now I know that if the actual response will be $\geq 50$, then a plant will grow, whereas if it is less than $50$, it will fa... |
I read a paper Obesity changes the human gut mycobiome (2015) in which the authors used PLS-DA to look at the differences in their groups based on the microbiome of their gut. I am currently working with a data set containing similar microbiome information and I am using a PCA. What is the main difference between thes... |
I am currently trying to figure out what would be the best way to model a bayesian hierarchical regression for data, where the criterion value can only be positive and I am assume that the effects are not dependent on the base value for group level. I found some ideas on how to model this kind of data, however, they do... |
If one is measuring safety climate (which has dimensions or contributing factors to the overall safety climate), what do the results of a regression tell you? I know it either states if they are related as in being statistically significant or not, but how?
|
I have started a meta analysis comparing the complication rates of different treatments of distal radius fractures. I have pooled the complication rates (n/N) for each treatment separately using the inverse variance method, the DerSimonian-Laird estimator for tau^2, logit transformation, Clopper-Pearson confidence inte... |
Data from our local hospital's Emergency Department suggests that there are certain conditions with which females present more often than males. I wish to determine whether the difference in observations is statistically significant.
The following is the gender breakdown for all Emergency Department patients:
Gender ... |
I have a multivariate linear regression model where the predictors are concentrations of different drugs, of the same units, and the responses are the survival percentages of each different kind of bacteria within a bacteria community, which are also of the same unit in the sense that these are percentages.
My question... |
When calculating a nonparametric test, you don't have to make any assumption about the distribution of the values; but if you want to calculate necessary sample size for a study to be analyzed by a nonparametric test, you must make an assumption about the distribution of the values.
My data sample has a mass at 0 and ... |
Hadfield (2010) talks about "parameter expanded models" (page 11). I never heard of these models before and wonder what he means by this. In the Appendix E he writes more about "Parameter expansion" and cites Liu, Rubin and Wu (1998). As far as I grasped this paper they add parameters to their EM-algorithm models to sp... |
I am a lonely peon currently researching and playing around with multiple imputation. I am using MICE in R to impute random missing data; however, I run into a problem when attempting to account for conditional or structured NAs in a dataset.
I'll provide a simplistic dataset in an attempt to illustrate my meaning:
Tes... |
currently I got three datasets: DS-A, DS-B and DS-C. Basically I hope to use these data to find out some typical/potential customers/targets for a certain group to make business plan with the help of some kinds of machine learning methods.
Take DS-A as an example:
tun_account <- read.csv("./Accounts.csv", header = T, s... |
I have a restricted ARMA(24029,24029) model with lags 6969, 14332 and 24029 (all lags with both an AR and MA term).
I have the following code that I run in python:
from pydse.arma import ARMA
ar=numpy.zeros(25000)
ar[6969]=0.01
ar[14332]=0.01
ar[24029]=0.01
ar[0]=1
AR = (ar,numpy.array([25000,1,1]))
MA = (ar,numpy.arra... |
I have a 73 by 426 matrix, where 73 is the number of my observations, and 426 is the number of my features/dimensions. When I perform the PCA, I expect to get a 73 by 426 score matrix; instead, I get a 73 by 72 matrix. I assume this is because I have more dimensions than observations. Is there a way to overcome this pr... |
I have two categorical variables, A and B. Each categorical variable has three levels(0,1,2). There is a certain dependent variable P against which I make a plot and see that there is an interaction between A and B. In my next step, I make a model when I regress upon P with A*B (model_interaction). When I look at the s... |
I want to generate (manually) a random sample in the Gaussian mixture model:
$$f_{\theta}(x) = \sum_{k = 1}^{K}\pi_k f_{\mathcal N(\mu_k, \sigma^2_k)}(x)$$
Here is my work:
theta = list(pi = c(p1,...,pK), mu = c(m1,...,mK), sigma = c(s1,...,sK))
rnormmix = function(n,theta){
x = runif(n)
# find mixed cdf
pnormm... |
I've asked a similar question before about cross-validation here and here. I've received many useful answers and benefit from the discussions on these websites. Here I summarize my original question and my thoughts after the discussion. Then I will raise an additional question based on my updated understanding about cr... |
I'm attempting to generate some one-to-rest weight vectors for a multi-class SVC for feature selection purposes. However, I'm current using one of the several LibSVM ports, which inherently performs one-to-one in multi-class classifications.
The columns of the sv_conf output does not appear to me to be duals of one-to-... |
In an older piece by Nate Silver -- explaining the methodology of ESPN's Soccer Power Index (SPI) -- he explains how he calculates team ratings. However, he notes that in doing so he uses loops to solve for the independent and dependent variables at once. Here is a portion of his explanation:
Fortunately, there is a s... |
If this answer on Quora is correct then I think I understand what concordance probability is. However, I also find that this answer on StackExchange provides the formula of concordance probability that is a little bit different from the one on Quora: It include the counts of tied pairs with weight $ 0.5 $. Which one sh... |
As for normal regression model ( I mean non-mixed effect model. Only including fixed effect in the model), I don't need to determine the covariance structure separately. I just fit my model and have output generated in R for instance. But when a random effect is added, why we should determine the covariance structure b... |
I am interested whether or not there is a difference in a (presumably) normally distributed response variable $x$ in two conditions. There are at least two ways to tackle this: Given a set of measurements for the two conditions, I get some number of measurements $x1$ and $x2$ and then...
...one computes a one-sample t... |
I have a sequence of daily events, along with times between events. Each such sequence is labeled by $i$ and consists of $n_i$ events. For every $i$, each event $j$ has a list of features $x_{ij}$, and I would like to predict the time $y_{ij}$ till the next event, given the entire past history. This is a pretty classic... |
I have a GAM model with several continuous parametric covariates, one non-parametric covariate, and two continuous parametric predictors. I am using R.
The reason I am employing GAM is to be able to control for the nonparametric covariate (an air pollution variable), but I am actually interested in the two main predic... |
Consider pairs of data and their population weights $(y_i, \omega_i), i = 1, 2, \dots$ alongside some hierarchical structure, $$y_i\leftarrow\theta_{i(j)} \leftarrow \gamma$$ where $i(j)$ is perhaps the wider group that the $i$th observation belongs to.
Without weights, I might model $$y_i \sim N(\theta_{i(j)}, \sigma^... |
This Wikipedia source states the Epanechnikov kernel to be of the form:
\begin{equation}
k_{n,d}=\left\{
\begin{array}{ll}
\frac{1}{2d} \cdot \left(1 + \frac{1}{2n}\right) \cdot \left(1 - \left(\frac{x}{d}\right)^{2n}\right) & ,|x| \leq d\\
0 & ,|x| > d
\end{array}
\right.
\end{equation}
I am not sure of the orig... |
I have run into a problem in my project that can be generalized to a more abstract problem, and wanted to know if there is a specific machine learning algorithm developed for solving it.
Let's say I have a image consisting of a white background and identical circles. All of the circles have the same radius and color, ... |
Generalized linear models (GLMs) allow the response variable to have arbitrary distributions using a link function
Generalized least squares account for errors that are heteroscedastic and correlated.
But is generalized least squares a special case of GLMs? or are they two different methods altogether?
|
Given two Dirichlet distributions $\mu_{\alpha},\mu_{\beta}$ on the k-simplex, with parameters
$\alpha = (\alpha_1,\ldots,\alpha_k)$ and $\beta = (\beta_1,\ldots,\beta_k)$, is there an expression for the $L_1$ distance between $\mu_{\alpha},\mu_{\beta}$ in terms of $\alpha,\beta$?
If there is no tractable expression, ... |
I want to use PGM plate model to model gas prices in an area. The gas prices in the area are correlated and the correlation is measured by the physical distance of two gas stations: if two stations are physically close, the gas prices in the two stations are numerically close. How to use PGM plate model to represent th... |
Variance of a residual, conditioned on $x$, is constant, but is still a function of $x$. The farther the $x$ is from $\overline{x}$, the bigger the variance (page 3, equation 9 from these notes).
So when plotting the residuals, why should we expect to see "constant-width blur of points around
a straight, flat line at h... |
I have the problem where it presents the table of
Asset Size ____ Yes __ No
Under \$100 ____ 63 ___309
101 - \$200 _____59 ___ 132
\$201 or more ___112 __ 85
The question asks: Summarize the results of this survey question numerically and graphically.
For the graphically part I was just going to draw a bar graph w... |
How would I maximize this log likelihood function? And with respect to what? I think I should maximize it with respect to the coefficients $\phi$, is that correct?
|
I would like to know if a small test group (~5 samples) is significantly different from baseline (300-400 samples). I initially considered Student's T-Test, but it seems that I wouldn't be able to reliably determine normality with the small test group (and the baseline group seems not to be normally distributed). Is th... |
I have a problem in my book where I am supposed to create a 3x3 table of counts where there is no apparent association between the row and column variables. So I know the df will be 4. And thus I must find a $X^2$ small enough so that the null hypothesis will be rejected. However, trying to find 9 numbers to make the c... |
I was exposed to bayes in college, but it's been some time. I'm trying to confirm some ideas about Bayesian vs. Frequentist updates, but I can't seem to get the right jargon to search Google. The following is a simple example of what I'm looking for. Obviously, I'd appreciate confirmation of the assumptions, but tec... |
I figured out part a pretty easily, but I'm having trouble figuring out how to do b and c.
I know the formula for a normal estimator of beta: $\frac{\sum(X_i-\bar{X_1}_i)(Y_i-\bar{Y_1}_i)}{\sum(X_i-\bar{X_1}_i)^2}$
But what exactly can I divide by (${X_2}_i$) to get their vesion of this estimator? And also how can I u... |
I have spent quite some time looking for an answer both on cross-validated and on google, so I would greatly appreciate any hint or pointer in the right direction.
We are analyzing results collected by a different team over a span of two years, so we unfortunately cannot change the way those results were collected.
W... |
So the question, I hope, is simple...
I have 800 unique strings and I need to find, select and classify each one of them from a set of 30000 plus strings... ok, until there no problem. The trick is that each one of those 30thousand+ strings can have special characters in the string and I need to find and select those t... |
I'm implementing OLS linear regression without using the built-in functions in Matlab with normal equation:
I know this is probably very basic, but I want to double check, the input X yields a unique solution, right? I just figured that there could only be one solution because 1) it's a straight line and 2) because th... |
Problem
There are two excellent CV posts on specifying crossed effects models (post 1, post 2).
The issue I'm trying to wrestle with pertains to part of the answer to post 2, in particular how to nest crossed random effects.
In my study, I have:
About 20 individuals per site
About 10 sites
Within each site, there wer... |
I have a document-term matrix and I was able to classify the documents into their respective classes using svm.
Now, I have numerical variables associated with the documents which I think might improve my classification model further. Eg, think of tweets, comprising their text content as well as the date stamp, number ... |
I have created a dataset of pictures taken at the museum of different paintings. The dataset is divided into 113 different categories (paintings) and contains around 4.8k images.
Just to be clear: these pictures were taken for our research by our team, these images are not taken from users who tested the app (which is ... |
What is the easiest way to see that the following statement is true?
Suppose $Y_1, \dots, Y_n \overset{\text{iid}}{\sim} \text{Exp}(1)$.
Show $\sum_{i=1}^{n}(Y_i - Y_{(1)}) \sim \text{Gamma}(n-1, 1)$.
Note that $Y_{(1)} = \min\limits_{1 \leq i \leq n}Y_i$.
By $X \sim \text{Exp}(\beta)$, this means that $f_{X}(x) = ... |
I am trying to learn about feature selection, and I thought using make_classification in sklearn would be helpful. I'm confused, though because the number of informative features I'm able to find isn't as many as expected.
I am using SelectKBest to determine the number of features. The ones selected by this (either via... |
Given $F(x,y)= 1$ if $y\geq e^{-x}$ and is $0$ otherwise.
I understood that $F(x,y)$ equals $1$ in the region above the curve. From this graph, how do I conclude that $F(x,y)$ is not a CDF?
|
Let $X_1,...,X_n \sim N_p(\mu_i,\Sigma_i)$ be Multivariate Normal a.v. independent.
Show that $W = (X_1,...,X_n) \sim MN(M,\mathbb{I},\Sigma)$ where $M = [\mu_1 \mu_2...\mu_n]$ and $\mathbb{I}$ is the identity nxn.
The density of a matrix-normal variable with independent entries is
$$p(W|M,\mathbb{I},\Sigma) =\frac{\... |
The background is residual useful life prediction. The following is my problem description.
Degradation signal path: $r(t)=\phi+\theta t$ , where $\phi$ is assumed to be the same for all units,and $\theta$ is varying from unit to unit.
Denoting that $S(t)$ is the survival function.
Model one:
$$S_1(t)=\int \exp\left\{-... |
Sometimes I like to train a neural network model on a number of epochs, save it, and load it again at a later date for more training (on the exact same training set). During the prior training I'll have the order of the training set randomly shuffled.
When I later resume the saved model, the shuffled order of the train... |
In John Fox's and Sanford Weisberg's "An R companion to applied regression" (2nd edition) I read on page 215: "Helmert coding is currently rarely used, although it was the default method for coding in some older computer programs". Why is it rarely used? I think it being orthogonal (if the number of observations is equ... |
According to Chapter 8 of the book Deep Learning, "..empirical risk minimization is prone to overfitting. models with high capacity can simply memorize the training se." My question why is it so? Models with high capacity can also memorise the training set when we have the true distribution and reduce the true cost fun... |
I have estimated a probit model & now I would like to test it. I have calculated the likelihood ratio test but now I am having trouble working out what the 'degrees of freedom is' to determine whether I reject or fail to reject the null hypothesis.
I have done some googling and found that the degree of freedom should b... |
If I get no significant difference when using Kruskal- Wallis test, is any post hoc test mandatory?
|
I have some simulated data following sin, where the pattern repeats roughly every 25th observation.
n <- 200
x <- sin(1:n / 4) + rnorm(n, 0, .1)
When I look at the periodogram in R using spectrum, it suggests a peak around frequency 0.04. How do I relate this to my series?
|
For a Normal distribution, we can say that the percentage of values under a certain z-score is the same as the probability till that z-score. For instance, for a z-score of 0.30 the probability till 0.30 is 0.1179+0.5000=0.6179. This is the same as the percentage of values under 0.30 which is 61.79 %.
For non-symmetri... |
I've been reading a lot these last few days about how to get a p-value from bootstrap for regression models (not by permutation). For each coefficient of the model, the null hypothesis is that the coefficient equals 0 and H1 is that it is different to 0 (bilateral test).
The most noticeable similar subjects are the fol... |
I'm interested in what sort of modelling is best suited for data that includes samples collected at different times.
My use case is to do with computer monitoring, so for the initial case assume that the data has 2 parameters: CPU load and the time of the sample. In the future I want to scale this to look at many feat... |
Let's assume we have a classification problem and at first we want to get some insight from the data and we do t-SNE. The result of t-SNE separates classes very well. This implies that it is possible to build classification model that will also separate classes very well (if t-SNE doesn't separate well then it doesn't ... |
I have to choose proper parameters in gbm() function.
Until now, I have used grid search as using train(), trainControl() functions.
Recently, I found the h2o package. As using this, I can do choose proper parameters. But I can't understand what is the difference between grid search that I have used and h2o method.
Wh... |
I've seen in panel studies, regressions with fixed effects (FE) of the unit (say, country or firm) and of time fixed effects (T-FE). But sometimes I see in papers the interaction of the FEs and the TFEs:
$y_{it} = \alpha_{i} + \lambda_t + X_{it} ... + \alpha_{i}*\lambda_t$
I understand the rationale behind FEs and T-FE... |
I expected my training process is like this:
But my training accuracy increased to 99% at only 1 epoch, not steadily increase.
I was suspicious about high learning rate, so i used various learning rate(0.001~0.00001). But the training accuracy increased to ~99% at only one epoch and kept 99% ~ 100%.
Otherwise, validat... |
I would like to forecast using a neural network in R. I'm using forecast::nnetar.
Can you please suggest how to estimate the AIC/BIC for forecasting using nnetar?
|
I'm trying to detect structural breaks in time series of NAV using 'strucchange' in R.
I have created the NAV by using a simple annualized return of 5% and 10% (no random term). However, after using 'breakpoints' test in R the result is that the break point is not on the point I have changed return from 5% to 10%.
My... |
I am writing a paper on comparing different business cycles and have calculated bilateral correlation coefficients between individual countries and the overall aggregate. I have read in some of the academic literature that the Fisher transformation is necessary in order to enable a comparison of the means. If someone... |
I will make k-means clustering for a segmentation project.But I know that this algorithm is effectable from outliers.Which way should I perform for detecting outliers before doing k-means algorithm? For example should I perform anomaly detection algorithm on the data set to detect outliers and after detecting and exclu... |
Can anybody guide me on the R code for the following problem?
My data contains expression values of Genes A, B, C, D, E, F, G, H, and I in a time course study for two time steps, 48 and 72 hours, with and without a treatment.
The dummy data looks like this:
Gene Names Fold change 48h Fold change 72h
... |
Say in a certain population one person is infected with a contagious virus. To prevent the virus from spreading the government tests the entire population whether one individual has this disease or not. The test is 99.9% accurate, but not 100%. Is a certain person, whom is tested positive, infected with the virus? One ... |
Can anybody explain to me what the difference is between the "Precision and Recall" and "Completeness and Correctness" performance measures? It seems the calculation of "Precision and Correctness" and "Recall and Completeness" measures are the same as in here? So why is there two different naming? (I am specifically in... |
I am interested in utilizing machine learning clustering algorithms on a count dataset that:
Takes account of Sparsity (excess of zeros)
Takes into account a complex interrelationship like ecological and microbiological relations
Clusters (then classify eventually) observations coming from tensors: observation x va... |
Is it compulsory to partition data in training and testing for time series modelling ?
The reason for asking this question:
Lets say training data= first 80% observation of actual time series data(not using random sampling because if we use it, we won't be able to capture trend)
and testing data = last 20% data.
If we... |
I'm specifically referring to Random Forest regression.
The first statistics that are usually printed after running a random forest regression (in R - randomForest package - randomForest:::print.randomForest) are:
Mean of squared residuals and % Var explained obtained.
Tuning the model, if you made a "good" change, ... |
I am working for an online marketing agency and we are often testing different titles/pictures for products etc. which are then shown for example at google shopping.
If we want to test 2 variants of a title to improve the click trough rate (ctr) or conversion rate (cr), we usually randomly assigning a certain amount o... |
Please, can someone advise me on how I can approach my nominal data and test its significance.
I measured jerking movement as a behavioural effect in a fish exposed to each of Chemical A and Chemical B at different concentrations (or treatments) based on below metrics:
No effect = 1
Low effect = 2
Moderate effect = 3
H... |
Here is what my group wants to do:
Query a database for cases of several disorders, including Disorder A and Disorder B.
Of those cases, specifically query for cases of Disorder A comorbid with each of the other disorders, including Disorder B.
Compare frequencies of A+B comorbidity vs. A + each other comorbidities, ad... |
I have used Fisher's Exact rather than Chi-square due to having some cells with small sample sizes, but I have no clue how to report this? In the output, I am given the Fisher's test value (14.510) and the statistical significance (.042) That's it - no df etc.
As I would usually report a chi square test as x2 (df, n=p... |
I want to calculate the number of participants I need in order to get a power of 0.95, when replicating an effect. The effect size of this effect is not reported in the previous study, which is why I want to calculate it from the $F$ value and the degrees of freedom. The ANOVA is a repeated-measures within-group 2 x 2 ... |
So say I want the user to type the first 5 letters of a word he or she is thinking about; I want the neural network to output the remaining letters in the word.
However, should I:
Convert the 5-letter string to binary (A=01000001, B=01000010, etc.)
This means that I will have 5 * 8 = 40 input neurons
Or should I:
L... |
I have a set of question's responses (R) from users (U) that have binary values = {pertinent, not-pertinent}, as shown in the next example:
R1 R2 ... Rn
U1 : pertinent, pertinent ... not-pertinent
U2 : pertinent, not-pertinent ... pertinent
..
Um: pertinent, per... |
As I recall algorithms like nearest neighbor don't build a model based on training data and then apply that model to test data. It just takes each new instance and compares it to all the data to find the closest one, etc.
What about Naive Bayes? It seems to be similar. For example neural networks learn parameters and t... |
Here is the summary of my linear model:
Call:
lm(formula = weight ~ height, data = height and weight)
Residuals:
Min 1Q Median 3Q Max
-10.267 -4.267 -1.267 6.455 11.538
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 20.4878 5.8335 3.512 0.0015... |
As it says in the title, what measure of association should I use for a categorical variable (with 4 groups) and a continuous variable (number of times travelled)?
I assume it can't be chi square as that is only suitable for nominal data.
|
I have a question regarding the validity of transforming the predicted response from a regression model when the response has been log-transformed.
I'm completing an exercise geared towards fitting different model types to training data to predict a response variable (price) in the test data. The distribution of price... |
I have tried to generate/write equation for forecasting using ARIMA models. But I think my equations were wrong and I am stuck with it. Kindly please help me to obtain equations for
1.(ARIMA (0,1,2)
ma1 ma2= -0.1704, 0.4193
s.e s.e= 0.1259, 0.1646
σ^2, log likelihood= 127.7, -179.84
SARIMA (1,0,0)(0,1,0)12
ar1 = 0.... |
Is it generally true that for the exponential family the MLE estimate will be the sufficient statistic divided by the number of data points?
It seems to be true for a couple of examples, but I am not well versed enough in the theory of exponential families to prove this to myself.
Bernoulli Example
Sufficient Statistic... |
I am working in a project using linear regression with a data set that has a lot of multicollinearity. From what I could understand from my research about the topic, I can separate the issues caused by multicollinearity in:
Problems related to the modelling itself, like the instability of the regression coefficients.
... |
I have calculated the cumulative average of Y as function of X. As far as I know, the cumulative average highlights the "low-frequency trend" of a variable as a function of another variable.
I am struggling trying to interpret the evolution of the cumulative average with X. You find the plot as an attachment.
If I am c... |
Thanks in advance for reading and chiming in, if you have any advice.
I'm working on a project that involves testing an intervention that could increase HIV testing rates. Participants will be randomly assigned to three conditions (1: Control, 2: A little intervention, 3: A lot of intervention), and then we'll track w... |
I'm using the TBATS model of the forecast package with Google Analytics data, to forecast web trafic containing multiseasonal effects (msts).
I have two year of daily data that contains two columns like these :
date sessions
2015-01-01 2667
2015-01-02 3542
2015-01-03 2383
2015-01-04 2772
2015... |
The maximum a posteriori estimator of a Bernoulli parameter $\mu$ with $Beta(a,b)$ prior is
$$\hat{\mu}_{MAP}= \frac{n_R + a - 1} {n + a + b - 2}$$
where $n_r = \sum x_i$ the count of all events in the data and $n$ the sample size. Now it is not difficult, I believe, to construct an example where MAP is outside the sup... |
I've got some data that has an exponential decay. And I want to do some curve fitting.
X = [x for x in range(0,900)]
N_0 = 300
m_lambda = .005
left_shift = 0
up_shift = 0
plt.close()
Y = [ N_0 * np.exp(1)**(-1*m_lambda*(m_x+left_shift)) + up_shift + np.random.normal(0,15) for m_x in X]
Y_fit = [ N_0 * np.exp(1)*... |
Suppose it is required to test the fitting of binomial distribution to the following data ( at level $\alpha =0.05$) :
the parameter p is estimated as p = 0.494 , and the expected frequencies (given in red ) are also calculated .
let the claculated value of chisquare statistic (using the formula $\sum\frac{(O_i - E_i)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.