instruction
stringlengths
9
38.7k
Dear to whom it may concern. I am analyzing survey data and I have one dependent nominal variable and 11 nominal independent variables for the multinominal logistics regression. I just wanted to find the best way to reduce the amount of independent variables in the multi-nominal logistics regression? Can I use CATPCA f...
Given a random symmetric matrix A whose entries are Poisson distributed, can anything be said about the distribution of A's eigenvalues? Would be great if someone could link a paper citing such a result!
Just a note concerning the splitting and using of the dataset. So if I understand this correctly, we use the validation set to confirm that parameter changes made are giving us positive results. And the testing set is put aside until the very end after we have optimized the model. So if I had a default SVM, I would use...
I apologize in advance if this proves to be a nonsensical question but it is something I have been struggling with. Is there a way to prove/discern that covariance stationarity is not an attribute of the sample at hand and is an attribute of the underlying process? edit: The motivation of the question comes from unit r...
I've trained two models (binary classifiers using h2o AutoML) and I want to select one to use. I have the following results: model_id auc logloss logloss_train logloss_valid gini_train gini_valid DL_grid_1 0.542694 0.287469 0.092717 0.211956 0.872932 0.312975 DL_grid_2 ...
I would like to investigate the relationship between high school grades for different subjects and university credits earned in the first year. I plan to use multiple linear regression (OLS). I have data on the average grades of students in several subjects (that is, the average grade per subject, per student) and the ...
I'm trying to build a model that given the blue line in the graph below (my time series data) and the red lines (features manually labeled by myself) is able to detect similar features/patters in un-labeled data. My question is whether someone can suggest an algorithm to use in order to achieve that.
I want to find $p(x \vert y)$ given $p(y \vert x)$. I am aware of Bayesian formula $p(x \vert y) = \frac{p(y \vert x)p(x)}{\int_{-\infty}^{+\infty}p(y \vert x)p(x)dx}$ but I can not understand why the following logic is wrong. Let $x$ be some random variable with pdf $p(x)$ and $\varepsilon \sim N(0,1)$ independent of ...
I have a question regarding imputation I was not able to find an answer to. Any help would be greatly appreciated. Let's suppose I have a dataset, impute missing values using the median, train a model and test it. The model has good performance. Now I put this model into production. When I impute missing values for ne...
I fit a set of experimental data (Xi,Yi) by a relatively complicated function, which depends on one parameter, f(X;C) minimizing the square deviation. How can I determine the error of the parameter C in this case?
In a example of Boolean model, points are scattered in the plane according to a homogeneous Poisson process of intensity $λ$. On each of these points a disc of fixed radius $r$ is placed. Similar to the question posted before: Any expression for the probability of a hard sphere in Boolean model My question is: What is ...
I was going through a solved example on https://www.probabilitycourse.com/chapter9/9_1_3_comparison_to_ML_estimation.php for computation of ML estimate of a distribution. In this article, they state $Y = X + W$ where $W \sim N(0, \sigma_w^2)$ and independent of X. The authors then express $Y|X$ as $Y|X = x \sim N(x,\...
I am interested in using Hidden Markov Models in the context of multi-sensors sequences in vegetation remote sensing. The observation labels are the same as the state labels. Each observation at a given time $t$ is classified and I want to use HMM in order to reduce classification errors. For example, the states could...
I am studying Probabilistic graphical model based on this course and book by same professor. I am reading deterministic CPD's independency. Seeing the image below from the lecture, the lecture says if C is a deterministic function of A and B, then D and E are independent to each other given A and B. And it only applies...
I trying to solve a linear regression problem and would like to select the most important variables to use. I came across the Boruta package in R. I am using it as follows: important_feat <- Boruta(DepVar ~ IndepVar1 + IndepVar2 + IndepVar3, data=df) where the DepVar is my continuous dependent variable that I want to ...
I have a dataset from a black box function, about 35K lines in a text file, with each line containing a single string from the black box function. I am building a VAE to (hopefully) model that data, with the ultimate goal of function approximation of the black box algorithm that is generating these strings. Each string...
I have a Data-set that consists of 500 variables. It's a regression problem where the dependent variable (Y) varies from 0 to 25700. Count of Dependent Variables that is 0 : 60% of the data Most of the Dependent variable ranges from 0 - 1000. But for 20 incidences, Dependent variable ranges from 1000 to 25700. Onl...
I am trying to understand the relationship between the beta-binomial and the binomial distribution. More specifically, I am trying to show that the limit of the beta-binomial distribution, with $p=a/(a+b)$ is binomial as $a+b$ goes to infinity. I am having trouble showing it. Any useful hints would be very helpful. ...
In the meta analysis study by Schmidt & Eisend (2015) which won the Journal of Advertising Best Article Award, I found a hypothesis very hard to understand. I don't know whether I'm wrong or not... In forming their hypothesis 4, the wrote: Singh and Cole (1993) have compared the effectiveness of 15-second and 30- se...
I'm trying to solve this problem, but without much success. Here we have that $X \sim \operatorname{Geo}(\theta)$, with $p(x) = \theta (1 - \theta)^x$, and $Y = X \mod 3$, thereby having $p(y) = \theta\frac{ (1 - \theta)^y}{ 1 - (1 - \theta)^3}$, with $y = 0, 1, 2.$ Now I have to find the conditional distribution of $...
You may assume that I'm familiar with the material in Casella and Berger. This question is identical to What is the difference between Fisherian vs frequentist statistics?; however, the question was closed for ambiguity and has no answers. I speak of "likelihood methods" in context of the text In All Likelihood: Statis...
The professor has to go to Ireland for a bonus trip and can bring with him only one student from its class. Students cannot agree on who should get chosen. One of the student produces a coin and suggests using a coin toss to determine the lucky one. None of the other students trust the coin to be fair. After a few tria...
The data shown in the graph below seems to be linearly correlated, but not proportional. How can I show that it is not proportionally correlated? It seems so simple, but none of my ideas so far come close to satisfying: Fitting y' = m*x and then measuring the relative difference |y'-y| / y. However, the difference is ...
I have a large number of of noisy time series recordings (trials), for which I wish to estimate the state transition model underlying them using the Kalman filter. The process generating the time series is the same in every trial, and so I want to be able to pool information from all of the trials, rather than fitting ...
I wonder whether conditional probabilities are unique to Bayesianism, or whether they are more of a general concept that is shared among several schools of thought among statistcs/probability people. I kind of assume it is, because I assume that no one can $p(A,B) = p(A|B)p(B)$ is kind of logical, so I think frequentis...
I tried many different text classification models from scikit learn. I trained the model using some posts from personal finance stack exchange. Posts are classified into the following four classes: "mortgage", "investing", "credit-card", and "taxes". The model generally works great when tested using the test dataset (I...
I am implementing a recommendation engine tool used by several users who are supplying feedback in the form of thumbs up (+1) or thumbs down (-1) for each recommendation. The recommendation engine uses 3 different models independently to suggest recommendations (i.e each model suggests its own unique recommendations). ...
I have a neural network that I constructed in keras that goes from a LSTM recurrent layer > dropout > flattened > dense layer of 1 unit. Does this make sense to have dropout regularization at this stage? Would this be creating sparsity in the penultimate layer or would it be evening out the connections to the final ...
I am trying to combine the predicted class labels of 3 different classifiers (for example SVM, Naive Bayes etc ) so that it will eliminate the weakness of each individual classifier. I am trying to use dempster Shafer evidence theory in order to fuse this predicted class labels in Matlab. Unfortunately, I could not fin...
Is it possible to control for a confounding variable in linear mixed models? SPSS has a covariate box but I think that is not the same as adding a confounding variable?
I have two different sources of data on popularity of volunteering in 100 countries for each of 5 years. So I have 2*100*5 data points. I want to know if the different sources say the same thing at all or if they are completely unrelated. The 5-year trends are almost certainly not linear. I could do 100 separate prof...
Some people in my line of work are interested in the coefficients that results from developing predictive regression models(prm). I’m somewhat reluctant to use these coefficients to explain an effect a predictor may or may not have on the response. What is sometimes useful is the variable importance, although this see...
The time of occurrence of the first accident during rush hour traffic at a major intersection is uniformly distributed between the three hour interval 4pm to 7pm. let X=the amount of time (hours) it takes for the first accident to occur. Assume Ramon has kept track of the times for the first accidents to occur for 40 ...
Assume two r.v. $X \sim D(\mu, \sigma^2)$ and $Y \sim D(\mu+\beta, \sigma^2)$. I have a sample of each r.v., lets call these samples $sX$ and $sY$. Using these samples, I can generate empirical pdf's for each distribution, $f(x)$ and $g(y)$. Desire: I'd like to replication $g(y)$ by re-weighing the observation in $...
This question was asked here but no one gave a good answer. So I think it's a good idea to bring it up again and also I would like to add some more comments/questions. The first question is what is the difference between "PLS path modeling" and "PLS regression"? To make it more general, what are structural equation m...
Valerio Filoso (2013) writes: Most econometrics textbooks limit themselves to providing the formula for the $\beta$ vector of the type $$\beta = (X′X)^{-1} X'Y.$$ Although compact and easy to remember, this formulation is a sort black box, since it hardly reveals anything about what really happens during the estimatio...
I have a problem that people here might be able to help me solve. I have come across a variety of answers on CrossValidated and StackOverflow, but none that quite match my current issue. Let me explain what I am trying to compare, and our current method. I have a set of experimental length versus time traces (L(t) vs. ...
I am using the twins data from OpenMx and am curious to estimate the empirical covariance structure for BMI differences in monozygous and dizygous twins: library(OpenMx) data(twinData) twinData$dz <- as.numeric(twinData$zyg >= 3) ## empirical variance by(twinData[, c('bmi1', 'bmi2')], twinData$dz, cov, use='complete.o...
When dealing with a binary classification problem, where the decision function threshold is being varied from 0 to 1 at step 0.1: When calculating the Area Under the Curve (AUC) for a ROC Curve plot (x: FPR, y: TPR) is the result AUC value equal for both classes? When calculating the Area Under the Curve (AUC) for a P...
As a beginner at machine learning, I wanted to work on a small project in which the dataset has only 80 rows and 5 columns. The dataset I am working with is related to a medical condition, with 4 columns as biomarkers, and the 5th column indicates whether the row (a patient) has the condition or not. So far, I have fit...
I am trying to understand the advantage of a RNN has over a regular FF NN that is fed all the time series data. It seems that advantage a RNN has over a feed forward network if you wanted to train the network after an initial training, with new datasets, if would be computationally much more efficient, since the state...
I have a dataset like: 13,a,b,c,d,e 32,b,d,x,y,z 54,g,h,r,w,p 04,a,b,c,d,x ... Basically, the first number is the cost of all the components (named the letters of the alphabet) after that. I have many datapoints like this, so I have very sufficient coverage usually of any component with pretty distinct other componen...
I am in the process of implementing back propagation into my image classification neural net. I am using this cost function with a sigmoid output layer and ReLU hidden layers. The neural net has 3 layers of sizes hidden 4 hidden 3 and output 1. To start, I am only trying to implement back propagation for the weight...
The Matérn covariance function is commonly used as kernel function in Gaussian Process. It is defined like this $$ {\displaystyle C_{\nu }(d)=\sigma ^{2}{\frac {2^{1-\nu }}{\Gamma (\nu )}}{\Bigg (}{\sqrt {2\nu }}{\frac {d}{\rho }}{\Bigg )}^{\nu }K_{\nu }{\Bigg (}{\sqrt {2\nu }}{\frac {d}{\rho }}{\Bigg )}} $$ where $d$ ...
I want to forecast future(next 20 days) sales with sample dataset. This is just a sample data and the actual data is from Jan 2014 to Dec 2016. As you can see, sales tend to increase as time goes by, and usually it gets higher when variable(c) is 'no'. Time series forecasting cases that were posted on Stackoverflow or...
Are the random effects intercepts of two independent subjects comparable in a mixed model? For example, lets say I have this model: mod = lmer(y ~ x + (1|S1) + (1|S2)) Could I compare one of the S1 random effects to an S2 effect? I don't think so, but wanted to make sure.
how to determine sample size for a questionnaire validation study in a certain population. the questionnaire has underwent psychometric validation before this.
I understand that with Ridge or Lasso regression we are trying to shrink regression coefficients, and we specify the amount of shrinking we need by varying alpha. But I cannot understand the intuition or rationale behind doing it? as we no longer fit the best line.
Several sources I've come across state that the AIC and the BIC are asymptotically equivalent to cross-validation (see multiple answers here for example, and here), . When training a predictive model, is this useful in practice, or is it just a theoretical consideration? Empirically, is there a sample size above whic...
I have a time series like 4, 6, 10, 12, 2, 23, 4,... It is not a stationary time series so I do not want to use arima algorithm. I perfer neural networks. There is some algorithm in R package such as forecast. But that function (nnetar in forecast) is simple. It only has single hidden layer. I want to use deep learning...
I am looking into identifying extreme values from their contribution to a binary outcome model. I have an unbalanced set and some extreme values which are part of the smaller set to predict (i.e predit a 1) so I can't really remove them. Ideally you can use the cook's distance, residual and influence from the leverage...
There are lots of articles available pertaining to 'multi-modal machine learning'. Among the major challenges, there is a one of representation i.e. "how to represent and summarize multi-modal data in a way that exploits the complementarity and redundancy of multiple modalities" In context to the above quoted text, it...
i`m wondering why the law of large numbers holds for pseudorandom numbers. Is this a empirical observation such as that the law of large numbers holds for coin tosses, or is this somehow programmed into the way the pseudorandom number generator works?
In statistic estimation we always works with densities. However, sometimes we need to estimate the cumulative distribution function? why? What is the benefits of estimating the cumulative distribution function? Every time that I search about cumulative distribution function or read a book, I found a mathematical expres...
I am wondering if winsorising makes a difference in a logistic regression. In a situation where I am looking at the individual contribution, looking at their individual discriminatory power (regressing the variable against the dependent variable). One would inspect the variable, see that there are some outliers and/or ...
I am looking for some help with how to derive the distribution of a random variable that uses the max function. What I have is the following information: $$x_1\sim N(\mu_1,\sigma_1^2)$$ $$x_2\sim N(\mu_2,\sigma_2^2)$$ where $x_1$ and $x_2$ are independent and $$y=\max\{0,x_1+x_2\}$$ And so I would like to figure out ...
If a statistic is complete, then any function of that statistic is complete. Is it true in general? For example, I know that for a gamma distribution $G(2,\theta)$, Sample mean will be a complete statistic. Then, can I say that any function of sample mean will be a complete statistic?
I am working on some computations for large datasets of market data and I was wondering is there is a simple way to apply the following logic without using heavy looping. I will simplify the problem: Say that I have a time series data = 1 4 9 3.12 6.07 2 20.19 18.34 7.1 7.34 8.23 9.34 5.011 where each number represents...
In the social sciences, people typically report and interpret an odds ratio (OR) < 1 for a binary predictor which has a negative association with a binary outcome. But the social sciences, of which I am part, have a notorious reputation in their use of biostatistics, especially the OR (see here and here). According t...
In Monte Carlo - EM, we use a Monte Carlo sampler in the E-step to approximate the posterior distribution of the latent variables. The algorithm goes iterates through E-step: $Z_1,...Z_m \sim p(Z | X, \theta)$ M-step: $argmax_{\theta} \quad \mathbb{E}_{p(Z | X, \theta)}[\ln p(X,Z) | \theta)] \approx \frac{1}{M}\...
I was thinking that the difference between lmer(fit~ a+b +randomF) lmer(fit~ a*b +randomF) lmer(fit~ a:b +randomF) was that the first says "search for fixed effects only", the second "search for fixed effects and interactions" and the third "search for interaction only". Am I wrong? Particularly, in my case, if I writ...
I have a question regarding fit indices for a cfa based on 2 groups/samples. Specifically, I have fitted a cfa model with one factor based on 7 indicators (questionnaire items), and two samples (clinical vs. non-clinical), with the restriction of equal factor loadings in both samples. I am using the lavaan package in R...
I am using a Gaussian Process model for probabilistic classification. My data covers two classes, let's call them "Sick" and "Healthy". For each of these classes, I have 5000 training samples. Although my data is balanced, the prior for being "Healthy" in the real world is around 100 times larger than that for "Sick". ...
I am trying to segment customers based on how recently they visited the store. However, I am also trying to incorporate the frequency with which they visit the store. For example, in a data collected between Jan 2015 and Dec 2017, Customer 1 visited 3 times in Jan 2015 and then once in Dec 2017; Customer 2 visited 4 ti...
In an experiment, I am asking people to choose between two items (A or B). The task instructions use two different sentences (e.g., "pick A or B", "pick B or A", Q1 and Q2). In the results, it seems that the user behaviour is different with Q1 and Q2 (for example with N = 20): _ A B Q1 8 12 Q2 13 7 Meani...
I am trying to understand how gbm handles missing values. I have seen this thread on the topic: https://stackoverflow.com/questions/14718648/r-gbm-handling-of-missing-values But it focusses on explaining how the results show how missing values are treated. What I am interested in is how the algorithm treats missing ...
I'm less than ... enthusiastic about some of Taleb's claims regarding, say, the paleo diet. I make no comment on his political content, but I want someone more factual and hard, and less prone to controversy and drama. I make no comment on Taleb's content herein as all I am saying is that I want someone different from ...
I have implemented kmeans clustering on iris dataset (inbuilt dataset) in R. The code is given below: X=as.matrix(iris[-5]); K=3; prevCentroids=matrix(0,K,dim(X)[2]); centroids=X[sample(1:dim(X)[1],K),]; dot=numeric(3); C=numeric(150); while(!isTRUE(all.equal(centroids,prevCentroids))) { for(i in 1:dim(X)[1]) { ...
For my work we collect a lot of surveys which contain a mix of questions: multiple choice, checkbox and numeric. We know that in some instances enumerators might fudge the survey by entering answers at random. We also know that for the majority of surveys, the responses to certain questions will correlate strongly with...
If I understood the algorithm properly it should go like this: Randomly initialize SOM weights $\xi_1, ... , \xi_n$ in feature space. Randomly pick sample from training set v(k) (k as in step k) Find BMU (Best matching unit, closest SOM vector to feature vector) b(k) Update all $\xi_m$ according to the following rul...
So consider inputs x1, x2 and output y. X1 has a relatively linear relationship with y. X2 has a relatively linear relationship with |y|. How might you perform the regression? If it was the magnitude of x2 that predicted y, you could take the norm of the input, but we can't simply take the norm of the output in this ca...
I have searched high and low on the internet and cannot find the answer to my question. I am conducting a logistic regression (glm) in r to find how input variables influence my dependant dichotomous value (present/absent). My question is can my independent variables be in the form of 0 and 1, i.e. absent or present...
I'm taking a class on survey sampling and I have some problem understanding the R implementation of simple random sampling (SRS). Please look at this piece of code: library(survey) data(api) N <- nrow(apipop) srs_design <- svydesign(id=~1, fpc=~fpc, data=apisrs) a <- svymean(~api00+api99+I(api00^2)+I(api99^2), srs_des...
My blog has several pages, approx 250. Each one of them is some content written by me on that particular product (products are related to cosmetics). The pages have functionality to give rating (thumbs up and thumbs down). Each page has 2 to 3 call to action buttons which open a form in which user has to give name, ema...
I have a lmer model that analyse the interaction between a treatment (4 levels. Name: Relation_PenultimateLast) and 3 groups (ExpertiseType), crossed. In this model I have 3 by-group random effects. The function used is lmer from the library lme4, extended through the lmerTest library. Here the formula: f.e.model = lm...
I hope someone can help and that this is not a simple repeat of other questions on here - none seem to quite match what I'm looking for. (Or, I have become confused by terminology...) THE PROBLEM I have conducted OLS regression for the yearly mean values of a measured variable vs time (year), from 13 different locatio...
Sorry for the following basic questions but it is important for me to get a feedback for my approach. I would like to create reference values for children in form of percentile curves (also called Z-Score Curves, example here). For this purpose, I use the GAMLSS package in R and the LMS method that was proposed by Cole...
I have been doing a bunch of spherical statistics using Stereonet and there is a function for producing contour plots of data density. One of the options in this function is a choice between Kamb contours and 1% area contours. What is the difference between these two and what are the benefits/disadvantages of each? The...
Is there a way to carry out polynomial regression $x + x^2$ in H2O (Python)? What I have found about this is "interactions" option in GLM. However, I am not sure if this option yields polynomial regression as given here (link).
I want to implement robust line fitting over a set of $n$ points $(x_i,y_i)$ by means of the Least Absolute Deviation method, which minimizes the sum $$\sum_{i=1}^n |y_i-a-bx_i|.$$ As described for instance in Numerical Recipes, you can find the optimal slope, by canceling the function $$s(b):=\sum_{i=1}^n x_i\text{ si...
Related: Average distance in distance matrix I'm looking for some way to compare euclidean distance matrices. The matrices I need to compare will have constant number of rows but varying number of columns. My goal is to find to best or nearest match (pick the best matrix). Ideally there is a function that takes such a ...
What is the application of the Newey-West estimator of variance in case that we have the presence of autocorrelation in our model?
In an experiment, I am asking people to choose between two products (A or B), for several pairs P. For some pairs, there's a strong preference, for others there isn't. The data looks like this (N=20): _ A B P1 8 12 P2 13 7 P3 10 10 P4 11 9 For example, 8 customers chose product A and not product B ...
How to check the assumption of "linearity of independent variables and log odds" for a logistic regression model in R What is the best way to check for the assumption: linearity of independent variables and log odds? Which log odds to use? Log odds of the model including all independent variables OR use the log odds o...
I want to calculate the quantile curves (0.025,0.25,0.5,0.75,0.975). The distribution of age is So I decided to work with quantile regression (nonlinear) so I run the following code library(quantreg) plot(dataExample$age,dataExample$y,xlab = "age", ylab = "y",type="n") #' Fit first a nonlinear least-square regressio...
A neural net learns features of a data set as a means of achieving some goal. When it is done, we may want to know what the neural net learned. What were the features and why did it care about those. Can someone give some references on the body of work that concerns this problem?
My lab utilizes a RGB camera we are trying to characterize. Especially, we are interested in the light intensity distribution. Photon detection is typically modelled by a Poisson distribution which has the same expectation value and variance. To test, if this can also be applied in our case we captured 100 images of th...
Is there a dimension reduction method (linear or non-linear) where the embeddings/projections of some of the input points are already known in advance and are taken into account during parameter estimation/learning? So, imagine there are 100 points in 10D and we're looking for a 2D representation and for let's say 10 p...
The independence assumption of T-test states "The data (scores) are independent of each other (that is, scores of one participant are not systematically related to scores of the other participants)." Say I have two groups Group-A Group-B Mean score 8.9 6.3 Standard deviation ...
I have carried out a ROC curve analysis to determine how useful two acute phase proteins (APPs) and hair cortisol are at accurately discriminating tail bitten pigs from unbitten pigs. The ROC curve results indicate that the APPs are able to discriminate at chance level (AUC: 0.500) making them 'meaningless'. Hair corti...
I often run into the situation where I have several regression models, each of which gives a RMSECV, and I need to choose which one is "best". Of course, I can choose the one with the minimum RMSECV, but sometimes several models have very similar values. What is the correct way to determine whether a difference in RMSE...
In the literature, I've come across statements like "People with higher income and with long working hours are more likely to be diagnosed with chronic diseases such as stroke". The above-mentioned study (p. 8) explores the association between behavioral habits and chronic diseases using ANN. I am unable to figure out ...
I was told by many people, many times, Never explicitly compute matrix inverse, because it is not numerical stable. Instead, use LU, QR, SVD decomposition to solve the linear system. But why? Is that true for some matrixes (say symmetric positive definite matrix), inverse is better than other?
I have a question about whether I'm artificially adding degrees of freedom in my mixed model. I am testing whether brain volume predicts my outcome measure. However, I have two measures of brain volume: left hemisphere and right hemisphere. I am not interested in how left and right are different per se, so could averag...
A statistical test $T$ is a mapping from the space $\Delta$ of possible data $D$ to $\{R,A \}$, (meaning: Reject, Accept). If we have a null hypothesis $H_0:\theta \in \Theta_0$ for which $T$ is a test, where $\theta$ is the parameter of the model that we assume generated data $D$, then the probability that $H_0$ is t...
I built a species distribution model using random-forest. My training data consists of 971 records of species presence (71)/absence (900) and three environmental variables at systematically sampled points (4*4m, random starting point). Training data: str(train) 'data.frame': 971 obs. of 4 variables: $ presence: num ...
I am investigating the prophylactically effect of drug A regarding onset of epileptic seizures. Drug A is given to the test group and not the control group. The hypothesis is that drug A does not prevent seizures. I am comparing 17 studies in a meta-analysis regarding brain tumors. They differ greatly; the median age,...
Consider a heteroskedastic model of the form, $y_i|x_i \sim \mathcal{N}\left(x_i, \text{exp}\{\boldsymbol\beta^\top\boldsymbol{x}\}\right)$ where $\boldsymbol{\beta}=\left[\beta_0,\beta_1\right]$ and $\boldsymbol{x}=\left[1,x_i\right]$. $x_i$ and $\boldsymbol{\beta}$ must be estimated from the data. We set a multivaria...
Let's say I want to compare the recurrence rate of a house that is on fire/flooded/robbed this year will be on fire/flooded/robbed the next year in a neighborhood. My data look like this: Event Yt Yt+1 Yt+2 ------------------ On fire: 100 10 2 Flooded: 200 50 25 Robbed: 250 150 ...
We observe an i.i.d. sample $(X_1, Y_1), \ldots (X_n, Y_n).$ Let $m(x) = E(Y|X=x),$ $\sigma^2(x) = \operatorname{Var}(Y|X=x)$ and let $f(\cdot)$ be the density of $X.$ Under some regularity conditions, the conditional variance of the local linear estimator $\hat m(\cdot)$ of $m(\cdot)$ at $x_0$ is $$ \operatorname{Var...