# All Questions

15 views

### Random effects in GAM [on hold]

I am now trying to use random effects in GAMs developed by Professor Simon Wood. Prof Wood uses s(...,bs="re") to account for the random effects. Random intercepts models or random slopes models are ...
14 views

### How to calculate the probability that a scalar data point maps to a class?

Suppose that I have the following data set that maps students' test score to the class in which the student belongs: ...
18 views

### Combining different normality transformations for Fisher's method

I have 2 data sets that are applicable to Fisher's method. One has a p-value of 0.07 and the other 0.15. Neither sets were normal or homoscedastic. The first satisfied the ANOVA assumptions only with ...
20 views

### How can I approximate a pdf knowing the estimated CDF in R?

I have an estimate of a CDF in R (nonparametric) and I need to compare this distribution to another one by Kullback-Leibler. In order to do so, I need to find the pdf of this random variable. What is ...
19 views

### What are the recent real life use or applications of the Cauchy Random Variable?

We have a short assignment on the described question and I already have gone through a lot of trash results from Google. I can't seem to find any. I don't know where else to post this question. ...
7 views

### Multiple time series - class of problem with agents and events?

I'm working on a prediction problem and struggling to find applicable resources (articles, tutorials, papers) that address this class of problem. I'm assuming the info is out there and I'd love to ...
19 views

### Comparing classification accuracies with different numbers of features

I have a classification problem in which I’m trying to assign a label to each of a collection of inputs x_i. I’m comparing two different feature representations of the inputs, trying to determine ...
9 views

### Are all right skewed distributions the result of a multiplicative process?

If log normal distributions are the result of a multiplicative process and right skewed distributions become normal once converted to logs (i.e. are log normal). Then, can one generalize and say that ...
7 views

### Results from fractional polynomial models

I am using multivariable fractional polynomials to evaluate several continuous variables in a Cox proportional hazards model. I have the beta coefficients, however, I would like to estimate the hazard ...
44 views

### Poker chance of straight or 8 outer straight draw on the flop from connectors 34 - TJ

Poker - 52 cards 4 suits of 13 (rank) cards each Poker probability Rank - ace (1) is both high and low so A23456789TJQKA A straight is 5 sequential cards A flush is 5 cards of the same suit ...
19 views

### Using glmnet/lasso to tune a logistic regression model [on hold]

I am trying to make a logistic regression model using the lasso technique. I have 56 potential predictor variables (IVs), and I would like to use lasso to select a parsimonious set of predictors. The ...
10 views

### Generating Skewed Z-Scores with Kurtosis

I am looking to programmatically generate random z-scores from a distribution with a specific skew and kurtosis. Can anyone provide a mathematical technique or code (VBA or C++ preferred but I'll take ...
38 views

### Correlation analysis among large number of variables

How can I check correlation among large number of variables? I can check the scatter plot between every pair of variables and pearson coefficient r if the number is ...
29 views

### Time series analysis: since volatility depends on time, why returns are stationary?

I run Dickey Fuller test in order to know if stock returns are stationary. I get that no matter which stock I take, his return is stationary. I don't know why I get this result since it is clear that ...
24 views

### How to calculate confidence interval using parametric bootstrap

I was able to calculate the age-specific hazard ratio (HR) for breast cancer at age 40 and 60 years old. The HR was a continuous, piecewise linear function of age which was constant before 40 years, ...
14 views

### Using Mann-Whitney U instead of T-test in large sample

For my dissertation, I am examining racial differences in perceived choice and control and home and community-based services (HCBS) use in frail elders (n=659) who have moved from a nursing home into ...
9 views

### How to generate n theano.shared variables for Gaussian mixture regression?

I am trying to program a Gaussian mixture regression using python, and the theano package. Suppose I have n clusters, then I need to generate n regression weight matrices for each cluster (also, n ...
142 views

### What is the mathematically rigorous definition of chunky data?

When in the workplace, certain measurement-taking devices are subject to different numerical accuracy; in some cases, the accuracy can be pretty weak (i.e., to one or two significant values only). ...
23 views

### Can I be confident of my R^2 score?

I have a dataset with 10 variables and 158 observations. I used cross-validation, grid-search and ElasticNet algorithm. To evaluate the model I checked the pearson correlation between the 10 ...
3 views

### Is Propensity Score Matching the Correct Tool to Match Cohorts by Disease and not Exposure?

For a set of patients that all underwent procedure A, is it valid to use propensity score matching to compare 2 subsets in which the patients have disease D (D+) to those that do not have disease D ...
18 views

### What is the variance of a normally distributed random variable minus the sample mean of the data it came from?

If $Y_i \sim N(\beta, \sigma^2), i = 1,2,\ldots,n$ and $U_i = Y_i - \bar{Y}$, then what is the distribution of $U_i$? I know that $\bar{Y} \sim N(\beta, \sigma^2/n)$ and that the sum (or difference) ...
8 views

22 views

### R & propensity matching [on hold]

I am new to R & propensity matching. I doing a quasi-experimental study in which a group of 320 students received treatment and a group of 280 students did not receive treatment. I would like ...
9 views

### Power Analysis for Within Subject ANOVA

I am going to be collecting survey data that asks for participants' attitudes towards four groups of people. For the sake of this example, let's say that it's black women, black men, white women, and ...
10 views

### How to use interpolation to calibrate object distance measurement based on pixels?

The current method used is triangle similarity to find the distance. A test image was used with known distance and known width. Then the area of the object in the image can be calculated. The ...
15 views

### add legend to ggplot geom points [on hold]

I've created a ggplot indicating 3 different activities for male bats in three different colours: ...
4 views

### Discretization for a bayes network model with small sample

I have been playing around with a Bayesian network toolbox for prediction and classification. I have had good success with the examples but I'm now stuck on how I should proceed with my scenario. I ...
8 views

### Modelling Internet Traffic

I want to model the daily view counts of content shared over the internet. I know (or rather I assume) that the view counts will start off at the ground level, but will shortly spike up quickly (e.g. ...
10 views

### Kaiser-Meyer-Olkin (KMO) statistic or Bartlett's test in SPSS [on hold]

I am performing PCA in SPPS. I get all of the statistics but I don't get Kaiser-Meyer-Olkin (KMO) statistic or Bartlett's test table in the SPSS output. I selected these options from gui. Do you know ...
6 views

### How to test independence of two markov switching processes using likelihood ratio test

I would like to test for independence of two first order markov switching processes with two states each. I have read this can be done using the LR test (I know that this will be simulation based ...
32 views

### Exclude not important predictors from dataset or leave them all?

I have a large dataset with 6 predictors, with a goal to predict bank loan interest, based on year income, time at work, loan amount, credit balance, credit utilization rate, etc. I use python with ...