# Questions tagged [function]

A mapping between a set of inputs and a set of outputs.

236 questions
Filter by
Sorted by
Tagged with
9 views

### Correcting 'not iterable error' for def function [closed]

I am trying to plot this complex def function from a research paper that I read for a project and I keep getting that the map function is not iterable. When I run the code by itself, it's fine, but ...
17 views

### Finding a function for the number of people on a bus

I've been trying to pin down the function that would describe the number of people on an ideal bus ( # of stops and passengers approaches infinity/ is large enough that the function is continuous), ...
233 views

### Better function to fit log-like data?

I'm trying to fit a two-parameter function to data that looks like this (black dots, x scale is logarithmic): The best fit I could find is an $arctan$, measured by the MSE. All the seven functions I ...
• 4,342
1 vote
24 views

### Question about using the RFpredInterval Package: How to calculate the standard deviation of data points in same terminal node as test data point

I am using the RFpredInterval package (specifically the rfpi function) to obtain prediction intervals for a random forest. I ...
26 views

### Using an optimal transport map on new samples from same source distribution

I am trying to compute an optimal transport map from $p = U[0,1]^2$ to some 2D distribution $q$ given by an image, where pixel intensities represent unnormalized probabilities. My goal is to build a ...
• 131
1 vote
27 views

### What Are Some Mathematical Functions that Can Represent Surge Pricing for Ride Hailing? [closed]

Consider a ride hailing service, where the fare needs to be dynamically adjusted. I know there are many machine learning driven models possible, but here I am looking for a simpler and sensible ...
• 553
40 views

### Understanding notation for input space

I'm taking the free Caltech machine learning course. I'm having trouble understanding the notation on one of the problems: In this problem, you will create your own target function f and data set D ...
• 153
269 views

• 331
5 views

### Is it possible to learn a mapping between unpaired time-series data?

I have two time series. One is an actual recording of physiological signals, the other is a binary representation of activations (0 or 1) based on a simulation of the process underlying the ...
• 71
42 views

### Transform data domain and maintain mean

I have a dataset, $y$, that is on some arbitrary range. I would like to transform this data to be on the range [-1,1]. This is accomplished using a linear transformation, such as the one described ...
1 vote
146 views

### Standard deviation of a function of random variables

I was a bit confused recently with why two jointly distributed variables will exhibit a smaller scatter as the correlation between the random variables increases (assuming only positive values for the ...
• 413
1 vote
230 views

### Is there a way to stretch sigmoid function output

I have an array of values and a value that lies outside of array's max value: arr = [10, 15, 20, 30] value = 150 and I want to make that value less of an outlier, ...
• 11
45 views

### Describe a geometrical shape as a piecewise function

Consider a cube filled with random particles. Let's say the particles in cube are rotated around the z-axis through the center of the cube. Here, the rotation is proportional to the height of the cube,...
• 113
234 views

• 133
1 vote
188 views

### How to use statistics to speed up row-wise computations on a data.frame?

I have a data frame with 10,000 rows and 40 columns. I am trying to apply a function to each of these rows. For each row, I am expecting to return a scalar which is the value of the statistic I am ...
• 21
864 views

### How to weight ranks?

I have a set of responses ranked by my participants. For example, they gave responses A, B, C and ranked them as 3, 2, 1 (or C, B, A). I computed relative frequencies of each responses (A, B, C) and ...
66 views

### What is the equation of a line fitting a log-log model computed in R?

I am currently stuck, wanting to extract a line function from my fitted line on my log-log model. ...
1 vote
26 views

### Why does non-parametric approach break down when the joint distribution is estimated by a finite data sample?

I am currently reading the paper on Gradient Boosting Machines - J. H. Friedman, “Greedy function approximation: A gradient boosting machine,” Ann. Stat., vol. 29, no. 5, pp. 1189–1232, 2001, doi: 10....
• 85