Functional Dependence (In Table/General)

In summary, the working definition of functional dependence is that each value of A is associated with exactly one value of B, but this dependency may be a function of the "world" that the A and B relate to.
  • #1
WWGD
Science Advisor
Gold Member
7,038
10,645
Hi all, hope this is the right forum. Please feel free to move it otherwise:

I am confused on whether functional dependence can be determined uniquely by the particulars of a given table, or if it is determined in a more general sense

So I have my relational table. Let A,B be attributes , i.e., different fields. My working definition of B being functionally-dependent on A is that each value of A is associated with exactly one value of B. Now, A may
functionally determine B in a specific table, but not in all tables. So which definition do we use, the one
associated to the specific table, or the more general one?
Specific case:
Now I have in my table the fields OH (On Hand), and the field WN (Warehouse Name) , and in my table, OH determines WN:. In this particular table, there is only one repeated value for OH , the value 8 , specifically, and it happens to be the case that both values 8 are associated with the same warehouse name. In this sense, OH functionally determines WN, since knowing the value of OH uniquely-determines the 'value' WN. But it is absurd to believe this can be generalized: clearly there may be cases where there are the same number of products in two-or-more databases. So, can I then conclude that OH functionally determines WN or not?

Thanks.
 
Computer science news on Phys.org
  • #2
Theoretically, A and B relation is still considered as non-trivial functional dependency.
Practically, determining OH and WN related values may need normalization. OH and WN are still non-trivial FD. I don't understand the "generalization" idea , but logically is it a flawed attempt to generalize discrete data like this ?
 
  • #3
Thanks, Waffle: What I mean is that for a given data set, it may be the case that A determines B, in that, for this specific data set,
every value a of A is associated to a unique value b of B. In our case, it may be the case that for every value a of OH, there is a unique
value b of WN, i.e., _for this data set_ every warehouse has a different amount of gadgets on hand. But if the data set were to change,
we may have different warehouses with the same amount of gadgets. So, yes, the question is whether , in order to decide whether
A determines B, we need to just use the data for a given table, or if we need to decide whether, for all possible data sets we are likely to
encounter, A would determine B. In this particular case, with OH and WN, I would say the answer is no, since we may have the same amount
of gadgets available at different warehouses. But if we had, e.g., CN : CustomerName name and DB: date of birth, it does seem that CN would
always determine DB, since a person will always have a unique birth date.
 
  • #4
Hope that was not too unclear: my point is that dependencies may be a function of a particular situation at hand. Example: I am looking at a different table with fields Manufacturer M, and Manufacturer Country, MC . But there is no "intrinsic" dependence between M and MC, in that it may or may not be the case that a specific company manufactures in only one country. Then the dependency is a function of the "world" that these companies "live in". Hope this makes sense.
 

Related to Functional Dependence (In Table/General)

What is functional dependence?

Functional dependence refers to the relationship between two or more variables in which one variable's value is determined by the values of the other variable(s). In other words, the value of one variable is dependent on the value(s) of the other variable(s).

What is the difference between functional dependence and correlation?

Functional dependence is a specific type of relationship between variables in which one variable's value is determined by the value(s) of the other variable(s). Correlation, on the other hand, refers to the degree of linear association between two variables, but does not necessarily imply a cause-and-effect relationship.

How is functional dependence represented in a table?

In a table, functional dependence is represented by having one variable serve as the independent variable and the other variable(s) as the dependent variable(s). The values of the dependent variable(s) are then determined by the value of the independent variable.

What is the difference between functional dependence in a table and in a general sense?

In a table, functional dependence is typically represented by displaying the values of the dependent variable(s) in a separate column, while the independent variable is shown in its own column. In a general sense, functional dependence refers to the broader concept of one variable's value being determined by the value(s) of another variable(s).

How can functional dependence be tested or measured?

Functional dependence can be tested or measured by conducting statistical analyses, such as regression or correlation, to determine the strength and direction of the relationship between variables. Additionally, functional dependence can also be visually assessed through graphs or charts, such as scatter plots or line graphs.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
8
Views
704
  • Engineering and Comp Sci Homework Help
Replies
1
Views
447
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
685
  • Engineering and Comp Sci Homework Help
Replies
2
Views
2K
  • Electrical Engineering
Replies
3
Views
829
Replies
7
Views
950
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
793
  • Programming and Computer Science
Replies
4
Views
499
Replies
80
Views
4K
  • Advanced Physics Homework Help
Replies
14
Views
1K
Back
Top