instruction
stringlengths
9
38.7k
I would appreciate any help you could give me I have ordinal data which I want to standardise in order to compare averages and data spread between variables. I need to standardise since the variables have different scales (one is out of 7, the other out of 15). I have transformed the original values into percentages a...
I am studying stock price. I first define that the ln(price) has an obvious unit root of 1 lag. I was wondering if someone could explain me how to proceed to construct a correct ARMA model...? Thanks is advance.
I have a classifier that I'm doing cross-validation on, along with a hundred or so features that I'm doing forward selection on to find optimal combinations of features. I also compare this against running the same experiments with PCA, where I take the potential features, apply SVD, transform the original signals onto...
We have raised a batch of frogs on one species A fly. We then present the frogs with species A and a second species B fly. Will the frogs pick species A or B? Lets say 40% choose A and 60% choose B. is this selection random? If not random, then how do you show that it depends on prior food exposure? or it does not depe...
I have a series of data points, and I want to see how much evidence there is that the points are getting bigger over time. The data themselves are counts, but for various reasons I don't want to build a model of this as a Poisson process with potentially changing lambda. I'd like to only look at order statistics. I kn...
I have 2 data sets: $A$ and $B$. The variables are common to both data sets with the exception of two, which are both missing in A. Let's call those two additional variables: $b_1$ and $b_2$. We can call the other variables $X = \{x_1, x_2, \dots , x_n\}$. I would like to use $X$ to impute the corresponding $b_2$ ...
I'm only a linguist, so my knowledge of statistics is very basic. I fitted a logistic regression model with R (with lrm(formula, y=T, x=T)), and when I use the option validate(lrm), I get some statistics I don't really understand. index.orig training test optimism index.corrected n Dxy 0.5984 0.6112...
my project is identification of factors influencing motor bikes for home to office trip. there are some attiributes like gender,age,marital status,education qualification,job type,working sector, no. of members in household,working members in household,monthly income,total household income,no. of motor bikes,members ha...
I am working on a business research paper. The hypothesis is that the sales rep influences the customer's decisions. Independent variables consist of the sales rep's: knowledge, pushiness, friendliness, etc. Dependent variable is the customer's willingess to buy. In all, I have 12 questions that I asked on a Likert sc...
Imagine picking a 1 when any real number is equally likely. What is the pdf? Does this idea have a known use? What is its name? There could be a use for a uniform random real number. It could end up always being integrated. It could be a prior for a number that is completely unknown. It would be like a delta fun...
I have collected data for 3 decades for 5 things. I want to see if there is a change in these five things over the period of three decades. For example if A was 20 out of 80 in decade1, 40 out of 120 in decade 2 and 50 out of 70 in decade 3. now i want to check if the change in A was statistically significant over the...
So first, sorry if I use non-standard vocabulary, since I am not an expert. Please feel free to correct. I would like to know if a set of genes in a patient cohort are mutated by a mutually exclusive manner. While one can observe this easily by eye, it is unclear to me how to test this in a statistical rigorous way for...
I have recordings of intensities of two fluorescent antibodies on a 2d image $2^{10} \times 2^{10}$ pixels in size, giving me $2^{20}$ pairs of numbers. What is the best way to find the best straight line approximation in the plane, in the sense that the sum of squares of Euclidean distances from the points to the str...
There are countless examples of diffuse priors being used to 'allow the data to speak.' However, what if one's past experience leads you to be skeptical of new data, without necessarily having a prior as to where the bulk of the density is located. Is there some way to have a diffuse prior that nevertheless strongly i...
I am doing some work that involves combining the probabilities of multiple independent, non-disjoint events into an overall probability of any event occuring. We are using an equation like this: $P(A_1 \cup A_2 \cup \dots \cup A_N) = 1 - \prod_{i=1}^N{(1 - P(A_i))}$ Is there a name for this equation? I can't seem to fi...
I have four age groups all measuring different heights: How would I test for difference between the groups at 0.01 level of significance? Would I use ANOVA? Also - how could I establish which group is different from the others at the 0.01 level of significance?
The hellinger distance for a univariate distribution is $$ \ H(x) = 1 - \int \sqrt {f(x)g(x)}\; dx $$ I wish to use it for a bivariate distribution, by extending it to this form $$ \ H(x) = 1 - \int\sqrt {f(x, y)g(x, y)} \;dx dy $$ Can someone comment on whether this is still a valid Hellinger distance?
I have a set of observations of credit loss data, where the mean is 37% and variance 25%. Now, I have to find the distribution and the base assumption is it will follow a beta distribution. the issue is that my alpha and beta derived from mean and variance is being estimated at -0.025012 and -0.042588. I dont understan...
I have a logit model that comes up with a number between 0 and 1 for many cases, but how can we interprete this? Lets take a case with a logit of 0.20 Can we assert that there is 20% probability that a case belongs to group B vs group A? is that the correct way of interpreting the logit value?
I’m trying to find a way to measure how much a single variable ‘summarizes’ a full set of continuous variables. For instance, in a PCA the first principal component will explain a certain percentage of the total variability in a multivariate set. So, how can I obtain a similar measurement for a pre-existing (untransfo...
Why is the test statistic of a likelihood ratio test distributed chi-squared? $2(\ln \text{ L}_{\rm alt\ model} - \ln \text{ L}_{\rm null\ model} ) \sim \chi^{2}_{df_{\rm alt}-df_{\rm null}}$
Let's say I have a stream of click data that looks like this: USER-ID,SHIRT-COLOR,URL 1,blue,http://a.com/apple.html 2,black,http://a.com/banana.html 2,black,http://a.com/apple.html 1,blue,http://a.com/cherry.html 3,red,http://a.com/cherry.html 4,blue,http://a.com/apple.html 4,blue,http://a.com/cherry.html 5,red,http:...
Let's say a website makes available only one of three online quizzes A, B and C, daily. If the majority of visitors pass the quiz then the next day the website will randomly publish either quiz A, B, or C with equal probability $\frac{1}{3}$. If the majority of visitors fail the quiz then the next day the website will ...
I am analyzing pre- and post- intervention data for which I have 6 dependent variables for two groups (treatment, no treatment). I want to know if, controlling for pre scores from the 6 measures, post scores differ between the two groups. (Some DVs show significant correlations with each other.) I want to know whether...
I have done a data analysis trying to cluster longitudinal data using R and the kml package. My data contains of around 400 individual trajectories (as it is called in the paper). You can see my results in the following picture: After reading chapter 2.2 "Choosing an optimal number of clusters" in the corresponding pa...
In my logistic regression is the dependent variable a dummy variable and I also have two independent variables. One of those is a dummy variable and the other is a metric variable. I also suppose an interaction between those two variables. I am computing three regressions because I want to explore the influence of the...
First, thanks to those who gave me useful input on this project in a previous thread on this site.I've got a new-ish question at this point on the mechanics of MI (using MI via chained equations): I've got three sets of variables that I can reasonably assume to be unrelated. Lets call set 1 "conditions", set 2 "additi...
I have generated a functional trait dendrogram using species x trait and plots x species matrices through dbFD in package FD. I want to randomize the tips of the trait dendrogram to check if community assembly of the trees in my study area is random or if their are functional differences between plots. I have the vecto...
I need to difference the series once to get a stationary series but then cannot run the tbats function because my differenced series has negative values. Does anyone know of any way of handling with this? I'm thinking of adding a constant but don't know whether I'm cheating or not.
Here is a statistics question which I have been thinking about while working with some of my data. I have a large dataset named "bigbird" (say about a billion rows) and I want to randomly sample a smaller dataset named "smallbird" from it using R. Now, I can easily do this with the following code: smallbird<-bigbird[sa...
I have ~5M records of spatial polar coordinates (r and theta). These 5M records are from 400 different 'locations' that I have ~150 variables for (no NAs). I also have 1 binary variable used to flag each record as a Point of Interest or not. For the records that are not a POI, I have another variable giving more detail...
The dichotomous variable I want to use for a point-biserial correlation has very unequal n's ($n_1=140$, $n_2=6$). Would this be breaking any rules? What would this mean for my results? Would it just limit the statistical power?
Assuming a sample of random variables where the error terms for each random variable ($y_{i}$) are given by $\epsilon_{1}, \dots, \epsilon_{n} \sim N(0, \sigma^{2})$, a linear model is developed such that: $$ y_{i} = \beta_{0} + \epsilon_{i} $$ then, using OLS, finding, $$ \frac{d}{d\hat{\beta}_{0}} \sum_{i}^{n}(y_{i} ...
I am running a multiple regression of the form y~a+b+c+ab+ac+bc I have checked the VIF values for the direct effects - should I check them for the interactions? I am assuming not as that would equate to looking at the multicolinearity between a variable and itself (albeit in an interaction) which will surely be very ...
I have a times series for temperature and I am trying to decompose it into a seasonal + trend + stochastic process to look at what model would fit for the stochastic process. However, I only have data for 333 days, and I assume my data should include a periodic phenomena, with the period being one year, or 365 days. H...
I have used quantile regression to estimate a particular coefficient for the 10th, 20th, ... 90th percentiles. Now, I want to estimate the mean effect of the coefficient across the whole distribution. Using ordinary least squares to estimate the mean effect, however, is inappropriate given the heteroscedastic, non-Ga...
Attempting to do loess on two variables x and y in R using MA normalization(see MA-plot; see also Bland-Altman or Tukey mean-difference plot) like this: > x = rnorm(100) + 5 > y = x + 0.6 + rnorm(100)*0.8 > m = log(x/y) > a = 0.5*log(x*y) I want to normalize x and y in such a way that the average m is 0, as in standar...
We're looking for clues to perform a Cluster Analysis in a DB with +400K images which have keywords associated to them. Each image could have from 1 to 30 keywords. Total keywords count is +35K. Keywords are not assigned with uniform criteria, e.g. one dog image can have [animal, canine, dog] and other similar dog pict...
I'm trying to use mixfdr in a simulation of p-values but sometimes the search for the penalization parameter spits out an error and shows some matrix entries to be infinite: >m <- mixFdr(stdjk,plots=F,J=3,theonull=F,calibrate=T) Fitting preliminary model [1] 0.750 0.125 0.125 [1] -7412.522 -7412.522 -7412.522 [1] 3706...
I am trying to analyse data collected through the Self-Assessment Manikin (SAM), which uses three pictorial scales to assess the three dimensions of pleasure, arousal and dominance. Participants are explicitly instructed that they can tick either of the five pictures or any of the four spaces in between, making it esse...
The following is a problem from Bayesian Data Analysis 2nd ed, p. 97. Andrew Gelman has not included its solution in the guide on his website and it has been driving me crazy all day. Literally all day. For some data $y$, modeled as a binomial distribution with population $N$ and probability $\theta$ parameters, both o...
The "classical" $100(1-\alpha)\%$-confidence interval starts from the Student's t statistic $$t=\frac{\bar{x}-\mu}{s/\sqrt{n}}.$$ Then, one obtains the desired result, e.g. $\bar{x}\pm t_{1-\alpha/2;n-1}\frac{s}{\sqrt{n}}$ by simple algebraic manipulation. Here's my problem. I am using an approximation for $\bar{x}$, w...
I have data for Hydrogen Sulfide Series, see here http://www.wikiupload.com/Y4WAZJ4Z0IMTK7V I applied a Box-Cox Transformation with $\lambda =1/3$ to try to stabilize the data. I plotted a few sample PACF/ACF to show that the series is not stationary and does not demonstrate constant second order properties with time. ...
I'm trying to run the following code in JAGS model { for (i in 1:n){ z[i] ~ dnorm(X[i], tau) X[i] <- D1*x1[i] + D2*x2[i] + D3*x3[i] + D4*x4[i] } denom <- 1 + sum(exp(p)) D1 <- (exp(p[1]))/denom D2 <- (exp(p[2]))/denom D3 <- (exp(p[3]))/denom D4 <- 1/denom # Prior for Fixed Effects p[1] ~ dnorm(0,.01) p[2] ~ d...
I am struggling with this question, which I thought it should be easy: suppose we have a method of sampling from the joint distribution of a collection of (discrete ordinal) random variables. We do not know the density. We need to find a way to sample from the conditional distribution of a subset of them, $X_i$, given ...
I am trying to match treatment with the control using the R Matching package for the data set nuclearplants (which is available in optmatch package in R). Following is the code for matching: library (optmatch)# for the dataset nuclearplants library(Matching) # for performing matching data(nuclearplants) # I am using Ma...
I am investigating a common discrepancy between male and female self-reports on a survey about sexual experiences. Generally, women report ~2/3 higher rates then men do. I have modified the survey and now need to find out if/how the discrepancy between males' and females' reporting rates may have changed. Males and ...
I overhead a professor speak about the Cauchy meta-distribution, but I am unable to find anything about it on the web. My question is what is the Cauchy meta distribution and what is the theory behind it?
I'm trying to find the probability that two randomly-selected letters from "average" text in a language will be the same. For example, if my hypothetical language contains four letters which each occur on average with the following frequency: A = 60% B = 25% C = 10% D = 5% What is the probability that selecting any ...
I have some data that I can't necessarily assume to be drawn from normal distributions, and I would like to conduct tests of equivalence between groups. For normal data, there are techniques like TOST (two one-sided t-tests). Is there anything analogous to TOST for non-normal data?
I am new to Stats and came across this problem while running my analyses on SPSS which I cannot explain. How is it that even after transforming my data by logging it, it still has the same p-value as the raw data set that was not transformed?
Using the student t-distribution with $k > 0$ degrees of freedom, location parameter $l$ and scale parameter $s$ having density $$\frac{\Gamma \left(\frac{k+1}{2}\right)}{\Gamma\left(\frac{k}{2}\sqrt{k \pi s^2}\right)} \left\{ 1 + k^{-1}\left( \frac{x-l}{s}\right)\right\}^{-(k+1)/2},$$ how to show that the Student $t$-...
Hello how to show the following: Observations $(X_1,X_2,..,X_n,)$ are i.i.d. over $[0,2\pi)$ with density $f(x,\theta) = \exp[\theta_1\cos x + \theta_2 \sin x -c(\theta)]$ where $\theta =(\theta_1,\theta_2) \in R^2$ Find an expression for the Fisher information $I(\theta)$ involving integrals and show that it is posi...
If I were to define the coordinates $(X_{1},Y_{1})$ and $(X_{2},Y_{2})$ where $$X_{1},X_{2} \sim \text{Unif}(0,30)\text{ and }Y_{1},Y_{2} \sim \text{Unif}(0,40).$$ How would I find the expected value of the distance between them? I was thinking, since the distance is calculated by $\sqrt{(X_{1}-X_{2})^{2} + (Y_{1}-Y_{...
Essentially, I have some covariate data X, and a dependent variable Y consisting of proportions of a sample that shown a certain response (i.e. between 0 and 1). I suspect I want to proceed via a GLM approach, but the thing is, I don't know the sizes of each of those samples! My thoughts are to proceed by a quasibinomi...
Suppose I have 3 eggs, with independent hatching times (in minutes) following an $\text{Exp}(0.05)$ distribution, and A is defined as the earliest hatching time. If I were to plot A, how would I explain its distribution? From running a simulation on R, I can see that the histogram of A follows an exponential distribu...
I have a nominal and an ordinal variable and I would like to look measure the association that is between the two. For now, I have done Chi-square test and non-parametric Kruskall-Wallis Test and I have come to the conclusion that there is an association/relationship between the two variables. How can I further measure...
I have a space of 35 dimensions (attributes). My analytic problem is a simple classification one. Out of 35 dimensions, more than 25 are categorical and each attribute takes more than 50+ types of values. In that scenario, introducing a dummy variable also will not work for me. How can I run an SVM on a space which has...
I want to filter out networks/graphs which are just a single community rather than interconnected communities. Each community can either be a random graph or a star graph, but there should no community structure. The definition is loose considering that these data sets can have multiple communities with a varying numbe...
Suppose we have a table like this: \begin{array}{ |l | c | r |} \hline & \mathrm{win} & \mathrm{lose} \\ \hline \mathrm{male} & X_{11} & X_{12} \\ \hline \mathrm{female} & X_{21} & X_{22} \\ \hline \end{array} and we want to know if winning or losing depends on sex (male or female) apart from ch...
My stats questions concerns the appropriateness of using different transformations of the same variable within different analyses (within the same larger study). My research involves emotional expression as a dependent variable. I'm looking at 1) baseline differences between healthy controls (HCs) and individuals with...
What method will allow me to identify the values of the independent variable where two (or more) diverging linear regression models are statistically different? e.g. Take two simple linear regression models derived from some experimental test: $y_1 = -1x+100$ and $y_2 = -0.5x+100$. These could represent two time point...
I have acquired data from 3 different donors in which 6 different drugs were tested over a period of time. For a period of 1 week I have measured 1 parameter each day from each condition from each donor. I would like to compare two drugs with one and other. But when I plot the parameter values over time of each conditi...
(I have no real idea what to tag this with because I'm no statistician and I don't know what field this falls into. Feel free to add more suitable tags.) I work for a company that produces data analysis software, and we need a decent set of data to test and demo our latest product with. We can't just fill the database ...
So what is that parameter. When I make a non-linear fit, the program gives me a value χ2/doF. What is it? I know some statistics and I know those χ2 distributions are used for non-parametric contrasts, like how good a fit is to a data, knowing that λ⇝χ2n−1 (that's supposed to mean the pearson parameter behaves like tha...
I hope no question is too simple. I am just learning, and I came across an expression that compared standard deviation and mean of a distribution. I thought that it makes no sense to compare them, meaning that no useful information can be obtained from it. Am I wrong?
Say we have a sample $X_{1},...,X_{n}$ from a log-normal distribution with parameters $\mu$ and $\sigma^{2}$. That is, $\ln(X)$~$N(\mu,\sigma^{2})$. Let $T_{n},Z_{n}$ denote the MLE's for $\mathbb{E}(X)$ and $\mathbb{D}^{2}(X)$ respectively (based on the sample of size $n$). The question is: What are the asymptotic dis...
I just barely grasped why large-sample confidence limits that assume approximately normal distributions are not the best approach when relative frequencies approach either one or zero - so that in these instances methods according to Jeffrey or Clopper/Pearson are preferable, and can be calculated with relative ease us...
I have data of an entire population (N=27). I would like to find out which variables (of many) have the greatest effect on one certain dependent variable, and how much of its variance can they explain. The possible independent variables could be correlating as well (some of them certainly do). They are all scale measur...
I am assessing a bunch of risk factors related to HIV infection by logistic regression. First I will conduct a couple of chi square tests or t-tests to see if each factor is associated with HIV infection or not. Then I will pick those factors with p value less than 0.1 out of the bivariate analysis above and include th...
I am using RJAGS to simulate the posterior distribution of event that a certain candidate will win the presidential election. I need to find the actual percentage that one of the candidates will have. What I do have is the values of each iteration for each of my three chains for both the proportion of the first candida...
I am modelling a process distributed as a 2 parameter lognormal distribution; determining the parameters by maximum likelihood. I have simulated the bias in the estimators (logmean and logsd) as well as the skewness. The logmean seems unbiased and the logsd and skewness seem asymptotically biased; underestimating thes...
Suppose we have $10$ pairs of matched data (i.e. pre-exposure and post exposure). Call the exposure $E_1$. So the data are in the form $(\overline{x}_1, \overline{y}_1), \dots, (\overline{x}_n,\overline{y}_n)$. For example, $(\overline{x}_1, \overline{y}_1)$ is the average of measuring $E_1$ of subject $1$ 10 times pre...
I am running factor analysis on stata to reduce a few variables to a single explanatory variable which means "experience" of a manager (should be non-negative value), however, after using "predict" command I check the range of the new variable and found that there are many negative values, how do I avoid this? The orig...
I have this homework question I'm not 100% sure how to tackle. I have a random vector with joint distribution function F(x,y) and am asked to find the marginal distribution function. I think need to get to $fx(x,y)$, but I'm not sure how to do this. My thinking is that I need to differentiate F(x,y) by both x and y, ...
When computing the covariance matrix of a sample, is one then guaranteed to get a symmetric and positive-definite matrix? Currently my problem has a sample of 4600 observation vectors and 24 dimensions.
If we have a null hypothesis and subject it to Turning Point test, rank, runs portmant. etc. If the p value fall below 0.05 in some cases and not for others, do we then say that we reject the hypothesis? I.e. what can we say about the WN hypothesis if our series passes some tests but fails at others?
Working with my time series data I need to add decays to a certain variables. That is, when the variable consists of a series of impulses, I need to prolong these effects of these in order to better depict the true underlying nature of the effect. I would also like to experiment with different types of decay lengths (n...
I have a question about automatic on-line outliers and change point detection in time series data. Now I read the paper: "Outliers, Level Shifts, and Variance Changes in Time Series" Ruey S.Tsay It's written in the abstract: "..The methods employed are extremely simple yet useful.." But for me it's not very easy to und...
After having inferred a statistical model for my physical system $Y=f(X_1, \dots X_n)$, I want to estimate the local sensitivity of each variable $X_i$ (one by one) around the point of maximum response. All the methods I know are based on the analysis of the first derivatives along each variables. Being located at a ma...
I need to simulate with probability distribution number of users who are listening radio during the day. Given data : max number of users is 1000, day has 24 hours (from 0 to 24), the highest number of users should be from 11 to 15. Which probability distribution will be the best and which parameters of distribution sh...
Are there any good resources regarding how to design kernels for regression problems, specifically time-series regression type of problem. I am finding the choice of a kernel for regression extremely unintuitive. For a classification problem with hinge loss, the idea is that the kernel should map similar examples clos...
This is a further question to my original question, where I did not get a helpful answer. I want to fit a t-distribution to my data, whose probability density function is: \begin{align*} f(l|\nu ,\mu ,\beta) = \frac{\Gamma (\frac{\nu+1}{2})}{\Gamma (\frac{\nu}{2}) \sqrt{\pi \nu} \beta} \left(1+\frac{1}{\nu}\left(\frac{...
I am experimenting with a mixture of binomial models. Consider a binary variable $y_i$. Furthermore, there are two sub-groups in the population (not known a priori and not observable): $z_i=0$ or $z_i=1$. For one sub-group of the population, the following holds true: \begin{equation} P(y_i=1|z_i=0)= \xi, \end{equatio...
I am conducting research on the relationship between a person's birth order and later risk of obesity using data from several 1-year birth cohorts (e.g. http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2908417/). A key challenge is that birth order is linked to other features such as maternal age, number of younger and/or ...
I have a problem where I am trying to group observations (most likely using k-means or a similar unsupervised learning tool) where each observation includes n-variables, with the total sum of these variables equal to one. We are therefore grouping observations, based on the probabilities of each of n potential states ...
I am very new to statistic analysis and I am having some problems with my data. Basically, my categorical variables are the following: grammatical structures (four of them) and languages (five of them). The total number of these structures is 1218. I want to answer the research question if the observed preference show...
I am fitting a logistic regression model using lassoglm in matlab. I issued the following command [B,FitInfo] = lassoglm(ec50,Y,'binomial','Lambda',0.0001,'CV',10); Now once I get the coefficients B, how am I supposed to use it. I mean do I have to do $P(y=1) = \frac{e^{(\theta^tx)}}{1 + e^{(\theta^tx)}}$ where $\thet...
I have a number of timeseries on which I want to apply a PCA (using matlab). These time series have very different variances. My objective is: 1) all time series have the same weight for me, no one should get overweighted 2) I don't want the nature of my data (statistical properties) to get modified through transforma...
I just noticed that the Nelson-Aalen estimate of the cumulative hazard changes depends on the existence of tied events. As a toy example, consider a study with 3 patients. The patients die on day 1, 5, and 14 of the study. If we check the patients status daily, the Nelson-Aalen estimate for the cumulative hazard at the...
Let's consider I have the pair of distributions: \begin{align} X|t &\sim Binomial(n,t) \\ t &\sim Beta(a,b)$ \end{align} Here $n,a,b$ are known. I need to construct conditional probability to sample from it, $t|X$. In this example I can do this analytically: $$t|X \sim Beta(x+a,n-x+b)$$ But how can I do this in gener...
I want to model the effect of Level (continuous) of different Additives (categorical) on Y (continuous) by fitting a linear model, so my data is going to look like this: Additive Level Y A 1 2.3 A 2 4.5 A 3 6.7 <snip> B 1 8.9 B 2 1.0 etc. ...
I'm trying to apply logistic regression to the data with binary predictor. But some of my variables are numerical and some are categorical. If I just do this in R I get the model where for every categorical variable I have coefficients and p-values for for variable's possible values except for the first. How can I inte...
I am confused in understanding the formal definition for independence and how does this differ from the law of total expectations. I thought that $E[u|x]=E[u]$ formally means independence of $u$ and $x$. However, when I have $E[u|x]=a$ (const) and use the law of total expectations, $E[u]=E[E[u|x]]=a$ I obtain $E[u]=a$...
I'm working on a time-series problem. Consider the model below: $$Y = \beta_0 + \beta_1*t + \beta_2 * \sin(wt) + \beta_3 * \cos(wt) + \epsilon$$ For now, assume that $\epsilon$ is AR(2) with KNOWN parameters $\phi_1$ and $\phi_2$. I want to estimate $\beta$ coefficients above and I want to use pre-whitenning approach. ...
I am looking at some data for the risk of mortality in patients undergoing treatment A vs treatment B and I am given the total number of patients in each treatment arm and the relative risk + confidence intervals of mortality. How would I go about finding the actual number of deaths in each treatment arm? Here are the ...
I have 63 rows and 17 columns in the cocomo81 dataset (see the information here). The first 16 columns are the inputs to the network and the 17th column is the estimated outputs. I took 2/3rd of the data for training and validation (i.e 42 rows), 1/3rd for testing (i.e from 43rd to 63rd rows). I sent 1st row for train...
I'm hoping someone can give me some guidance on implementing Gaussian processes (GP) with PYMC. In particular, I'm not sure how to use multiple GP submodels properly within a single pymc model. More specifically, what I'd like to implement is a classifier for which the input is a time-varying signal (an audio snippet,...
I refer here to a classical linear regression whose true representation is given by the equation: $y_i=x_i'\beta+u_i$, where as usual $x_i$ is a $K\times 1$ vector of independent explanatory variables, $\beta$ is a $K\times 1$ vector of parameters and $u_i$ the error term of the ith observation and by construction of ...
I am trying to train a predictive model on whether a given person is ( male or female) based on behavior cues we've obtained from online surveys. The dependant variable will be a binary ( 1 or 0 ). For the training data set, I have a list of 150+ numeric variables ranging from issues as far apart as "political lea...